mirror of
https://github.com/wekan/wekan.git
synced 2026-02-21 23:44:06 +01:00
Refactor logging messages in Wekan readiness and user verification steps for improved clarity
This commit is contained in:
parent
63596b1fbd
commit
c1336fc908
1 changed files with 3 additions and 3 deletions
6
.github/workflows/e2e-testing.yml
vendored
6
.github/workflows/e2e-testing.yml
vendored
|
|
@ -109,7 +109,7 @@ jobs:
|
||||||
key: ${{ secrets.EC2_SSH_KEY }}
|
key: ${{ secrets.EC2_SSH_KEY }}
|
||||||
script: |
|
script: |
|
||||||
# Wait for Wekan to be fully ready
|
# Wait for Wekan to be fully ready
|
||||||
echo "⏳ Waiting for Wekan to start..."
|
echo "Waiting for Wekan to start..."
|
||||||
for i in {1..24}; do
|
for i in {1..24}; do
|
||||||
if curl -s http://localhost > /dev/null 2>&1; then
|
if curl -s http://localhost > /dev/null 2>&1; then
|
||||||
echo "Wekan is responding!"
|
echo "Wekan is responding!"
|
||||||
|
|
@ -174,11 +174,11 @@ jobs:
|
||||||
' || echo "Failed to execute MongoDB command"
|
' || echo "Failed to execute MongoDB command"
|
||||||
|
|
||||||
# Verify user was created
|
# Verify user was created
|
||||||
echo "🔍 Verifying user creation..."
|
echo "Verifying user creation..."
|
||||||
sudo docker exec wekan-db mongosh wekan --eval 'db.users.findOne({username: "omriza5"}, {username: 1, emails: 1, isAdmin: 1})' || echo "User verification failed"
|
sudo docker exec wekan-db mongosh wekan --eval 'db.users.findOne({username: "omriza5"}, {username: 1, emails: 1, isAdmin: 1})' || echo "User verification failed"
|
||||||
|
|
||||||
# Verify login works
|
# Verify login works
|
||||||
echo "🔑 Testing login..."
|
echo "Testing login..."
|
||||||
LOGIN_RESPONSE=$(curl -s -w "HTTPSTATUS:%{http_code}" \
|
LOGIN_RESPONSE=$(curl -s -w "HTTPSTATUS:%{http_code}" \
|
||||||
-H "Content-type:application/json" \
|
-H "Content-type:application/json" \
|
||||||
-X POST http://localhost/users/login \
|
-X POST http://localhost/users/login \
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue