GODT-1817: Add missing IMAP auth tests with disabled & secondary accounts

This commit is contained in:
Leander Beernaert
2023-01-09 15:13:52 +01:00
parent 0dcd4ca133
commit f876ffab52
3 changed files with 25 additions and 0 deletions

View File

@ -1,8 +1,12 @@
Feature: A user can authenticate an IMAP client
Background:
Given there exists an account with username "[user:user]" and password "password"
And there exists an account with username "[user2:user2]" and password "password2"
And the account "[user:user]" has additional address "[alias:alias]@[domain]"
And the account "[user2:user2]" has additional disabled address "[alias2:alias2]@[domain]"
And bridge starts
And the user logs in with username "[user:user]" and password "password"
And the user logs in with username "[user2:user2]" and password "password2"
Scenario: IMAP client can authenticate successfully
When user "[user:user]" connects IMAP client "1"
@ -12,6 +16,12 @@ Feature: A user can authenticate an IMAP client
When user "[user:user]" connects IMAP client "1"
Then IMAP client "1" can authenticate with address "{toUpper:[user:user]@[domain]}"
Scenario: IMAP client can authenticate successfully with secondary address
Given user "[user:user]" connects and authenticates IMAP client "1" with address "[alias:alias]@[domain]"
Scenario: IMAP client can not authenticate successfully with disable address
Given user "[user2:user2]" connects and can not authenticate IMAP client "1" with address "[alias2:alias2]@[domain]"
Scenario: IMAP client can authenticate successfully
When user "[user:user]" connects IMAP client "1"
Then IMAP client "1" can authenticate