Merge #2665
2665: Update to docker compose v2 r=mergify[bot] a=nextgens ## What type of PR? documentation ## What does this PR do? Update to docker compose v2 ### Related issue(s) - close #2663 ## Prerequisites Before we can consider review and merge, please make sure the following list is done and checked. If an entry in not applicable, you can check it or remove it from the list. - [x] In case of feature or enhancement: documentation updated accordingly - [ ] Unless it's docs or a minor change: add [changelog](https://mailu.io/master/contributors/workflow.html#changelog) entry file. Co-authored-by: Florent Daigniere <nextgens@freenetproject.org> Co-authored-by: Florent Daigniere <nextgens@users.noreply.github.com>main
commit
0069b67ada
@ -1,11 +1,11 @@
|
|||||||
echo "Users tests ..."
|
echo "Users tests ..."
|
||||||
# Should fail, admin is already auto-created
|
# 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
|
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!"
|
echo "The above error was intended!"
|
||||||
# Should not fail, but does nothing; ifmissing mode
|
# 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
|
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
|
# 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 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 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
|
docker compose -f tests/compose/core/docker-compose.yml exec -T admin flask mailu user 'user/with/slash' mailu.io 'password' || exit 1
|
||||||
echo "User testing successful!"
|
echo "User testing successful!"
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
echo "Creating user required for next test ..."
|
echo "Creating user required for next test ..."
|
||||||
# Should not fail and update the password; update mode
|
# Should not fail and update the password; update mode
|
||||||
docker-compose -f tests/compose/filters/docker-compose.yml exec -T admin flask mailu admin admin mailu.io 'password' --mode=update || exit 1
|
docker compose -f tests/compose/filters/docker-compose.yml exec -T admin flask mailu admin admin mailu.io 'password' --mode=update || exit 1
|
||||||
docker-compose -f tests/compose/filters/docker-compose.yml exec -T admin flask mailu user user mailu.io 'password' || exit 1
|
docker compose -f tests/compose/filters/docker-compose.yml exec -T admin flask mailu user user mailu.io 'password' || exit 1
|
||||||
echo "User created successfully"
|
echo "User created successfully"
|
||||||
|
Loading…
Reference in New Issue