about summary refs log tree commit diff
path: root/nixpkgs/nixos/tests/artalk.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/nixos/tests/artalk.nix')
-rw-r--r--nixpkgs/nixos/tests/artalk.nix28
1 files changed, 28 insertions, 0 deletions
diff --git a/nixpkgs/nixos/tests/artalk.nix b/nixpkgs/nixos/tests/artalk.nix
new file mode 100644
index 000000000000..1338e5cd380c
--- /dev/null
+++ b/nixpkgs/nixos/tests/artalk.nix
@@ -0,0 +1,28 @@
+import ./make-test-python.nix (
+  { lib, pkgs, ... }:
+  {
+
+    name = "artalk";
+
+    meta = {
+      maintainers = with lib.maintainers; [ moraxyc ];
+    };
+
+    nodes.machine =
+      { pkgs, ... }:
+      {
+        environment.systemPackages = [ pkgs.curl ];
+        services.artalk = {
+          enable = true;
+        };
+      };
+
+    testScript = ''
+      machine.wait_for_unit("artalk.service")
+
+      machine.wait_for_open_port(23366)
+
+      machine.succeed("curl --fail --max-time 10 http://127.0.0.1:23366/")
+    '';
+  }
+)