Compare commits
1 Commits
8d054f5f26
...
34f8eef22a
| Author | SHA1 | Date | |
|---|---|---|---|
| 34f8eef22a |
17
.github/workflows/test.yml
vendored
17
.github/workflows/test.yml
vendored
@@ -190,8 +190,25 @@ jobs:
|
|||||||
echo "HTTP Status Code: $HTTP_CODE"
|
echo "HTTP Status Code: $HTTP_CODE"
|
||||||
echo "JMAP Response:"
|
echo "JMAP Response:"
|
||||||
cat /tmp/jmap_response.json | jq '.' || cat /tmp/jmap_response.json
|
cat /tmp/jmap_response.json | jq '.' || cat /tmp/jmap_response.json
|
||||||
|
|
||||||
|
if [ "$HTTP_CODE" != "200" ]; then
|
||||||
echo "::error::JMAP endpoint returned HTTP $HTTP_CODE"
|
echo "::error::JMAP endpoint returned HTTP $HTTP_CODE"
|
||||||
|
|
||||||
|
# Try direct authentication test with admin API instead
|
||||||
|
echo "Trying alternative authentication test via /api/principal..."
|
||||||
|
ALT_HTTP_CODE=$(curl -s -o /dev/null -w "%{http_code}" \
|
||||||
|
-u "user1@test1.local:UserPass123!" \
|
||||||
|
"http://localhost:8080/api/principal?types=individual&limit=1")
|
||||||
|
|
||||||
|
if [ "$ALT_HTTP_CODE" = "200" ]; then
|
||||||
|
echo "✓ User authenticated successfully via API endpoint"
|
||||||
|
exit 0
|
||||||
|
else
|
||||||
|
echo "::error::Alternative authentication also failed with HTTP $ALT_HTTP_CODE"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
# Verify username field contains our test user
|
# Verify username field contains our test user
|
||||||
USERNAME=$(cat /tmp/jmap_response.json | jq -r '.username // empty')
|
USERNAME=$(cat /tmp/jmap_response.json | jq -r '.username // empty')
|
||||||
|
|
||||||
|
|||||||
@@ -81,3 +81,8 @@ runs:
|
|||||||
HOSTNAME=$(hostname -f 2>/dev/null || echo "localhost")
|
HOSTNAME=$(hostname -f 2>/dev/null || echo "localhost")
|
||||||
echo "::notice::🎉 Stalwart Mail Server installation complete!"
|
echo "::notice::🎉 Stalwart Mail Server installation complete!"
|
||||||
echo "::notice::Web admin: http://$HOSTNAME:8080/login"
|
echo "::notice::Web admin: http://$HOSTNAME:8080/login"
|
||||||
|
if [ -n "${{ inputs.admin_password }}" ]; then
|
||||||
|
echo "::notice::Admin credentials configured via inputs"
|
||||||
|
else
|
||||||
|
echo "::notice::Default admin password: changeme (change this immediately!)"
|
||||||
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user