Skip to content

Commit

Permalink
Fix password management
Browse files Browse the repository at this point in the history
  • Loading branch information
williamdes committed Oct 14, 2023
1 parent ea5b9c7 commit a37d01b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,7 @@ cleanup-test:
@echo "Stopping and removing the container"
TEST_ADDR="${TEST_ADDR}" \
IMAGE_TAG="${IMAGE_TAG}" \
DMARC_SRG_UI_PASSWORD="public" \
# Random port maybe free ?
DMARC_SRG_HTTP_ADDRESS="8912" \
docker-compose -f docker-compose-latest.test.yml down
2 changes: 1 addition & 1 deletion test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ checkUrl "http://${TEST_ADDR}/robots.txt" -I
checkUrl "http://${TEST_ADDR}/css/main.css" -I | grep -F "Cache-Control: max-age=86400"

checkUrl "http://${TEST_ADDR}/index.php" | grep -q -F "DMARC Reports"
checkUrl "http://${TEST_ADDR}/login.php" "form" "{"password":"h9LoC5JRceynq5vRKeC4D2Bu7G7Fxny8yt4vCjQsp7vVE"}" | grep -q -F "Successfully logged into server."
checkUrl "http://${TEST_ADDR}/login.php" "form" "{"password":"public"}" | grep -q -F "Successfully logged into server."

if [ $DID_FAIL -gt 0 ]; then
echo "Some URLs failed"
Expand Down

0 comments on commit a37d01b

Please sign in to comment.