File tree Expand file tree Collapse file tree 4 files changed +7
-6
lines changed
src/integration-tests/bash Expand file tree Collapse file tree 4 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -718,7 +718,7 @@ function setupVoyagerLoadBalancer {
718718 local mnow=` date +%s`
719719 local vdep=` kubectl get ingresses.voyager.appscode.com -n ${namespace} | grep ${domainUID} -voyager | wc | awk ' { print $1; } ' `
720720 if [ " $vdep " = " 1" ]; then
721- echo ' The Voyager Ingress resource ${domainUID}-voyager is created successfully.'
721+ echo " The Voyager Ingress resource ${domainUID} -voyager is created successfully."
722722 break
723723 fi
724724 if [ $(( mnow - mstart)) -gt $(( maxwaitsecs)) ]; then
@@ -734,7 +734,7 @@ function setupVoyagerLoadBalancer {
734734 local mnow=` date +%s`
735735 local st=` kubectl get pod -n ${namespace} | grep ^voyager-${domainUID} -voyager- | awk ' { print $3; } ' `
736736 if [ " $st " = " Running" ]; then
737- echo ' The HAProxy pod for Voyaer Ingress ${domainUID}-voyager is created successfully.'
737+ echo " The HAProxy pod for Voyaer Ingress ${domainUID} -voyager is created successfully."
738738 break
739739 fi
740740 if [ $(( mnow - mstart)) -gt $(( maxwaitsecs)) ]; then
Original file line number Diff line number Diff line change @@ -10,9 +10,10 @@ metadata:
1010 annotations :
1111 ingress.appscode.com/type : ' NodePort'
1212 ingress.appscode.com/stats : ' true'
13+ ingress.appscode.com/affinity : ' cookie'
1314spec :
1415 rules :
15- - host : %DOMAIN_UID%.%CLUSTER_NAME%
16+ - host : ' * '
1617 http :
1718 nodePort : ' %LOAD_BALANCER_WEB_PORT%'
1819 paths :
Original file line number Diff line number Diff line change @@ -65,9 +65,10 @@ metadata:
6565 annotations :
6666 ingress.appscode.com/type : ' NodePort'
6767 ingress.appscode.com/stats : ' true'
68+ ingress.appscode.com/affinity : ' cookie'
6869spec :
6970 rules :
70- - host : domain1.cluster-1
71+ - host : ' * '
7172 http :
7273 nodePort : ' 30305'
7374 paths :
Original file line number Diff line number Diff line change @@ -1161,12 +1161,11 @@ function verify_webapp_load_balancing {
11611161 local max_count=30
11621162 local wait_time=6
11631163 local count=0
1164- local vheader=" host: $DOMAIN_UID .$WL_CLUSTER_NAME " # this is only needed for voyager but it does no harm to traefik etc
11651164
11661165 while [ " ${HTTP_RESPONSE} " != " 200" -a $count -lt $max_count ] ; do
11671166 local count=` expr $count + 1`
11681167 echo " NO_DATA" > $CURL_RESPONSE_BODY
1169- local HTTP_RESPONSE=$( eval " curl --silent --show-error -H ' ${vheader} ' - -noproxy ${NODEPORT_HOST} ${TEST_APP_URL} \
1168+ local HTTP_RESPONSE=$( eval " curl --silent --show-error --noproxy ${NODEPORT_HOST} ${TEST_APP_URL} \
11701169 --write-out '%{http_code}' \
11711170 -o ${CURL_RESPONSE_BODY} " \
11721171 )
You can’t perform that action at this time.
0 commit comments