diff options
author | aszlig <aszlig@redmoonstudios.org> | 2017-04-19 07:03:08 +0200 |
---|---|---|
committer | aszlig <aszlig@redmoonstudios.org> | 2017-04-19 07:03:08 +0200 |
commit | 21a7eed0eb6bfc4016bbc8840bbfbf4b5fa063f4 (patch) | |
tree | c04b623802543af7878dd145a6b952cf97f07e46 /modules | |
parent | 028a94c628876c97d048ce5235b89b515f747422 (diff) |
core/tests: Update upstream NixOS tests
New tests as of NixOS/nixpkgs@b0179351036a870da8c1a89c991a359a73aab0e2: * containers-restart_networking * nginx * pgjwt * postgresql (now with subtests per package) * sddm (now with subtest "autoLogin" and "default") * wordpress The following tests were renamed: * kde5 -> plasma5 Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Diffstat (limited to 'modules')
-rw-r--r-- | modules/core/tests.nix | 35 |
1 files changed, 30 insertions, 5 deletions
diff --git a/modules/core/tests.nix b/modules/core/tests.nix index a562c438..7b231a5c 100644 --- a/modules/core/tests.nix +++ b/modules/core/tests.nix @@ -69,6 +69,10 @@ let path = ["nixos" "containers-physical_interfaces"]; } { check = config.boot.enableContainers + && anyAttrs (i: i.privateNetwork) config.containers; + path = ["nixos" "containers-restart_networking"]; + } + { check = config.boot.enableContainers && anyAttrs (i: i.tmpfs != []) config.containers; path = ["nixos" "containers-tmpfs"]; } @@ -170,9 +174,6 @@ let { check = config.services.jenkins.enable; path = ["nixos" "jenkins"]; } - { check = config.services.xserver.desktopManager.plasma5.enable; - path = ["nixos" "kde5"]; - } { check = config.i18n.consoleKeyMap == "azerty/fr" || config.services.xserver.layout == "fr"; path = ["nixos" "keymap" "azerty"]; @@ -292,6 +293,9 @@ let ["nixos" "nfs4"] ]; } + { check = config.services.nginx.enable; + path = ["nixos" "nginx"]; + } { check = config.services.nsd.enable; path = ["nixos" "nsd"]; } @@ -304,8 +308,19 @@ let { check = config.services.peerflix.enable; path = ["nixos" "peerflix"]; } + { check = config.services.postgresql.enable + && elem pkgs.pgjwt config.services.postgresql.extraPlugins; + path = ["nixos" "pgjwt"]; + } + { check = config.services.xserver.desktopManager.plasma5.enable; + path = ["nixos" "plasma5"]; + } { check = config.services.postgresql.enable; - path = ["nixos" "postgresql"]; + path = let + filterPg = name: drv: hasPrefix "postgresql" name + && drv == config.services.postgresql.package; + pgPackage = head (attrNames (filterAttrs filterPg pkgs)); + in ["nixos" "postgresql" pgPackage]; } { check = config.services.printing.enable; path = ["nixos" "printing"]; @@ -332,7 +347,10 @@ let path = ["nixos" "samba"]; } { check = config.services.xserver.displayManager.sddm.enable; - path = ["nixos" "sddm"]; + paths = [ + ["nixos" "sddm" "default"] + ["nixos" "sddm" "autoLogin"] + ]; } { check = true; path = ["nixos" "simple"]; @@ -362,6 +380,13 @@ let && config.virtualisation.virtualbox.headless; path = ["nixos" "virtualbox" "headless"]; } + { check = let + hasWPSubServiceType = any (y: y.serviceType == "wordpress"); + hasWPSubService = any (x: hasWPSubServiceType x.extraSubservices); + hasWordPress = config.services.httpd.virtualHosts; + in config.services.httpd.enable && hasWordPress; + path = ["nixos" "wordpress"]; + } { check = config.services.xserver.desktopManager.xfce.enable; path = ["nixos" "xfce"]; } |