Commit Graph

88 Commits

Author SHA1 Message Date
Jerome Charaoui
4d6307184e tests: Unique /var/backups cleanup function 2021-01-06 22:36:20 -05:00
Jerome Charaoui
68cf30dc33 tests: Add tests for rsync handler 2021-01-06 22:36:20 -05:00
Jerome Charaoui
7800948c37 tests: Placeholder tests for rdiff 2021-01-06 22:36:20 -05:00
Jerome Charaoui
bd25f93c91 tests: Drop using /tmp/backups as destination dir
Instead use /var/backups for both local and remote backups to simplify
things.
2021-01-06 22:36:20 -05:00
Jerome Charaoui
ba9fec26cb tests: Add missing status tests for pgsql 2021-01-06 22:36:20 -05:00
Jerome Charaoui
7e9663efe8 tests: Remove unused libfaketime 2021-01-06 22:36:20 -05:00
Jerome Charaoui
f52d1d4656 tests: Remove wonky log-grep tests
This might require a change in the handlers where we tag the debug
"execstr" specifically so we can parse it correctly in the tests. For
now just ensure the handler runs without error.
2021-01-06 22:36:20 -05:00
Jerome Charaoui
eb5c4a35e7 tests: Create local dest dir in rdiff handler 2021-01-06 22:36:20 -05:00
Jerome Charaoui
0a5c57e42c tests: More thorough cleanup after sys tests 2021-01-06 22:36:20 -05:00
Jerome Charaoui
e61c53dd96 tests: Probe partition tables after parted 2021-01-06 22:36:20 -05:00
Jerome Charaoui
414095743d tests: Fix paths in pgsql test 2021-01-06 22:36:20 -05:00
Jerome Charaoui
41b8e661ca tests: Fix setconfig when value contains spaces 2021-01-06 22:36:20 -05:00
Jerome Charaoui
709cbbfa15 tests: Add tests for rdiff handler 2021-01-06 22:36:20 -05:00
Jerome Charaoui
54fd9f10b8 tests: Improve handling of log file during teardown 2021-01-06 22:36:20 -05:00
Jerome Charaoui
6f5411db03 tests: Use crudini instead of sed for config edits 2021-01-06 22:36:20 -05:00
Jerome Charaoui
75161fb65e tests: Fix comment 2021-01-06 22:36:20 -05:00
Jerome Charaoui
340853d96a tests: Seperate LUKS test for partition vs device 2021-01-06 22:36:20 -05:00
Jerome Charaoui
e4054ea85a tests: Replace ramdisks with "more real" disks for sys handler tests 2021-01-06 22:36:20 -05:00
Jerome Charaoui
851e319569 tests: Add PostgreSQL handler tests 2021-01-06 22:36:20 -05:00
Jerome Charaoui
1dcc1eba76 tests: Support paths in setconfig 2021-01-06 22:36:20 -05:00
Jerome Charaoui
2b130e171d tests: Add luks1/luks2 specific tests for sys handler 2021-01-06 22:36:20 -05:00
Jerome Charaoui
3988b79b92 tests: Fix mysql-server install on buster 2021-01-06 22:36:20 -05:00
Jerome Charaoui
0b11f5b1ed tests: Add data samples for pgsql
The samples were created from the MySQL databases, imported into
Postgresql using the pgloader program.
2021-01-06 22:36:20 -05:00
Jerome Charaoui
19f5be20c8 tests: Add mysql test cases
The sample data consists of default Drupal and Wordpress databases with
extra generated data using devel_generate (Drupal) and fakerpress
(WordPress). The content used by both modules is freely licensed.
2021-01-06 22:36:20 -05:00
Jerome Charaoui
ce3e45ab44 tests: Make sys tests cases more efficient, add mbr 2021-01-06 22:36:20 -05:00
Jerome Charaoui
8d9b0418bb tests: replace test_sh() with setup_sh() 2021-01-06 22:36:20 -05:00
Jerome Charaoui
26e530ea9d tests: loglevel 5 is now default for all tests 2021-01-06 22:36:20 -05:00
Jerome Charaoui
4dd6a0971d tests: Fix setconfig() and make more robust 2021-01-06 22:36:20 -05:00
Jerome Charaoui
57b2f217a8 tests: Support component-specific setup & teardown
This introduces support for setup_*, teardown_*, being_* and finish_*
functions in component tests. For example, when testing the sh handler
component in "sh.bats", this will invoke setup_sh and teardown_sh for
each test case, and begin_sh and finish_sh at the beginning of the first
test case and at the end of the last one.
2021-01-06 22:36:20 -05:00
Jerome Charaoui
4c56e50857 tests: Show debug logfile when a test case fails 2021-01-06 22:36:20 -05:00
Jerome Charaoui
48c3da6986 tests: Add testcase for sh handler 2021-01-06 22:36:20 -05:00
Jerome Charaoui
7bfe6f69fd tests: Improve naming is sys test cases 2021-01-06 22:36:20 -05:00
Jerome Charaoui
51a796e0d4 tests: Allow launching tests for specific component 2021-01-06 22:36:20 -05:00
Jerome Charaoui
889d280a4e tests: Mount temporary test directories in tmpfs 2021-01-06 22:36:20 -05:00
Jerome Charaoui
b67d785937 tests: Fix scheduling testcase 2021-01-06 22:36:20 -05:00
Jerome Charaoui
427ff780a4 tests: Introduce bats-based testsuite
- Depends on being run inside vagrant
 - Installs dependencies automatically
 - Environment is fully reset for each test
 - Adds testcases for backupninja and sys handler
 - Docs are missing but will be added

Two tests are currently failing due to two bugs, one of which has gone
unreported.
2021-01-06 22:36:20 -05:00
Micah Anderson
a4360a23e9 remove test 2006-09-27 16:48:18 +00:00
Micah Anderson
2e9aeb92de just testing,please ignore 2006-09-27 06:47:48 +00:00