mirror of
https://github.com/Mailu/Mailu.git
synced 2024-12-14 10:53:30 +02:00
d5d097eebc
This flag is missing in 00_create_users.sh and is failing the tests on travis arm architecture
12 lines
930 B
Bash
Executable File
12 lines
930 B
Bash
Executable File
echo "Users tests ..."
|
|
# Should fail, admin is already auto-created
|
|
docker-compose -f tests/compose/core/docker-compose.yml exec -T admin flask mailu admin admin mailu.io 'FooBar' && exit 1
|
|
echo "The above error was intended!"
|
|
# Should not fail, but does nothing; ifmissing mode
|
|
docker-compose -f tests/compose/core/docker-compose.yml exec -T admin flask mailu admin admin mailu.io 'FooBar' --mode=ifmissing || exit 1
|
|
# Should not fail and update the password; update mode
|
|
docker-compose -f tests/compose/core/docker-compose.yml exec -T admin flask mailu admin admin mailu.io 'password' --mode=update || exit 1
|
|
docker-compose -f tests/compose/core/docker-compose.yml exec -T admin flask mailu user user mailu.io 'password' 'SHA512-CRYPT' || exit 1
|
|
docker-compose -f tests/compose/core/docker-compose.yml exec -T admin flask mailu user 'user/with/slash' mailu.io 'password' 'SHA512-CRYPT' || exit 1
|
|
echo "User testing succesfull!"
|