nixosTests.peerflix: Port tests to python

This commit is contained in:
Christian Kampka
2019-12-15 20:08:01 +01:00
parent a20683acbe
commit d58814ac5a
+4 -4
View File
@@ -1,6 +1,6 @@
# This test runs peerflix and checks if peerflix starts # This test runs peerflix and checks if peerflix starts
import ./make-test.nix ({ pkgs, ...} : { import ./make-test-python.nix ({ pkgs, ...} : {
name = "peerflix"; name = "peerflix";
meta = with pkgs.stdenv.lib.maintainers; { meta = with pkgs.stdenv.lib.maintainers; {
maintainers = [ offline ]; maintainers = [ offline ];
@@ -15,9 +15,9 @@ import ./make-test.nix ({ pkgs, ...} : {
}; };
testScript = '' testScript = ''
startAll; start_all()
$peerflix->waitForUnit("peerflix.service"); peerflix.wait_for_unit("peerflix.service")
$peerflix->waitUntilSucceeds("curl localhost:9000"); peerflix.wait_until_succeeds("curl localhost:9000")
''; '';
}) })