1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2024-11-28 09:33:54 +02:00
pg_probackup/tests
Grigory Smolkin de9c3b64d7 Version 2.0.24
- Major bugfix: incorrect handling of badly compressed blocks, previously there was a risk to restore block in uncompressed state, if compressed size was equal or larger than BLCKSZ
        - Impromevent: backup from replica >= 9.6 no longer need connection to master
        - Workaround: wrong minRecPoint in PostgreSQL thanks to commit 8d68ee6(block from future), overwrite minRecPoint with latest applied LSN
        - Impromevent: merge is now considered stable feature
        - Impromevent: validation now use more conservative and paranoid approach to file validation, during validation pg_probackup also check block checksumm, make sanity check based on block header information and try to detect blocks from future
        - New validate/restore options:
           '--skip-block-validation' - disable aforementioned approach to file validation
        - Multiple minor fixes
2018-11-12 12:41:02 +03:00
..
expected Version 2.0.24 2018-11-12 12:41:02 +03:00
helpers tests: additional retention test 2018-10-20 13:44:47 +03:00
__init__.py Fix tests 2018-10-30 15:44:54 +03:00
archive.py tests: minor fixes 2018-11-12 11:51:58 +03:00
auth_test.py tests: minor improvements 2018-04-11 02:23:13 +03:00
backup_test.py tests: minor fixes 2018-11-12 11:51:58 +03:00
cfs_backup.py tests: fixes for testgres1 2018-01-28 04:36:27 +03:00
cfs_restore.py Fix cfs tests in cfs_restore.py 2018-10-09 18:22:56 +03:00
cfs_validate_backup.py cfs tests small temporal chages 2017-10-19 18:26:24 +03:00
compatibility.py tests: minor fixes 2018-11-12 11:51:58 +03:00
compression.py tests: minor fixes 2018-11-12 11:51:58 +03:00
delete_test.py tests: ptrack yet another fix 2018-10-24 21:08:00 +03:00
delta.py tests: minor fixes 2018-11-12 11:51:58 +03:00
exclude.py tests: minor fixes 2018-11-12 11:51:58 +03:00
false_positive.py tests: minor fixes 2018-11-12 11:51:58 +03:00
init_test.py tests: new modules and tests 2017-07-12 17:28:28 +03:00
logging.py tests: new modules and tests 2017-07-12 17:28:28 +03:00
merge.py tests: minor fixes 2018-11-12 11:51:58 +03:00
option_test.py PGPRO-1449: Add MERGE command: merge PAGE with FULL backup 2018-08-02 11:57:39 +03:00
page.py tests: minor fixes 2018-11-12 11:51:58 +03:00
pgpro560.py tests: new module "exclude.py" and minor fixes 2017-11-30 09:14:46 +03:00
pgpro589.py tests: json format for show command 2018-06-02 20:35:37 +03:00
ptrack_clean.py tests: minor fixes 2018-11-12 11:51:58 +03:00
ptrack_cluster.py tests: bloom index support 2018-10-19 14:54:17 +03:00
ptrack_empty.py tests: minor fixes 2018-11-12 11:51:58 +03:00
ptrack_move_to_tablespace.py tests: bloom index support 2018-10-19 14:54:17 +03:00
ptrack_recovery.py tests: bloom index support 2018-10-19 14:54:17 +03:00
ptrack_truncate.py tests: bloom index support 2018-10-19 14:54:17 +03:00
ptrack_vacuum_bits_frozen.py tests: bloom index support 2018-10-19 14:54:17 +03:00
ptrack_vacuum_bits_visibility.py tests: bloom index support 2018-10-19 14:54:17 +03:00
ptrack_vacuum_full.py tests: bloom index support 2018-10-19 14:54:17 +03:00
ptrack_vacuum_truncate.py tests: bloom index support 2018-10-19 14:54:17 +03:00
ptrack_vacuum.py tests: ptrack yet another fix 2018-10-24 21:08:00 +03:00
ptrack.py tests: minor fixes 2018-11-12 11:51:58 +03:00
Readme.md tests: add note about compatibility test in Readme 2018-10-15 12:30:35 +03:00
replica.py tests: minor fixes 2018-11-12 11:51:58 +03:00
restore_test.py tests: compatibility module added 2018-10-15 12:27:51 +03:00
retention_test.py tests: json format for show command 2018-06-02 20:35:37 +03:00
show_test.py Fix tests 2018-10-11 12:58:37 +03:00
validate_test.py tests: minor fixes 2018-11-12 11:51:58 +03:00

см wiki

Note: For now there are tests only for Linix
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>

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