testgres-pg-probackup2 0.4.0__tar.gz → 0.5.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {testgres_pg_probackup2-0.4.0 → testgres_pg_probackup2-0.5.0}/PKG-INFO +1 -1
- {testgres_pg_probackup2-0.4.0 → testgres_pg_probackup2-0.5.0}/pg_probackup2/app.py +13 -4
- {testgres_pg_probackup2-0.4.0 → testgres_pg_probackup2-0.5.0}/setup.py +1 -1
- {testgres_pg_probackup2-0.4.0 → testgres_pg_probackup2-0.5.0}/testgres_pg_probackup2.egg-info/PKG-INFO +1 -1
- {testgres_pg_probackup2-0.4.0 → testgres_pg_probackup2-0.5.0}/README.md +0 -0
- {testgres_pg_probackup2-0.4.0 → testgres_pg_probackup2-0.5.0}/pg_probackup2/__init__.py +0 -0
- {testgres_pg_probackup2-0.4.0 → testgres_pg_probackup2-0.5.0}/pg_probackup2/gdb.py +0 -0
- {testgres_pg_probackup2-0.4.0 → testgres_pg_probackup2-0.5.0}/pg_probackup2/init_helpers.py +0 -0
- {testgres_pg_probackup2-0.4.0 → testgres_pg_probackup2-0.5.0}/pg_probackup2/storage/__init__.py +0 -0
- {testgres_pg_probackup2-0.4.0 → testgres_pg_probackup2-0.5.0}/pg_probackup2/storage/fs_backup.py +0 -0
- {testgres_pg_probackup2-0.4.0 → testgres_pg_probackup2-0.5.0}/setup.cfg +0 -0
- {testgres_pg_probackup2-0.4.0 → testgres_pg_probackup2-0.5.0}/testgres_pg_probackup2.egg-info/SOURCES.txt +0 -0
- {testgres_pg_probackup2-0.4.0 → testgres_pg_probackup2-0.5.0}/testgres_pg_probackup2.egg-info/dependency_links.txt +0 -0
- {testgres_pg_probackup2-0.4.0 → testgres_pg_probackup2-0.5.0}/testgres_pg_probackup2.egg-info/requires.txt +0 -0
- {testgres_pg_probackup2-0.4.0 → testgres_pg_probackup2-0.5.0}/testgres_pg_probackup2.egg-info/top_level.txt +0 -0
|
@@ -41,15 +41,24 @@ class ProbackupException(Exception):
|
|
|
41
41
|
fs_backup_class = FSTestBackupDir
|
|
42
42
|
|
|
43
43
|
|
|
44
|
+
class _OutputContainer:
|
|
45
|
+
"""Internal container for output and cmd when test_class is not provided"""
|
|
46
|
+
def __init__(self):
|
|
47
|
+
self.output = None
|
|
48
|
+
self.cmd = None
|
|
49
|
+
|
|
50
|
+
|
|
44
51
|
class ProbackupApp:
|
|
45
52
|
|
|
46
|
-
def __init__(self, test_class: unittest.TestCase,
|
|
47
|
-
pg_node, pb_log_path, test_env, auto_compress_alg
|
|
53
|
+
def __init__(self, test_class: unittest.TestCase = None,
|
|
54
|
+
pg_node=None, pb_log_path=None, test_env=None, auto_compress_alg=None,
|
|
55
|
+
backup_dir=None, probackup_path=None):
|
|
48
56
|
self.process = None
|
|
49
|
-
|
|
57
|
+
# Use provided test_class or create internal container
|
|
58
|
+
self.test_class = test_class if test_class is not None else _OutputContainer()
|
|
50
59
|
self.pg_node = pg_node
|
|
51
60
|
self.pb_log_path = pb_log_path
|
|
52
|
-
self.test_env = test_env
|
|
61
|
+
self.test_env = test_env if test_env is not None else os.environ.copy()
|
|
53
62
|
self.auto_compress_alg = auto_compress_alg
|
|
54
63
|
self.backup_dir = backup_dir
|
|
55
64
|
self.probackup_path = probackup_path or init_params.probackup_path
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{testgres_pg_probackup2-0.4.0 → testgres_pg_probackup2-0.5.0}/pg_probackup2/storage/__init__.py
RENAMED
|
File without changes
|
{testgres_pg_probackup2-0.4.0 → testgres_pg_probackup2-0.5.0}/pg_probackup2/storage/fs_backup.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|