From 9b66c82483ab70caf3e09d8dcf5cb8d4d4ecfd60 Mon Sep 17 00:00:00 2001 From: Kevin Benton Date: Fri, 4 Sep 2015 04:28:58 -0700 Subject: [PATCH] Remove an unnecessary extension check for rbac This removes some logic to detect the RBAC extension that was written when RBAC was being developed as a service plugin. Since it's part of db base plugin there is nothing to enable in devstack so it's not necessary. Change-Id: I37f8060c14d8ad74f5cea649c18ee9ef3912cb2d --- neutron/tests/api/admin/test_shared_network_extension.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/neutron/tests/api/admin/test_shared_network_extension.py b/neutron/tests/api/admin/test_shared_network_extension.py index 78215e417..b60ebf9a9 100644 --- a/neutron/tests/api/admin/test_shared_network_extension.py +++ b/neutron/tests/api/admin/test_shared_network_extension.py @@ -182,18 +182,9 @@ class RBACSharedNetworksTest(base.BaseAdminNetworkTest): @classmethod def resource_setup(cls): super(RBACSharedNetworksTest, cls).resource_setup() - extensions = cls.admin_client.list_extensions() if not test.is_extension_enabled('rbac_policies', 'network'): msg = "rbac extension not enabled." raise cls.skipException(msg) - # NOTE(kevinbenton): the following test seems to be necessary - # since the default is 'all' for the above check and these tests - # need to get into the gate and be disabled until the service plugin - # is enabled in devstack. Is there a better way to do this? - if 'rbac-policies' not in [x['alias'] - for x in extensions['extensions']]: - msg = "rbac extension is not in extension listing." - raise cls.skipException(msg) creds = cls.isolated_creds.get_alt_creds() cls.client2 = clients.Manager(credentials=creds).network_client -- 2.45.2