about summary refs log tree commit diff
path: root/nixos/tests/mediawiki.nix
diff options
context:
space:
mode:
authorJörg Thalheim <joerg@thalheim.io>2023-09-18 00:32:51 +0200
committerJörg Thalheim <Mic92@users.noreply.github.com>2023-10-04 22:21:55 +0100
commit07c70a41ab26b1f83596585481a737c87a5ea515 (patch)
treed82be23bb7c9c6e2c7ad9c434f12448d44be99d7 /nixos/tests/mediawiki.nix
parentbc16dfe4b34c9bbc95cee03c656c8871acc4e347 (diff)
nixos/mediawiki: add nginx option
mediawiki: configure uploadsDir
Diffstat (limited to 'nixos/tests/mediawiki.nix')
-rw-r--r--nixos/tests/mediawiki.nix16
1 files changed, 16 insertions, 0 deletions
diff --git a/nixos/tests/mediawiki.nix b/nixos/tests/mediawiki.nix
index 52122755ad947..e30cc55ff6160 100644
--- a/nixos/tests/mediawiki.nix
+++ b/nixos/tests/mediawiki.nix
@@ -74,4 +74,20 @@ in
       assert "MediaWiki has been installed" in page, f"no 'MediaWiki has been installed' in:\n{page}"
     '';
   };
+
+  nginx = testLib.makeTest {
+    name = "mediawiki-nginx";
+    nodes.machine = {
+      services.mediawiki.webserver = "nginx";
+    };
+    testScript = ''
+      start_all()
+
+      machine.wait_for_unit("phpfpm-mediawiki.service")
+      machine.wait_for_unit("nginx.service")
+
+      page = machine.succeed("curl -fL http://localhost/")
+      assert "MediaWiki has been installed" in page
+    '';
+  };
 }