diff options
author | Christian Kögler <ck3d@gmx.de> | 2022-08-16 12:07:48 +0200 |
---|---|---|
committer | Christian Kögler <ck3d@gmx.de> | 2022-08-16 21:22:49 +0200 |
commit | 7721c9db08e55e2a9dcb67be4974286ec23a8b70 (patch) | |
tree | 396ad4455362030e56b74dde95a75013c500bf2d /nixos | |
parent | 608f5c6c7a33ff1797d82b74153d5248cee463f4 (diff) |
nixos/test: Remove workaround for broken nscd
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/tests/systemd-machinectl.nix | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/nixos/tests/systemd-machinectl.nix b/nixos/tests/systemd-machinectl.nix index 57ef95c2725fe..5c7926e24abf2 100644 --- a/nixos/tests/systemd-machinectl.nix +++ b/nixos/tests/systemd-machinectl.nix @@ -62,16 +62,11 @@ import ./make-test-python.nix ( # Test nss_mymachines without nscd machine.succeed('LD_LIBRARY_PATH="/run/current-system/sw/lib" getent -s hosts:mymachines hosts ${containerName}'); - # Test failing nss_mymachines via nscd - # nscd has not enough rights to connect to systemd bus - # via sd_bus_open_system() in - # https://github.com/systemd/systemd/blob/main/src/nss-mymachines/nss-mymachines.c#L287 - machine.fail("getent hosts ${containerName}"); + # Test nss_mymachines via nscd + machine.succeed("getent hosts ${containerName}"); # Test systemd-nspawn network configuration - machine.succeed("systemctl stop nscd"); - machine.succeed('LD_LIBRARY_PATH="/run/current-system/sw/lib" ping -n -c 1 ${containerName}'); - machine.succeed("systemctl start nscd"); + machine.succeed("ping -n -c 1 ${containerName}"); # Test systemd-nspawn uses a user namespace machine.succeed("test $(machinectl status ${containerName} | grep 'UID Shift: ' | wc -l) = 1") |