Skip to content

Commit 9e2928e

Browse files
egarbuzSofia Kopikova
authored and
Sofia Kopikova
committed
Add check backup-source for testing pg_probackup3
1 parent 95e6ad0 commit 9e2928e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: testgres/plugins/pg_probackup2/pg_probackup2/init_helpers.py

+4
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,10 @@ def __init__(self):
172172
self.ptrack = test_env.get('PG_PROBACKUP_PTRACK', None) == 'ON' and self.pg_config_version >= 110000
173173
self.wal_tree_enabled = test_env.get('PG_PROBACKUP_WAL_TREE_ENABLED', None) == 'ON'
174174

175+
self.bckp_source = test_env.get('PG_PROBACKUP_SOURCE', 'pro').lower()
176+
if self.bckp_source not in ('base', 'direct', 'pro'):
177+
raise Exception("Wrong PG_PROBACKUP_SOURCE value. Available options: base|direct|pro")
178+
175179
self.paranoia = test_env.get('PG_PROBACKUP_PARANOIA', None) == 'ON'
176180
env_compress = test_env.get('ARCHIVE_COMPRESSION', None)
177181
if env_compress:

0 commit comments

Comments
 (0)