mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2026-08-10 04:58:03 -05:00
Use sufficiently long random strings in test objects to avoid conflicts.
This commit is contained in:
committed by
Dave Page
parent
fe7cfa35df
commit
80c4a3fb1a
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user