Skip to content

Commit 9e2928e

Browse files
egarbuzSofia Kopikova
authored andcommitted
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

testgres/plugins/pg_probackup2/pg_probackup2/init_helpers.py

Lines changed: 4 additions & 0 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy