-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
39 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,21 @@ | ||
## assert-podman-final-args imagename | ||
## assert-podman-final-args localhost/imagename | ||
## assert-podman-args "--name=systemd-%N" | ||
## assert-podman-args "--cidfile=%t/%N.cid" | ||
## assert-podman-args "--rm" | ||
## assert-podman-args "--replace" | ||
## assert-podman-args "-d" | ||
## assert-podman-args "--log-driver" "journald" | ||
## assert-podman-args "--pull=never" | ||
## assert-podman-args "--init" | ||
## assert-podman-args "--log-driver" "passthrough" | ||
## assert-podman-args "--runtime" "/usr/bin/crun" | ||
## assert-podman-args "--cgroups=split" | ||
## assert-podman-args "--sdnotify=conmon" | ||
## assert-podman-args "--security-opt=no-new-privileges" | ||
## assert-podman-args "--cap-drop=all" | ||
## assert-podman-args "--tmpfs" "/tmp:rw,size=512M,mode=1777" | ||
## assert-key-is "Unit" "RequiresMountsFor" "%t/containers" | ||
## assert-key-is "Service" "KillMode" "mixed" | ||
## assert-key-is "Service" "Delegate" "yes" | ||
## assert-key-is "Service" "Type" "notify" | ||
## assert-key-is "Service" "NotifyAccess" "all" | ||
## assert-key-is "Service" "SyslogIdentifier" "%N" | ||
## assert-key-is "Service" "ExecStartPre" "-rm -f %t/%N.cid" | ||
## assert-key-is "Service" "ExecStopPost" "-/usr/bin/podman rm -f -i --cidfile=%t/%N.cid" "-rm -f %t/%N.cid" | ||
## assert-key-is-regex "Service" "ExecStopPost" "-.*/podman rm -f -i --cidfile=%t/%N.cid" "-rm -f %t/%N.cid" | ||
## assert-key-is "Service" "Environment" "PODMAN_SYSTEMD_UNIT=%n" | ||
|
||
[Container] | ||
Image=imagename | ||
Image=localhost/imagename |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
## assert-key-is Unit RequiresMountsFor "%t/containers" | ||
## assert-key-is Service Type oneshot | ||
## assert-key-is Service RemainAfterExit yes | ||
## assert-key-is Service ExecCondition '/usr/bin/bash -c "! /usr/bin/podman volume exists systemd-basic"' | ||
## assert-key-is Service ExecStart "/usr/bin/podman volume create systemd-basic" | ||
## assert-key-is-regex Service ExecStart ".*/podman volume create --ignore systemd-basic" | ||
## assert-key-is Service SyslogIdentifier "%N" | ||
|
||
[Volume] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
## assert-podman-args "--cap-drop=all" | ||
## !assert-podman-args "--cap-drop=all" | ||
## assert-podman-args "--cap-add=cap_dac_override" | ||
## assert-podman-args "--cap-add=cap_audit_write" | ||
## assert-podman-args "--cap-add=cap_ipc_owner" | ||
|
||
[Container] | ||
Image=imagename | ||
AddCapability=CAP_DAC_OVERRIDE | ||
Image=localhost/imagename | ||
AddCapability=CAP_DAC_OVERRIDE CAP_AUDIT_WRITE | ||
AddCapability=CAP_IPC_OWNER |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
## assert-podman-final-args imagename | ||
## assert-podman-final-args localhost/imagename | ||
## assert-podman-args --env "FOO1=foo1" | ||
## assert-podman-args --env "FOO2=foo2 " | ||
## assert-podman-args --env "FOO3=foo3" | ||
## assert-podman-args --env "REPLACE=replaced" | ||
## assert-podman-args --env "FOO4=foo\\nfoo" | ||
|
||
[Container] | ||
Image=imagename | ||
Image=localhost/imagename | ||
Environment=FOO1=foo1 "FOO2=foo2 " \ | ||
FOO3=foo3 REPLACE=replace | ||
Environment=REPLACE=replaced 'FOO4=foo\nfoo' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
## assert-podman-final-args "/some/path" "an arg" "a;b\\nc\\td'e" "a;b\\nc\\td" "a\"b" | ||
|
||
[Container] | ||
Image=imagename | ||
Image=localhost/imagename | ||
Exec=/some/path "an arg" "a;b\nc\td'e" a;b\nc\td 'a"b' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
## assert-podman-final-args imagename "/some/binary file" "--arg1" "arg 2" | ||
## assert-podman-final-args localhost/imagename "/some/binary file" "--arg1" "arg 2" | ||
|
||
[Container] | ||
Image=imagename | ||
Image=localhost/imagename | ||
Exec="/some/binary file" --arg1 \ | ||
"arg 2" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
## assert-podman-final-args imagename | ||
## assert-podman-final-args localhost/imagename | ||
|
||
[Container] | ||
Image=imagename | ||
Image=localhost/imagename |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
## assert-podman-args "--name=foobar" | ||
|
||
[Container] | ||
Image=imagename | ||
Image=localhost/imagename | ||
ContainerName=foobar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
## assert-failed | ||
## assert-stderr-contains "No Image key specified" | ||
## assert-stderr-contains "no Image key specified" | ||
|
||
[Container] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
## assert-podman-args "--sdnotify=container" | ||
|
||
[Container] | ||
Image=imagename | ||
Image=localhost/imagename | ||
Notify=yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
## assert-podman-final-args imagename | ||
## assert-podman-final-args localhost/imagename | ||
## assert-key-is "Unit" "Foo" "bar1" "bar2" | ||
## assert-key-is "X-Container" "Image" "imagename" | ||
## assert-key-is "X-Container" "Image" "localhost/imagename" | ||
|
||
[Unit] | ||
Foo=bar1 | ||
Foo=bar2 | ||
|
||
[Container] | ||
Image=imagename | ||
Image=localhost/imagename |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
## assert-podman-args --tz=foo | ||
|
||
[Container] | ||
Image=imagename | ||
Image=localhost/imagename | ||
Timezone=foo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
## assert-podman-final-args imagename | ||
## assert-podman-final-args localhost/imagename | ||
## assert-podman-args "--user" "998:999" | ||
|
||
[Container] | ||
Image=imagename | ||
Image=localhost/imagename | ||
User=998 | ||
Group=999 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters