git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #85125 from iblech/patch-iodine-test

iodine: improve test in view of #58806

commit57b862bb53d82a3637aa788c04c2ed9d0ee6f9e8 authorworldofpeace <worldofpeace@protonmail.ch> dateTue 14 Apr 2020, 08:03 (7 years ago) parent0471366f379e74
1 file changed+3−2
nixos/tests/iodine.nix+3−2
nixos/tests/iodine.nix+3−2
@@ -1,6 +1,7 @@
11import ./make-test-python.nix (
22 { pkgs, ... }: let
33 domain = "whatever.example.com";
4+ password = "false;foo;exit;withspecialcharacters";
45 in
56 {
67 name = "iodine";
@@ -21,7 +22,7 @@ import ./make-test-python.nix (
2122 services.iodine.server = {
2223 enable = true;
2324 ip = "10.53.53.1/24";
24− passwordFile = "${builtins.toFile "password" "foo"}";
25+ passwordFile = "${builtins.toFile "password" password}";
2526 inherit domain;
2627 };
2728
@@ -41,7 +42,7 @@ import ./make-test-python.nix (
4142 server = domain;
4243 };
4344 systemd.tmpfiles.rules = [
44− "f /root/pw 0666 root root - foo"
45+ "f /root/pw 0666 root root - ${password}"
4546 ];
4647 environment.systemPackages = [
4748 pkgs.nagiosPluginsOfficial