Skip to content

Commit

Permalink
Add e2e tests for quadlet Entrypoint option
Browse files Browse the repository at this point in the history
Drop bats tests for quadlet Entrypoint

Signed-off-by: Odilon Sousa <[email protected]>
  • Loading branch information
Odilhao committed Dec 5, 2023
1 parent 972ffac commit 7cc6501
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 18 deletions.
6 changes: 6 additions & 0 deletions test/e2e/quadlet/entrypoint.container
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
## assert-podman-final-args localhost/imagename
## assert-podman-args "--entrypoint=top"

[Container]
Image=localhost/imagename
Entrypoint=top
1 change: 1 addition & 0 deletions test/e2e/quadlet_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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, ""),
Expand Down
18 changes: 0 additions & 18 deletions test/system/252-quadlet.bats
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 7cc6501

Please sign in to comment.