fix: use HTTPS for registry catalog check, fix log output quoting

Caddy ingress controller redirects HTTP→HTTPS by default, so the
container-registry test catalog check needs to use https with -k.
Also fix wait_for_log_output in k8s-deploy test and quote all
echo $log_output vars to prevent glob expansion.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
pull/739/head
Prathamesh Musale 2026-04-02 08:24:34 +00:00
parent 787806d6fa
commit 5e4263873d
3 changed files with 6 additions and 6 deletions

View File

@ -135,7 +135,7 @@ docker push localhost:80/hello-world
# Wait for the catalog to reflect the pushed image
registry_ok=false
for i in {1..10}; do
registry_response=$(curl -s -X GET http://localhost:80/v2/_catalog)
registry_response=$(curl -s -k -X GET https://localhost/v2/_catalog)
if [[ "$registry_response" == *"hello-world"* ]]; then
registry_ok=true
break

View File

@ -32,7 +32,7 @@ wait_for_log_output () {
local log_output=$( $TEST_TARGET_SO deployment --dir $test_deployment_dir logs )
if [[ ! -z "$log_output" ]]; then
if [[ ! -z "$log_output" ]] && [[ "$log_output" != *"No logs available"* ]] && [[ "$log_output" != *"Pods not running"* ]]; then
# if ready, return
return
else
@ -129,7 +129,7 @@ if [[ "$log_output_3" == *"filesystem is fresh"* ]]; then
echo "deployment logs test: passed"
else
echo "deployment logs test: FAILED"
echo $log_output_3
echo "$log_output_3"
delete_cluster_exit
fi
@ -164,7 +164,7 @@ if [[ "$log_output_5" == *"/data: MOUNTED"* ]]; then
echo "deployment bind volumes test: passed"
else
echo "deployment bind volumes test: FAILED"
echo $log_output_5
echo "$log_output_5"
delete_cluster_exit
fi
@ -174,7 +174,7 @@ if [[ "$log_output_6" == *"/data2: MOUNTED"* ]]; then
echo "deployment provisioner volumes test: passed"
else
echo "deployment provisioner volumes test: FAILED"
echo $log_output_6
echo "$log_output_6"
delete_cluster_exit
fi

View File

@ -199,7 +199,7 @@ if [[ "$log_output_1" == *"filesystem is fresh"* ]]; then
echo "deployment of pod test: passed"
else
echo "deployment pod test: FAILED"
echo $log_output_1
echo "$log_output_1"
delete_cluster_exit
fi