@@ -2013,7 +2013,7 @@ def test_archive_push_sanity(self):
20132013 self .backup_node (backup_dir , 'node' , node )
20142014
20152015 with open (os .path .join (node .logs_dir , 'postgresql.log' ), 'r' ) as f :
2016- postgres_log_content = f .read ()
2016+ postgres_log_content = cleanup_ptrack ( f .read () )
20172017
20182018 # print(postgres_log_content)
20192019 # make sure that .backup file is not compressed
@@ -2056,7 +2056,7 @@ def test_archive_push_sanity(self):
20562056 replica .stop ()
20572057 log .wait_shutdown ()
20582058
2059- self .assertNotIn ('WARNING' , log .content )
2059+ self .assertNotIn ('WARNING' , cleanup_ptrack ( log .content ) )
20602060
20612061 output = self .show_archive (
20622062 backup_dir , 'node' , as_json = False , as_text = True ,
@@ -2662,6 +2662,17 @@ def test_archive_empty_history_file(self):
26622662 'WARNING: History file is corrupted or missing: "{0}"' .format (os .path .join (wal_dir , '00000004.history' )),
26632663 log_content )
26642664
2665+
2666+ def cleanup_ptrack (log_content ):
2667+ # PBCKP-423 - need to clean ptrack warning
2668+ ptrack_is_not = 'Ptrack 1.X is not supported anymore'
2669+ if ptrack_is_not in log_content :
2670+ lines = [line for line in log_content .splitlines ()
2671+ if ptrack_is_not not in line ]
2672+ log_content = "" .join (lines )
2673+ return log_content
2674+
2675+
26652676# TODO test with multiple not archived segments.
26662677# TODO corrupted file in archive.
26672678
0 commit comments