Skip to content

Commit e7b041f

Browse files
committed
apisix final
1 parent 057384e commit e7b041f

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/test-apisix.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -195,21 +195,22 @@ jobs:
195195
run: |
196196
START_TIME=$(date +%s)
197197
198+
# In APISIX 3.x, /apisix/admin/info is a supported endpoint
199+
# and returns version and system information.
198200
if curl -s -H "X-API-KEY: edd1c9f034335f136f87ad84b625c8f1" \
199-
http://127.0.0.1:9180/apisix/admin/system/info | grep -q "version"; then
200-
echo "✓ system info endpoint works"
201+
http://127.0.0.1:9180/apisix/admin/info | grep -q "version"; then
202+
echo "✓ info endpoint works"
201203
echo "status=passed" >> $GITHUB_OUTPUT
202204
else
203-
echo "✗ system info endpoint failed"
205+
echo "✗ info endpoint failed"
204206
curl -s -H "X-API-KEY: edd1c9f034335f136f87ad84b625c8f1" \
205-
http://127.0.0.1:9180/apisix/admin/system/info || true
207+
http://127.0.0.1:9180/apisix/admin/info || true
206208
echo "status=failed" >> $GITHUB_OUTPUT
207209
exit 1
208210
fi
209211
210212
END_TIME=$(date +%s)
211213
echo "duration=$((END_TIME - START_TIME))" >> $GITHUB_OUTPUT
212-
213214
- name: Calculate test summary
214215
if: always()
215216
id: summary

0 commit comments

Comments
 (0)