|
|
@@ -1701,13 +1701,21 @@ function check_ip_not_banned(){
|
|
|
}
|
|
|
|
|
|
@test "MAIL: Add account alias Invalid length" {
|
|
|
- run v-add-mail-account-alias $user $domain test 'hestiacp-realy-rocks-but-i-want-to-have-feature-xyz-and-i-want-it-now'
|
|
|
+ run v-add-mail-account-alias $user $domain test 'hestiacp-really-rocks-but-i-want-to-have-feature-xyz-and-i-want-it-now'
|
|
|
assert_failure $E_INVALID
|
|
|
}
|
|
|
@test "MAIL: Add account alias Invalid" {
|
|
|
- run v-add-mail-account-alias $user $domain test '-test'
|
|
|
+ run v-add-mail-account-alias $user $domain test 'test+123'
|
|
|
assert_failure $E_INVALID
|
|
|
}
|
|
|
+@test "MAIL: Add account alias starting with -" {
|
|
|
+ run v-add-mail-account-alias $user $domain test '-test'
|
|
|
+ assert_success
|
|
|
+}
|
|
|
+@test "MAIL: Add account alias ending with -" {
|
|
|
+ run v-add-mail-account-alias $user $domain test 'test-'
|
|
|
+ assert_success
|
|
|
+}
|
|
|
@test "MAIL: Add account alias Invalid 2" {
|
|
|
run v-add-mail-account-alias $user $domain test 'hestia@test'
|
|
|
assert_failure $E_INVALID
|