nixpkgs/nixos/tests/zammad.nix

27 lines
764 B
Nix
Raw Normal View History

2022-02-08 15:48:11 +01:00
import ../make-test-python.nix (
2022-02-02 12:23:43 +01:00
{ lib, ... }:
{
name = "zammad";
2022-02-16 05:33:10 +01:00
meta.maintainers = with lib.maintainers; [ garbas taeer ];
2022-02-02 12:23:43 +01:00
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>'"
)
'';
}
)