nixos/rss2email: port test to python

This commit is contained in:
Jan Hrnko 2019-11-06 16:12:26 +01:00
parent 71824d769c
commit 4ffdd43d2d
1 changed files with 8 additions and 8 deletions

View File

@ -1,4 +1,4 @@
import ./make-test.nix { import ./make-test-python.nix {
name = "opensmtpd"; name = "opensmtpd";
nodes = { nodes = {
@ -53,14 +53,14 @@ import ./make-test.nix {
}; };
testScript = '' testScript = ''
startAll; start_all()
$server->waitForUnit("network-online.target"); server.wait_for_unit("network-online.target")
$server->waitForUnit("opensmtpd"); server.wait_for_unit("opensmtpd")
$server->waitForUnit("dovecot2"); server.wait_for_unit("dovecot2")
$server->waitForUnit("nginx"); server.wait_for_unit("nginx")
$server->waitForUnit("rss2email"); server.wait_for_unit("rss2email")
$server->waitUntilSucceeds('check-mail-landed >&2'); server.wait_until_succeeds("check-mail-landed >&2")
''; '';
} }