mirror of
https://github.com/systemd/systemd.git
synced 2026-07-26 03:06:21 +00:00
TEST-54-CREDS: add test case for #40108
This commit is contained in:
@@ -554,6 +554,9 @@ run0 -u testuser --pipe mkdir -p /home/testuser/.config/credstore.encrypted
|
||||
run0 -u testuser --pipe systemd-creds encrypt --user --name=brummbaer - /home/testuser/.config/credstore.encrypted/brummbaer < /tmp/brummbaer.data
|
||||
run0 -u testuser --pipe systemd-run --user --pipe -p ImportCredential=brummbaer systemd-creds cat brummbaer | cmp /tmp/brummbaer.data
|
||||
|
||||
# https://github.com/systemd/systemd/pull/40108
|
||||
run0 -u testuser --pipe systemd-run --user --wait -p ImportCredential=brummbaer -p ExecStartPre='ls -l $CREDENTIALS_DIRECTORY' bash -c 'systemd-creds cat brummbaer | cmp /tmp/brummbaer.data'
|
||||
|
||||
# https://github.com/systemd/systemd/pull/39651
|
||||
TESTUSER_CRED_DIR="/run/user/$(id -u testuser)/credentials"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user