mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2024-01-19 02:48:50 +00:00
Use assert_output for better diagnostics of failures
This commit is contained in:
parent
1ba0991d80
commit
bf773cc8b7
|
@ -1252,8 +1252,8 @@ function count_processed_changes() {
|
||||||
|
|
||||||
|
|
||||||
@test "checking user login: predefined user can login" {
|
@test "checking user login: predefined user can login" {
|
||||||
result=$(docker exec mail doveadm auth test -x service=smtp pass@localhost.localdomain 'may be \a `p^a.*ssword' | grep 'auth succeeded')
|
run docker exec mail /bin/bash -c "doveadm auth test -x service=smtp pass@localhost.localdomain 'may be \\a \`p^a.*ssword' | grep 'passdb'"
|
||||||
[ "$result" = "passdb: pass@localhost.localdomain auth succeeded" ]
|
assert_output "passdb: pass@localhost.localdomain auth succeeded"
|
||||||
}
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -1303,8 +1303,8 @@ function count_processed_changes() {
|
||||||
# Alternatively we could login with a known good user to make sure that the service is up
|
# Alternatively we could login with a known good user to make sure that the service is up
|
||||||
sleep 2
|
sleep 2
|
||||||
|
|
||||||
result=$(docker exec mail doveadm auth test -x service=smtp setup_email_add@example.com 'test_password' | grep 'auth succeeded')
|
run docker exec mail /bin/bash -c "doveadm auth test -x service=smtp setup_email_add@example.com 'test_password' | grep 'passdb'"
|
||||||
[ "$result" = "passdb: setup_email_add@example.com auth succeeded" ]
|
assert_output "passdb: setup_email_add@example.com auth succeeded"
|
||||||
}
|
}
|
||||||
|
|
||||||
@test "checking setup.sh: setup.sh email list" {
|
@test "checking setup.sh: setup.sh email list" {
|
||||||
|
|
Loading…
Reference in a new issue