Skip to content

Commit

Permalink
docs(tests): Update docs how to test checkpassword command
Browse files Browse the repository at this point in the history
  • Loading branch information
doobry-systemli committed Mar 24, 2024
1 parent f398cc1 commit 8e08bab
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions docs/development/tests.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@

## Test checkpassword script

# Start vagrant box and login
vagrant up && vagrant ssh
bin/console doctrine:schema:create -n && bin/console doctrine:fixture:load -n && exit
cd .. && tests/test_checkpassword_login.sh
# Create DB schema and load fixtures
bin/console doctrine:schema:create
bin/console doctrine:fixture:load
# Run `app:users:checkpassword` locally. First should return `0`, second `1`
echo -en '[email protected]\0password' | ./bin/console app:users:checkpassword /bin/true; echo $?
echo -en '[email protected]\0wrong' | ./bin/console app:users:checkpassword /bin/true; echo $?
# Logout from vagrant and test via IMAP login
exit
./tests/test_checkpassword_login.sh

0 comments on commit 8e08bab

Please sign in to comment.