Skip to content

Add check backup-source for testing pg_probackup3 #176

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 20, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Add check backup-source for testing pg_probackup3
  • Loading branch information
egarbuz authored and Sofia Kopikova committed Jan 20, 2025
commit 9e2928ea4ef6a17e5cbb1401164194d631b44f1a
4 changes: 4 additions & 0 deletions testgres/plugins/pg_probackup2/pg_probackup2/init_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,10 @@ def __init__(self):
self.ptrack = test_env.get('PG_PROBACKUP_PTRACK', None) == 'ON' and self.pg_config_version >= 110000
self.wal_tree_enabled = test_env.get('PG_PROBACKUP_WAL_TREE_ENABLED', None) == 'ON'

self.bckp_source = test_env.get('PG_PROBACKUP_SOURCE', 'pro').lower()
if self.bckp_source not in ('base', 'direct', 'pro'):
raise Exception("Wrong PG_PROBACKUP_SOURCE value. Available options: base|direct|pro")

self.paranoia = test_env.get('PG_PROBACKUP_PARANOIA', None) == 'ON'
env_compress = test_env.get('ARCHIVE_COMPRESSION', None)
if env_compress:
Expand Down