1
0
Fork 0
mirror of https://github.com/Mic92/sops-nix.git synced 2024-12-14 11:57:52 +00:00

fix nixos-test

We no longer require membership in keys group.
This commit is contained in:
Jörg Thalheim 2021-07-03 08:20:25 +02:00
parent 73e19bf11b
commit 34a650555e
No known key found for this signature in database
GPG key ID: B3F5D81B0C6967C4

View file

@ -65,9 +65,7 @@
value = server.succeed("cat /run/secrets/test_key")
assertEqual("test_value", value)
server.succeed("runuser -u someuser -G keys -- cat /run/secrets/test_key >&2")
# should have no permission to read the file
server.fail("runuser -u someuser -- cat /run/secrets/test_key >&2")
server.succeed("runuser -u someuser -- cat /run/secrets/test_key >&2")
target = server.succeed("readlink -f /run/existing-file")
assertEqual("/run/secrets.d/1/existing-file", target.strip())