about summary refs log tree commit diff
path: root/nixos/tests
diff options
context:
space:
mode:
authorTaeer Bar-Yam <taeer@bar-yam.me>2022-02-16 00:49:51 -0500
committerTaeer Bar-Yam <taeer@bar-yam.me>2022-02-23 10:41:27 -0500
commit75fe105a3d080bc91db9f79d80c56d24e6631592 (patch)
tree4f15e716b3b02cba0c1a89d7d935a8e6f2bc40e7 /nixos/tests
parentaac7f85483b7ab70adf62f6217bedb5a0b41d9d0 (diff)
Zammad: more fixes
Diffstat (limited to 'nixos/tests')
-rw-r--r--nixos/tests/all-tests.nix2
-rw-r--r--nixos/tests/zammad.nix7
2 files changed, 6 insertions, 3 deletions
diff --git a/nixos/tests/all-tests.nix b/nixos/tests/all-tests.nix
index d348c2b0e91f0..fd5cabe2153b5 100644
--- a/nixos/tests/all-tests.nix
+++ b/nixos/tests/all-tests.nix
@@ -571,7 +571,7 @@ in
   xxh = handleTest ./xxh.nix {};
   yabar = handleTest ./yabar.nix {};
   yggdrasil = handleTest ./yggdrasil.nix {};
-  zammad = handleTest ./zammad {};
+  zammad = handleTest ./zammad.nix {};
   zfs = handleTest ./zfs.nix {};
   zigbee2mqtt = handleTest ./zigbee2mqtt.nix {};
   zoneminder = handleTest ./zoneminder.nix {};
diff --git a/nixos/tests/zammad.nix b/nixos/tests/zammad.nix
index 0125aa3a8da96..5849e5bf2163b 100644
--- a/nixos/tests/zammad.nix
+++ b/nixos/tests/zammad.nix
@@ -1,5 +1,5 @@
-import ../make-test-python.nix (
-  { lib, ... }:
+import ./make-test-python.nix (
+  { lib, pkgs, ... }:
 
     {
       name = "zammad";
@@ -8,6 +8,9 @@ import ../make-test-python.nix (
 
       nodes.machine = {
         services.zammad.enable = true;
+        services.zammad.secretKeyBaseFile = pkgs.writeText "secret" ''
+          52882ef142066e09ab99ce816ba72522e789505caba224a52d750ec7dc872c2c371b2fd19f16b25dfbdd435a4dd46cb3df9f82eb63fafad715056bdfe25740d6
+        '';
       };
 
       testScript = ''