Compare commits
1 Commits
ab9229aae4
...
082edf7501
| Author | SHA1 | Date | |
|---|---|---|---|
| 082edf7501 |
34
.github/workflows/test.yml
vendored
34
.github/workflows/test.yml
vendored
@@ -161,7 +161,23 @@ jobs:
|
|||||||
done
|
done
|
||||||
echo "::error::API not accessible after 60 seconds"
|
echo "::error::API not accessible after 60 seconds"
|
||||||
exit 1
|
exit 1
|
||||||
|
|
||||||
|
- name: Verify unauthenticated JMAP access
|
||||||
|
run: |
|
||||||
|
echo "Testing unauthenticated JMAP endpoint..."
|
||||||
|
|
||||||
|
# Call without authentication
|
||||||
|
JMAP_RESPONSE=$(curl -sf "http://localhost:8080/.well-known/jmap")
|
||||||
|
|
||||||
|
# Verify username is empty (no authentication)
|
||||||
|
USERNAME=$(echo "$JMAP_RESPONSE" | jq -r '.username // empty')
|
||||||
|
|
||||||
|
if [ -z "$USERNAME" ]; then
|
||||||
|
echo "✓ Unauthenticated access returns empty username"
|
||||||
|
else
|
||||||
|
echo "::warning::Expected empty username for unauthenticated request, got '$USERNAME'"
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Verify created user can authenticate
|
- name: Verify created user can authenticate
|
||||||
run: |
|
run: |
|
||||||
echo "Testing user authentication via JMAP endpoint..."
|
echo "Testing user authentication via JMAP endpoint..."
|
||||||
@@ -199,22 +215,6 @@ jobs:
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Verify unauthenticated JMAP access
|
|
||||||
run: |
|
|
||||||
echo "Testing unauthenticated JMAP endpoint..."
|
|
||||||
|
|
||||||
# Call without authentication
|
|
||||||
JMAP_RESPONSE=$(curl -sf "http://localhost:8080/.well-known/jmap")
|
|
||||||
|
|
||||||
# Verify username is empty (no authentication)
|
|
||||||
USERNAME=$(echo "$JMAP_RESPONSE" | jq -r '.username // empty')
|
|
||||||
|
|
||||||
if [ -z "$USERNAME" ]; then
|
|
||||||
echo "✓ Unauthenticated access returns empty username"
|
|
||||||
else
|
|
||||||
echo "::warning::Expected empty username for unauthenticated request, got '$USERNAME'"
|
|
||||||
fi
|
|
||||||
|
|
||||||
- name: Show logs on failure
|
- name: Show logs on failure
|
||||||
if: failure()
|
if: failure()
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user