We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 07b699b commit 3f8068fCopy full SHA for 3f8068f
1 file changed
.github/workflows/pr.yaml
@@ -132,9 +132,15 @@ jobs:
132
- name: Test Stream Container Health Endpoint
133
run: |
134
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"
+ response=$(curl -s -w "%{http_code}" http://localhost:8080/health)
+ http_code="${response: -3}"
+ 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"
144
exit 1
145
else
146
echo "Health check passed"
0 commit comments