about summary refs log tree commit diff
path: root/nixos/tests/guacamole-server.nix
diff options
context:
space:
mode:
authorPol Dellaiera <pol.dellaiera@protonmail.com>2023-06-16 19:12:42 +0200
committerPol Dellaiera <pol.dellaiera@protonmail.com>2023-06-21 22:11:44 +0200
commit6cc1b175d36720b3302c49963d3f5cffe42daf05 (patch)
tree8148d121f2bf6ab3ded695bbb892e40646960c89 /nixos/tests/guacamole-server.nix
parenta9508880249bb50b9fafe188e67e3b870a2000e7 (diff)
nixos/guacamole-server: init
Diffstat (limited to 'nixos/tests/guacamole-server.nix')
-rw-r--r--nixos/tests/guacamole-server.nix21
1 files changed, 21 insertions, 0 deletions
diff --git a/nixos/tests/guacamole-server.nix b/nixos/tests/guacamole-server.nix
new file mode 100644
index 0000000000000..48194fddfb229
--- /dev/null
+++ b/nixos/tests/guacamole-server.nix
@@ -0,0 +1,21 @@
+import ./make-test-python.nix ({pkgs, lib, ...}:
+{
+  name = "guacamole-server";
+
+  nodes = {
+    machine = {pkgs, ...}: {
+      services.guacamole-server = {
+        enable = true;
+        host = "0.0.0.0";
+      };
+    };
+  };
+
+  testScript = ''
+    start_all()
+    machine.wait_for_unit("guacamole-server.service")
+    machine.wait_for_open_port(4822)
+  '';
+
+  meta.maintainers = [ lib.maintainers.drupol ];
+})