File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments