From 7cc6501cf00de833c51110a94cb729e20213af8f Mon Sep 17 00:00:00 2001 From: Odilon Sousa Date: Tue, 5 Dec 2023 09:51:39 -0300 Subject: [PATCH] Add e2e tests for quadlet Entrypoint option Drop bats tests for quadlet Entrypoint Signed-off-by: Odilon Sousa --- test/e2e/quadlet/entrypoint.container | 6 ++++++ test/e2e/quadlet_test.go | 1 + test/system/252-quadlet.bats | 18 ------------------ 3 files changed, 7 insertions(+), 18 deletions(-) create mode 100644 test/e2e/quadlet/entrypoint.container diff --git a/test/e2e/quadlet/entrypoint.container b/test/e2e/quadlet/entrypoint.container new file mode 100644 index 0000000000..035783500b --- /dev/null +++ b/test/e2e/quadlet/entrypoint.container @@ -0,0 +1,6 @@ +## assert-podman-final-args localhost/imagename +## assert-podman-args "--entrypoint=top" + +[Container] +Image=localhost/imagename +Entrypoint=top diff --git a/test/e2e/quadlet_test.go b/test/e2e/quadlet_test.go index a89107e13d..a4e76edccb 100644 --- a/test/e2e/quadlet_test.go +++ b/test/e2e/quadlet_test.go @@ -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, ""), diff --git a/test/system/252-quadlet.bats b/test/system/252-quadlet.bats index e8b6727a78..912b6be08c 100644 --- a/test/system/252-quadlet.bats +++ b/test/system/252-quadlet.bats @@ -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 <