diff options
author | Taeer Bar-Yam <taeer@bar-yam.me> | 2022-02-15 23:33:10 -0500 |
---|---|---|
committer | Taeer Bar-Yam <taeer@bar-yam.me> | 2022-02-23 10:41:27 -0500 |
commit | aac7f85483b7ab70adf62f6217bedb5a0b41d9d0 (patch) | |
tree | 7cb65028617d9f8a51affa7910986d3b9dc5895b /nixos/tests/zammad.nix | |
parent | e1009112b609e0a59fa6e66c87e35e640a10fde5 (diff) |
zammad: fix module databases
Diffstat (limited to 'nixos/tests/zammad.nix')
-rw-r--r-- | nixos/tests/zammad.nix | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/nixos/tests/zammad.nix b/nixos/tests/zammad.nix new file mode 100644 index 0000000000000..0125aa3a8da96 --- /dev/null +++ b/nixos/tests/zammad.nix @@ -0,0 +1,26 @@ +import ../make-test-python.nix ( + { lib, ... }: + + { + name = "zammad"; + + meta.maintainers = with lib.maintainers; [ garbas taeer ]; + + nodes.machine = { + services.zammad.enable = true; + }; + + testScript = '' + start_all() + machine.wait_for_unit("postgresql.service") + machine.wait_for_unit("zammad-web.service") + machine.wait_for_unit("zammad-websocket.service") + machine.wait_for_unit("zammad-scheduler.service") + # without the grep the command does not produce valid utf-8 for some reason + with subtest("welcome screen loads"): + machine.succeed( + "curl -sSfL http://localhost:3000/ | grep '<title>Zammad Helpdesk</title>'" + ) + ''; + } +) |