Skip to content

Commit 3632c3f

Browse files
committed
Merge branch 'main' of github.com:Zozman/stream-webpage-container into golang1.24.6
2 parents 4c6a812 + 3f8068f commit 3632c3f

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

.github/workflows/pr.yaml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,15 @@ jobs:
132132
- name: Test Stream Container Health Endpoint
133133
run: |
134134
echo "Testing stream container health endpoint..."
135-
response=$(curl -s http://localhost:8080/health)
136-
if [[ "$response" != *"\"status\":\"ok\""* ]]; then
137-
echo "Health check failed: $response"
135+
response=$(curl -s -w "%{http_code}" http://localhost:8080/health)
136+
http_code="${response: -3}"
137+
response_body="${response%???}"
138+
139+
echo "HTTP Status: $http_code"
140+
echo "Response: $response_body"
141+
142+
if [[ "$http_code" != "200" ]]; then
143+
echo "Health check failed with HTTP status: $http_code"
138144
exit 1
139145
else
140146
echo "Health check passed"

0 commit comments

Comments
 (0)