@@ -711,8 +711,8 @@ def test_page_backup_with_lost_wal_segment(self):
711
711
self .assertTrue (
712
712
'INFO: Wait for LSN' in e .message and
713
713
'in archived WAL segment' in e .message and
714
- 'WARNING: could not read WAL record at' in e .message and
715
- 'ERROR: WAL segment "{0}" is absent\n ' .format (
714
+ 'could not read WAL record at' in e .message and
715
+ 'WAL segment "{0}" is absent\n ' .format (
716
716
file ) in e .message ,
717
717
'\n Unexpected Error Message: {0}\n CMD: {1}' .format (
718
718
repr (e .message ), self .cmd ))
@@ -737,8 +737,8 @@ def test_page_backup_with_lost_wal_segment(self):
737
737
self .assertTrue (
738
738
'INFO: Wait for LSN' in e .message and
739
739
'in archived WAL segment' in e .message and
740
- 'WARNING: could not read WAL record at' in e .message and
741
- 'ERROR: WAL segment "{0}" is absent\n ' .format (
740
+ 'could not read WAL record at' in e .message and
741
+ 'WAL segment "{0}" is absent\n ' .format (
742
742
file ) in e .message ,
743
743
'\n Unexpected Error Message: {0}\n CMD: {1}' .format (
744
744
repr (e .message ), self .cmd ))
@@ -808,9 +808,9 @@ def test_page_backup_with_corrupted_wal_segment(self):
808
808
self .assertTrue (
809
809
'INFO: Wait for LSN' in e .message and
810
810
'in archived WAL segment' in e .message and
811
- 'WARNING: could not read WAL record at' in e .message and
811
+ 'could not read WAL record at' in e .message and
812
812
'incorrect resource manager data checksum in record at' in e .message and
813
- 'ERROR: Possible WAL corruption. Error has occured during reading WAL segment "{0}"' .format (
813
+ 'Possible WAL corruption. Error has occured during reading WAL segment "{0}"' .format (
814
814
file ) in e .message ,
815
815
'\n Unexpected Error Message: {0}\n CMD: {1}' .format (
816
816
repr (e .message ), self .cmd ))
@@ -834,9 +834,9 @@ def test_page_backup_with_corrupted_wal_segment(self):
834
834
self .assertTrue (
835
835
'INFO: Wait for LSN' in e .message and
836
836
'in archived WAL segment' in e .message and
837
- 'WARNING: could not read WAL record at' in e .message and
837
+ 'could not read WAL record at' in e .message and
838
838
'incorrect resource manager data checksum in record at' in e .message and
839
- 'ERROR: Possible WAL corruption. Error has occured during reading WAL segment "{0}"' .format (
839
+ 'Possible WAL corruption. Error has occured during reading WAL segment "{0}"' .format (
840
840
file ) in e .message ,
841
841
'\n Unexpected Error Message: {0}\n CMD: {1}' .format (
842
842
repr (e .message ), self .cmd ))
@@ -932,7 +932,15 @@ def test_page_backup_with_alien_wal_segment(self):
932
932
"Output: {0} \n CMD: {1}" .format (
933
933
self .output , self .cmd ))
934
934
except ProbackupException as e :
935
- print ("SUCCESS" )
935
+ self .assertTrue (
936
+ 'INFO: Wait for LSN' in e .message and
937
+ 'in archived WAL segment' in e .message and
938
+ 'could not read WAL record at' in e .message and
939
+ 'incorrect resource manager data checksum in record at' in e .message and
940
+ 'Possible WAL corruption. Error has occured during reading WAL segment "{0}"' .format (
941
+ file ) in e .message ,
942
+ '\n Unexpected Error Message: {0}\n CMD: {1}' .format (
943
+ repr (e .message ), self .cmd ))
936
944
937
945
self .assertEqual (
938
946
'ERROR' ,
@@ -950,7 +958,15 @@ def test_page_backup_with_alien_wal_segment(self):
950
958
"Output: {0} \n CMD: {1}" .format (
951
959
self .output , self .cmd ))
952
960
except ProbackupException as e :
953
- print ("SUCCESS" )
961
+ self .assertTrue (
962
+ 'INFO: Wait for LSN' in e .message and
963
+ 'in archived WAL segment' in e .message and
964
+ 'could not read WAL record at' in e .message and
965
+ 'incorrect resource manager data checksum in record at' in e .message and
966
+ 'Possible WAL corruption. Error has occured during reading WAL segment "{0}"' .format (
967
+ file ) in e .message ,
968
+ '\n Unexpected Error Message: {0}\n CMD: {1}' .format (
969
+ repr (e .message ), self .cmd ))
954
970
955
971
self .assertEqual (
956
972
'ERROR' ,
0 commit comments