diff --git a/tests/merge.py b/tests/merge.py index 541c5173..1f553819 100644 --- a/tests/merge.py +++ b/tests/merge.py @@ -1865,6 +1865,10 @@ class MergeTest(ProbackupTest, unittest.TestCase): backup_dir, 'node', node, backup_type='page') pgdata = self.pgdata_content(node.data_dir) + result = node.safe_psql( + 'postgres', + 'SELECT * from pgbench_accounts') + node_restored = self.make_simple_node( base_dir=os.path.join(module_name, fname, 'node_restored')) node_restored.cleanup() @@ -1883,6 +1887,18 @@ class MergeTest(ProbackupTest, unittest.TestCase): backup_dir, 'node', node_restored, backup_id=backup_id) pgdata_restored = self.pgdata_content(node_restored.data_dir) + + self.set_auto_conf( + node_restored, + {'port': node_restored.port}) + node_restored.slow_start() + + result_new = node_restored.safe_psql( + 'postgres', + 'SELECT * from pgbench_accounts') + + self.assertTrue(result, result_new) + self.compare_pgdata(pgdata, pgdata_restored) # Clean after yourself diff --git a/tests/restore.py b/tests/restore.py index 115da13b..918800bc 100644 --- a/tests/restore.py +++ b/tests/restore.py @@ -2748,6 +2748,7 @@ class RestoreTest(ProbackupTest, unittest.TestCase): def test_partial_restore_backward_compatibility_1(self): """ + old binary should be version < 2.2.0 """ fname = self.id().split('.')[3] backup_dir = os.path.join(self.tmp_path, module_name, fname, 'backup') diff --git a/tests/set_backup.py b/tests/set_backup.py index 5e98e918..d93d0d71 100644 --- a/tests/set_backup.py +++ b/tests/set_backup.py @@ -311,7 +311,9 @@ class SetBackupTest(ProbackupTest, unittest.TestCase): # sanity for timeline in timelines: - self.assertEqual(timeline['min-segno'], '0000000000000004') + self.assertEqual( + timeline['min-segno'], + '000000010000000000000004') self.assertEqual(timeline['status'], 'OK') # Clean after yourself @@ -373,7 +375,9 @@ class SetBackupTest(ProbackupTest, unittest.TestCase): # sanity for timeline in timelines: - self.assertEqual(timeline['min-segno'], '0000000000000002') + self.assertEqual( + timeline['min-segno'], + '000000010000000000000002') self.assertEqual(timeline['status'], 'OK') self.validate_pb(backup_dir)