-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(tests): Update docs how to test
checkpassword
command
- Loading branch information
1 parent
f398cc1
commit 8e08bab
Showing
1 changed file
with
10 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 |