diff options
Diffstat (limited to 'nixos/tests/nscd.nix')
-rw-r--r-- | nixos/tests/nscd.nix | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/nixos/tests/nscd.nix b/nixos/tests/nscd.nix index 1922812ef8c8..356c6d2e2a54 100644 --- a/nixos/tests/nscd.nix +++ b/nixos/tests/nscd.nix @@ -40,12 +40,13 @@ in }; specialisation = { + withGlibcNscd.configuration = { ... }: { + services.nscd.enableNsncd = false; + }; withUnscd.configuration = { ... }: { + services.nscd.enableNsncd = false; services.nscd.package = pkgs.unscd; }; - withNsncd.configuration = { ... }: { - services.nscd.enableNsncd = true; - }; }; }; @@ -118,6 +119,14 @@ in test_host_lookups() test_nss_myhostname() + with subtest("glibc-nscd"): + machine.succeed('${specialisations}/withGlibcNscd/bin/switch-to-configuration test') + machine.wait_for_unit("default.target") + + test_dynamic_user() + test_host_lookups() + test_nss_myhostname() + with subtest("unscd"): machine.succeed('${specialisations}/withUnscd/bin/switch-to-configuration test') machine.wait_for_unit("default.target") @@ -129,13 +138,5 @@ in # known to fail, unscd doesn't load external NSS modules # test_nss_myhostname() - - with subtest("nsncd"): - machine.succeed('${specialisations}/withNsncd/bin/switch-to-configuration test') - machine.wait_for_unit("default.target") - - test_dynamic_user() - test_host_lookups() - test_nss_myhostname() ''; }) |