Merge pull request #85125 from iblech/patch-iodine-test
iodine: improve test in view of #58806
This commit is contained in:
commit
57b862bb53
@ -1,6 +1,7 @@
|
|||||||
import ./make-test-python.nix (
|
import ./make-test-python.nix (
|
||||||
{ pkgs, ... }: let
|
{ pkgs, ... }: let
|
||||||
domain = "whatever.example.com";
|
domain = "whatever.example.com";
|
||||||
|
password = "false;foo;exit;withspecialcharacters";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
name = "iodine";
|
name = "iodine";
|
||||||
@ -21,7 +22,7 @@ import ./make-test-python.nix (
|
|||||||
services.iodine.server = {
|
services.iodine.server = {
|
||||||
enable = true;
|
enable = true;
|
||||||
ip = "10.53.53.1/24";
|
ip = "10.53.53.1/24";
|
||||||
passwordFile = "${builtins.toFile "password" "foo"}";
|
passwordFile = "${builtins.toFile "password" password}";
|
||||||
inherit domain;
|
inherit domain;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -41,7 +42,7 @@ import ./make-test-python.nix (
|
|||||||
server = domain;
|
server = domain;
|
||||||
};
|
};
|
||||||
systemd.tmpfiles.rules = [
|
systemd.tmpfiles.rules = [
|
||||||
"f /root/pw 0666 root root - foo"
|
"f /root/pw 0666 root root - ${password}"
|
||||||
];
|
];
|
||||||
environment.systemPackages = [
|
environment.systemPackages = [
|
||||||
pkgs.nagiosPluginsOfficial
|
pkgs.nagiosPluginsOfficial
|
||||||
|
Loading…
Reference in New Issue
Block a user