avoid testing nix store path hash which makes tests brittle
This commit is contained in:
parent
5f4ea7acfb
commit
13a90f1ad4
1 changed files with 4 additions and 3 deletions
|
@ -28,8 +28,11 @@ let
|
|||
m
|
||||
];
|
||||
}).config;
|
||||
|
||||
systemdRedacted = lib.filterAttrsRecursive (n: v: n != "preStart") cfg.systemd;
|
||||
in {
|
||||
inherit (cfg) systemd services users;
|
||||
inherit (cfg) services users;
|
||||
systemd = systemdRedacted;
|
||||
shb = { inherit (cfg.shb) backup nginx; };
|
||||
};
|
||||
in
|
||||
|
@ -54,7 +57,6 @@ in
|
|||
testRadarr = {
|
||||
expected = {
|
||||
systemd.services.radarr = {
|
||||
preStart = "ln -fs /nix/store/z7gk6xfj51sr1n1bjj6lsadjrwjxzc5d--config.xml /var/lib/radarr/config.xml.template\nrm /var/lib/radarr/config.xml || :\nsed -e \"s|%APIKEY%|$(cat /run/radarr/apikey)|\" /var/lib/radarr/config.xml.template > /var/lib/radarr/config.xml\n";
|
||||
serviceConfig = {
|
||||
StateDirectoryMode = "0750";
|
||||
UMask = "0027";
|
||||
|
@ -122,7 +124,6 @@ in
|
|||
testRadarrWithBackup = {
|
||||
expected = {
|
||||
systemd.services.radarr = {
|
||||
preStart = "ln -fs /nix/store/z7gk6xfj51sr1n1bjj6lsadjrwjxzc5d--config.xml /var/lib/radarr/config.xml.template\nrm /var/lib/radarr/config.xml || :\nsed -e \"s|%APIKEY%|$(cat /run/radarr/apikey)|\" /var/lib/radarr/config.xml.template > /var/lib/radarr/config.xml\n";
|
||||
serviceConfig = {
|
||||
StateDirectoryMode = "0750";
|
||||
UMask = "0027";
|
||||
|
|
Loading…
Reference in a new issue