Don't create network resources for identity tests
The identity tests used to create network resources but they are not
needed because we are testing the Identity service. This patch
stops creating these network resources.
Note: somehow security groups are still created and deleted. One can
look Neutron server's log while running the identiy tests to see this.
Change-Id: Ie77d8ecff5f346ed9411192d7076c321a9a22929
Closes-Bug: #1618519
diff --git a/tempest/api/identity/base.py b/tempest/api/identity/base.py
index 6c926fb..9e40c42 100644
--- a/tempest/api/identity/base.py
+++ b/tempest/api/identity/base.py
@@ -23,6 +23,12 @@
class BaseIdentityTest(tempest.test.BaseTestCase):
@classmethod
+ def setup_credentials(cls):
+ # Create no network resources for these test.
+ cls.set_network_resources()
+ super(BaseIdentityTest, cls).setup_credentials()
+
+ @classmethod
def disable_user(cls, user_name):
user = cls.get_user_by_name(user_name)
cls.users_client.update_user_enabled(user['id'], enabled=False)