mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-17 23:56:56 +00:00
feat(GODT-3185): report cases which leads to wrong address key used
This commit is contained in:
42
tests/features/imap/addressmode.feature
Normal file
42
tests/features/imap/addressmode.feature
Normal file
@ -0,0 +1,42 @@
|
||||
Feature: IMAP client authentication with address modes
|
||||
Background:
|
||||
Given there exists an account with username "[user:user]" and password "password"
|
||||
And the account "[user:user]" has additional address "[alias:alias]@[domain]"
|
||||
And it succeeds
|
||||
|
||||
Scenario: IMAP client can authenticate successfully with secondary address in combine mode
|
||||
Given bridge starts
|
||||
And the user logs in with username "[user:user]" and password "password"
|
||||
And user "[user:user]" finishes syncing
|
||||
Then user "[user:user]" connects and authenticates IMAP client "1" with address "[alias:alias]@[domain]"
|
||||
|
||||
Scenario: IMAP client can authenticate successfully with secondary address in split mode
|
||||
Given bridge starts
|
||||
And the user logs in with username "[user:user]" and password "password"
|
||||
And the user sets the address mode of user "[user:user]" to "split"
|
||||
And user "[user:user]" finishes syncing
|
||||
Then user "[user:user]" connects and authenticates IMAP client "1" with address "[alias:alias]@[domain]"
|
||||
|
||||
# Need to find way to setup disabled address on black
|
||||
@skip-black
|
||||
Scenario: IMAP client cannot authenticate successfully with disabled alias in combine mode
|
||||
Given the account "[user:user]" has additional disabled address "[alias:disabled]@[domain]"
|
||||
And it succeeds
|
||||
Given bridge starts
|
||||
And the user logs in with username "[user:user]" and password "password"
|
||||
And user "[user:user]" finishes syncing
|
||||
# GODT-3307 it should succeed
|
||||
When user "[user:user]" connects and can not authenticate IMAP client "1" with address "[alias:disabled]@[domain]"
|
||||
|
||||
# Need to find way to setup disabled address on black
|
||||
@skip-black
|
||||
Scenario: IMAP client cannot authenticate successfully with disabled alias in split mode
|
||||
Given the account "[user:user]" has additional disabled address "[alias:disabled]@[domain]"
|
||||
And it succeeds
|
||||
Given bridge starts
|
||||
And the user logs in with username "[user:user]" and password "password"
|
||||
And the user sets the address mode of user "[user:user]" to "split"
|
||||
And user "[user:user]" finishes syncing
|
||||
# GODT-3307 it should succeed
|
||||
When user "[user:user]" connects and can not authenticate IMAP client "1" with address "[alias:disabled]@[domain]"
|
||||
|
||||
Reference in New Issue
Block a user