diff options
author | Taeer Bar-Yam <taeer@bar-yam.me> | 2022-02-16 16:50:22 -0500 |
---|---|---|
committer | Taeer Bar-Yam <taeer@bar-yam.me> | 2022-02-23 10:41:27 -0500 |
commit | 4d38b6460f564bd69586fe5c1bdead99310f31cd (patch) | |
tree | ffe17a33fcbe3e1fa5178e095b6da4586036c8c7 /nixos/tests | |
parent | 75fe105a3d080bc91db9f79d80c56d24e6631592 (diff) | |
download | nixlib-4d38b6460f564bd69586fe5c1bdead99310f31cd.tar nixlib-4d38b6460f564bd69586fe5c1bdead99310f31cd.tar.gz nixlib-4d38b6460f564bd69586fe5c1bdead99310f31cd.tar.bz2 nixlib-4d38b6460f564bd69586fe5c1bdead99310f31cd.tar.lz nixlib-4d38b6460f564bd69586fe5c1bdead99310f31cd.tar.xz nixlib-4d38b6460f564bd69586fe5c1bdead99310f31cd.tar.zst nixlib-4d38b6460f564bd69586fe5c1bdead99310f31cd.zip |
zammad: reformat
Diffstat (limited to 'nixos/tests')
-rw-r--r-- | nixos/tests/zammad.nix | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/nixos/tests/zammad.nix b/nixos/tests/zammad.nix index 5849e5bf2163..4da503195623 100644 --- a/nixos/tests/zammad.nix +++ b/nixos/tests/zammad.nix @@ -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>'" + ) + ''; + } ) |