1
0
python-apache-libcloud/skip-some-tests-for-older-paramiko-versions.patch
Pablo Suárez Hernández 57fcad3880 Accepting request 977732 from home:mcalabkova:branches:devel:languages:python
- update to 3.5.1
  * Support for Python 3.5 which has been EOL for more than a year now has been removed.
  * [EC2] Add support for new ap-east-1 region.
  * [OpenStack] OpenStack: Move floating IP functions to use network service instead of nova.
  * [OpenStack] Avoid raising exception if ip is not found. 
  * [GCE] Allow credentials argument which is provided to the driver constructor.
  * [Local Storage] Objects returned by the list_container_objects() method are now returned sorted in the ascending order based on the object name.
  * Also run unit tests under Python 3.10 + Pyjion on CI/CD.
- added upstream patch mock.patch and drop mock requirement
- rebase all other patches

OBS-URL: https://build.opensuse.org/request/show/977732
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-apache-libcloud?expand=0&rev=116
2022-05-17 15:00:07 +00:00

32 lines
1.4 KiB
Diff

Index: apache-libcloud-3.5.1/libcloud/test/compute/test_ssh_client.py
===================================================================
--- apache-libcloud-3.5.1.orig/libcloud/test/compute/test_ssh_client.py
+++ apache-libcloud-3.5.1/libcloud/test/compute/test_ssh_client.py
@@ -193,6 +193,8 @@ class ParamikoSSHClientTests(LibcloudTes
)
@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__),
@@ -238,6 +240,8 @@ class ParamikoSSHClientTests(LibcloudTes
)
@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__),
@@ -265,6 +269,8 @@ class ParamikoSSHClientTests(LibcloudTes
)
@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__),