1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2025-01-05 13:20:31 +02:00
pg_probackup/tests
2019-12-24 15:03:59 +03:00
..
expected Version 2.2.5 2019-10-31 20:12:33 +03:00
helpers tests: minor fixes 2019-12-24 15:03:59 +03:00
__init__.py [Issue #68] the backup pinning 2019-10-07 14:28:03 +03:00
archive.py Added support for ptrack 2.0 2019-12-23 18:23:29 +03:00
auth_test.py tests: support PG12 2019-10-19 09:48:35 +03:00
backup.py tests: minor fixes 2019-12-24 15:03:59 +03:00
cfs_backup.py
cfs_restore.py tests: support PG12 2019-10-19 09:48:35 +03:00
cfs_validate_backup.py
checkdb.py
compatibility.py Added support for ptrack 2.0 2019-12-23 18:23:29 +03:00
compression.py
config.py
delete.py Added support for ptrack 2.0 2019-12-23 18:23:29 +03:00
delta.py Added support for ptrack 2.0 2019-12-23 18:23:29 +03:00
exclude.py tests: minor fixes 2019-09-05 11:12:17 +03:00
external.py Added support for ptrack 2.0 2019-12-23 18:23:29 +03:00
false_positive.py Added support for ptrack 2.0 2019-12-23 18:23:29 +03:00
init.py
locking.py
logging.py
merge.py Added support for ptrack 2.0 2019-12-23 18:23:29 +03:00
option.py Added support for ptrack 2.0 2019-12-23 18:23:29 +03:00
page.py tests: support PG12 2019-10-19 09:48:35 +03:00
pgpro560.py
pgpro589.py tests: support PG12 2019-10-19 09:48:35 +03:00
pgpro2068.py Added support for ptrack 2.0 2019-12-23 18:23:29 +03:00
ptrack.py Added support for ptrack 2.0 2019-12-23 18:23:29 +03:00
Readme.md Added support for ptrack 2.0 2019-12-23 18:23:29 +03:00
remote.py tests: fixes for 9.5 2019-10-24 17:55:52 +03:00
replica.py tests: minor fixes 2019-12-24 15:03:59 +03:00
restore.py Added support for ptrack 2.0 2019-12-23 18:23:29 +03:00
retention.py tests: fixes 2019-10-23 11:32:23 +03:00
set_backup.py [Issue #68] the backup pinning 2019-10-07 14:28:03 +03:00
show.py tests: minor fixes 2019-10-09 13:23:14 +03:00
snapfs.py
time_stamp.py tests: minor fixes 2019-11-01 15:23:31 +03:00
validate.py tests: support PG12 2019-10-19 09:48:35 +03:00

см wiki

Note: For now these are works on Linux and "kinda" works on Windows
Windows Note: For tablespaces tests to work on Windows, you should explicitly(!) grant current user full access to tmp_dirs
Check physical correctness of restored instances:
 Apply this patch to disable HINT BITS: https://gist.github.com/gsmol/2bb34fd3ba31984369a72cc1c27a36b6
 export PG_PROBACKUP_PARANOIA=ON

Check archive compression:
 export ARCHIVE_COMPRESSION=ON

Enable compatibility tests:
 export PGPROBACKUPBIN_OLD=/path/to/previous_version_pg_probackup_binary

Specify path to pg_probackup binary file. By default tests use <Path to Git repository>/pg_probackup/
 export PGPROBACKUPBIN=<path to pg_probackup>

Remote backup depends on key authentication to local machine via ssh as current user.
 export PGPROBACKUP_SSH_REMOTE=ON

Run suit of basic simple tests:
 export PG_PROBACKUP_TEST_BASIC=ON

Run ptrack tests:
 export PG_PROBACKUP_PTRACK=ON


Usage:
 pip install testgres==1.8.2
 export PG_CONFIG=/path/to/pg_config
 python -m unittest [-v] tests[.specific_module][.class.test]