Skip to content

Commit 95b3bcf

Browse files
committed
test/cases/api: show compose request result on failures
1 parent 6af7ed9 commit 95b3bcf

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/cases/api.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,13 @@ function sendCompose() {
580580
--output "$OUTPUT" \
581581
https://localhost/api/image-builder-composer/v2/compose)
582582

583+
if [ "$HTTPSTATUS" != "201" ]; then
584+
redprint "Sending compose request failed:"
585+
cat "$OUTPUT"
586+
fi
587+
583588
test "$HTTPSTATUS" = "201"
589+
584590
COMPOSE_ID=$(jq -r '.id' "$OUTPUT")
585591
}
586592

0 commit comments

Comments
 (0)