File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -147,6 +147,14 @@ else
147
147
echo ' ::endgroup::'
148
148
fi
149
149
150
+ if [[ " ${runtime} " == " k8s" ]]; then
151
+ HOTROD_URL=" http://localhost:8080/hotrod"
152
+ JAEGER_QUERY_URL=" http://localhost:16686/jaeger"
153
+ else
154
+ HOTROD_URL=" http://localhost:8080"
155
+ JAEGER_QUERY_URL=" http://localhost:16686"
156
+ fi
157
+
150
158
i=0
151
159
while [[ " $( curl -s -o /dev/null -w ' %{http_code}' localhost:8080) " != " 200" && $i -lt 30 ]]; do
152
160
sleep 1
@@ -162,7 +170,7 @@ if [[ $body != *"Rides On Demand"* ]]; then
162
170
fi
163
171
echo ' ::endgroup::'
164
172
165
- response=$( curl -i -X POST " http://localhost:8080 /dispatch?customer=123" )
173
+ response=$( curl -i -X POST " ${HOTROD_URL} /dispatch?customer=123" )
166
174
TRACE_ID=$( echo " $response " | grep -Fi " Traceresponse:" | awk ' {print $2}' | cut -d ' -' -f 2)
167
175
168
176
if [ -n " $TRACE_ID " ]; then
172
180
exit 1
173
181
fi
174
182
175
- JAEGER_QUERY_URL=" http://localhost:16686"
176
183
EXPECTED_SPANS=35
177
184
MAX_RETRIES=30
178
185
SLEEP_INTERVAL=3
You can’t perform that action at this time.
0 commit comments