Use sufficiently long random strings in test objects to avoid conflicts.

This commit is contained in:
Navnath Gadakh
2017-11-27 12:01:50 +00:00
committed by Dave Page
parent fe7cfa35df
commit 80c4a3fb1a
122 changed files with 202 additions and 202 deletions
@@ -32,7 +32,7 @@ class TableSpaceDeleteTestCase(BaseTestGenerator):
" not configured for server: %s" % self.server['name']
# Skip the test case if tablespace_path not found.
self.skipTest(message)
self.tablespace_name = "tablespace_delete_%s" % str(uuid.uuid4())[1:6]
self.tablespace_name = "tablespace_delete_%s" % str(uuid.uuid4())[1:8]
self.server_id = parent_node_dict["server"][-1]["server_id"]
self.tablespace_id = tablespace_utils.create_tablespace(
self.server, self.tablespace_name)
@@ -31,7 +31,7 @@ class TablespaceGetTestCase(BaseTestGenerator):
" not configured for server: %s" % self.server['name']
# Skip the test case if tablespace_path not found.
self.skipTest(message)
self.tablespace_name = "tablespace_delete_%s" % str(uuid.uuid4())[1:6]
self.tablespace_name = "tablespace_delete_%s" % str(uuid.uuid4())[1:8]
self.tablespace_id = tablespace_utils.create_tablespace(
self.server, self.tablespace_name)
self.server_id = parent_node_dict["server"][-1]["server_id"]
@@ -31,7 +31,7 @@ class TableSpaceUpdateTestCase(BaseTestGenerator):
" not configured for server: %s" % self.server['name']
# Skip the test case if tablespace_path not found.
self.skipTest(message)
self.tablespace_name = "tablespace_delete_%s" % str(uuid.uuid4())[1:6]
self.tablespace_name = "tablespace_delete_%s" % str(uuid.uuid4())[1:8]
self.tablespace_id = tablespace_utils.create_tablespace(
self.server, self.tablespace_name)
self.server_id = parent_node_dict["server"][-1]["server_id"]