nixpkgs/nixos/tests/zammad.nix

27 lines
764 B
Nix
Raw Normal View History

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