File skip-some-tests-for-older-paramiko-versions.patch of Package python-apache-libcloud.15152
Index: apache-libcloud-2.8.3/libcloud/test/compute/test_ssh_client.py
===================================================================
--- apache-libcloud-2.8.3.orig/libcloud/test/compute/test_ssh_client.py
+++ apache-libcloud-2.8.3/libcloud/test/compute/test_ssh_client.py
@@ -165,6 +165,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(self):
path = os.path.join(os.path.dirname(__file__),
'fixtures', 'misc',
@@ -195,6 +197,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(self):
path = os.path.join(os.path.dirname(__file__),
'fixtures', 'misc',
@@ -216,6 +220,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',