Skip to content

Commit

Permalink
test-execute: ExecStop= and friends should not get credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
YHNdnzj committed May 7, 2024
1 parent cc4482e commit 0e34ddd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test-execute/exec-set-credential.service
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Description=Test for SetCredential=
[Service]
ExecStart=sh -x -c 'test "$$(cat %d/test-execute.set-credential)" = "hoge"'
ExecStartPost=sh -x -c 'test "$$(cat %d/test-execute.set-credential)" = "hoge"'
ExecStop=sh -x -c 'test "$$(cat %d/test-execute.set-credential)" = "hoge"'
ExecStopPost=sh -x -c 'test "$$(cat %d/test-execute.set-credential)" = "hoge"'
ExecStop=bash -x -c '[[ ! -v CREDENTIALS_DIRECTORY ]]'
ExecStopPost=bash -x -c '[[ ! -v CREDENTIALS_DIRECTORY ]]'
Type=oneshot
SetCredential=test-execute.set-credential:hoge

0 comments on commit 0e34ddd

Please sign in to comment.