Skip to content

Commit

Permalink
[test] fix helloworld quickstart endpoint
Browse files Browse the repository at this point in the history
Signed-off-by: Jeff Mesnil <[email protected]>
  • Loading branch information
jmesnil committed Dec 4, 2024
1 parent 5e06dfe commit bd79801
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/bats/ingress.bats
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ EOF
sleep 5
${CLUSTER_CLIENT} wait deployment test-ingress --for condition=Available=True --timeout=90s
${CLUSTER_CLIENT} get ingress --namespace wildfly-charts -o json >&3
run curl -v --no-progress-meter http://${CLUSTER_ADDRESS}/HelloWorld
run curl -v --no-progress-meter http://${CLUSTER_ADDRESS}/helloworld/HelloWorld
assert_output --partial "200 OK"
assert_output --partial "Hello World"
}
Expand Down Expand Up @@ -61,11 +61,11 @@ EOF
${CLUSTER_CLIENT} wait deployment test-ingress --for condition=Available=True --timeout=90s
${CLUSTER_CLIENT} get ingress --namespace wildfly-charts -o json >&3
# test with HTTPS
run curl -v -k --no-progress-meter https://${CLUSTER_ADDRESS}/HelloWorld
run curl -v -k --no-progress-meter https://${CLUSTER_ADDRESS}/helloworld/HelloWorld
assert_output --partial "* subject: CN=wildfly.local"
assert_output --partial "Hello World"
# verify that HTTP is redirected to HTTPS
run curl -v --no-progress-meter http://${CLUSTER_ADDRESS}/HelloWorld
run curl -v --no-progress-meter http://${CLUSTER_ADDRESS}/helloworld/HelloWorld
if [[ -n "${USE_OPENSHIFT}" && ${USE_OPENSHIFT} = "true" ]]
then
assert_output --partial "302 Found"
Expand Down

0 comments on commit bd79801

Please sign in to comment.