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