mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-10 23:10:42 +01:00
gha: tests: temporarily disable some remote tests (#6789)
* gha: tests: temporarily disable some remote tests See #6788 * machine: upgrade tpi version ``` dvc/machine/backend/terraform.py:28:19: E1101: Instance of 'TerraformBackend' has no '_default_resource' member; maybe 'default_resource'? (no-member) ``` * tests: remotes: require --s3 for s3 tests
This commit is contained in:
@@ -105,7 +105,7 @@ jobs:
|
||||
run: >-
|
||||
python -m tests -n=4
|
||||
--cov-report=xml --cov-report=term
|
||||
--all ${{ env.extra_test_args }}
|
||||
${{ env.extra_test_args }}
|
||||
- name: upload coverage report
|
||||
uses: codecov/[email protected]
|
||||
with:
|
||||
|
||||
@@ -25,7 +25,7 @@ class TerraformBackend(terraform.TerraformBackend, BaseMachineBackend):
|
||||
def get_sshfs( # pylint: disable=unused-argument
|
||||
self, name: Optional[str] = None, **config
|
||||
) -> Iterator["SSHFileSystem"]:
|
||||
resource = self._default_resource(name)
|
||||
resource = self.default_resource(name)
|
||||
with TerraformProviderIterative.pemfile(resource) as pem:
|
||||
fs = SSHFileSystem(
|
||||
host=resource["instance_ip"],
|
||||
|
||||
@@ -113,7 +113,7 @@ ssh_gssapi = sshfs[gssapi]>=2021.8.1
|
||||
webdav = webdav4>=0.9.1
|
||||
# not to break `dvc[webhdfs]`
|
||||
webhdfs =
|
||||
terraform = tpi[ssh]>=0.0.0
|
||||
terraform = tpi[ssh]>=2.0.0
|
||||
tests =
|
||||
%(terraform)s
|
||||
wheel==0.37.0
|
||||
|
||||
+3
-3
@@ -147,15 +147,15 @@ def s3_server(test_config, docker_compose, docker_services):
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def s3(s3_server, s3_fake_creds_file):
|
||||
def s3(test_config, s3_server, s3_fake_creds_file):
|
||||
test_config.requires("s3")
|
||||
workspace = S3(S3.get_url())
|
||||
workspace._s3.create_bucket(Bucket=TEST_AWS_REPO_BUCKET)
|
||||
yield workspace
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def real_s3(test_config):
|
||||
test_config.requires("s3")
|
||||
def real_s3():
|
||||
if not S3.should_test():
|
||||
pytest.skip("no real s3")
|
||||
yield S3(S3.get_url())
|
||||
|
||||
Reference in New Issue
Block a user