summaryrefslogtreecommitdiffstats
path: root/nixos/tests/dokuwiki.nix
diff options
context:
space:
mode:
authorJan Hrnko <jan.hrnko@satoshilabs.com>2019-12-25 23:04:55 +0100
committerJan Hrnko <jan.hrnko@satoshilabs.com>2020-01-24 13:27:10 +0100
commit8bab2dec10d8a0ef05145ab2edd37ba3ed7e9159 (patch)
treeb06488c7753bdeb9dacda42e336f8454679e8fec /nixos/tests/dokuwiki.nix
parentd19a8f133b189c0443ea5773fd9a7e5feebce64a (diff)
nixos/dokuwiki: init module at 2018-04-22b
Diffstat (limited to 'nixos/tests/dokuwiki.nix')
-rw-r--r--nixos/tests/dokuwiki.nix29
1 files changed, 29 insertions, 0 deletions
diff --git a/nixos/tests/dokuwiki.nix b/nixos/tests/dokuwiki.nix
new file mode 100644
index 000000000000..38bde10f47ed
--- /dev/null
+++ b/nixos/tests/dokuwiki.nix
@@ -0,0 +1,29 @@
+import ./make-test-python.nix ({ lib, ... }:
+
+with lib;
+
+{
+ name = "dokuwiki";
+ meta.maintainers = with maintainers; [ maintainers."1000101" ];
+
+ nodes.machine =
+ { pkgs, ... }:
+ { services.dokuwiki = {
+ enable = true;
+ acl = " ";
+ superUser = null;
+ nginx = {
+ forceSSL = false;
+ enableACME = false;
+ };
+ };
+ };
+
+ testScript = ''
+ machine.start()
+ machine.wait_for_unit("phpfpm-dokuwiki.service")
+ machine.wait_for_unit("nginx.service")
+ machine.wait_for_open_port(80)
+ machine.succeed("curl -sSfL http://localhost/ | grep 'DokuWiki'")
+ '';
+})