machine.fail(check_count("SELECT * FROM sth;", 4))
machine.succeed(check_count("SELECT xpath('/test/text()', doc) FROM xmltest;", 1))
104
+
with subtest("killing postgres process should trigger an automatic restart"):
105
+
machine.succeed("systemctl kill -s KILL postgresql")
107
+
machine.wait_until_succeeds("systemctl is-active postgresql.service")
108
+
machine.wait_until_succeeds("systemctl is-active postgresql.target")
with subtest("Backup service works"):
"systemctl start ${backupService}.service",