1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
|
require "vnd.dovecot.testsuite";
require "vnd.dovecot.environment";
require "variables";
require "relational";
test "default_mailbox" {
if not string "${env.vnd.dovecot.default_mailbox}" "INBOX" {
test_fail "The env.vnd.dovecot.default_mailbox variable returned invalid value: `${env.vnd.dovecot.default_mailbox}'";
}
}
test "username" {
set :length "userlen" "${env.vnd.dovecot.username}";
if not string :value "ge" "${userlen}" "1" {
test_fail "The env.vnd.dovecot.username variable is empty or does not exist";
}
}
|