Matej Cepl
0f774a6840
- Do not build Python2 subpackage since 3.2.0 does not support Python2 - Adjust skipped SSH unit tests when paramiko <= 2.7.0 - Add: * skip-some-tests-for-older-paramiko-versions.patch OBS-URL: https://build.opensuse.org/request/show/844561 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-apache-libcloud?expand=0&rev=105
32 lines
1.6 KiB
Diff
32 lines
1.6 KiB
Diff
Index: apache-libcloud-3.2.0/libcloud/test/compute/test_ssh_client.py
|
|
===================================================================
|
|
--- apache-libcloud-3.2.0.orig/libcloud/test/compute/test_ssh_client.py
|
|
+++ apache-libcloud-3.2.0/libcloud/test/compute/test_ssh_client.py
|
|
@@ -168,6 +168,8 @@ class ParamikoSSHClientTests(LibcloudTes
|
|
expected_msg, mock.connect)
|
|
|
|
@patch('paramiko.SSHClient', Mock)
|
|
+ @unittest.skipIf(paramiko_version < '2.7.0',
|
|
+ 'Old versions of paramiko do not support OPENSSH key format')
|
|
def test_password_protected_key_no_password_provided_1(self):
|
|
path = os.path.join(os.path.dirname(__file__),
|
|
'fixtures', 'misc',
|
|
@@ -198,6 +200,8 @@ class ParamikoSSHClientTests(LibcloudTes
|
|
expected_msg, mock.connect)
|
|
|
|
@patch('paramiko.SSHClient', Mock)
|
|
+ @unittest.skipIf(paramiko_version < '2.7.0',
|
|
+ 'Old versions of paramiko do not support OPENSSH key format')
|
|
def test_password_protected_key_no_password_provided_2(self):
|
|
path = os.path.join(os.path.dirname(__file__),
|
|
'fixtures', 'misc',
|
|
@@ -219,6 +223,8 @@ class ParamikoSSHClientTests(LibcloudTes
|
|
expected_msg, mock.connect)
|
|
|
|
@patch('paramiko.SSHClient', Mock)
|
|
+ @unittest.skipIf(paramiko_version < '2.7.0',
|
|
+ 'Old versions of paramiko do not support OPENSSH key format')
|
|
def test_password_protected_key_valid_password_provided(self):
|
|
path = os.path.join(os.path.dirname(__file__),
|
|
'fixtures', 'misc',
|