about summary refs log tree commit diff
path: root/nixos/tests/c2fmzq.nix
diff options
context:
space:
mode:
authorGutyina Gergő <gutyina.gergo.2@gmail.com>2024-01-07 23:40:40 +0100
committerGutyina Gergő <gutyina.gergo.2@gmail.com>2024-01-14 00:19:19 +0100
commit7247d16af6a32d5bdc176d0be4858be2ad463d1f (patch)
tree768b1e9c262feecc7c168c46c8c15fe06b31eb89 /nixos/tests/c2fmzq.nix
parentc13348cde75b1aff57d6fd32277a74296a115320 (diff)
nixos/c2fmzq-server: allow setting bool settings to false
Diffstat (limited to 'nixos/tests/c2fmzq.nix')
-rw-r--r--nixos/tests/c2fmzq.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/nixos/tests/c2fmzq.nix b/nixos/tests/c2fmzq.nix
index 59addbde24ed5..0dd89f6881dd9 100644
--- a/nixos/tests/c2fmzq.nix
+++ b/nixos/tests/c2fmzq.nix
@@ -12,6 +12,7 @@ import ./make-test-python.nix ({ pkgs, lib, ... }: {
         # make sure multiple freeform options evaluate
         allow-new-accounts = true;
         auto-approve-new-accounts = true;
+        licenses = false;
       };
     };
     environment = {
@@ -74,5 +75,8 @@ import ./make-test-python.nix ({ pkgs, lib, ... }: {
     with subtest("Test that PWA is served"):
         msg = machine.succeed("curl -sSfL http://localhost:8080")
         assert "c2FmZQ" in msg, f"Could not find 'c2FmZQ' in the output:\n{msg}"
+
+    with subtest("A setting with false value is properly passed"):
+        machine.succeed("systemctl show -p ExecStart --value c2fmzq-server.service | grep -F -- '--licenses=false'");
   '';
 })