python-openstackclient 8.0.0__py3-none-any.whl → 8.1.0__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.
- openstackclient/compute/client.py +5 -0
- openstackclient/compute/v2/console.py +7 -0
- openstackclient/compute/v2/console_connection.py +48 -0
- openstackclient/compute/v2/keypair.py +10 -3
- openstackclient/compute/v2/server.py +75 -10
- openstackclient/compute/v2/server_event.py +1 -1
- openstackclient/identity/common.py +79 -0
- openstackclient/identity/v3/application_credential.py +2 -2
- openstackclient/identity/v3/domain.py +62 -43
- openstackclient/identity/v3/group.py +113 -68
- openstackclient/identity/v3/project.py +17 -0
- openstackclient/identity/v3/user.py +38 -5
- openstackclient/image/client.py +5 -0
- openstackclient/image/v2/image.py +11 -11
- openstackclient/network/client.py +0 -6
- openstackclient/network/v2/floating_ip.py +58 -29
- openstackclient/network/v2/network_qos_rule.py +3 -11
- openstackclient/network/v2/router.py +1 -1
- openstackclient/network/v2/security_group.py +5 -4
- openstackclient/network/v2/security_group_rule.py +1 -1
- openstackclient/shell.py +1 -1
- openstackclient/tests/functional/base.py +5 -1
- openstackclient/tests/functional/compute/v2/test_keypair.py +41 -5
- openstackclient/tests/unit/compute/v2/fakes.py +81 -305
- openstackclient/tests/unit/compute/v2/test_console.py +18 -1
- openstackclient/tests/unit/compute/v2/test_console_connection.py +72 -0
- openstackclient/tests/unit/compute/v2/test_flavor.py +1 -1
- openstackclient/tests/unit/compute/v2/test_keypair.py +12 -5
- openstackclient/tests/unit/compute/v2/test_server.py +169 -46
- openstackclient/tests/unit/compute/v2/test_server_backup.py +32 -71
- openstackclient/tests/unit/compute/v2/test_server_event.py +2 -2
- openstackclient/tests/unit/compute/v2/test_server_image.py +33 -72
- openstackclient/tests/unit/compute/v2/test_server_migration.py +4 -4
- openstackclient/tests/unit/identity/v3/test_application_credential.py +47 -25
- openstackclient/tests/unit/identity/v3/test_domain.py +115 -105
- openstackclient/tests/unit/identity/v3/test_group.py +353 -202
- openstackclient/tests/unit/identity/v3/test_project.py +16 -0
- openstackclient/tests/unit/identity/v3/test_user.py +86 -6
- openstackclient/tests/unit/image/v1/test_image.py +8 -9
- openstackclient/tests/unit/image/v2/test_image.py +49 -49
- openstackclient/tests/unit/network/v2/fakes.py +405 -485
- openstackclient/tests/unit/network/v2/test_floating_ip_network.py +13 -19
- openstackclient/tests/unit/network/v2/test_l3_conntrack_helper.py +2 -2
- openstackclient/tests/unit/network/v2/test_ndp_proxy.py +1 -3
- openstackclient/tests/unit/network/v2/test_network.py +4 -4
- openstackclient/tests/unit/network/v2/test_network_agent.py +15 -29
- openstackclient/tests/unit/network/v2/test_network_qos_policy.py +16 -19
- openstackclient/tests/unit/network/v2/test_network_qos_rule.py +79 -152
- openstackclient/tests/unit/network/v2/test_network_qos_rule_type.py +4 -6
- openstackclient/tests/unit/network/v2/test_network_rbac.py +2 -2
- openstackclient/tests/unit/network/v2/test_port.py +17 -17
- openstackclient/tests/unit/network/v2/test_router.py +73 -57
- openstackclient/tests/unit/network/v2/test_security_group_network.py +25 -27
- openstackclient/tests/unit/network/v2/test_security_group_rule_compute.py +1 -3
- openstackclient/tests/unit/network/v2/test_security_group_rule_network.py +33 -39
- openstackclient/tests/unit/volume/v2/fakes.py +1 -2
- openstackclient/tests/unit/volume/v2/test_service.py +57 -91
- openstackclient/tests/unit/volume/v2/test_volume.py +108 -105
- openstackclient/tests/unit/volume/v2/test_volume_backup.py +141 -148
- openstackclient/tests/unit/volume/v2/test_volume_snapshot.py +293 -283
- openstackclient/tests/unit/volume/v3/test_block_storage_log_level.py +61 -71
- openstackclient/tests/unit/volume/v3/test_service.py +221 -141
- openstackclient/tests/unit/volume/v3/test_volume.py +130 -119
- openstackclient/tests/unit/volume/v3/test_volume_attachment.py +1 -1
- openstackclient/tests/unit/volume/v3/test_volume_backup.py +198 -203
- openstackclient/tests/unit/volume/v3/test_volume_snapshot.py +682 -47
- openstackclient/volume/v2/service.py +41 -38
- openstackclient/volume/v2/volume.py +63 -37
- openstackclient/volume/v2/volume_backup.py +9 -3
- openstackclient/volume/v2/volume_snapshot.py +121 -84
- openstackclient/volume/v3/block_storage_log_level.py +22 -28
- openstackclient/volume/v3/service.py +105 -14
- openstackclient/volume/v3/volume.py +200 -39
- openstackclient/volume/v3/volume_backup.py +24 -19
- openstackclient/volume/v3/volume_snapshot.py +485 -10
- {python_openstackclient-8.0.0.dist-info → python_openstackclient-8.1.0.dist-info}/AUTHORS +8 -0
- python_openstackclient-8.1.0.dist-info/METADATA +264 -0
- {python_openstackclient-8.0.0.dist-info → python_openstackclient-8.1.0.dist-info}/RECORD +83 -81
- {python_openstackclient-8.0.0.dist-info → python_openstackclient-8.1.0.dist-info}/entry_points.txt +7 -6
- python_openstackclient-8.1.0.dist-info/pbr.json +1 -0
- python_openstackclient-8.0.0.dist-info/METADATA +0 -166
- python_openstackclient-8.0.0.dist-info/pbr.json +0 -1
- {python_openstackclient-8.0.0.dist-info → python_openstackclient-8.1.0.dist-info}/LICENSE +0 -0
- {python_openstackclient-8.0.0.dist-info → python_openstackclient-8.1.0.dist-info}/WHEEL +0 -0
- {python_openstackclient-8.0.0.dist-info → python_openstackclient-8.1.0.dist-info}/top_level.txt +0 -0
|
@@ -234,10 +234,8 @@ class TestCreateFloatingIPNetwork(TestFloatingIPNetwork):
|
|
|
234
234
|
self.assertEqual(self.data, data)
|
|
235
235
|
|
|
236
236
|
def test_create_floating_ip_with_qos(self):
|
|
237
|
-
qos_policy = network_fakes.
|
|
238
|
-
self.network_client.find_qos_policy =
|
|
239
|
-
return_value=qos_policy
|
|
240
|
-
)
|
|
237
|
+
qos_policy = network_fakes.create_one_qos_policy()
|
|
238
|
+
self.network_client.find_qos_policy.return_value = qos_policy
|
|
241
239
|
arglist = [
|
|
242
240
|
'--qos-policy',
|
|
243
241
|
qos_policy.id,
|
|
@@ -416,7 +414,7 @@ class TestListFloatingIPNetwork(TestFloatingIPNetwork):
|
|
|
416
414
|
'id': 'fake_port_id',
|
|
417
415
|
}
|
|
418
416
|
)
|
|
419
|
-
fake_router = network_fakes.
|
|
417
|
+
fake_router = network_fakes.create_one_router(
|
|
420
418
|
{
|
|
421
419
|
'id': 'fake_router_id',
|
|
422
420
|
}
|
|
@@ -501,7 +499,7 @@ class TestListFloatingIPNetwork(TestFloatingIPNetwork):
|
|
|
501
499
|
'fake_network_id',
|
|
502
500
|
]
|
|
503
501
|
verifylist = [
|
|
504
|
-
('
|
|
502
|
+
('networks', ['fake_network_id']),
|
|
505
503
|
]
|
|
506
504
|
parsed_args = self.check_parser(self.cmd, arglist, verifylist)
|
|
507
505
|
|
|
@@ -509,7 +507,7 @@ class TestListFloatingIPNetwork(TestFloatingIPNetwork):
|
|
|
509
507
|
|
|
510
508
|
self.network_client.ips.assert_called_once_with(
|
|
511
509
|
**{
|
|
512
|
-
'floating_network_id': 'fake_network_id',
|
|
510
|
+
'floating_network_id': ['fake_network_id'],
|
|
513
511
|
}
|
|
514
512
|
)
|
|
515
513
|
self.assertEqual(self.columns, columns)
|
|
@@ -521,7 +519,7 @@ class TestListFloatingIPNetwork(TestFloatingIPNetwork):
|
|
|
521
519
|
'fake_port_id',
|
|
522
520
|
]
|
|
523
521
|
verifylist = [
|
|
524
|
-
('
|
|
522
|
+
('ports', ['fake_port_id']),
|
|
525
523
|
]
|
|
526
524
|
parsed_args = self.check_parser(self.cmd, arglist, verifylist)
|
|
527
525
|
|
|
@@ -529,7 +527,7 @@ class TestListFloatingIPNetwork(TestFloatingIPNetwork):
|
|
|
529
527
|
|
|
530
528
|
self.network_client.ips.assert_called_once_with(
|
|
531
529
|
**{
|
|
532
|
-
'port_id': 'fake_port_id',
|
|
530
|
+
'port_id': ['fake_port_id'],
|
|
533
531
|
}
|
|
534
532
|
)
|
|
535
533
|
self.assertEqual(self.columns, columns)
|
|
@@ -662,7 +660,7 @@ class TestListFloatingIPNetwork(TestFloatingIPNetwork):
|
|
|
662
660
|
'--long',
|
|
663
661
|
]
|
|
664
662
|
verifylist = [
|
|
665
|
-
('
|
|
663
|
+
('routers', ['fake_router_id']),
|
|
666
664
|
]
|
|
667
665
|
parsed_args = self.check_parser(self.cmd, arglist, verifylist)
|
|
668
666
|
|
|
@@ -670,7 +668,7 @@ class TestListFloatingIPNetwork(TestFloatingIPNetwork):
|
|
|
670
668
|
|
|
671
669
|
self.network_client.ips.assert_called_once_with(
|
|
672
670
|
**{
|
|
673
|
-
'router_id': 'fake_router_id',
|
|
671
|
+
'router_id': ['fake_router_id'],
|
|
674
672
|
}
|
|
675
673
|
)
|
|
676
674
|
self.assertEqual(self.columns_long, columns)
|
|
@@ -893,10 +891,8 @@ class TestSetFloatingIP(TestFloatingIPNetwork):
|
|
|
893
891
|
)
|
|
894
892
|
|
|
895
893
|
def test_qos_policy_option(self):
|
|
896
|
-
qos_policy = network_fakes.
|
|
897
|
-
self.network_client.find_qos_policy =
|
|
898
|
-
return_value=qos_policy
|
|
899
|
-
)
|
|
894
|
+
qos_policy = network_fakes.create_one_qos_policy()
|
|
895
|
+
self.network_client.find_qos_policy.return_value = qos_policy
|
|
900
896
|
arglist = [
|
|
901
897
|
"--qos-policy",
|
|
902
898
|
qos_policy.id,
|
|
@@ -922,10 +918,8 @@ class TestSetFloatingIP(TestFloatingIPNetwork):
|
|
|
922
918
|
)
|
|
923
919
|
|
|
924
920
|
def test_port_and_qos_policy_option(self):
|
|
925
|
-
qos_policy = network_fakes.
|
|
926
|
-
self.network_client.find_qos_policy =
|
|
927
|
-
return_value=qos_policy
|
|
928
|
-
)
|
|
921
|
+
qos_policy = network_fakes.create_one_qos_policy()
|
|
922
|
+
self.network_client.find_qos_policy.return_value = qos_policy
|
|
929
923
|
arglist = [
|
|
930
924
|
"--qos-policy",
|
|
931
925
|
qos_policy.id,
|
|
@@ -24,8 +24,8 @@ class TestConntrackHelper(network_fakes.TestNetworkV2):
|
|
|
24
24
|
def setUp(self):
|
|
25
25
|
super().setUp()
|
|
26
26
|
|
|
27
|
-
self.router = network_fakes.
|
|
28
|
-
self.network_client.find_router =
|
|
27
|
+
self.router = network_fakes.create_one_router()
|
|
28
|
+
self.network_client.find_router.return_value = self.router
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
class TestCreateL3ConntrackHelper(TestConntrackHelper):
|
|
@@ -30,9 +30,7 @@ class TestNDPProxy(network_fakes.TestNetworkV2):
|
|
|
30
30
|
# Get a shortcut to the DomainManager Mock
|
|
31
31
|
self.domains_mock = self.identity_client.domains
|
|
32
32
|
|
|
33
|
-
self.router = network_fakes.
|
|
34
|
-
{'id': 'fake-router-id'}
|
|
35
|
-
)
|
|
33
|
+
self.router = network_fakes.create_one_router({'id': 'fake-router-id'})
|
|
36
34
|
self.network_client.find_router = mock.Mock(return_value=self.router)
|
|
37
35
|
self.port = network_fakes.create_one_port()
|
|
38
36
|
self.network_client.find_port = mock.Mock(return_value=self.port)
|
|
@@ -47,7 +47,7 @@ class TestCreateNetworkIdentityV3(TestNetwork):
|
|
|
47
47
|
'availability_zone_hints': ["nova"],
|
|
48
48
|
}
|
|
49
49
|
)
|
|
50
|
-
qos_policy = network_fakes.
|
|
50
|
+
qos_policy = network_fakes.create_one_qos_policy(
|
|
51
51
|
attrs={'id': _network.qos_policy_id}
|
|
52
52
|
)
|
|
53
53
|
|
|
@@ -622,7 +622,7 @@ class TestListNetwork(TestNetwork):
|
|
|
622
622
|
self.network_client.networks = mock.Mock(return_value=self._network)
|
|
623
623
|
|
|
624
624
|
self._agent = network_fakes.create_one_network_agent()
|
|
625
|
-
self.network_client.get_agent =
|
|
625
|
+
self.network_client.get_agent.return_value = self._agent
|
|
626
626
|
|
|
627
627
|
self.network_client.dhcp_agent_hosting_networks = mock.Mock(
|
|
628
628
|
return_value=self._network
|
|
@@ -967,7 +967,7 @@ class TestListNetwork(TestNetwork):
|
|
|
967
967
|
class TestSetNetwork(TestNetwork):
|
|
968
968
|
# The network to set.
|
|
969
969
|
_network = network_fakes.create_one_network({'tags': ['green', 'red']})
|
|
970
|
-
qos_policy = network_fakes.
|
|
970
|
+
qos_policy = network_fakes.create_one_qos_policy(
|
|
971
971
|
attrs={'id': _network.qos_policy_id}
|
|
972
972
|
)
|
|
973
973
|
|
|
@@ -1266,7 +1266,7 @@ class TestShowNetwork(TestNetwork):
|
|
|
1266
1266
|
class TestUnsetNetwork(TestNetwork):
|
|
1267
1267
|
# The network to set.
|
|
1268
1268
|
_network = network_fakes.create_one_network({'tags': ['green', 'red']})
|
|
1269
|
-
qos_policy = network_fakes.
|
|
1269
|
+
qos_policy = network_fakes.create_one_qos_policy(
|
|
1270
1270
|
attrs={'id': _network.qos_policy_id}
|
|
1271
1271
|
)
|
|
1272
1272
|
|
|
@@ -70,7 +70,7 @@ class TestAddNetworkToAgent(TestNetworkAgent):
|
|
|
70
70
|
|
|
71
71
|
|
|
72
72
|
class TestAddRouterAgent(TestNetworkAgent):
|
|
73
|
-
_router = network_fakes.
|
|
73
|
+
_router = network_fakes.create_one_router()
|
|
74
74
|
_agent = network_fakes.create_one_network_agent()
|
|
75
75
|
|
|
76
76
|
def setUp(self):
|
|
@@ -219,30 +219,24 @@ class TestListNetworkAgent(TestNetworkAgent):
|
|
|
219
219
|
|
|
220
220
|
def setUp(self):
|
|
221
221
|
super().setUp()
|
|
222
|
-
|
|
223
|
-
|
|
222
|
+
|
|
223
|
+
self.network_client.agents.return_value = self.network_agents
|
|
224
|
+
self.network_client.routers_hosting_l3_agents.return_value = (
|
|
225
|
+
self.network_agents
|
|
224
226
|
)
|
|
225
227
|
|
|
226
228
|
_testagent = network_fakes.create_one_network_agent()
|
|
227
|
-
self.network_client.get_agent =
|
|
229
|
+
self.network_client.get_agent.return_value = _testagent
|
|
230
|
+
self.network_client.get_agent.return_value = _testagent
|
|
228
231
|
|
|
229
232
|
self._testnetwork = network_fakes.create_one_network()
|
|
230
|
-
self.network_client.find_network =
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
self.network_client.network_hosting_dhcp_agents = mock.Mock(
|
|
234
|
-
return_value=self.network_agents
|
|
233
|
+
self.network_client.find_network.return_value = self._testnetwork
|
|
234
|
+
self.network_client.network_hosting_dhcp_agents.return_value = (
|
|
235
|
+
self.network_agents
|
|
235
236
|
)
|
|
236
237
|
|
|
237
|
-
self.
|
|
238
|
-
|
|
239
|
-
self._testrouter = network_fakes.FakeRouter.create_one_router()
|
|
240
|
-
self.network_client.find_router = mock.Mock(
|
|
241
|
-
return_value=self._testrouter
|
|
242
|
-
)
|
|
243
|
-
self.network_client.routers_hosting_l3_agents = mock.Mock(
|
|
244
|
-
return_value=self.network_agents
|
|
245
|
-
)
|
|
238
|
+
self._testrouter = network_fakes.create_one_router()
|
|
239
|
+
self.network_client.find_router.return_value = self._testrouter
|
|
246
240
|
|
|
247
241
|
# Get the command object to test
|
|
248
242
|
self.cmd = network_agent.ListNetworkAgent(self.app, None)
|
|
@@ -323,15 +317,11 @@ class TestListNetworkAgent(TestNetworkAgent):
|
|
|
323
317
|
]
|
|
324
318
|
verifylist = [('router', self._testrouter.id), ('long', False)]
|
|
325
319
|
|
|
326
|
-
attrs = {
|
|
327
|
-
self._testrouter,
|
|
328
|
-
}
|
|
329
|
-
|
|
330
320
|
parsed_args = self.check_parser(self.cmd, arglist, verifylist)
|
|
331
321
|
columns, data = self.cmd.take_action(parsed_args)
|
|
332
322
|
|
|
333
323
|
self.network_client.routers_hosting_l3_agents.assert_called_once_with(
|
|
334
|
-
|
|
324
|
+
self._testrouter
|
|
335
325
|
)
|
|
336
326
|
|
|
337
327
|
self.assertEqual(self.columns, columns)
|
|
@@ -345,15 +335,11 @@ class TestListNetworkAgent(TestNetworkAgent):
|
|
|
345
335
|
]
|
|
346
336
|
verifylist = [('router', self._testrouter.id), ('long', True)]
|
|
347
337
|
|
|
348
|
-
attrs = {
|
|
349
|
-
self._testrouter,
|
|
350
|
-
}
|
|
351
|
-
|
|
352
338
|
parsed_args = self.check_parser(self.cmd, arglist, verifylist)
|
|
353
339
|
columns, data = self.cmd.take_action(parsed_args)
|
|
354
340
|
|
|
355
341
|
self.network_client.routers_hosting_l3_agents.assert_called_once_with(
|
|
356
|
-
|
|
342
|
+
self._testrouter
|
|
357
343
|
)
|
|
358
344
|
|
|
359
345
|
# Add a column 'HA State' and corresponding data.
|
|
@@ -422,7 +408,7 @@ class TestRemoveNetworkFromAgent(TestNetworkAgent):
|
|
|
422
408
|
|
|
423
409
|
|
|
424
410
|
class TestRemoveRouterAgent(TestNetworkAgent):
|
|
425
|
-
_router = network_fakes.
|
|
411
|
+
_router = network_fakes.create_one_router()
|
|
426
412
|
_agent = network_fakes.create_one_network_agent()
|
|
427
413
|
|
|
428
414
|
def setUp(self):
|
|
@@ -35,11 +35,10 @@ class TestCreateNetworkQosPolicy(TestQosPolicy):
|
|
|
35
35
|
project = identity_fakes_v3.FakeProject.create_one_project()
|
|
36
36
|
|
|
37
37
|
# The new qos policy created.
|
|
38
|
-
new_qos_policy = network_fakes.
|
|
39
|
-
attrs={
|
|
40
|
-
'project_id': project.id,
|
|
41
|
-
}
|
|
38
|
+
new_qos_policy = network_fakes.create_one_qos_policy(
|
|
39
|
+
attrs={'project_id': project.id}
|
|
42
40
|
)
|
|
41
|
+
|
|
43
42
|
columns = (
|
|
44
43
|
'description',
|
|
45
44
|
'id',
|
|
@@ -48,6 +47,7 @@ class TestCreateNetworkQosPolicy(TestQosPolicy):
|
|
|
48
47
|
'project_id',
|
|
49
48
|
'rules',
|
|
50
49
|
'shared',
|
|
50
|
+
'tags',
|
|
51
51
|
)
|
|
52
52
|
|
|
53
53
|
data = (
|
|
@@ -57,7 +57,8 @@ class TestCreateNetworkQosPolicy(TestQosPolicy):
|
|
|
57
57
|
new_qos_policy.name,
|
|
58
58
|
new_qos_policy.project_id,
|
|
59
59
|
new_qos_policy.rules,
|
|
60
|
-
new_qos_policy.
|
|
60
|
+
new_qos_policy.is_shared,
|
|
61
|
+
new_qos_policy.tags,
|
|
61
62
|
)
|
|
62
63
|
|
|
63
64
|
def setUp(self):
|
|
@@ -158,17 +159,13 @@ class TestCreateNetworkQosPolicy(TestQosPolicy):
|
|
|
158
159
|
|
|
159
160
|
class TestDeleteNetworkQosPolicy(TestQosPolicy):
|
|
160
161
|
# The address scope to delete.
|
|
161
|
-
_qos_policies = network_fakes.
|
|
162
|
-
count=2
|
|
163
|
-
)
|
|
162
|
+
_qos_policies = network_fakes.create_qos_policies(count=2)
|
|
164
163
|
|
|
165
164
|
def setUp(self):
|
|
166
165
|
super().setUp()
|
|
167
166
|
self.network_client.delete_qos_policy = mock.Mock(return_value=None)
|
|
168
|
-
self.network_client.find_qos_policy = (
|
|
169
|
-
|
|
170
|
-
qos_policies=self._qos_policies
|
|
171
|
-
)
|
|
167
|
+
self.network_client.find_qos_policy = network_fakes.get_qos_policies(
|
|
168
|
+
qos_policies=self._qos_policies
|
|
172
169
|
)
|
|
173
170
|
|
|
174
171
|
# Get the command object to test
|
|
@@ -245,9 +242,7 @@ class TestDeleteNetworkQosPolicy(TestQosPolicy):
|
|
|
245
242
|
|
|
246
243
|
class TestListNetworkQosPolicy(TestQosPolicy):
|
|
247
244
|
# The QoS policies to list up.
|
|
248
|
-
qos_policies = network_fakes.
|
|
249
|
-
count=3
|
|
250
|
-
)
|
|
245
|
+
qos_policies = network_fakes.create_qos_policies(count=3)
|
|
251
246
|
columns = (
|
|
252
247
|
'ID',
|
|
253
248
|
'Name',
|
|
@@ -261,7 +256,7 @@ class TestListNetworkQosPolicy(TestQosPolicy):
|
|
|
261
256
|
(
|
|
262
257
|
qos_policy.id,
|
|
263
258
|
qos_policy.name,
|
|
264
|
-
qos_policy.
|
|
259
|
+
qos_policy.is_shared,
|
|
265
260
|
qos_policy.is_default,
|
|
266
261
|
qos_policy.project_id,
|
|
267
262
|
)
|
|
@@ -345,7 +340,7 @@ class TestListNetworkQosPolicy(TestQosPolicy):
|
|
|
345
340
|
|
|
346
341
|
class TestSetNetworkQosPolicy(TestQosPolicy):
|
|
347
342
|
# The QoS policy to set.
|
|
348
|
-
_qos_policy = network_fakes.
|
|
343
|
+
_qos_policy = network_fakes.create_one_qos_policy()
|
|
349
344
|
|
|
350
345
|
def setUp(self):
|
|
351
346
|
super().setUp()
|
|
@@ -428,7 +423,7 @@ class TestSetNetworkQosPolicy(TestQosPolicy):
|
|
|
428
423
|
|
|
429
424
|
class TestShowNetworkQosPolicy(TestQosPolicy):
|
|
430
425
|
# The QoS policy to show.
|
|
431
|
-
_qos_policy = network_fakes.
|
|
426
|
+
_qos_policy = network_fakes.create_one_qos_policy()
|
|
432
427
|
columns = (
|
|
433
428
|
'description',
|
|
434
429
|
'id',
|
|
@@ -437,6 +432,7 @@ class TestShowNetworkQosPolicy(TestQosPolicy):
|
|
|
437
432
|
'project_id',
|
|
438
433
|
'rules',
|
|
439
434
|
'shared',
|
|
435
|
+
'tags',
|
|
440
436
|
)
|
|
441
437
|
data = (
|
|
442
438
|
_qos_policy.description,
|
|
@@ -445,7 +441,8 @@ class TestShowNetworkQosPolicy(TestQosPolicy):
|
|
|
445
441
|
_qos_policy.name,
|
|
446
442
|
_qos_policy.project_id,
|
|
447
443
|
network_qos_policy.RulesColumn(_qos_policy.rules),
|
|
448
|
-
_qos_policy.
|
|
444
|
+
_qos_policy.is_shared,
|
|
445
|
+
_qos_policy.tags,
|
|
449
446
|
)
|
|
450
447
|
|
|
451
448
|
def setUp(self):
|