2016-12-09 20:30:22 +02:00
|
|
|
import unittest
|
|
|
|
|
2018-10-10 14:17:45 +02:00
|
|
|
from . import init_test, merge, option_test, show_test, \
|
|
|
|
backup_test, delete_test, delta, restore_test, validate_test, \
|
2017-05-03 13:14:48 +02:00
|
|
|
retention_test, ptrack_clean, ptrack_cluster, \
|
2018-10-10 14:17:45 +02:00
|
|
|
ptrack_move_to_tablespace, ptrack_recovery, ptrack_truncate, ptrack_vacuum, \
|
2017-05-03 13:14:48 +02:00
|
|
|
ptrack_vacuum_bits_frozen, ptrack_vacuum_bits_visibility, \
|
2017-05-22 13:17:43 +02:00
|
|
|
ptrack_vacuum_full, ptrack_vacuum_truncate, pgpro560, pgpro589, \
|
2017-10-19 17:26:24 +02:00
|
|
|
false_positive, replica, compression, page, ptrack, archive, \
|
2017-12-04 16:42:18 +02:00
|
|
|
exclude, cfs_backup, cfs_restore, cfs_validate_backup, auth_test
|
2017-05-03 13:14:48 +02:00
|
|
|
|
2016-12-09 20:30:22 +02:00
|
|
|
|
|
|
|
def load_tests(loader, tests, pattern):
|
2017-05-03 13:14:48 +02:00
|
|
|
suite = unittest.TestSuite()
|
2017-12-13 10:15:42 +02:00
|
|
|
# suite.addTests(loader.loadTestsFromModule(auth_test))
|
2017-11-30 08:14:46 +02:00
|
|
|
suite.addTests(loader.loadTestsFromModule(archive))
|
2017-10-09 14:32:48 +02:00
|
|
|
suite.addTests(loader.loadTestsFromModule(backup_test))
|
2018-01-25 20:39:16 +02:00
|
|
|
suite.addTests(loader.loadTestsFromModule(cfs_backup))
|
2018-10-10 14:17:45 +02:00
|
|
|
suite.addTests(loader.loadTestsFromModule(cfs_restore))
|
2017-11-30 08:14:46 +02:00
|
|
|
# suite.addTests(loader.loadTestsFromModule(cfs_validate_backup))
|
|
|
|
# suite.addTests(loader.loadTestsFromModule(logging))
|
|
|
|
suite.addTests(loader.loadTestsFromModule(compression))
|
2017-10-09 14:32:48 +02:00
|
|
|
suite.addTests(loader.loadTestsFromModule(delete_test))
|
2018-10-10 14:17:45 +02:00
|
|
|
suite.addTests(loader.loadTestsFromModule(delta))
|
2017-11-30 08:14:46 +02:00
|
|
|
suite.addTests(loader.loadTestsFromModule(exclude))
|
|
|
|
suite.addTests(loader.loadTestsFromModule(false_positive))
|
|
|
|
suite.addTests(loader.loadTestsFromModule(init_test))
|
2018-10-10 14:17:45 +02:00
|
|
|
suite.addTests(loader.loadTestsFromModule(merge))
|
2017-11-30 08:14:46 +02:00
|
|
|
suite.addTests(loader.loadTestsFromModule(option_test))
|
|
|
|
suite.addTests(loader.loadTestsFromModule(page))
|
2017-09-28 09:32:06 +02:00
|
|
|
suite.addTests(loader.loadTestsFromModule(ptrack))
|
2017-10-09 14:32:48 +02:00
|
|
|
suite.addTests(loader.loadTestsFromModule(ptrack_clean))
|
|
|
|
suite.addTests(loader.loadTestsFromModule(ptrack_cluster))
|
|
|
|
suite.addTests(loader.loadTestsFromModule(ptrack_move_to_tablespace))
|
|
|
|
suite.addTests(loader.loadTestsFromModule(ptrack_recovery))
|
2018-10-10 14:17:45 +02:00
|
|
|
suite.addTests(loader.loadTestsFromModule(ptrack_truncate))
|
2017-10-09 14:32:48 +02:00
|
|
|
suite.addTests(loader.loadTestsFromModule(ptrack_vacuum))
|
|
|
|
suite.addTests(loader.loadTestsFromModule(ptrack_vacuum_bits_frozen))
|
|
|
|
suite.addTests(loader.loadTestsFromModule(ptrack_vacuum_bits_visibility))
|
|
|
|
suite.addTests(loader.loadTestsFromModule(ptrack_vacuum_full))
|
|
|
|
suite.addTests(loader.loadTestsFromModule(ptrack_vacuum_truncate))
|
|
|
|
suite.addTests(loader.loadTestsFromModule(replica))
|
2017-11-30 08:14:46 +02:00
|
|
|
suite.addTests(loader.loadTestsFromModule(restore_test))
|
|
|
|
suite.addTests(loader.loadTestsFromModule(retention_test))
|
|
|
|
suite.addTests(loader.loadTestsFromModule(show_test))
|
|
|
|
suite.addTests(loader.loadTestsFromModule(validate_test))
|
2017-10-09 14:32:48 +02:00
|
|
|
suite.addTests(loader.loadTestsFromModule(pgpro560))
|
|
|
|
suite.addTests(loader.loadTestsFromModule(pgpro589))
|
2016-12-09 20:30:22 +02:00
|
|
|
|
2017-05-03 13:14:48 +02:00
|
|
|
return suite
|
2017-07-12 16:28:28 +02:00
|
|
|
|
2017-11-09 11:45:04 +02:00
|
|
|
# test_pgpro434_2 unexpected success
|
2017-07-12 16:28:28 +02:00
|
|
|
# ToDo:
|
|
|
|
# archive:
|
|
|
|
# discrepancy of instance`s SYSTEMID and node`s SYSTEMID should lead to archive-push refusal to work
|
|
|
|
# replica:
|
|
|
|
# backup should exit with correct error message if some master* option is missing
|
|
|
|
# --master* options shoukd not work when backuping master
|
|
|
|
# logging:
|
|
|
|
# https://jira.postgrespro.ru/browse/PGPRO-584
|
|
|
|
# https://jira.postgrespro.ru/secure/attachment/20420/20420_doc_logging.md
|
|
|
|
# ptrack:
|
|
|
|
# ptrack backup on replica should work correctly
|
2017-10-09 14:32:48 +02:00
|
|
|
# archive:
|
|
|
|
# immediate recovery and full recovery
|
2018-07-15 15:37:48 +02:00
|
|
|
# backward compatibility:
|
|
|
|
# previous version catalog must be readable by newer version
|
|
|
|
# incremental chain from previous version can be continued
|
|
|
|
# backups from previous version can be restored
|
2017-10-11 17:08:56 +02:00
|
|
|
# 10vanilla_1.3ptrack +
|
|
|
|
# 10vanilla+
|
|
|
|
# 9.6vanilla_1.3ptrack +
|