tests: remove redundant native ssh tests

We already have mocked ones, which are more reliable as they use their
own paramiko server instead of relying on the sshd running on the test
machine. Native tests are also quite flaky and fail sometimes due to
network issues.
This commit is contained in:
Ruslan Kuprieiev
2020-01-11 03:14:45 +02:00
parent 01103585d7
commit 8154c89c3f
-25
View File
@@ -33,7 +33,6 @@ from tests.utils import spy
from tests.remotes import (
_should_test_gcp,
_should_test_hdfs,
_should_test_ssh,
Azure,
GDrive,
S3,
@@ -47,7 +46,6 @@ from tests.remotes import (
get_gcp_url,
get_hdfs_url,
get_local_url,
get_ssh_url,
get_ssh_url_mocked,
)
@@ -296,17 +294,6 @@ class TestRemoteLOCAL(TestDataCloudBase):
self.assertTrue(os.path.isdir(self.dname))
class TestRemoteSSH(TestDataCloudBase):
def _should_test(self):
return _should_test_ssh()
def _get_url(self):
return get_ssh_url()
def _get_cloud_class(self):
return RemoteSSH
@pytest.mark.usefixtures("ssh_server")
class TestRemoteSSHMocked(TestDataCloudBase):
@pytest.fixture(autouse=True)
@@ -442,18 +429,6 @@ class TestRemoteLOCALCLI(TestDataCloudCLIBase):
self._test_cloud(TEST_REMOTE)
class TestRemoteSSHCLI(TestDataCloudCLIBase):
def _should_test(self):
return _should_test_ssh()
def _test(self):
url = get_ssh_url()
self.main(["remote", "add", TEST_REMOTE, url])
self._test_cloud(TEST_REMOTE)
class TestRemoteHDFSCLI(TestDataCloudCLIBase):
def _should_test(self):
return _should_test_hdfs()