File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -3429,7 +3429,19 @@ def test_validate_corrupt_tablespace_map(self):
3429
3429
f .flush ()
3430
3430
f .close
3431
3431
3432
- self .validate_pb (backup_dir , 'node' , backup_id = backup_id )
3432
+ try :
3433
+ self .validate_pb (backup_dir , 'node' , backup_id = backup_id )
3434
+ self .assertEqual (
3435
+ 1 , 0 ,
3436
+ "Expecting Error because tablespace_map is corrupted.\n "
3437
+ "Output: {0} \n CMD: {1}" .format (
3438
+ self .output , self .cmd ))
3439
+ except ProbackupException as e :
3440
+ self .assertIn (
3441
+ 'WARNING: Invalid CRC of backup file' ,
3442
+ e .message ,
3443
+ '\n Unexpected Error Message: {0}\n CMD: {1}' .format (
3444
+ repr (e .message ), self .cmd ))
3433
3445
3434
3446
# validate empty backup list
3435
3447
# page from future during validate
You can’t perform that action at this time.
0 commit comments