about summary refs log tree commit diff
path: root/nixos/tests
diff options
context:
space:
mode:
authorPeder Bergebakken Sundt <pbsds@hotmail.com>2024-01-31 17:11:38 +0100
committerGitHub <noreply@github.com>2024-01-31 17:11:38 +0100
commitd5d752af43287dc8cf8d316c6b580ab0754e760c (patch)
tree4d93518f78d9d17bab943d7d42d41b8289a1cea0 /nixos/tests
parentcdd4f2ac1b76a3944c7345cf2d2473ef1c2bd3b1 (diff)
parent5283fe407c9eb996df44a3bc13a06af836790e2e (diff)
downloadnixlib-d5d752af43287dc8cf8d316c6b580ab0754e760c.tar
nixlib-d5d752af43287dc8cf8d316c6b580ab0754e760c.tar.gz
nixlib-d5d752af43287dc8cf8d316c6b580ab0754e760c.tar.bz2
nixlib-d5d752af43287dc8cf8d316c6b580ab0754e760c.tar.lz
nixlib-d5d752af43287dc8cf8d316c6b580ab0754e760c.tar.xz
nixlib-d5d752af43287dc8cf8d316c6b580ab0754e760c.tar.zst
nixlib-d5d752af43287dc8cf8d316c6b580ab0754e760c.zip
Merge pull request #280821 from SuperSandro2000/pretalx
 pretalx: init 2023.1.3 
Diffstat (limited to 'nixos/tests')
-rw-r--r--nixos/tests/all-tests.nix1
-rw-r--r--nixos/tests/web-apps/pretalx.nix31
2 files changed, 32 insertions, 0 deletions
diff --git a/nixos/tests/all-tests.nix b/nixos/tests/all-tests.nix
index 0bff7bf0d705..fbb4573d8135 100644
--- a/nixos/tests/all-tests.nix
+++ b/nixos/tests/all-tests.nix
@@ -713,6 +713,7 @@ in {
   power-profiles-daemon = handleTest ./power-profiles-daemon.nix {};
   pppd = handleTest ./pppd.nix {};
   predictable-interface-names = handleTest ./predictable-interface-names.nix {};
+  pretalx = runTest ./web-apps/pretalx.nix;
   printing-socket = handleTest ./printing.nix { socket = true; };
   printing-service = handleTest ./printing.nix { socket = false; };
   privoxy = handleTest ./privoxy.nix {};
diff --git a/nixos/tests/web-apps/pretalx.nix b/nixos/tests/web-apps/pretalx.nix
new file mode 100644
index 000000000000..a226639b076b
--- /dev/null
+++ b/nixos/tests/web-apps/pretalx.nix
@@ -0,0 +1,31 @@
+{ lib, ... }:
+
+{
+  name = "pretalx";
+  meta.maintainers = lib.teams.c3d2.members;
+
+  nodes = {
+    pretalx = {
+      networking.extraHosts = ''
+        127.0.0.1 talks.local
+      '';
+
+      services.pretalx = {
+        enable = true;
+        nginx.domain = "talks.local";
+        settings = {
+          site.url = "http://talks.local";
+        };
+      };
+    };
+  };
+
+  testScript = ''
+    start_all()
+
+    pretalx.wait_for_unit("pretalx-web.service")
+    pretalx.wait_for_unit("pretalx-worker.service")
+
+    pretalx.wait_until_succeeds("curl -q --fail http://talks.local/orga/")
+  '';
+}