Skip to content
This repository has been archived by the owner on Dec 14, 2024. It is now read-only.

Commit

Permalink
fix wrong testuser credentials, add additional log to test script
Browse files Browse the repository at this point in the history
  • Loading branch information
Glutamat42 committed Apr 5, 2024
1 parent cfb9d07 commit 2f9ab66
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ services:
MOODLE_DATABASE_PASSWORD: moodle
MOODLE_DATABASE_NAME: moodle
USER_NAME: student,manager
USER_PASSWORD: Student1234.1234,Manager1234.1234
USER_PASSWORD: Student1234!1234,Manager1234!1234
USER_ROLE: false,false
USER_CREATE_ADLER_COURSE_CATEGORY: "false, true"
BITNAMI_DEBUG: true
Expand Down
5 changes: 3 additions & 2 deletions tests/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,11 @@ fi
echo "moodle is ready, starting with curl"

# Get token
token=$(curl --location "http://${hostname}:${port}/login/token.php?username=${username}&password=${password}&service=adler_services" -s)
token_response=$(curl --location "http://${hostname}:${port}/login/token.php?username=${username}&password=${password}&service=adler_services" -s)

# Extract token from response
token=$(echo "$token" | jq -r '.token')
echo "response is $token_response"
token=$(echo "$token_response" | jq -r '.token')
echo "token is $token"

# Upload course
Expand Down

0 comments on commit 2f9ab66

Please sign in to comment.