@@ -47,8 +47,7 @@ def test_restore_full_to_latest(self):
4747 self .assertIn (
4848 "INFO: Restore of backup {0} completed." .format (backup_id ),
4949 self .restore_node (
50- backup_dir , 'node' , node ,
51- options = ["-j" , "4" , "--recovery-target-action=promote" ]),
50+ backup_dir , 'node' , node , options = ["-j" , "4" ]),
5251 '\n Unexpected Error Message: {0}\n CMD: {1}' .format (
5352 repr (self .output ), self .cmd ))
5453
@@ -98,8 +97,7 @@ def test_restore_full_page_to_latest(self):
9897 self .assertIn (
9998 "INFO: Restore of backup {0} completed." .format (backup_id ),
10099 self .restore_node (
101- backup_dir , 'node' , node ,
102- options = ["-j" , "4" , "--recovery-target-action=promote" ]),
100+ backup_dir , 'node' , node , options = ["-j" , "4" ]),
103101 '\n Unexpected Error Message: {0}\n CMD: {1}' .format (
104102 repr (self .output ), self .cmd ))
105103
@@ -139,8 +137,7 @@ def test_restore_to_specific_timeline(self):
139137 self .assertIn (
140138 "INFO: Restore of backup {0} completed." .format (backup_id ),
141139 self .restore_node (
142- backup_dir , 'node' , node ,
143- options = ["-j" , "4" , "--recovery-target-action=promote" ]),
140+ backup_dir , 'node' , node , options = ["-j" , "4" ]),
144141 '\n Unexpected Error Message: {0}\n CMD: {1}' .format (
145142 repr (self .output ), self .cmd ))
146143
@@ -162,8 +159,7 @@ def test_restore_to_specific_timeline(self):
162159 self .restore_node (
163160 backup_dir , 'node' , node ,
164161 options = [
165- "-j" , "4" , "--timeline={0}" .format (target_tli ),
166- "--recovery-target-action=promote" ]
162+ "-j" , "4" , "--timeline={0}" .format (target_tli )]
167163 ),
168164 '\n Unexpected Error Message: {0}\n CMD: {1}' .format (
169165 repr (self .output ), self .cmd ))
@@ -883,8 +879,7 @@ def test_restore_with_tablespace_mapping_1(self):
883879 self .restore_node (
884880 backup_dir , 'node' , node ,
885881 options = [
886- "-T" , "%s=%s" % (tblspc_path , tblspc_path_new ),
887- "--recovery-target-action=promote" ]
882+ "-T" , "%s=%s" % (tblspc_path , tblspc_path_new )]
888883 ),
889884 '\n Unexpected Error Message: {0}\n CMD: {1}' .format (
890885 repr (self .output ), self .cmd ))
@@ -915,8 +910,7 @@ def test_restore_with_tablespace_mapping_1(self):
915910 self .restore_node (
916911 backup_dir , 'node' , node ,
917912 options = [
918- "-T" , "%s=%s" % (tblspc_path_new , tblspc_path_page ),
919- "--recovery-target-action=promote" ]),
913+ "-T" , "%s=%s" % (tblspc_path_new , tblspc_path_page )]),
920914 '\n Unexpected Error Message: {0}\n CMD: {1}' .format (
921915 repr (self .output ), self .cmd ))
922916
@@ -991,8 +985,7 @@ def test_restore_with_tablespace_mapping_2(self):
991985 self .restore_node (
992986 backup_dir , 'node' , node ,
993987 options = [
994- "-T" , "%s=%s" % (tblspc_path , tblspc_path_new ),
995- "--recovery-target-action=promote" ]),
988+ "-T" , "%s=%s" % (tblspc_path , tblspc_path_new )]),
996989 '\n Unexpected Error Message: {0}\n CMD: {1}' .format (
997990 repr (self .output ), self .cmd ))
998991 node .slow_start ()
@@ -1804,25 +1797,23 @@ def test_restore_target_immediate_stream(self):
18041797
18051798 recovery_conf = os .path .join (node .data_dir , 'recovery.conf' )
18061799
1807- # restore page backup
1800+ # restore delta backup
18081801 node .cleanup ()
18091802 self .restore_node (
18101803 backup_dir , 'node' , node , options = ['--immediate' ])
18111804
1812- # For stream backup with immediate recovery target there is no need to
1813- # create recovery.conf. Is it wise?
1814- self .assertFalse (
1815- os .path .isfile (recovery_conf ))
1805+ self .assertTrue (
1806+ os .path .isfile (recovery_conf ),
1807+ "File {0} do not exists" .format (recovery_conf ))
18161808
1817- # restore page backup
1809+ # restore delta backup
18181810 node .cleanup ()
18191811 self .restore_node (
18201812 backup_dir , 'node' , node , options = ['--recovery-target=immediate' ])
18211813
1822- # For stream backup with immediate recovery target there is no need to
1823- # create recovery.conf. Is it wise?
1824- self .assertFalse (
1825- os .path .isfile (recovery_conf ))
1814+ self .assertTrue (
1815+ os .path .isfile (recovery_conf ),
1816+ "File {0} do not exists" .format (recovery_conf ))
18261817
18271818 # Clean after yourself
18281819 self .del_test_dir (module_name , fname )
0 commit comments