Skip to content

Commit bf0936c

Browse files
committed
Merge branch 'issue_439' into PGPRO-5421
2 parents b48ef46 + 4be96c6 commit bf0936c

File tree

1 file changed

+28
-1
lines changed

1 file changed

+28
-1
lines changed

Diff for: tests/archive.py

+28-1
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,12 @@ def test_pgpro434_2(self):
8383
pg_options={
8484
'checkpoint_timeout': '30s'}
8585
)
86+
87+
if self.get_version(node) < self.version_to_num('9.6.0'):
88+
self.del_test_dir(module_name, fname)
89+
return unittest.skip(
90+
'Skipped because pg_control_checkpoint() is not supported in PG 9.5')
91+
8692
self.init_pb(backup_dir)
8793
self.add_instance(backup_dir, 'node', node)
8894
self.set_archiving(backup_dir, 'node', node)
@@ -693,6 +699,11 @@ def test_replica_archive(self):
693699
'checkpoint_timeout': '30s',
694700
'max_wal_size': '32MB'})
695701

702+
if self.get_version(master) < self.version_to_num('9.6.0'):
703+
self.del_test_dir(module_name, fname)
704+
return unittest.skip(
705+
'Skipped because backup from replica is not supported in PG 9.5')
706+
696707
self.init_pb(backup_dir)
697708
# ADD INSTANCE 'MASTER'
698709
self.add_instance(backup_dir, 'master', master)
@@ -818,6 +829,12 @@ def test_master_and_replica_parallel_archiving(self):
818829
pg_options={
819830
'archive_timeout': '10s'}
820831
)
832+
833+
if self.get_version(master) < self.version_to_num('9.6.0'):
834+
self.del_test_dir(module_name, fname)
835+
return unittest.skip(
836+
'Skipped because backup from replica is not supported in PG 9.5')
837+
821838
replica = self.make_simple_node(
822839
base_dir=os.path.join(module_name, fname, 'replica'))
823840
replica.cleanup()
@@ -908,6 +925,11 @@ def test_basic_master_and_replica_concurrent_archiving(self):
908925
'checkpoint_timeout': '30s',
909926
'archive_timeout': '10s'})
910927

928+
if self.get_version(master) < self.version_to_num('9.6.0'):
929+
self.del_test_dir(module_name, fname)
930+
return unittest.skip(
931+
'Skipped because backup from replica is not supported in PG 9.5')
932+
911933
replica = self.make_simple_node(
912934
base_dir=os.path.join(module_name, fname, 'replica'))
913935
replica.cleanup()
@@ -2145,6 +2167,11 @@ def test_archive_pg_receivexlog_partial_handling(self):
21452167
set_replication=True,
21462168
initdb_params=['--data-checksums'])
21472169

2170+
if self.get_version(node) < self.version_to_num('9.6.0'):
2171+
self.del_test_dir(module_name, fname)
2172+
return unittest.skip(
2173+
'Skipped because backup from replica is not supported in PG 9.5')
2174+
21482175
self.init_pb(backup_dir)
21492176
self.add_instance(backup_dir, 'node', node)
21502177

@@ -2791,4 +2818,4 @@ def test_archive_empty_history_file(self):
27912818
#t2 ----------------
27922819
# /
27932820
#t1 -A--------
2794-
#
2821+
#

0 commit comments

Comments
 (0)