mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 06:14:57 +01:00
28 lines
816 B
Nix
28 lines
816 B
Nix
|
import ./make-test-python.nix (
|
||
|
{ lib, ... }:
|
||
|
|
||
|
{
|
||
|
name = "zammad";
|
||
|
|
||
|
meta.maintainers = with lib.maintainers; [ garbas ];
|
||
|
|
||
|
nodes.machine = {
|
||
|
services.zammad.enable = true;
|
||
|
services.zammad.secretsFile = "${./test_secrets}";
|
||
|
};
|
||
|
|
||
|
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>'"
|
||
|
)
|
||
|
'';
|
||
|
}
|
||
|
)
|