Compare commits
1 Commits
d1ce242dc9
...
a083c4f2b5
| Author | SHA1 | Date | |
|---|---|---|---|
| a083c4f2b5 |
6
.github/workflows/test.yml
vendored
6
.github/workflows/test.yml
vendored
@@ -213,7 +213,8 @@ jobs:
|
|||||||
echo "HTTP Status Code: $HTTP_CODE"
|
echo "HTTP Status Code: $HTTP_CODE"
|
||||||
echo "JMAP Response:"
|
echo "JMAP Response:"
|
||||||
cat /tmp/jmap_response_no_auth.json
|
cat /tmp/jmap_response_no_auth.json
|
||||||
|
echo ""
|
||||||
|
|
||||||
# Check if request succeeded
|
# Check if request succeeded
|
||||||
if [ "$HTTP_CODE" != "200" ]; then
|
if [ "$HTTP_CODE" != "200" ]; then
|
||||||
echo "::error::JMAP endpoint returned HTTP $HTTP_CODE for unauthenticated request"
|
echo "::error::JMAP endpoint returned HTTP $HTTP_CODE for unauthenticated request"
|
||||||
@@ -236,7 +237,7 @@ jobs:
|
|||||||
|
|
||||||
# Test user1@test1.local authentication (follow redirects with -L)
|
# Test user1@test1.local authentication (follow redirects with -L)
|
||||||
HTTP_CODE=$(curl -s -L \
|
HTTP_CODE=$(curl -s -L \
|
||||||
-o /tmp/jmap_response_auth.json
|
-o /tmp/jmap_response_auth.json \
|
||||||
-w "%{http_code}" \
|
-w "%{http_code}" \
|
||||||
-u "user1@test1.local:UserPass123!" \
|
-u "user1@test1.local:UserPass123!" \
|
||||||
"http://localhost:8080/.well-known/jmap")
|
"http://localhost:8080/.well-known/jmap")
|
||||||
@@ -244,6 +245,7 @@ jobs:
|
|||||||
echo "HTTP Status Code: $HTTP_CODE"
|
echo "HTTP Status Code: $HTTP_CODE"
|
||||||
echo "JMAP Response:"
|
echo "JMAP Response:"
|
||||||
cat /tmp/jmap_response_auth.json
|
cat /tmp/jmap_response_auth.json
|
||||||
|
echo ""
|
||||||
|
|
||||||
# Check if request succeeded
|
# Check if request succeeded
|
||||||
if [ "$HTTP_CODE" != "200" ]; then
|
if [ "$HTTP_CODE" != "200" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user