Commit Graph

1140 Commits

Author SHA1 Message Date
Jerome Charaoui
6564cff1ce tests: resolve function name collision 2021-01-06 22:36:20 -05:00
Jerome Charaoui
893419125e tests: remove extraneous test command 2021-01-06 22:36:20 -05:00
Jerome Charaoui
20ea06b603 tests: improve testaction and runaction
Auto-find test component/file and check status code.
2021-01-06 22:36:20 -05:00
Jerome Charaoui
5bc6b9c1b5 tests: improve setconfig_repeat 2021-01-06 22:36:20 -05:00
Jerome Charaoui
b3ca5e956c tests: overhaul dup tests 2021-01-06 22:36:20 -05:00
Jerome Charaoui
70365ec658 tests: split verification from creation 2021-01-06 22:36:20 -05:00
Jerome Charaoui
30c9c7391e tests: better tests names for borg 2021-01-06 22:36:20 -05:00
Jerome Charaoui
eae7f4fe98 rdiff: log execution steps 2021-01-06 22:36:20 -05:00
Jerome Charaoui
b93af54bed dup: log execution steps 2021-01-06 22:36:20 -05:00
Jerome Charaoui
0cf6e0a3c8 tests: use runaction and global vars in pqsql test 2021-01-06 22:36:20 -05:00
Jerome Charaoui
a5ab1cbe78 tests: use runaction and global vars in mysql test 2021-01-06 22:36:20 -05:00
Jerome Charaoui
1869192529 tests: add makegpgkeys common function
This is needed to test duplicity pubkey encryption.
2021-01-06 22:36:20 -05:00
Jerome Charaoui
c3fcebbce5 tests: Improve test cases for sh handler 2021-01-06 22:36:20 -05:00
Jerome Charaoui
1aa55dc50d tests: Improve backup creation tests for borg handler 2021-01-06 22:36:20 -05:00
Jerome Charaoui
f67cdd49d0 tests: Fix typo in common.bash 2021-01-06 22:36:20 -05:00
Jerome Charaoui
8386cde02c borg: log execution steps 2021-01-06 22:36:20 -05:00
Jerome Charaoui
dd17ed2340 tests: Overhaul, expand common functions 2021-01-06 22:36:20 -05:00
Jerome Charaoui
6c2e2df78a tests: Implement thorough tests for borg handler 2021-01-06 22:36:20 -05:00
Jerome Charaoui
e1beb5f68e tests: Cleanup borg cachedir after tests 2021-01-06 22:36:20 -05:00
Jerome Charaoui
9332906386 tests: Declare useful global vars in common.bash 2021-01-06 22:36:20 -05:00
Jerome Charaoui
61b7fe44a2 tests: Open alternative ssh port on remote machine 2021-01-06 22:36:20 -05:00
Jerome Charaoui
a347f08c6a tests: Add placeholder for mysql hotcopy 2021-01-06 22:36:20 -05:00
Jerome Charaoui
a1120d4bc4 tests: Add tar handler tests 2021-01-06 22:36:20 -05:00
Jerome Charaoui
b39864ea7a tests: Add borg handler tests 2021-01-06 22:36:20 -05:00
Jerome Charaoui
98209b5539 tests: Add duplicity handler tests 2021-01-06 22:36:20 -05:00
Jerome Charaoui
9cb83cee39 tests: Stop mysql and postgresql after tests
This is done to avoid hitting an OOM when the whole testsuite is run.
2021-01-06 22:36:20 -05:00
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
d747d0c8f4 tests: One more work around changes in testing box 2021-01-06 22:36:20 -05:00
Jerome Charaoui
df18da5dd9 tests: Add more backup programs to remote image 2021-01-06 22:36:20 -05:00
Jerome Charaoui
48af920d95 tests: Work around changes in Debian testing box 2021-01-06 22:36:20 -05:00
Jerome Charaoui
9dfc8ad3f5 tests: Target Debian testing instead of stable 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
b25e7f471b tests: Add a remote machine to test push backups
The default system 'local' hosts the backupninja code and local backups
are done in that system. The vagrant user account on the 'remote' system
is made accessible by the root user in the 'local' system so that it may
accept ssh connections needed by the different handlers.
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
0336c726f6 tests: Create/attach "real" disks for sys handler 2021-01-06 22:36:20 -05:00