-
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.
- Loading branch information
1 parent
2251474
commit 5416b71
Showing
12 changed files
with
204 additions
and
159 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
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
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 |
---|---|---|
|
@@ -2,20 +2,24 @@ | |
|
||
## Linting, unit tests and functional tests | ||
|
||
vagrant up && vagrant ssh | ||
make test | ||
make integration | ||
```shell | ||
vagrant up && vagrant ssh | ||
make test | ||
make integration | ||
``` | ||
|
||
## Test checkpassword script | ||
|
||
# Start vagrant box and login | ||
vagrant up && vagrant ssh | ||
# 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 | ||
```shell | ||
# Start vagrant box and login | ||
vagrant up && vagrant ssh | ||
# 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 | ||
``` |
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
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
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
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
Oops, something went wrong.