1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2024-12-11 11:41:33 +02:00
pg_probackup/tests/__init__.py

66 lines
2.9 KiB
Python
Raw Normal View History

import unittest
2019-05-28 11:41:03 +02:00
import os
2019-05-01 01:39:08 +02:00
from . import init, merge, option, show, compatibility, \
backup, delete, delta, restore, validate, \
retention, pgpro560, pgpro589, pgpro2068, false_positive, replica, \
2019-02-26 20:26:30 +02:00
compression, page, ptrack, archive, exclude, cfs_backup, cfs_restore, \
cfs_validate_backup, auth_test, time_stamp, snapfs, logging, \
2020-06-05 20:35:59 +02:00
locking, remote, external, config, checkdb, set_backup, incr_restore
2017-05-03 13:14:48 +02:00
def load_tests(loader, tests, pattern):
2017-05-03 13:14:48 +02:00
suite = unittest.TestSuite()
2019-05-28 11:41:03 +02:00
2019-07-03 16:58:36 +02:00
if 'PG_PROBACKUP_TEST_BASIC' in os.environ:
if os.environ['PG_PROBACKUP_TEST_BASIC'] == 'ON':
loader.testMethodPrefix = 'test_basic'
2019-05-28 11:41:03 +02:00
2019-07-20 05:32:52 +02:00
if 'PG_PROBACKUP_PTRACK' in os.environ:
if os.environ['PG_PROBACKUP_PTRACK'] == 'ON':
suite.addTests(loader.loadTestsFromModule(ptrack))
2017-12-13 10:15:42 +02:00
# suite.addTests(loader.loadTestsFromModule(auth_test))
suite.addTests(loader.loadTestsFromModule(archive))
suite.addTests(loader.loadTestsFromModule(backup))
2018-10-15 11:27:51 +02:00
suite.addTests(loader.loadTestsFromModule(compatibility))
2018-12-11 11:02:38 +02:00
suite.addTests(loader.loadTestsFromModule(checkdb))
2019-03-30 00:48:57 +02:00
suite.addTests(loader.loadTestsFromModule(config))
# suite.addTests(loader.loadTestsFromModule(cfs_backup))
# suite.addTests(loader.loadTestsFromModule(cfs_restore))
# suite.addTests(loader.loadTestsFromModule(cfs_validate_backup))
suite.addTests(loader.loadTestsFromModule(compression))
suite.addTests(loader.loadTestsFromModule(delete))
2018-10-10 14:17:45 +02:00
suite.addTests(loader.loadTestsFromModule(delta))
suite.addTests(loader.loadTestsFromModule(exclude))
2019-05-01 01:39:08 +02:00
suite.addTests(loader.loadTestsFromModule(external))
suite.addTests(loader.loadTestsFromModule(false_positive))
2019-05-01 01:39:08 +02:00
suite.addTests(loader.loadTestsFromModule(init))
2020-06-05 20:35:59 +02:00
suite.addTests(loader.loadTestsFromModule(incr_restore))
2019-01-31 11:03:02 +02:00
suite.addTests(loader.loadTestsFromModule(locking))
2019-01-25 20:33:34 +02:00
suite.addTests(loader.loadTestsFromModule(logging))
2018-10-10 14:17:45 +02:00
suite.addTests(loader.loadTestsFromModule(merge))
2019-05-01 01:39:08 +02:00
suite.addTests(loader.loadTestsFromModule(option))
suite.addTests(loader.loadTestsFromModule(page))
2019-05-01 01:39:08 +02:00
suite.addTests(loader.loadTestsFromModule(pgpro560))
suite.addTests(loader.loadTestsFromModule(pgpro589))
suite.addTests(loader.loadTestsFromModule(pgpro2068))
2019-01-31 18:47:44 +02:00
suite.addTests(loader.loadTestsFromModule(remote))
2017-10-09 14:32:48 +02:00
suite.addTests(loader.loadTestsFromModule(replica))
suite.addTests(loader.loadTestsFromModule(restore))
suite.addTests(loader.loadTestsFromModule(retention))
2019-10-07 13:28:03 +02:00
suite.addTests(loader.loadTestsFromModule(set_backup))
2019-05-01 01:39:08 +02:00
suite.addTests(loader.loadTestsFromModule(show))
2019-01-25 18:37:21 +02:00
suite.addTests(loader.loadTestsFromModule(snapfs))
2018-07-18 14:19:39 +02:00
suite.addTests(loader.loadTestsFromModule(time_stamp))
2019-05-01 01:39:08 +02:00
suite.addTests(loader.loadTestsFromModule(validate))
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:
# logging:
# https://jira.postgrespro.ru/secure/attachment/20420/20420_doc_logging.md
2017-10-09 14:32:48 +02:00
# archive:
# immediate recovery and full recovery