python-manilaclient 5.7.0__py3-none-any.whl → 5.7.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/functional/osc/test_share_instance_export_locations.py +23 -0
- manilaclient/tests/functional/osc/test_share_instances.py +101 -0
- manilaclient/tests/unit/osc/v2/fakes.py +0 -11
- manilaclient/v2/share_groups.py +1 -0
- {python_manilaclient-5.7.0.dist-info → python_manilaclient-5.7.1.dist-info}/METADATA +14 -12
- {python_manilaclient-5.7.0.dist-info → python_manilaclient-5.7.1.dist-info}/RECORD +12 -10
- {python_manilaclient-5.7.0.dist-info → python_manilaclient-5.7.1.dist-info}/WHEEL +1 -1
- {python_manilaclient-5.7.0.dist-info → python_manilaclient-5.7.1.dist-info/licenses}/AUTHORS +2 -0
- python_manilaclient-5.7.1.dist-info/pbr.json +1 -0
- python_manilaclient-5.7.0.dist-info/pbr.json +0 -1
- {python_manilaclient-5.7.0.dist-info → python_manilaclient-5.7.1.dist-info}/entry_points.txt +0 -0
- {python_manilaclient-5.7.0.dist-info → python_manilaclient-5.7.1.dist-info/licenses}/LICENSE +0 -0
- {python_manilaclient-5.7.0.dist-info → python_manilaclient-5.7.1.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
|
2
|
+
# not use this file except in compliance with the License. You may obtain
|
|
3
|
+
# a copy of the License at
|
|
4
|
+
#
|
|
5
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
#
|
|
7
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
8
|
+
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
9
|
+
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
10
|
+
# License for the specific language governing permissions and limitations
|
|
11
|
+
# under the License.
|
|
12
|
+
from tempest.lib import exceptions
|
|
13
|
+
|
|
14
|
+
from manilaclient.tests.functional.osc import base
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
class ShareInstanceExportLocationsCLITest(base.OSCClientTestBase):
|
|
18
|
+
def test_share_instance_export_locations_list_invalid_id(self):
|
|
19
|
+
self.assertRaises(
|
|
20
|
+
exceptions.CommandFailed,
|
|
21
|
+
self.openstack,
|
|
22
|
+
'share instance export location list wrong_ID',
|
|
23
|
+
)
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
|
2
|
+
# not use this file except in compliance with the License. You may obtain
|
|
3
|
+
# a copy of the License at
|
|
4
|
+
#
|
|
5
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
#
|
|
7
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
8
|
+
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
9
|
+
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
10
|
+
# License for the specific language governing permissions and limitations
|
|
11
|
+
# under the License.
|
|
12
|
+
|
|
13
|
+
from tempest.lib import exceptions
|
|
14
|
+
|
|
15
|
+
from manilaclient.tests.functional.osc import base
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
class ShareInstancesCLITest(base.OSCClientTestBase):
|
|
19
|
+
def setUp(self):
|
|
20
|
+
super().setUp()
|
|
21
|
+
# Create a share to test with
|
|
22
|
+
self.share = self.create_share()
|
|
23
|
+
# Get share instances for testing
|
|
24
|
+
self.share_instances = self.listing_result('share instance', 'list')
|
|
25
|
+
self.share_instance = (
|
|
26
|
+
self.share_instances[0] if self.share_instances else None
|
|
27
|
+
)
|
|
28
|
+
self.non_existent_id = '76a7dd8e-7564-41d4-a184-06dc20e13d7a'
|
|
29
|
+
self.invalid_id = 'invalid-format'
|
|
30
|
+
|
|
31
|
+
def test_share_instance_list(self):
|
|
32
|
+
# Test basic listing
|
|
33
|
+
instances = self.listing_result('share instance', 'list')
|
|
34
|
+
self.assertTableStruct(
|
|
35
|
+
instances,
|
|
36
|
+
[
|
|
37
|
+
'ID',
|
|
38
|
+
'Share ID',
|
|
39
|
+
'Host',
|
|
40
|
+
'Status',
|
|
41
|
+
'Availability Zone',
|
|
42
|
+
'Share Network ID',
|
|
43
|
+
'Share Server ID',
|
|
44
|
+
'Share Type ID',
|
|
45
|
+
],
|
|
46
|
+
)
|
|
47
|
+
|
|
48
|
+
def test_share_instance_show(self):
|
|
49
|
+
result = self.dict_result(
|
|
50
|
+
'share instance', f'show {self.share_instance["ID"]}'
|
|
51
|
+
)
|
|
52
|
+
self.assertEqual(self.share_instance['ID'], result['id'])
|
|
53
|
+
|
|
54
|
+
def test_share_instance_delete_non_existent(self):
|
|
55
|
+
self.assertRaises(
|
|
56
|
+
exceptions.CommandFailed,
|
|
57
|
+
self.openstack,
|
|
58
|
+
f'share instance delete {self.non_existent_id}',
|
|
59
|
+
)
|
|
60
|
+
|
|
61
|
+
def test_share_instance_set_non_existent(self):
|
|
62
|
+
self.assertRaises(
|
|
63
|
+
exceptions.CommandFailed,
|
|
64
|
+
self.openstack,
|
|
65
|
+
f'share instance set {self.non_existent_id} --status available',
|
|
66
|
+
)
|
|
67
|
+
|
|
68
|
+
def test_share_instance_set_invalid_status(self):
|
|
69
|
+
self.assertRaises(
|
|
70
|
+
exceptions.CommandFailed,
|
|
71
|
+
self.openstack,
|
|
72
|
+
f'share instance set {self.invalid_id} --status available',
|
|
73
|
+
)
|
|
74
|
+
|
|
75
|
+
def test_share_instance_show_non_existent(self):
|
|
76
|
+
self.assertRaises(
|
|
77
|
+
exceptions.CommandFailed,
|
|
78
|
+
self.openstack,
|
|
79
|
+
f'share instance show {self.non_existent_id}',
|
|
80
|
+
)
|
|
81
|
+
|
|
82
|
+
def test_share_instance_show_invalid_id_format(self):
|
|
83
|
+
self.assertRaises(
|
|
84
|
+
exceptions.CommandFailed,
|
|
85
|
+
self.openstack,
|
|
86
|
+
f'share instance show {self.invalid_id}',
|
|
87
|
+
)
|
|
88
|
+
|
|
89
|
+
def test_share_instance_list_invalid_filter_share_id_format(self):
|
|
90
|
+
self.assertRaises(
|
|
91
|
+
exceptions.CommandFailed,
|
|
92
|
+
self.openstack,
|
|
93
|
+
f'share instance list --share {self.invalid_id}',
|
|
94
|
+
)
|
|
95
|
+
|
|
96
|
+
def test_share_instance_list_invalid_filter_non_existent(self):
|
|
97
|
+
self.assertRaises(
|
|
98
|
+
exceptions.CommandFailed,
|
|
99
|
+
self.openstack,
|
|
100
|
+
f'share instance list --share {self.non_existent_id}',
|
|
101
|
+
)
|
|
@@ -66,17 +66,6 @@ class FakeShareClient:
|
|
|
66
66
|
self.resource_locks = mock.Mock()
|
|
67
67
|
|
|
68
68
|
|
|
69
|
-
class ManilaParseException(Exception):
|
|
70
|
-
"""The base exception class for all exceptions this library raises."""
|
|
71
|
-
|
|
72
|
-
def __init__(self, message=None, details=None):
|
|
73
|
-
self.message = message or "Argument parse exception"
|
|
74
|
-
self.details = details or None
|
|
75
|
-
|
|
76
|
-
def __str__(self):
|
|
77
|
-
return self.message
|
|
78
|
-
|
|
79
|
-
|
|
80
69
|
class TestShare(osc_utils.TestCommand):
|
|
81
70
|
def setUp(self):
|
|
82
71
|
super().setUp()
|
manilaclient/v2/share_groups.py
CHANGED
|
@@ -275,6 +275,7 @@ class ShareGroupManager(base.ManagerWithFind):
|
|
|
275
275
|
return self._update(url, body, RESOURCE_NAME)
|
|
276
276
|
|
|
277
277
|
@api_versions.wraps("2.31", "2.54")
|
|
278
|
+
@api_versions.experimental_api
|
|
278
279
|
def update(self, share_group, **kwargs):
|
|
279
280
|
return self._update_share_group(share_group, **kwargs)
|
|
280
281
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: python-manilaclient
|
|
3
|
-
Version: 5.7.
|
|
3
|
+
Version: 5.7.1
|
|
4
4
|
Summary: Client library for OpenStack Shared File System Storage
|
|
5
5
|
Author-email: OpenStack <openstack-discuss@lists.openstack.org>
|
|
6
6
|
License: Apache-2.0
|
|
@@ -21,16 +21,18 @@ Requires-Python: >=3.10
|
|
|
21
21
|
Description-Content-Type: text/x-rst
|
|
22
22
|
License-File: LICENSE
|
|
23
23
|
License-File: AUTHORS
|
|
24
|
-
Requires-Dist: pbr
|
|
25
|
-
Requires-Dist: oslo.config
|
|
26
|
-
Requires-Dist: oslo.log
|
|
27
|
-
Requires-Dist: oslo.serialization
|
|
28
|
-
Requires-Dist: oslo.utils
|
|
29
|
-
Requires-Dist: PrettyTable
|
|
30
|
-
Requires-Dist: requests
|
|
31
|
-
Requires-Dist: osc-lib
|
|
32
|
-
Requires-Dist: python-keystoneclient
|
|
33
|
-
Requires-Dist: debtcollector
|
|
24
|
+
Requires-Dist: pbr>=3.0.0
|
|
25
|
+
Requires-Dist: oslo.config>=5.2.0
|
|
26
|
+
Requires-Dist: oslo.log>=3.36.0
|
|
27
|
+
Requires-Dist: oslo.serialization>=2.20.0
|
|
28
|
+
Requires-Dist: oslo.utils>=3.33.0
|
|
29
|
+
Requires-Dist: PrettyTable>=0.7.1
|
|
30
|
+
Requires-Dist: requests>=2.14.2
|
|
31
|
+
Requires-Dist: osc-lib>=3.2.0
|
|
32
|
+
Requires-Dist: python-keystoneclient>=3.8.0
|
|
33
|
+
Requires-Dist: debtcollector>=1.2.0
|
|
34
|
+
Dynamic: license-file
|
|
35
|
+
Dynamic: requires-dist
|
|
34
36
|
|
|
35
37
|
========================
|
|
36
38
|
Team and repository tags
|
|
@@ -86,6 +86,8 @@ manilaclient/tests/functional/osc/test_resource_locks.py,sha256=jg2vG2j1IrE1sRw0
|
|
|
86
86
|
manilaclient/tests/functional/osc/test_share_access_rules.py,sha256=3bJott8OY5LU_BZ-Q5Lt_QH1_S_8p187FPMGRZJr4j4,9822
|
|
87
87
|
manilaclient/tests/functional/osc/test_share_backups.py,sha256=Dbzi2FSSIo65NLOHeCmi8jLj3r8Hb_7y9qSBrlHJLds,5724
|
|
88
88
|
manilaclient/tests/functional/osc/test_share_group_type_access.py,sha256=cI7BnOGZdyiklbL6T77WdlLn4khb2YM08IeKe3OVs5Q,3667
|
|
89
|
+
manilaclient/tests/functional/osc/test_share_instance_export_locations.py,sha256=4FKb0U2QRk1WSrmBGCKqthFimvImqikBxbjY1-JXHVI,950
|
|
90
|
+
manilaclient/tests/functional/osc/test_share_instances.py,sha256=VhaE6XHdTdNIrLJ2kYmfHpM9EHmELb8iUKaI19u7Xe0,3455
|
|
89
91
|
manilaclient/tests/functional/osc/test_share_limits.py,sha256=-DwonduV5xqbrbyaaMTxcXRy2JyS3fccOdQB52qZcF4,1297
|
|
90
92
|
manilaclient/tests/functional/osc/test_share_network_subnets.py,sha256=VaOqFDWSVj6MRbd9vVNYRap8st6z389BoXr51p-MvG0,1409
|
|
91
93
|
manilaclient/tests/functional/osc/test_share_networks.py,sha256=pkuDSlXP1vbGmGMKpjdsaz2PFOhoLneuhn1TYy8G6qk,3877
|
|
@@ -114,7 +116,7 @@ manilaclient/tests/unit/osc/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMp
|
|
|
114
116
|
manilaclient/tests/unit/osc/osc_fakes.py,sha256=CRcsn9mAfl53y_t_cF72Np-VW978yGx7Vuc5TLJth9E,6506
|
|
115
117
|
manilaclient/tests/unit/osc/osc_utils.py,sha256=GacyYDl4fbw9U8bMFIUjAoVuwyGTIL7ElYXooxqd5uM,2571
|
|
116
118
|
manilaclient/tests/unit/osc/v2/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
117
|
-
manilaclient/tests/unit/osc/v2/fakes.py,sha256=
|
|
119
|
+
manilaclient/tests/unit/osc/v2/fakes.py,sha256=sABm3MntvMG-aoF0jPX7zBclTMnSLMn6V5t3NoBlpKk,50801
|
|
118
120
|
manilaclient/tests/unit/osc/v2/test_availability_zones.py,sha256=W1jqaBxyY1idVWVELQr89ujY29WiOQE-ZesQeQs6xpA,1933
|
|
119
121
|
manilaclient/tests/unit/osc/v2/test_messages.py,sha256=rqQopopg0iF7UFHThh97GY1omvMY3iS47zCT9T4Rl0c,5921
|
|
120
122
|
manilaclient/tests/unit/osc/v2/test_quotas.py,sha256=VRx8kLhQEmjI9QgxcA6LeXGPU1_C0peTZxpaTrBkUBs,16971
|
|
@@ -222,7 +224,7 @@ manilaclient/v2/share_export_locations.py,sha256=ALC9joc0SguxyxG2LfG4YNYBT3dBe6J
|
|
|
222
224
|
manilaclient/v2/share_group_snapshots.py,sha256=aZadXV879FTs3YeUd-QuAP_DXbTjMg-FKgJ0GU5nKZY,9356
|
|
223
225
|
manilaclient/v2/share_group_type_access.py,sha256=bLR6iGcSu0n5fOmRA2cVYYbpshnBrAXjejgQIr6Tats,3614
|
|
224
226
|
manilaclient/v2/share_group_types.py,sha256=86hnG4kL3v9vVyFzduLXEYrM4tSb0csnnDwnlQ96w_A,7318
|
|
225
|
-
manilaclient/v2/share_groups.py,sha256=
|
|
227
|
+
manilaclient/v2/share_groups.py,sha256=ULpbimQ3QmQhwAHoFryqrALrE-KI_HfHWzpHu5z-KdY,11636
|
|
226
228
|
manilaclient/v2/share_instance_export_locations.py,sha256=nNVfLiQJJhqEoyvc_0Dth-9cPak5F2k78VRLAtsVuF8,1908
|
|
227
229
|
manilaclient/v2/share_instances.py,sha256=nbjqQl6aXpfsFGa3HB_YOlHi2yQkXQWJqhLBCTXYVw0,4223
|
|
228
230
|
manilaclient/v2/share_network_subnets.py,sha256=WXB2XfgwTZdGDNNnFCP-FRmnTpFOyQZ4weGYk7enfiY,4987
|
|
@@ -241,11 +243,11 @@ manilaclient/v2/shares.py,sha256=tto7UAZSCR5UKhqNTGD6JxwR2RymfYZGWm1egGOsSlY,343
|
|
|
241
243
|
manilaclient/v2/shell.py,sha256=UuUfCqSXbcxWtpXWK1jANv-1N4YDjM3-pfrlAYLtIOM,228348
|
|
242
244
|
manilaclient/v2/contrib/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
243
245
|
manilaclient/v2/contrib/list_extensions.py,sha256=_JSrPBEca2oR3dUbRNDBahAqo9V4bAEpNx0Si2gOWN4,1448
|
|
244
|
-
python_manilaclient-5.7.
|
|
245
|
-
python_manilaclient-5.7.
|
|
246
|
-
python_manilaclient-5.7.
|
|
247
|
-
python_manilaclient-5.7.
|
|
248
|
-
python_manilaclient-5.7.
|
|
249
|
-
python_manilaclient-5.7.
|
|
250
|
-
python_manilaclient-5.7.
|
|
251
|
-
python_manilaclient-5.7.
|
|
246
|
+
python_manilaclient-5.7.1.dist-info/licenses/AUTHORS,sha256=UA1bJOQ7YBKi3F8ZJd3DYCsvz6ANxGq_cdYrkWz_iZY,7884
|
|
247
|
+
python_manilaclient-5.7.1.dist-info/licenses/LICENSE,sha256=0vWIdNcdtTV9HZ7UlIezDadLSry5oS_2BzPolooTi4Y,11837
|
|
248
|
+
python_manilaclient-5.7.1.dist-info/METADATA,sha256=FiU2V5CctA9cSYi3T3ob8BSG-XfUtsagdycK7t0ZW3Y,5495
|
|
249
|
+
python_manilaclient-5.7.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
250
|
+
python_manilaclient-5.7.1.dist-info/entry_points.txt,sha256=784yGhnBUEO4dXa2jFZzNs0M5HfOgESGrokIwmY3GDA,11861
|
|
251
|
+
python_manilaclient-5.7.1.dist-info/pbr.json,sha256=U9af2r84oPgZQu7fqjwTjujAuM6tNkfwv8Fm0xbIC18,46
|
|
252
|
+
python_manilaclient-5.7.1.dist-info/top_level.txt,sha256=qaZZFY6QOsBxs6dp1YW7M0XnIHyctWinAWIOOrnA0pQ,13
|
|
253
|
+
python_manilaclient-5.7.1.dist-info/RECORD,,
|
{python_manilaclient-5.7.0.dist-info → python_manilaclient-5.7.1.dist-info/licenses}/AUTHORS
RENAMED
|
@@ -23,6 +23,7 @@ ChangBo Guo(gcb) <eric.guo@easystack.cn>
|
|
|
23
23
|
Chen <dstbtgagt@foxmail.com>
|
|
24
24
|
Chris MacNaughton <chris.macnaughton@canonical.com>
|
|
25
25
|
Christian Berendt <berendt@b1-systems.de>
|
|
26
|
+
Christian Espinal <espinalch@gmail.com>
|
|
26
27
|
Chuan Miao <chuan.miao@sap.com>
|
|
27
28
|
Chuck Fouts <fchuck@netapp.com>
|
|
28
29
|
Clifford <emclidon@gmail.com>
|
|
@@ -60,6 +61,7 @@ Ian Wienand <iwienand@redhat.com>
|
|
|
60
61
|
Igor Malinovskiy <imalinovskiy@mirantis.com>
|
|
61
62
|
Jacek Tomasiak <jacek.tomasiak@gmail.com>
|
|
62
63
|
James E. Blair <jeblair@redhat.com>
|
|
64
|
+
Jan Jasek <jjasek@redhat.com>
|
|
63
65
|
Jan Provaznik <jprovazn@redhat.com>
|
|
64
66
|
Jeremy Liu <liujiong@gohighsec.com>
|
|
65
67
|
Jeremy Stanley <fungi@yuggoth.org>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"git_version": "07a537b", "is_release": true}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"git_version": "6aaab36", "is_release": true}
|
{python_manilaclient-5.7.0.dist-info → python_manilaclient-5.7.1.dist-info}/entry_points.txt
RENAMED
|
File without changes
|
{python_manilaclient-5.7.0.dist-info → python_manilaclient-5.7.1.dist-info/licenses}/LICENSE
RENAMED
|
File without changes
|
|
File without changes
|