From c3e1d9c8951fd398bbe824923263e904ce377746 Mon Sep 17 00:00:00 2001 From: Jakub Libosvar Date: Tue, 7 Jun 2016 07:56:13 +0000 Subject: [PATCH] qos: Add API test for shared policy Change-Id: I7332db37933905942080b94451ff2fa6257b742e --- neutron/tests/tempest/api/test_qos.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/neutron/tests/tempest/api/test_qos.py b/neutron/tests/tempest/api/test_qos.py index 24ef38bc545..7eef283be58 100644 --- a/neutron/tests/tempest/api/test_qos.py +++ b/neutron/tests/tempest/api/test_qos.py @@ -287,6 +287,16 @@ class QosTestJSON(base.BaseAdminNetworkTest): with testtools.ExpectedException(exceptions.NotFound): self.admin_client.show_qos_policy(policy['id']) + @test.idempotent_id('fb384bde-a973-41c3-a542-6f77a092155f') + def test_get_policy_that_is_shared(self): + policy = self.create_qos_policy( + name='test-policy-shared', + description='shared policy', + shared=True, + tenant_id=self.admin_client.tenant_id) + obtained_policy = self.client.show_qos_policy(policy['id'])['policy'] + self.assertEqual(obtained_policy, policy) + class QosBandwidthLimitRuleTestJSON(base.BaseAdminNetworkTest): @classmethod