Skip to content

Commit 56f9a93

Browse files
author
Christoph Schläpfer
committed
Fixed tests
1 parent 1302bc2 commit 56f9a93

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

test/test.bats

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1701,13 +1701,21 @@ function check_ip_not_banned(){
17011701
}
17021702

17031703
@test "MAIL: Add account alias Invalid length" {
1704-
run v-add-mail-account-alias $user $domain test 'hestiacp-realy-rocks-but-i-want-to-have-feature-xyz-and-i-want-it-now'
1704+
run v-add-mail-account-alias $user $domain test 'hestiacp-really-rocks-but-i-want-to-have-feature-xyz-and-i-want-it-now'
17051705
assert_failure $E_INVALID
17061706
}
17071707
@test "MAIL: Add account alias Invalid" {
1708-
run v-add-mail-account-alias $user $domain test '-test'
1708+
run v-add-mail-account-alias $user $domain test 'test+123'
17091709
assert_failure $E_INVALID
17101710
}
1711+
@test "MAIL: Add account alias starting with -" {
1712+
run v-add-mail-account-alias $user $domain test '-test'
1713+
assert_success
1714+
}
1715+
@test "MAIL: Add account alias ending with -" {
1716+
run v-add-mail-account-alias $user $domain test 'test-'
1717+
assert_success
1718+
}
17111719
@test "MAIL: Add account alias Invalid 2" {
17121720
run v-add-mail-account-alias $user $domain test 'hestia@test'
17131721
assert_failure $E_INVALID

0 commit comments

Comments
 (0)