2019-08-21 16:50:14 +02:00
|
|
|
echo "Users tests ..."
|
|
|
|
# Should fail, admin is already auto-created
|
2023-02-15 11:00:03 +02:00
|
|
|
docker compose -f tests/compose/core/docker-compose.yml exec -T admin flask mailu admin admin mailu.io 'FooBar' && exit 1
|
2019-08-21 16:50:14 +02:00
|
|
|
echo "The above error was intended!"
|
|
|
|
# Should not fail, but does nothing; ifmissing mode
|
2023-02-15 11:00:03 +02:00
|
|
|
docker compose -f tests/compose/core/docker-compose.yml exec -T admin flask mailu admin admin mailu.io 'FooBar' --mode=ifmissing || exit 1
|
2019-08-21 16:50:14 +02:00
|
|
|
# Should not fail and update the password; update mode
|
2023-02-15 11:00:03 +02:00
|
|
|
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' || exit 1
|
|
|
|
docker compose -f tests/compose/core/docker-compose.yml exec -T admin flask mailu user 'user/with/slash' mailu.io 'password' || exit 1
|
2023-05-31 11:17:59 +02:00
|
|
|
docker compose -f tests/compose/core/docker-compose.yml exec -T admin flask mailu user 'user_UTF8' mailu.io 'password€' || exit 1
|
2022-10-19 19:36:13 +02:00
|
|
|
echo "User testing successful!"
|