mirror of
https://github.com/containers/podman.git
synced 2025-12-02 11:08:36 +08:00
Add e2e tests for quadlet Entrypoint option
Drop bats tests for quadlet Entrypoint Signed-off-by: Odilon Sousa <osousa@redhat.com>
This commit is contained in:
6
test/e2e/quadlet/entrypoint.container
Normal file
6
test/e2e/quadlet/entrypoint.container
Normal file
@@ -0,0 +1,6 @@
|
||||
## assert-podman-final-args localhost/imagename
|
||||
## assert-podman-args "--entrypoint=top"
|
||||
|
||||
[Container]
|
||||
Image=localhost/imagename
|
||||
Entrypoint=top
|
||||
@@ -765,6 +765,7 @@ BOGUS=foo
|
||||
Entry("env-host-false.container", "env-host-false.container", 0, ""),
|
||||
Entry("env-host.container", "env-host.container", 0, ""),
|
||||
Entry("env.container", "env.container", 0, ""),
|
||||
Entry("entrypoint.container", "entrypoint.container", 0, ""),
|
||||
Entry("escapes.container", "escapes.container", 0, ""),
|
||||
Entry("exec.container", "exec.container", 0, ""),
|
||||
Entry("health.container", "health.container", 0, ""),
|
||||
|
||||
@@ -1467,22 +1467,4 @@ EOF
|
||||
|
||||
run_podman rmi $(pause_image)
|
||||
}
|
||||
@test "quadlet - entrypoint" {
|
||||
local quadlet_file=$PODMAN_TMPDIR/basic_$(random_string).container
|
||||
cat > $quadlet_file <<EOF
|
||||
[Container]
|
||||
Image=$IMAGE
|
||||
Entrypoint=top
|
||||
EOF
|
||||
|
||||
run_quadlet "$quadlet_file"
|
||||
service_setup $QUADLET_SERVICE_NAME
|
||||
|
||||
# Create a container based on that
|
||||
run_podman container inspect --format '{{index .Args}}' $QUADLET_CONTAINER_NAME
|
||||
is "$output" "[top]"
|
||||
|
||||
service_cleanup $QUADLET_SERVICE_NAME failed
|
||||
}
|
||||
|
||||
# vim: filetype=sh
|
||||
|
||||
Reference in New Issue
Block a user