summaryrefslogtreecommitdiff
path: root/dev-python/python-glanceclient
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-06-19 00:09:54 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-06-19 00:09:54 +0100
commite8df704cf9b5e9e517317b8912377c0a8ca0d11e (patch)
treeab3f43045fb1d37471f8217c8547d2120bb3d1da /dev-python/python-glanceclient
parentccaccfe4f1da8c11d9fa110f6e4eb847358769d7 (diff)
gentoo auto-resync : 19:06:2024 - 00:09:54
Diffstat (limited to 'dev-python/python-glanceclient')
-rw-r--r--dev-python/python-glanceclient/Manifest3
-rw-r--r--dev-python/python-glanceclient/files/python-glanceclient-4.6.0-test.patch92
-rw-r--r--dev-python/python-glanceclient/python-glanceclient-4.6.0.ebuild10
3 files changed, 102 insertions, 3 deletions
diff --git a/dev-python/python-glanceclient/Manifest b/dev-python/python-glanceclient/Manifest
index ca1b11eaf21b..d9d7c0c12c9a 100644
--- a/dev-python/python-glanceclient/Manifest
+++ b/dev-python/python-glanceclient/Manifest
@@ -1,3 +1,4 @@
+AUX python-glanceclient-4.6.0-test.patch 4172 BLAKE2B 3b2d7c7e132cb3a71e1be0f9a6306915ab757d83e814b88acec0a45f8bb44d0c22e428094c03dd6bdf786c12276883412cd979560fa33129039631429ae4aaa9 SHA512 75b5f8a1f85ae68f330d4c8370b06ac3be5f09285df4c608469b00f815332ec38de337075ad4053c64044bc2d2fe6e0d1ebf461aae81385888a344c24fc82bbc
DIST python-glanceclient-4.6.0.tar.gz 206480 BLAKE2B 302414b0fcf85ec9a8e53e9bf43c5801df82826524780249e9c4b46b44ca2e53c1c5d63f6e80c73dee2a59009a3e0aa1df591ecb2a4d000b74ee078b4810de2c SHA512 ed9d554d40a03134bc8871fbf712dd4bb2aab5e18854fd9c07df0d20dead1a9f3473bc4253ba4dd8c87cf7227148c637718461d45cd01bd9aaf673f7fc7ee9fc
-EBUILD python-glanceclient-4.6.0.ebuild 1447 BLAKE2B 28f3bda64e2aa1ecdc05c96a4297c9e46d354143934e1af54f8a8f03d2c86bc9964578806959b4759a492861285ddfd7d7b4c1602a97bf94d150cb0e2324b879 SHA512 38e31b1d885d699e725f076552fb544d879dcdf40d00016ebd040f7540c7b260b15030387daf46520dc9ad5652720f17b95dfc54a37a7ef7e2aaf91a7b35bfad
+EBUILD python-glanceclient-4.6.0.ebuild 1632 BLAKE2B b9d8adb43d349522f0c37e31d6fd21884296453553c60a242c2f0937422f59fc68c387bfd2d963b82b2371644e5d6b4fda2cd2032e0579823a83743618a1016a SHA512 beaa52e032052131752ae7133cf65bccb06fa4dcb8b33dd2d38abe66db4260eaefdf775426fd4cd3617c9348233231c1879d4fe31766c524c1918d1a3c16d505
MISC metadata.xml 663 BLAKE2B 642540f3f4d577797725731f2374b5801ec2d4ad799ee4ccfaa4e29d955bd93a8ade0e6c9ec7712ee27d9f1f93186854472d301016a732020575b8f7bc1c5138 SHA512 fa9b88dce5a10824dd0d6987698587666343c95d8b6c607e466f14883c34fb0ebc846b683ae7d8bb65efe88007e6db0d2b1b41ba389c3b656a24f1839d03d9e2
diff --git a/dev-python/python-glanceclient/files/python-glanceclient-4.6.0-test.patch b/dev-python/python-glanceclient/files/python-glanceclient-4.6.0-test.patch
new file mode 100644
index 000000000000..6adde80670c0
--- /dev/null
+++ b/dev-python/python-glanceclient/files/python-glanceclient-4.6.0-test.patch
@@ -0,0 +1,92 @@
+diff --git a/glanceclient/tests/unit/test_http.py b/glanceclient/tests/unit/test_http.py
+index 31d21f9..e2ba2c0 100644
+--- a/glanceclient/tests/unit/test_http.py
++++ b/glanceclient/tests/unit/test_http.py
+@@ -341,9 +341,9 @@ class TestClient(testtools.TestCase):
+ self.assertEqual(data, json.loads(self.mock.last_request.body))
+
+ def test_http_chunked_response(self):
+- data = "TEST"
++ data = b"TEST"
+ path = '/v1/images/'
+- self.mock.get(self.endpoint + path, body=io.StringIO(data),
++ self.mock.get(self.endpoint + path, body=io.BytesIO(data),
+ headers={"Content-Type": "application/octet-stream"})
+
+ resp, body = self.client.get(path)
+@@ -457,9 +457,9 @@ class TestClient(testtools.TestCase):
+
+ def test_log_request_id_once(self):
+ logger = self.useFixture(fixtures.FakeLogger(level=logging.DEBUG))
+- data = "TEST"
++ data = b"TEST"
+ path = '/v1/images/'
+- self.mock.get(self.endpoint + path, body=io.StringIO(data),
++ self.mock.get(self.endpoint + path, body=io.BytesIO(data),
+ headers={"Content-Type": "application/octet-stream",
+ 'x-openstack-request-id': "1234"})
+
+diff --git a/glanceclient/tests/unit/test_ssl.py b/glanceclient/tests/unit/test_ssl.py
+index f95e777..8b67d4c 100644
+--- a/glanceclient/tests/unit/test_ssl.py
++++ b/glanceclient/tests/unit/test_ssl.py
+@@ -87,8 +87,7 @@ class TestHTTPSVerifyCert(testtools.TestCase):
+ client.images.get('image123')
+ self.fail('No SSL exception has been raised')
+ except exc.CommunicationError as e:
+- if 'certificate verify failed' not in e.message:
+- self.fail('No certificate failure message is received')
++ pass
+
+ @mock.patch('sys.stderr')
+ def test_v1_requests_cert_verification_no_compression(self, __):
+@@ -104,8 +103,7 @@ class TestHTTPSVerifyCert(testtools.TestCase):
+ client.images.get('image123')
+ self.fail('No SSL exception has been raised')
+ except exc.CommunicationError as e:
+- if 'certificate verify failed' not in e.message:
+- self.fail('No certificate failure message is received')
++ pass
+
+ @mock.patch('sys.stderr')
+ def test_v2_requests_cert_verification(self, __):
+@@ -120,8 +118,7 @@ class TestHTTPSVerifyCert(testtools.TestCase):
+ gc.images.get('image123')
+ self.fail('No SSL exception has been raised')
+ except exc.CommunicationError as e:
+- if 'certificate verify failed' not in e.message:
+- self.fail('No certificate failure message is received')
++ pass
+
+ @mock.patch('sys.stderr')
+ def test_v2_requests_cert_verification_no_compression(self, __):
+@@ -137,8 +134,7 @@ class TestHTTPSVerifyCert(testtools.TestCase):
+ gc.images.get('image123')
+ self.fail('No SSL exception has been raised')
+ except exc.CommunicationError as e:
+- if 'certificate verify failed' not in e.message:
+- self.fail('No certificate failure message is received')
++ pass
+
+ @mock.patch('sys.stderr')
+ def test_v2_requests_valid_cert_verification(self, __):
+@@ -154,8 +150,7 @@ class TestHTTPSVerifyCert(testtools.TestCase):
+ cacert=cacert)
+ gc.images.get('image123')
+ except exc.CommunicationError as e:
+- if 'certificate verify failed' in e.message:
+- self.fail('Certificate failure message is received')
++ pass
+
+ @mock.patch('sys.stderr')
+ def test_v2_requests_valid_cert_verification_no_compression(self, __):
+@@ -171,8 +166,7 @@ class TestHTTPSVerifyCert(testtools.TestCase):
+ cacert=cacert)
+ gc.images.get('image123')
+ except exc.CommunicationError as e:
+- if 'certificate verify failed' in e.message:
+- self.fail('Certificate failure message is received')
++ pass
+
+ @mock.patch('sys.stderr')
+ def test_v2_requests_valid_cert_no_key(self, __):
diff --git a/dev-python/python-glanceclient/python-glanceclient-4.6.0.ebuild b/dev-python/python-glanceclient/python-glanceclient-4.6.0.ebuild
index cb0f5137ac48..d1666fba6eca 100644
--- a/dev-python/python-glanceclient/python-glanceclient-4.6.0.ebuild
+++ b/dev-python/python-glanceclient/python-glanceclient-4.6.0.ebuild
@@ -5,7 +5,7 @@ EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYPI_NO_NORMALIZE=1
-PYTHON_COMPAT=( python3_{10..11} )
+PYTHON_COMPAT=( python3_{10..12} )
inherit distutils-r1 pypi
@@ -40,12 +40,18 @@ BDEPEND="
dev-python/tempest[${PYTHON_USEDEP}]
dev-python/testscenarios[${PYTHON_USEDEP}]
dev-python/testtools[${PYTHON_USEDEP}]
- <dev-python/urllib3-2[${PYTHON_USEDEP}]
)
"
distutils_enable_tests unittest
+PATCHES=(
+ # combined patch for urllib3-2 and py3.12 test failures
+ # https://bugs.launchpad.net/python-glanceclient/+bug/2069684
+ # https://bugs.launchpad.net/python-glanceclient/+bug/2069682
+ "${FILESDIR}/${P}-test.patch"
+)
+
python_test() {
# functional tests require cloud instance access
eunittest -b glanceclient/tests/unit