Do not create networks for API tests

We do not need network resources for these tests.

Change-Id: I3e17a39d64835d49fcd882ec6b7b556b6acc4f17
Closes-Bug: #1689415
This commit is contained in:
Ritesh Anand 2017-05-11 14:34:56 -07:00 committed by Ritesh Anand
parent a8e643ed79
commit 6e03c58b7f
1 changed files with 6 additions and 0 deletions

View File

@ -75,6 +75,12 @@ class BaseDnsTest(test.BaseTestCase):
% cls.__name__)
raise cls.skipException(skip_msg)
@classmethod
def setup_credentials(cls):
# Do not create network resources for these test.
cls.set_network_resources()
super(BaseDnsTest, cls).setup_credentials()
def assertExpected(self, expected, actual, excluded_keys):
for key, value in six.iteritems(expected):
if key not in excluded_keys: