python-manilaclient 5.3.0__py3-none-any.whl → 5.4.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- manilaclient/tests/unit/osc/v2/test_share.py +4 -5
- manilaclient/tests/unit/v2/test_client.py +19 -0
- manilaclient/v2/client.py +1 -1
- manilaclient/v2/services.py +1 -1
- manilaclient/v2/share_groups.py +1 -0
- {python_manilaclient-5.3.0.dist-info → python_manilaclient-5.4.1.dist-info}/METADATA +21 -12
- {python_manilaclient-5.3.0.dist-info → python_manilaclient-5.4.1.dist-info}/RECORD +13 -13
- {python_manilaclient-5.3.0.dist-info → python_manilaclient-5.4.1.dist-info}/WHEEL +1 -1
- {python_manilaclient-5.3.0.dist-info → python_manilaclient-5.4.1.dist-info/licenses}/AUTHORS +2 -0
- python_manilaclient-5.4.1.dist-info/pbr.json +1 -0
- python_manilaclient-5.3.0.dist-info/pbr.json +0 -1
- {python_manilaclient-5.3.0.dist-info → python_manilaclient-5.4.1.dist-info}/entry_points.txt +0 -0
- {python_manilaclient-5.3.0.dist-info → python_manilaclient-5.4.1.dist-info/licenses}/LICENSE +0 -0
- {python_manilaclient-5.3.0.dist-info → python_manilaclient-5.4.1.dist-info}/top_level.txt +0 -0
|
@@ -1153,12 +1153,11 @@ class TestShareShow(TestShare):
|
|
|
1153
1153
|
self.shares_mock.get.assert_called_with(self._share.id)
|
|
1154
1154
|
|
|
1155
1155
|
self.assertEqual(
|
|
1156
|
-
manila_fakes.FakeShare.get_share_columns(self._share),
|
|
1157
|
-
columns)
|
|
1156
|
+
sorted(manila_fakes.FakeShare.get_share_columns(self._share)),
|
|
1157
|
+
sorted(columns))
|
|
1158
1158
|
|
|
1159
|
-
self.
|
|
1160
|
-
manila_fakes.FakeShare.get_share_data(self._share),
|
|
1161
|
-
data)
|
|
1159
|
+
self.assertCountEqual(
|
|
1160
|
+
manila_fakes.FakeShare.get_share_data(self._share), data)
|
|
1162
1161
|
|
|
1163
1162
|
|
|
1164
1163
|
class TestShareSet(TestShare):
|
|
@@ -137,6 +137,25 @@ class ClientTest(utils.TestCase):
|
|
|
137
137
|
api_version=manilaclient.API_MIN_VERSION)
|
|
138
138
|
self.assertIsNotNone(c.client)
|
|
139
139
|
|
|
140
|
+
def test_client_respects_region_name(self):
|
|
141
|
+
mock_session = mock.Mock()
|
|
142
|
+
mock_auth = mock.Mock()
|
|
143
|
+
region = 'region1'
|
|
144
|
+
mock_session.get_endpoint.return_value = 'http://fake-endpoint/'
|
|
145
|
+
client.Client(
|
|
146
|
+
session=mock_session,
|
|
147
|
+
auth=mock_auth,
|
|
148
|
+
service_type='sharev2',
|
|
149
|
+
endpoint_type='public',
|
|
150
|
+
region_name=region,
|
|
151
|
+
)
|
|
152
|
+
mock_session.get_endpoint.assert_called_once_with(
|
|
153
|
+
mock_auth,
|
|
154
|
+
service_type='sharev2',
|
|
155
|
+
interface='public',
|
|
156
|
+
region_name=region,
|
|
157
|
+
)
|
|
158
|
+
|
|
140
159
|
def _get_client_args(self, **kwargs):
|
|
141
160
|
client_args = {
|
|
142
161
|
'auth_url': 'http://identity.example.com',
|
manilaclient/v2/client.py
CHANGED
|
@@ -159,7 +159,7 @@ class Client(object):
|
|
|
159
159
|
if session and not service_catalog_url:
|
|
160
160
|
service_catalog_url = self.keystone_client.session.get_endpoint(
|
|
161
161
|
auth, interface=endpoint_type,
|
|
162
|
-
service_type=service_type)
|
|
162
|
+
service_type=service_type, region_name=region_name)
|
|
163
163
|
elif not service_catalog_url:
|
|
164
164
|
catalog = self.keystone_client.service_catalog.get_endpoints(
|
|
165
165
|
service_type)
|
manilaclient/v2/services.py
CHANGED
|
@@ -89,7 +89,7 @@ class ServiceManager(base.Manager):
|
|
|
89
89
|
|
|
90
90
|
@api_versions.wraps("2.86")
|
|
91
91
|
def ensure_shares(self, host): # noqa
|
|
92
|
-
resource_path = f'{RESOURCE_PATH}/
|
|
92
|
+
resource_path = f'{RESOURCE_PATH}/ensure-shares'
|
|
93
93
|
body = {"host": host}
|
|
94
94
|
return self.api.client.post(resource_path, body=body)
|
|
95
95
|
|
manilaclient/v2/share_groups.py
CHANGED
|
@@ -225,6 +225,7 @@ class ShareGroupManager(base.ManagerWithFind):
|
|
|
225
225
|
return self._update(url, body, RESOURCE_NAME)
|
|
226
226
|
|
|
227
227
|
@api_versions.wraps("2.31", "2.54")
|
|
228
|
+
@api_versions.experimental_api
|
|
228
229
|
def update(self, share_group, **kwargs):
|
|
229
230
|
return self._update_share_group(share_group, **kwargs)
|
|
230
231
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: python-manilaclient
|
|
3
|
-
Version: 5.
|
|
3
|
+
Version: 5.4.1
|
|
4
4
|
Summary: Client library for OpenStack Manila API.
|
|
5
5
|
Home-page: https://docs.openstack.org/python-manilaclient/latest/
|
|
6
6
|
Author: OpenStack
|
|
@@ -22,16 +22,25 @@ Classifier: Programming Language :: Python :: 3.12
|
|
|
22
22
|
Requires-Python: >=3.9
|
|
23
23
|
License-File: LICENSE
|
|
24
24
|
License-File: AUTHORS
|
|
25
|
-
Requires-Dist: pbr
|
|
26
|
-
Requires-Dist: oslo.config
|
|
27
|
-
Requires-Dist: oslo.log
|
|
28
|
-
Requires-Dist: oslo.serialization
|
|
29
|
-
Requires-Dist: oslo.utils
|
|
30
|
-
Requires-Dist: PrettyTable
|
|
31
|
-
Requires-Dist: requests
|
|
32
|
-
Requires-Dist: osc-lib
|
|
33
|
-
Requires-Dist: python-keystoneclient
|
|
34
|
-
Requires-Dist: debtcollector
|
|
25
|
+
Requires-Dist: pbr>=3.0.0
|
|
26
|
+
Requires-Dist: oslo.config>=5.2.0
|
|
27
|
+
Requires-Dist: oslo.log>=3.36.0
|
|
28
|
+
Requires-Dist: oslo.serialization>=2.20.0
|
|
29
|
+
Requires-Dist: oslo.utils>=3.33.0
|
|
30
|
+
Requires-Dist: PrettyTable>=0.7.1
|
|
31
|
+
Requires-Dist: requests>=2.14.2
|
|
32
|
+
Requires-Dist: osc-lib>=3.2.0
|
|
33
|
+
Requires-Dist: python-keystoneclient>=3.8.0
|
|
34
|
+
Requires-Dist: debtcollector>=1.2.0
|
|
35
|
+
Dynamic: author
|
|
36
|
+
Dynamic: author-email
|
|
37
|
+
Dynamic: classifier
|
|
38
|
+
Dynamic: description
|
|
39
|
+
Dynamic: home-page
|
|
40
|
+
Dynamic: license-file
|
|
41
|
+
Dynamic: requires-dist
|
|
42
|
+
Dynamic: requires-python
|
|
43
|
+
Dynamic: summary
|
|
35
44
|
|
|
36
45
|
========================
|
|
37
46
|
Team and repository tags
|
|
@@ -121,7 +121,7 @@ manilaclient/tests/unit/osc/v2/test_quotas.py,sha256=T7v3_Zt1TqWWZiD089fMpdrvuIW
|
|
|
121
121
|
manilaclient/tests/unit/osc/v2/test_resource_locks.py,sha256=8PeAVw2PLDSOII3mXzyzxIfs55cLpUas-t4j-ySCdhQ,10236
|
|
122
122
|
manilaclient/tests/unit/osc/v2/test_security_services.py,sha256=dIZGOgWfY3rAul4IyV2jAImxaewAlMQ8jr9ac1NwniQ,22375
|
|
123
123
|
manilaclient/tests/unit/osc/v2/test_services.py,sha256=VOS29A3XPkZ_e3s-Gpl0kaWg1OO0PIyMIjXhJnwWsro,11077
|
|
124
|
-
manilaclient/tests/unit/osc/v2/test_share.py,sha256=
|
|
124
|
+
manilaclient/tests/unit/osc/v2/test_share.py,sha256=FI6BOsr1l9ezo2zoxBDiWY2PxKnuRtOc4LMH3QeyLJc,74486
|
|
125
125
|
manilaclient/tests/unit/osc/v2/test_share_access_rules.py,sha256=jXA3cFftznP9H9GlANzvQD1Z_dLw8byKOSAKNnZS6gg,21067
|
|
126
126
|
manilaclient/tests/unit/osc/v2/test_share_backups.py,sha256=vegKOqKJ150WSQqMiGbhHw5iMuRUdx_Bt3K-Ae9DKmU,13644
|
|
127
127
|
manilaclient/tests/unit/osc/v2/test_share_group_snapshots.py,sha256=zkchulCEXnzHQxgoVJmSo_LffCnPO2kEAu81sKHiL-8,21560
|
|
@@ -159,7 +159,7 @@ manilaclient/tests/unit/v2/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJ
|
|
|
159
159
|
manilaclient/tests/unit/v2/fake_clients.py,sha256=Znrr1EGp41zvIQfo1TWsOIYujbcnPHUEeiGPoGLzU1I,6889
|
|
160
160
|
manilaclient/tests/unit/v2/fakes.py,sha256=jatBVJ-UfUnA2GPycbmFFsab3OcSCm7R689WtmmYXBg,49223
|
|
161
161
|
manilaclient/tests/unit/v2/test_availability_zones.py,sha256=hwCT9WseG3ajJD1EnD34wBxmEnWYjhlbv0adYgZRoEc,2129
|
|
162
|
-
manilaclient/tests/unit/v2/test_client.py,sha256=
|
|
162
|
+
manilaclient/tests/unit/v2/test_client.py,sha256=5ueGz1ek3qkPfRzKZA4txg5ULjyYoFvJOcrpHy7iVkM,11720
|
|
163
163
|
manilaclient/tests/unit/v2/test_limits.py,sha256=cZcEedCdtv0SngEAiidwo2xzHLDhrSC4vuX_acJmppU,5458
|
|
164
164
|
manilaclient/tests/unit/v2/test_messages.py,sha256=NSAmhgCGolkJOKe_uyLPj7mSthcUZzqXxti-shGJ5xo,4375
|
|
165
165
|
manilaclient/tests/unit/v2/test_quota_classes.py,sha256=qS_6zydG7VGVDSuWHUxJLKNxgqs1KgencM80Gi_PxmQ,2780
|
|
@@ -207,7 +207,7 @@ manilaclient/v1/contrib/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG
|
|
|
207
207
|
manilaclient/v1/contrib/list_extensions.py,sha256=QGCsFKA6lsjMZD5OqKlmn7gwGD_eksBZgYCmPm_Ir8o,1253
|
|
208
208
|
manilaclient/v2/__init__.py,sha256=3QPj4N4cp-vBco2wTnOqZZ19J3X-EVmEMzXnX1J9SQc,681
|
|
209
209
|
manilaclient/v2/availability_zones.py,sha256=54aL1DT-zAHjGn4QjXvQnU9BxJ5oGPDYQPd6C6KEdnI,1313
|
|
210
|
-
manilaclient/v2/client.py,sha256=
|
|
210
|
+
manilaclient/v2/client.py,sha256=iT75NHwmb8LwP1AxdWbOTnYEY0c56ImUU1Fqu31vPBI,12487
|
|
211
211
|
manilaclient/v2/limits.py,sha256=6uB-OB5vwwLRS4r_hHm0WgzDLKL_92nTeSMcwtWONBQ,2873
|
|
212
212
|
manilaclient/v2/messages.py,sha256=Qge4eIsoVyXG0ZuNKpF9qJOKgtpEWk8pcHj74zhaChI,2710
|
|
213
213
|
manilaclient/v2/quota_classes.py,sha256=vlO2C_D5mNmHaYQNpZpcifvO3ls2QKIW9stQ6uw8qis,6071
|
|
@@ -215,14 +215,14 @@ manilaclient/v2/quotas.py,sha256=JEj7AB-0TBtx0h_TlwjbdW8bT6xrUQ6OUJlosoZVCvk,110
|
|
|
215
215
|
manilaclient/v2/resource_locks.py,sha256=ocB21rxZEUXR5DHOkCuKetta5GEC5oTkAKSo4GPPOpw,4713
|
|
216
216
|
manilaclient/v2/scheduler_stats.py,sha256=jPaDyUqZkHy9DPMHM-nqWKTv-Yii9Qh6YNAy-qqWp_U,1528
|
|
217
217
|
manilaclient/v2/security_services.py,sha256=xhUWdfcd6O3cq0OTjASSpTpUseUeoOgZkwBH2TqdJYM,9732
|
|
218
|
-
manilaclient/v2/services.py,sha256=
|
|
218
|
+
manilaclient/v2/services.py,sha256=BwZjtsv5iIz4_M5bjckPNM4r0zP7wRfXXofm8DW_3wY,3942
|
|
219
219
|
manilaclient/v2/share_access_rules.py,sha256=BbvKA67sapvUFvIo4cOXc2Yv3kkWdImoUJ7fPJE7wFg,3583
|
|
220
220
|
manilaclient/v2/share_backups.py,sha256=QQhRWT_txSd3wdGpg4NcrtV_N-wgdmQnhx9y3eOyGtI,4832
|
|
221
221
|
manilaclient/v2/share_export_locations.py,sha256=w72EE6-gQrD69-E4T8pZ4_oalz5lUEKIODCD2TQrRz8,2782
|
|
222
222
|
manilaclient/v2/share_group_snapshots.py,sha256=HmUUC3lbTKeD0j2fB-FyJANbIa3rl3PIThvcvSWsQFo,9326
|
|
223
223
|
manilaclient/v2/share_group_type_access.py,sha256=cbBVrZmfP-U-eqyE0OHUbs0Qlt2yHnJfQlQINetUnOo,3695
|
|
224
224
|
manilaclient/v2/share_group_types.py,sha256=d65K43knC2mbINbp38WfvhhuriEVlHP7-yaPV2d-6sQ,7367
|
|
225
|
-
manilaclient/v2/share_groups.py,sha256=
|
|
225
|
+
manilaclient/v2/share_groups.py,sha256=CgC0kczZVe4nUfesw6CKnQGHSmg1udu2WyFdYvegp-U,11248
|
|
226
226
|
manilaclient/v2/share_instance_export_locations.py,sha256=HcLoJkDi5GJQmbTAJfkKC1cRdf7QbmhZit3azvJYT-E,1994
|
|
227
227
|
manilaclient/v2/share_instances.py,sha256=ihIDDHvHBdK4QUqIZvoevhfEveFUjNTqjxGNT7gPl9E,4228
|
|
228
228
|
manilaclient/v2/share_network_subnets.py,sha256=HXjnRPSJMN_94yIzrWHMyIjMRGXv3A9w2aThSMDJU74,5217
|
|
@@ -241,11 +241,11 @@ manilaclient/v2/shares.py,sha256=Aletqm1t0nO62tBcJGw0QRNPCuN6XgJjPJXCQIl0TCk,321
|
|
|
241
241
|
manilaclient/v2/shell.py,sha256=IrbBbyo5ixaSgqxbM21EKGkoxnbAA5k0R-HXl50nboM,227987
|
|
242
242
|
manilaclient/v2/contrib/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
243
243
|
manilaclient/v2/contrib/list_extensions.py,sha256=_JSrPBEca2oR3dUbRNDBahAqo9V4bAEpNx0Si2gOWN4,1448
|
|
244
|
-
python_manilaclient-5.
|
|
245
|
-
python_manilaclient-5.
|
|
246
|
-
python_manilaclient-5.
|
|
247
|
-
python_manilaclient-5.
|
|
248
|
-
python_manilaclient-5.
|
|
249
|
-
python_manilaclient-5.
|
|
250
|
-
python_manilaclient-5.
|
|
251
|
-
python_manilaclient-5.
|
|
244
|
+
python_manilaclient-5.4.1.dist-info/licenses/AUTHORS,sha256=gpC0fEFCnIzWIcXAayFLJ3KYzqORbSOq_NkemvQjxnE,7656
|
|
245
|
+
python_manilaclient-5.4.1.dist-info/licenses/LICENSE,sha256=0vWIdNcdtTV9HZ7UlIezDadLSry5oS_2BzPolooTi4Y,11837
|
|
246
|
+
python_manilaclient-5.4.1.dist-info/METADATA,sha256=snfri9CGLO8Taef1mvAhnn-fyRE1ENssWZJAsCsDYQE,5623
|
|
247
|
+
python_manilaclient-5.4.1.dist-info/WHEEL,sha256=K260EYznzXsJYBQGqmI8VTxEdiZYNvDZwW9cBh9-_MA,91
|
|
248
|
+
python_manilaclient-5.4.1.dist-info/entry_points.txt,sha256=784yGhnBUEO4dXa2jFZzNs0M5HfOgESGrokIwmY3GDA,11861
|
|
249
|
+
python_manilaclient-5.4.1.dist-info/pbr.json,sha256=70HPa5L2Ak8zZFoH8WwJuhYo4U7qyoaJ8784RCdYK0g,46
|
|
250
|
+
python_manilaclient-5.4.1.dist-info/top_level.txt,sha256=qaZZFY6QOsBxs6dp1YW7M0XnIHyctWinAWIOOrnA0pQ,13
|
|
251
|
+
python_manilaclient-5.4.1.dist-info/RECORD,,
|
{python_manilaclient-5.3.0.dist-info → python_manilaclient-5.4.1.dist-info/licenses}/AUTHORS
RENAMED
|
@@ -59,6 +59,7 @@ Ian Wienand <iwienand@redhat.com>
|
|
|
59
59
|
Igor Malinovskiy <imalinovskiy@mirantis.com>
|
|
60
60
|
Jacek Tomasiak <jacek.tomasiak@gmail.com>
|
|
61
61
|
James E. Blair <jeblair@redhat.com>
|
|
62
|
+
Jan Jasek <jjasek@redhat.com>
|
|
62
63
|
Jan Provaznik <jprovazn@redhat.com>
|
|
63
64
|
Jeremy Liu <liujiong@gohighsec.com>
|
|
64
65
|
Jeremy Stanley <fungi@yuggoth.org>
|
|
@@ -135,6 +136,7 @@ daiki kato <d-kato@wr.jp.nec.com>
|
|
|
135
136
|
debeltrami <debeltrami@gmail.com>
|
|
136
137
|
deepak_mourya <deepak.mourya@india.nec.com>
|
|
137
138
|
dengzhaosen <dengzhaosen@inspur.com>
|
|
139
|
+
denver-baraka <denverbaraka@gmail.com>
|
|
138
140
|
devin <genghang888@gmail.com>
|
|
139
141
|
dineshbhor <dinesh.bhor@nttdata.com>
|
|
140
142
|
drngsl <drngsl@qq.com>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"git_version": "7240adb", "is_release": true}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"git_version": "1b555af", "is_release": true}
|
{python_manilaclient-5.3.0.dist-info → python_manilaclient-5.4.1.dist-info}/entry_points.txt
RENAMED
|
File without changes
|
{python_manilaclient-5.3.0.dist-info → python_manilaclient-5.4.1.dist-info/licenses}/LICENSE
RENAMED
|
File without changes
|
|
File without changes
|