summaryrefslogtreecommitdiffstats
path: root/test/test-execute/exec-set-credential.service
diff options
context:
space:
mode:
Diffstat (limited to 'test/test-execute/exec-set-credential.service')
-rw-r--r--test/test-execute/exec-set-credential.service11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/test-execute/exec-set-credential.service b/test/test-execute/exec-set-credential.service
new file mode 100644
index 0000000..9db6c5f
--- /dev/null
+++ b/test/test-execute/exec-set-credential.service
@@ -0,0 +1,11 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+[Unit]
+Description=Test for SetCredential=
+
+[Service]
+ExecStart=/bin/sh -x -c 'test "$$(cat %d/test-execute.set-credential)" = "hoge"'
+ExecStartPost=/bin/sh -x -c 'test "$$(cat %d/test-execute.set-credential)" = "hoge"'
+ExecStop=/bin/sh -x -c 'test "$$(cat %d/test-execute.set-credential)" = "hoge"'
+ExecStopPost=/bin/sh -x -c 'test "$$(cat %d/test-execute.set-credential)" = "hoge"'
+Type=oneshot
+SetCredential=test-execute.set-credential:hoge