server: New test, ensuring the jail has a version file

This commit is contained in:
Ludovic Poujol 2024-07-29 17:59:38 +02:00 committed by Ludovic Poujol
parent d606432fb6
commit e16feaeb17

View file

@ -25,6 +25,11 @@ load test_helper
assert_success
}
@test "New jail should have a version file" {
run test -f "/backup/jails/${JAILNAME}/version"
assert_success
}
@test "A jail should be able to be started" {
/usr/lib/bkctld/bkctld-start "${JAILNAME}"
pid=$(systemctl show --value --property MainPID systemd-nspawn@${JAILNAME})