66from .helpers .cfs_helpers import find_by_extensions , find_by_name , find_by_pattern , corrupt_file
77from .helpers .ptrack_helpers import ProbackupTest , ProbackupException
88
9- module_name = 'cfs_catchup'
10- tblspace_name = 'cfs_tblspace'
11-
129
1310class CfsCatchupNoEncTest (ProbackupTest , unittest .TestCase ):
14- def setUp (self ):
15- self .fname = self .id ().split ('.' )[3 ]
1611
1712 @unittest .skipUnless (ProbackupTest .enterprise , 'skip' )
1813 def test_full_catchup_with_tablespace (self ):
@@ -21,7 +16,7 @@ def test_full_catchup_with_tablespace(self):
2116 """
2217 # preparation
2318 src_pg = self .make_simple_node (
24- base_dir = os .path .join (module_name , self .fname , 'src' ),
19+ base_dir = os .path .join (self . module_name , self .fname , 'src' ),
2520 set_replication = True
2621 )
2722 src_pg .slow_start ()
@@ -36,7 +31,7 @@ def test_full_catchup_with_tablespace(self):
3631 "CHECKPOINT" )
3732
3833 # do full catchup with tablespace mapping
39- dst_pg = self .make_empty_node (os .path .join (module_name , self .fname , 'dst' ))
34+ dst_pg = self .make_empty_node (os .path .join (self . module_name , self .fname , 'dst' ))
4035 tblspace1_new_path = self .get_tblspace_path (dst_pg , 'tblspace1_new' )
4136 self .catchup_node (
4237 backup_mode = 'FULL' ,
@@ -120,8 +115,3 @@ def test_full_catchup_with_tablespace(self):
120115 src_query_result = src_pg .safe_psql ("postgres" , "SELECT * FROM ultimate_question" )
121116 dst_query_result = dst_pg .safe_psql ("postgres" , "SELECT * FROM ultimate_question" )
122117 self .assertEqual (src_query_result , dst_query_result , 'Different answer from copy' )
123-
124- # Cleanup
125- src_pg .stop ()
126- dst_pg .stop ()
127- self .del_test_dir (module_name , self .fname )
0 commit comments