parent
75fe105a3d
commit
4d38b6460f
@ -1,29 +1,29 @@ |
||||
import ./make-test-python.nix ( |
||||
{ lib, pkgs, ... }: |
||||
|
||||
{ |
||||
name = "zammad"; |
||||
{ |
||||
name = "zammad"; |
||||
|
||||
meta.maintainers = with lib.maintainers; [ garbas taeer ]; |
||||
meta.maintainers = with lib.maintainers; [ garbas taeer ]; |
||||
|
||||
nodes.machine = { |
||||
services.zammad.enable = true; |
||||
services.zammad.secretKeyBaseFile = pkgs.writeText "secret" '' |
||||
52882ef142066e09ab99ce816ba72522e789505caba224a52d750ec7dc872c2c371b2fd19f16b25dfbdd435a4dd46cb3df9f82eb63fafad715056bdfe25740d6 |
||||
''; |
||||
}; |
||||
|
||||
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>'" |
||||
) |
||||
nodes.machine = { |
||||
services.zammad.enable = true; |
||||
services.zammad.secretKeyBaseFile = pkgs.writeText "secret" '' |
||||
52882ef142066e09ab99ce816ba72522e789505caba224a52d750ec7dc872c2c371b2fd19f16b25dfbdd435a4dd46cb3df9f82eb63fafad715056bdfe25740d6 |
||||
''; |
||||
} |
||||
}; |
||||
|
||||
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>'" |
||||
) |
||||
''; |
||||
} |
||||
) |
||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Loading…
Reference in new issue