Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit396155e

Browse files
authored
Issue 439 (#440)
* [Issue#439] skip unsupported tests in 9.5 (tests with backups from replica and with pg_control_checkpoint() calling)
1 parent6081c08 commit396155e

File tree

1 file changed

+28
-1
lines changed

1 file changed

+28
-1
lines changed

‎tests/archive.py

Lines changed: 28 additions & 1 deletion
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+
ifself.get_version(node)<self.version_to_num('9.6.0'):
88+
self.del_test_dir(module_name,fname)
89+
returnunittest.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+
ifself.get_version(master)<self.version_to_num('9.6.0'):
703+
self.del_test_dir(module_name,fname)
704+
returnunittest.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+
ifself.get_version(master)<self.version_to_num('9.6.0'):
834+
self.del_test_dir(module_name,fname)
835+
returnunittest.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+
ifself.get_version(master)<self.version_to_num('9.6.0'):
929+
self.del_test_dir(module_name,fname)
930+
returnunittest.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()
@@ -2009,6 +2031,11 @@ def test_archive_pg_receivexlog_partial_handling(self):
20092031
set_replication=True,
20102032
initdb_params=['--data-checksums'])
20112033

2034+
ifself.get_version(node)<self.version_to_num('9.6.0'):
2035+
self.del_test_dir(module_name,fname)
2036+
returnunittest.skip(
2037+
'Skipped because backup from replica is not supported in PG 9.5')
2038+
20122039
self.init_pb(backup_dir)
20132040
self.add_instance(backup_dir,'node',node)
20142041

@@ -2655,4 +2682,4 @@ def test_archive_empty_history_file(self):
26552682
#t2 ----------------
26562683
# /
26572684
#t1 -A--------
2658-
#
2685+
#

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp