From 30bd837f31755aa018d7226f28798e324ff01484 Mon Sep 17 00:00:00 2001 From: Konrad Bańka Date: Mon, 15 Jul 2019 15:00:09 +0200 Subject: Fix istio test scenario endpoint API validation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Current query issued at the end of testcase to istio service API didn't validate the case, when http server responded with 5XX http code. By reusing common wrapper for cURL, this is now handled properly. Issue-ID: MULTICLOUD-686 Signed-off-by: Konrad Bańka Change-Id: Ifb73494c9a6d98143edccaad095b2de5d456ef4f --- kud/tests/istio.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kud/tests') diff --git a/kud/tests/istio.sh b/kud/tests/istio.sh index c525bb8e..e9ef00c6 100755 --- a/kud/tests/istio.sh +++ b/kud/tests/istio.sh @@ -36,5 +36,5 @@ for deployment in details-v1 productpage-v1 ratings-v1 reviews-v1 reviews-v2 rev done INGRESS_PORT=$(kubectl -n istio-system get service istio-ingressgateway -o jsonpath='{.spec.ports[?(@.name=="http2")].nodePort}') INGRESS_HOST=$(kubectl get po -l istio=ingressgateway -n istio-system -o 'jsonpath={.items[0].status.hostIP}') -curl -o /dev/null -s -w "%{http_code}\n" http://$INGRESS_HOST:$INGRESS_PORT/productpage +call_api http://$INGRESS_HOST:$INGRESS_PORT/productpage >/dev/null popd -- cgit 1.2.3-korg