@@ -149,30 +149,34 @@ jobs:
149149 - name : Trigger Blocking Endpoint
150150 run : |
151151 # Trigger endpoint
152- BLOCKING_RESPONSE=$(curl -s -w "%{http_code}" http://localhost:$QUARKUS_PORT/chat/blocking)
153- BLOCKING_HTTP_RESPONSE_CODE="${BLOCKING_RESPONSE: -3}"
152+ HTTP_RESPONSE=$(curl -s -w "%{http_code}" http://localhost:$QUARKUS_PORT/chat/blocking)
153+ HTTP_RESPONSE_CODE="${HTTP_RESPONSE: -3}"
154+ HTTP_RESPONSE_BODY="$HTTP_RESPONSE%???}"
154155
155156 # Check response code
156- if [ "$BLOCKING_HTTP_RESPONSE_CODE " != "200" ]; then
157- echo "ERROR: Blocking endpoint returned HTTP code $BLOCKING_HTTP_RESPONSE_CODE "
157+ if [ "$HTTP_RESPONSE_CODE " != "200" ]; then
158+ echo "ERROR: Blocking endpoint returned HTTP code $HTTP_RESPONSE_CODE "
158159 exit 1
159160 else
160- echo "Blocking endpoint HTTP code: ${BLOCKING_RESPONSE: -3}"
161+ echo "SUCCESS: Blocking endpoint returned HTTP code: ${HTTP_RESPONSE: -3}"
162+ echo "HTTP Response body: $HTTP_RESPONSE_BODY"
161163 fi
162164
163165 # Step 6: Run test 2
164166 - name : Trigger Streaming Endpoint
165167 run : |
166168 # Trigger endpoint
167- STREAMING_RESPONSE=$(timeout 10s curl -s -w "%{http_code}" http://localhost:$QUARKUS_PORT/chat/streaming)
168- STREAMING_HTTP_RESPONSE_CODE="${STREAMING_RESPONSE: -3}"
169+ HTTP_RESPONSE=$(timeout 10s curl -s -w "%{http_code}" http://localhost:$QUARKUS_PORT/chat/streaming)
170+ HTTP_RESPONSE_CODE="${HTTP_RESPONSE: -3}"
171+ HTTP_RESPONSE_BODY="$HTTP_RESPONSE%???}"
169172
170173 # Check response code
171- if [ "$STREAMING_HTTP_RESPONSE_CODE " != "200" ]; then
172- echo "ERROR: Streaming endpoint returned HTTP code $STREAMING_HTTP_RESPONSE_CODE "
174+ if [ "$HTTP_RESPONSE_CODE " != "200" ]; then
175+ echo "ERROR: Streaming endpoint returned HTTP code $HTTP_RESPONSE_CODE "
173176 exit 1
174177 else
175- echo "Streaming endpoint HTTP code: ${STREAMING_RESPONSE: -3}"
178+ echo "SUCCESS: Streaming endpoint returned HTTP code: ${HTTP_RESPONSE: -3}"
179+ echo "HTTP Response body: $HTTP_RESPONSE_BODY"
176180 fi
177181
178182 # Step 7: Cleanup & Shutdown
0 commit comments