diff options
author | Florian Klink <flokli@flokli.de> | 2022-10-07 11:40:33 +0200 |
---|---|---|
committer | Florian Klink <flokli@flokli.de> | 2022-10-07 14:19:56 +0200 |
commit | 1224368495429216cac2418225e0f46c6f8acbe4 (patch) | |
tree | 26248bf998a329dee138d17677896b060a845655 /nixos/tests/systemd.nix | |
parent | 4e385bec15402eab76edd1c6e40a2a0638faa31a (diff) |
nixosTests.nscd: init, move DynamicUser test into there
nixosTests.systemd is quite heavy, it requires a full graphical system, which is quite a big of a rebuild if the only thing you want to test is whether dynamic users work. This is now moved to an `nscd` test, which tests various NSS lookups, making extra sure that the nscd path is tested, not the fallback path (by hiding /etc/nsswitch.conf and /etc/hosts for getent). nixosTests.resolv is removed. It didn't check for reverse lookups, didn't catch nscd breaking halfway in between, and also had an ambiguous reverse lookup - 192.0.2.1 could either reverse lookup to host-ipv4.example.net, or host-dual.example.net.
Diffstat (limited to 'nixos/tests/systemd.nix')
-rw-r--r-- | nixos/tests/systemd.nix | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/nixos/tests/systemd.nix b/nixos/tests/systemd.nix index 3317823e03f76..3c36291b733d2 100644 --- a/nixos/tests/systemd.nix +++ b/nixos/tests/systemd.nix @@ -87,12 +87,6 @@ import ./make-test-python.nix ({ pkgs, ... }: { machine.succeed("test -e /home/alice/user_conf_read") machine.succeed("test -z $(ls -1 /var/log/journal)") - # Regression test for https://github.com/NixOS/nixpkgs/issues/50273 - with subtest("DynamicUser actually allocates a user"): - assert "iamatest" in machine.succeed( - "systemd-run --pty --property=Type=oneshot --property=DynamicUser=yes --property=User=iamatest whoami" - ) - with subtest("regression test for https://bugs.freedesktop.org/show_bug.cgi?id=77507"): retcode, output = machine.execute("systemctl status testservice1.service") assert retcode in [0, 3] # https://bugs.freedesktop.org/show_bug.cgi?id=77507 |