summary refs log tree commit diff
path: root/nixos/tests
diff options
context:
space:
mode:
authorJaka Hudoklin <jakahudoklin@gmail.com>2014-12-01 16:40:42 +0100
committerJaka Hudoklin <jakahudoklin@gmail.com>2014-12-01 16:42:40 +0100
commit3424ded286db756b62de7e579369bbb9d1ddac84 (patch)
treebb70e36f87b2332fb07cb518a0b2e30663d642e0 /nixos/tests
parentb90b899b0cc0d88aa92cf751af801604e457c2d1 (diff)
downloadnixlib-3424ded286db756b62de7e579369bbb9d1ddac84.tar
nixlib-3424ded286db756b62de7e579369bbb9d1ddac84.tar.gz
nixlib-3424ded286db756b62de7e579369bbb9d1ddac84.tar.bz2
nixlib-3424ded286db756b62de7e579369bbb9d1ddac84.tar.lz
nixlib-3424ded286db756b62de7e579369bbb9d1ddac84.tar.xz
nixlib-3424ded286db756b62de7e579369bbb9d1ddac84.tar.zst
nixlib-3424ded286db756b62de7e579369bbb9d1ddac84.zip
nixos: add peerflix module
Diffstat (limited to 'nixos/tests')
-rw-r--r--nixos/tests/peerflix.nix21
1 files changed, 21 insertions, 0 deletions
diff --git a/nixos/tests/peerflix.nix b/nixos/tests/peerflix.nix
new file mode 100644
index 000000000000..739936a10b23
--- /dev/null
+++ b/nixos/tests/peerflix.nix
@@ -0,0 +1,21 @@
+# This test runs peerflix and checks if peerflix starts
+
+import ./make-test.nix {
+  name = "peerflix";
+
+  nodes = {
+    peerflix =
+      { config, pkgs, ... }:
+        {
+          services.peerflix.enable = true;
+        };
+    };
+
+  testScript = ''
+    startAll;
+
+    $peerflix->waitForUnit("peerflix.service");
+    $peerflix->waitUntilSucceeds("curl localhost:9000");
+  '';
+
+}