From 7ab4b89c858981055f8cfd3a83fe4bdec00705d7 Mon Sep 17 00:00:00 2001 From: Danish Prakash Date: Fri, 26 Jun 2026 12:25:23 +0530 Subject: [PATCH] test/quadlet: pass Containerfile as part of a named application PR #28860 requires non-quadlet files (e.g a Containerfile with no recognized extension) to be passed as part of a named application. Update tests added in #28696 to adhere to this requirment. Signed-off-by: Danish Prakash --- test/apiv2/36-quadlets.at | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/apiv2/36-quadlets.at b/test/apiv2/36-quadlets.at index 868e32e663..60f0825099 100644 --- a/test/apiv2/36-quadlets.at +++ b/test/apiv2/36-quadlets.at @@ -279,13 +279,13 @@ echo "$quadlet_7_content" > "$TMPD/$quadlet_7" echo "$containerfile_3_content" > "$TMPD/$containerfile_3" tar --format=posix -C "$TMPD" -cvf "$TMPD/$quadlet_7$containerfile_3.tar" "$quadlet_7" "$containerfile_3" &> /dev/null -t POST "libpod/quadlets" "$TMPD/$quadlet_7$containerfile_3.tar" 200 \ +t POST "libpod/quadlets?application=baz" "$TMPD/$quadlet_7$containerfile_3.tar" 200 \ '.InstalledQuadlets|length=2' \ '.QuadletErrors|length=0' t GET "libpod/quadlets/$quadlet_7/file" 200 is "$output" "$quadlet_7_content" "quadlet-7 should be installed" -is "$(cat "$quadlet_install_dir/$containerfile_3")" "$containerfile_3_content" "containerfile_3 should be installed" +is "$(cat "$quadlet_install_dir/baz/$containerfile_3")" "$containerfile_3_content" "containerfile_3 should be installed" # Scenario: test a multipart call, then update without replace, and then replace quadlet_6=quadlet-test-6-$(cat /proc/sys/kernel/random/uuid).container @@ -401,7 +401,7 @@ podman quadlet rm --recursive "$quadlet_1" \ rm -f "$quadlet_install_dir/bar/$containerfile_1" rm -f "$quadlet_install_dir/bar/$configfile_1" rm -f "$quadlet_install_dir/$containerfile_2" -rm -f "$quadlet_install_dir/$containerfile_3" +rm -f "$quadlet_install_dir/baz/$containerfile_3" rm -rf $TMPD # DELETE endpoint tests