Jérôme Charaoui
52e4a2e304
improve robustness of sys tests
2023-02-12 13:00:22 -05:00
Jérôme Charaoui
ed55eaab73
install packages with explicit TMPDIR
...
For package installation, the runner $TMPDIR may not be big enough, eg
when rebuilding an initramfs it runs out of space, so use a new function
that sets it explicitly.
2023-02-12 13:00:21 -05:00
Jérôme Charaoui
8f381b6415
ensure noninteractive mode for debconf
2023-02-12 12:13:07 -05:00
Jérôme Charaoui
f41ff295cc
borg: don't hardcode ssh port default (DEBBUG-993951)
...
Adding the port parameter to the borg handler with a default value of 22
is causing issues for users who had been using the standard ssh config
file to set the remote port, since the -p cli argument overrides the
configuration. This removes the default port number and only uses it in
the connection string if defined.
2023-02-12 00:33:57 -05:00
Jerome Charaoui
bb609a43f7
tests: trigger partition table refresh
2021-01-25 08:51:59 -05:00
Jerome Charaoui
f6870a613e
tests: add tests for reporthost functionality
2021-01-24 14:17:27 -05:00
Jerome Charaoui
e1748c9800
tests: add test for admingroup config parameter
2021-01-24 11:51:16 -05:00
Jerome Charaoui
ede337dbcd
add reportwrap config parameter
...
set to wrap at 1000 columns by default to avoid MTA rejection allowed by
SMTP RFC2821
2021-01-23 22:50:15 -05:00
Jerome Charaoui
76b457cc4d
raise error if mail isn't found in $PATH and reportemail = yes
2021-01-23 22:00:42 -05:00
Jerome Charaoui
6937842e68
backup halt should trigger email report if enabled
2021-01-23 18:21:40 -05:00
Jerome Charaoui
f8755d6320
tests: fix exit status check
2021-01-23 14:40:29 -05:00
Jerome Charaoui
5a6ea5e3a2
Merge branch 'restic' into 'master'
...
Add new restic handler
See merge request liberate/backupninja!48
2021-01-12 16:34:14 -08:00
Jerome Charaoui
61d80510f6
restic: add some tests
2021-01-12 19:30:35 -05:00
Jerome Charaoui
407faf1a52
tests: adjust tests for new exit codes
2021-01-10 15:24:05 -05:00
Jerome Charaoui
c18404eb3a
borg: add new setting sshoptions, fixes #11310
2021-01-09 17:21:29 -05:00
Jerome Charaoui
69df0f16f6
borg: implement ignore_missing option
2021-01-08 20:31:31 -05:00
Jerome Charaoui
2f78a8d720
tests: improve cli options tests
...
Use test values with whitespace to catch quoting issues.
2021-01-06 22:41:25 -05:00
Jerome Charaoui
142274d950
tests: use parentdir config in sys handler
2021-01-06 22:36:20 -05:00
Jerome Charaoui
4287819043
tests: adjust sh labels and runaction call
2021-01-06 22:36:20 -05:00
Jerome Charaoui
49b27f154f
tests: fix typos
2021-01-06 22:36:20 -05:00
Jerome Charaoui
1107fb666b
tests: fix duplicity archive directory path
2021-01-06 22:36:20 -05:00
Jerome Charaoui
6b517acacc
tests: don't fail if remote /var/backups unmounted
2021-01-06 22:36:20 -05:00
Jerome Charaoui
5ecd87566e
tests: improve rsync handler tests
2021-01-06 22:36:20 -05:00
Jerome Charaoui
ad38ad49d1
tests: only unmount backupdir if necessary
2021-01-06 22:36:20 -05:00
Jerome Charaoui
10ed1b575f
tests: overhaul rdiff handler tests
2021-01-06 22:36:20 -05:00
Jerome Charaoui
5bcaea00b8
tests: use globals and common functions in tar test
2021-01-06 22:36:20 -05:00
Jerome Charaoui
3733864bfb
tests: make filename optional in set/delconfig
2021-01-06 22:36:20 -05:00
Jerome Charaoui
bf612c9390
tests: implement runaction in other tests
2021-01-06 22:36:20 -05:00
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
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
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
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