tests: Add regression test for daemonAuthorizationSettings
Regression test for extra-trusted-users being ignored https://git.lix.systems/lix-project/lix/issues/1183 Change-Id: I764a6add0215b535fc4abd21b41d1c23b21fc06b
This commit is contained in:
committed by
Samuel Dionne-Riel (work)
parent
fc6772a7dd
commit
7868f52c2a
@@ -56,3 +56,10 @@ exp_features=$(nix config show | grep '^experimental-features' | cut -d '=' -f 2
|
||||
val=$(nix config show | grep '^warn-dirty' | cut -d '=' -f 2 | xargs)
|
||||
val2=$(nix config show warn-dirty)
|
||||
[[ $val == $val2 ]]
|
||||
|
||||
# Regression test for `[extra-]trusted-users` (daemonAuthorizationSettings) being ignored.
|
||||
# https://git.lix.systems/lix-project/lix/issues/1183
|
||||
val="$(NIX_CONFIG=$'trusted-users = as-configured' nix config show trusted-users)"
|
||||
[[ "$val" == "as-configured" ]]
|
||||
val="$(NIX_CONFIG=$'trusted-users = as-configured\nextra-trusted-users = extra' nix config show trusted-users)"
|
||||
[[ "$val" == "as-configured extra" ]]
|
||||
|
||||
Reference in New Issue
Block a user