Skip to content

Commit 53cf023

Browse files
committed
fix: Correct API test to check for authRequired field
The auth status endpoint returns authRequired, not authenticated. Update test to validate JSON structure instead.
1 parent 4ef1156 commit 53cf023

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

.github/workflows/e2e-tests.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -140,11 +140,10 @@ jobs:
140140
- name: Test API endpoints
141141
shell: bash
142142
run: |
143-
# Test 1: Auth status (public endpoint)
143+
# Test 1: Auth status (public endpoint) - should return valid JSON
144144
response=$(curl -s http://localhost:3000/api/auth/status)
145-
authenticated=$(echo "$response" | jq -r '.authenticated')
146-
if [ "$authenticated" != "false" ]; then
147-
echo "::error::Auth status API returned unexpected value: $authenticated"
145+
if ! echo "$response" | jq -e '.authRequired' > /dev/null; then
146+
echo "::error::Auth status API returned invalid JSON: $response"
148147
exit 1
149148
fi
150149

0 commit comments

Comments
 (0)