mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-25 19:36:43 +00:00
GODT-2181(test): use [domain] for test server domain
This commit is contained in:
@ -1,179 +1,179 @@
|
||||
Feature: Address mode
|
||||
Background:
|
||||
Given there exists an account with username "user@pm.me" and password "password"
|
||||
And the account "user@pm.me" has additional address "alias@pm.me"
|
||||
And the account "user@pm.me" has the following custom mailboxes:
|
||||
| name | type |
|
||||
| one | folder |
|
||||
| two | folder |
|
||||
And the address "user@pm.me" of account "user@pm.me" has the following messages in "one":
|
||||
| from | to | subject | unread |
|
||||
| a@pm.me | a@pm.me | one | true |
|
||||
| b@pm.me | b@pm.me | two | false |
|
||||
And the address "alias@pm.me" of account "user@pm.me" has the following messages in "two":
|
||||
| from | to | subject | unread |
|
||||
| c@pm.me | c@pm.me | three | true |
|
||||
| d@pm.me | d@pm.me | four | false |
|
||||
Given there exists an account with username "user" and password "password"
|
||||
And the account "user" has additional address "alias@[domain]"
|
||||
And the account "user" has the following custom mailboxes:
|
||||
| name | type |
|
||||
| one | folder |
|
||||
| two | folder |
|
||||
And the address "user@[domain]" of account "user" has the following messages in "one":
|
||||
| from | to | subject | unread |
|
||||
| a@[domain] | a@[domain] | one | true |
|
||||
| b@[domain] | b@[domain] | two | false |
|
||||
And the address "alias@[domain]" of account "user" has the following messages in "two":
|
||||
| from | to | subject | unread |
|
||||
| c@[domain] | c@[domain] | three | true |
|
||||
| d@[domain] | d@[domain] | four | false |
|
||||
And bridge starts
|
||||
And the user logs in with username "user@pm.me" and password "password"
|
||||
And user "user@pm.me" finishes syncing
|
||||
And the user logs in with username "user" and password "password"
|
||||
And user "user" finishes syncing
|
||||
|
||||
Scenario: The user is in combined mode
|
||||
When user "user@pm.me" connects and authenticates IMAP client "1" with address "user@pm.me"
|
||||
When user "user" connects and authenticates IMAP client "1" with address "user@[domain]"
|
||||
Then IMAP client "1" sees the following messages in "Folders/one":
|
||||
| from | to | subject | unread |
|
||||
| a@pm.me | a@pm.me | one | true |
|
||||
| b@pm.me | b@pm.me | two | false |
|
||||
| from | to | subject | unread |
|
||||
| a@[domain] | a@[domain] | one | true |
|
||||
| b@[domain] | b@[domain] | two | false |
|
||||
And IMAP client "1" sees the following messages in "Folders/two":
|
||||
| from | to | subject | unread |
|
||||
| c@pm.me | c@pm.me | three | true |
|
||||
| d@pm.me | d@pm.me | four | false |
|
||||
| from | to | subject | unread |
|
||||
| c@[domain] | c@[domain] | three | true |
|
||||
| d@[domain] | d@[domain] | four | false |
|
||||
And IMAP client "1" sees the following messages in "All Mail":
|
||||
| from | to | subject | unread |
|
||||
| a@pm.me | a@pm.me | one | true |
|
||||
| b@pm.me | b@pm.me | two | false |
|
||||
| c@pm.me | c@pm.me | three | true |
|
||||
| d@pm.me | d@pm.me | four | false |
|
||||
When user "user@pm.me" connects and authenticates IMAP client "2" with address "alias@pm.me"
|
||||
| from | to | subject | unread |
|
||||
| a@[domain] | a@[domain] | one | true |
|
||||
| b@[domain] | b@[domain] | two | false |
|
||||
| c@[domain] | c@[domain] | three | true |
|
||||
| d@[domain] | d@[domain] | four | false |
|
||||
When user "user" connects and authenticates IMAP client "2" with address "alias@[domain]"
|
||||
Then IMAP client "2" sees the following messages in "Folders/one":
|
||||
| from | to | subject | unread |
|
||||
| a@pm.me | a@pm.me | one | true |
|
||||
| b@pm.me | b@pm.me | two | false |
|
||||
| from | to | subject | unread |
|
||||
| a@[domain] | a@[domain] | one | true |
|
||||
| b@[domain] | b@[domain] | two | false |
|
||||
And IMAP client "2" sees the following messages in "Folders/two":
|
||||
| from | to | subject | unread |
|
||||
| c@pm.me | c@pm.me | three | true |
|
||||
| d@pm.me | d@pm.me | four | false |
|
||||
| from | to | subject | unread |
|
||||
| c@[domain] | c@[domain] | three | true |
|
||||
| d@[domain] | d@[domain] | four | false |
|
||||
And IMAP client "2" sees the following messages in "All Mail":
|
||||
| from | to | subject | unread |
|
||||
| a@pm.me | a@pm.me | one | true |
|
||||
| b@pm.me | b@pm.me | two | false |
|
||||
| c@pm.me | c@pm.me | three | true |
|
||||
| d@pm.me | d@pm.me | four | false |
|
||||
| from | to | subject | unread |
|
||||
| a@[domain] | a@[domain] | one | true |
|
||||
| b@[domain] | b@[domain] | two | false |
|
||||
| c@[domain] | c@[domain] | three | true |
|
||||
| d@[domain] | d@[domain] | four | false |
|
||||
|
||||
Scenario: The user is in split mode
|
||||
Given the user sets the address mode of "user@pm.me" to "split"
|
||||
And user "user@pm.me" finishes syncing
|
||||
When user "user@pm.me" connects and authenticates IMAP client "1" with address "user@pm.me"
|
||||
Given the user sets the address mode of user "user" to "split"
|
||||
And user "user" finishes syncing
|
||||
When user "user" connects and authenticates IMAP client "1" with address "user@[domain]"
|
||||
Then IMAP client "1" sees the following messages in "Folders/one":
|
||||
| from | to | subject | unread |
|
||||
| a@pm.me | a@pm.me | one | true |
|
||||
| b@pm.me | b@pm.me | two | false |
|
||||
| from | to | subject | unread |
|
||||
| a@[domain] | a@[domain] | one | true |
|
||||
| b@[domain] | b@[domain] | two | false |
|
||||
And IMAP client "1" sees 0 messages in "Folders/two"
|
||||
And IMAP client "1" sees the following messages in "All Mail":
|
||||
| from | to | subject | unread |
|
||||
| a@pm.me | a@pm.me | one | true |
|
||||
| b@pm.me | b@pm.me | two | false |
|
||||
When user "user@pm.me" connects and authenticates IMAP client "2" with address "alias@pm.me"
|
||||
| from | to | subject | unread |
|
||||
| a@[domain] | a@[domain] | one | true |
|
||||
| b@[domain] | b@[domain] | two | false |
|
||||
When user "user" connects and authenticates IMAP client "2" with address "alias@[domain]"
|
||||
Then IMAP client "2" sees 0 messages in "Folders/one"
|
||||
And IMAP client "2" sees the following messages in "Folders/two":
|
||||
| from | to | subject | unread |
|
||||
| c@pm.me | c@pm.me | three | true |
|
||||
| d@pm.me | d@pm.me | four | false |
|
||||
| from | to | subject | unread |
|
||||
| c@[domain] | c@[domain] | three | true |
|
||||
| d@[domain] | d@[domain] | four | false |
|
||||
And IMAP client "2" sees the following messages in "All Mail":
|
||||
| from | to | subject | unread |
|
||||
| c@pm.me | c@pm.me | three | true |
|
||||
| d@pm.me | d@pm.me | four | false |
|
||||
| from | to | subject | unread |
|
||||
| c@[domain] | c@[domain] | three | true |
|
||||
| d@[domain] | d@[domain] | four | false |
|
||||
|
||||
Scenario: The user switches from combined to split mode and back
|
||||
Given the user sets the address mode of "user@pm.me" to "split"
|
||||
And user "user@pm.me" finishes syncing
|
||||
And the user sets the address mode of "user@pm.me" to "combined"
|
||||
And user "user@pm.me" finishes syncing
|
||||
When user "user@pm.me" connects and authenticates IMAP client "1" with address "user@pm.me"
|
||||
Given the user sets the address mode of user "user" to "split"
|
||||
And user "user" finishes syncing
|
||||
And the user sets the address mode of user "user" to "combined"
|
||||
And user "user" finishes syncing
|
||||
When user "user" connects and authenticates IMAP client "1" with address "user@[domain]"
|
||||
Then IMAP client "1" sees the following messages in "All Mail":
|
||||
| from | to | subject | unread |
|
||||
| a@pm.me | a@pm.me | one | true |
|
||||
| b@pm.me | b@pm.me | two | false |
|
||||
| c@pm.me | c@pm.me | three | true |
|
||||
| d@pm.me | d@pm.me | four | false |
|
||||
When user "user@pm.me" connects and authenticates IMAP client "2" with address "alias@pm.me"
|
||||
| from | to | subject | unread |
|
||||
| a@[domain] | a@[domain] | one | true |
|
||||
| b@[domain] | b@[domain] | two | false |
|
||||
| c@[domain] | c@[domain] | three | true |
|
||||
| d@[domain] | d@[domain] | four | false |
|
||||
When user "user" connects and authenticates IMAP client "2" with address "alias@[domain]"
|
||||
Then IMAP client "2" sees the following messages in "All Mail":
|
||||
| from | to | subject | unread |
|
||||
| a@pm.me | a@pm.me | one | true |
|
||||
| b@pm.me | b@pm.me | two | false |
|
||||
| c@pm.me | c@pm.me | three | true |
|
||||
| d@pm.me | d@pm.me | four | false |
|
||||
| from | to | subject | unread |
|
||||
| a@[domain] | a@[domain] | one | true |
|
||||
| b@[domain] | b@[domain] | two | false |
|
||||
| c@[domain] | c@[domain] | three | true |
|
||||
| d@[domain] | d@[domain] | four | false |
|
||||
|
||||
Scenario: The user adds an address while in combined mode
|
||||
When user "user@pm.me" connects and authenticates IMAP client "1" with address "user@pm.me"
|
||||
When user "user" connects and authenticates IMAP client "1" with address "user@[domain]"
|
||||
Then IMAP client "1" sees the following messages in "All Mail":
|
||||
| from | to | subject | unread |
|
||||
| a@pm.me | a@pm.me | one | true |
|
||||
| b@pm.me | b@pm.me | two | false |
|
||||
| c@pm.me | c@pm.me | three | true |
|
||||
| d@pm.me | d@pm.me | four | false |
|
||||
When user "user@pm.me" connects and authenticates IMAP client "2" with address "alias@pm.me"
|
||||
| from | to | subject | unread |
|
||||
| a@[domain] | a@[domain] | one | true |
|
||||
| b@[domain] | b@[domain] | two | false |
|
||||
| c@[domain] | c@[domain] | three | true |
|
||||
| d@[domain] | d@[domain] | four | false |
|
||||
When user "user" connects and authenticates IMAP client "2" with address "alias@[domain]"
|
||||
Then IMAP client "2" sees the following messages in "All Mail":
|
||||
| from | to | subject | unread |
|
||||
| a@pm.me | a@pm.me | one | true |
|
||||
| b@pm.me | b@pm.me | two | false |
|
||||
| c@pm.me | c@pm.me | three | true |
|
||||
| d@pm.me | d@pm.me | four | false |
|
||||
Given the account "user@pm.me" has additional address "other@pm.me"
|
||||
And bridge sends an address created event for user "user@pm.me"
|
||||
When user "user@pm.me" connects and authenticates IMAP client "3" with address "other@pm.me"
|
||||
| from | to | subject | unread |
|
||||
| a@[domain] | a@[domain] | one | true |
|
||||
| b@[domain] | b@[domain] | two | false |
|
||||
| c@[domain] | c@[domain] | three | true |
|
||||
| d@[domain] | d@[domain] | four | false |
|
||||
Given the account "user" has additional address "other@[domain]"
|
||||
And bridge sends an address created event for user "user"
|
||||
When user "user" connects and authenticates IMAP client "3" with address "other@[domain]"
|
||||
Then IMAP client "3" sees the following messages in "All Mail":
|
||||
| from | to | subject | unread |
|
||||
| a@pm.me | a@pm.me | one | true |
|
||||
| b@pm.me | b@pm.me | two | false |
|
||||
| c@pm.me | c@pm.me | three | true |
|
||||
| d@pm.me | d@pm.me | four | false |
|
||||
| from | to | subject | unread |
|
||||
| a@[domain] | a@[domain] | one | true |
|
||||
| b@[domain] | b@[domain] | two | false |
|
||||
| c@[domain] | c@[domain] | three | true |
|
||||
| d@[domain] | d@[domain] | four | false |
|
||||
|
||||
Scenario: The user adds an address while in split mode
|
||||
Given the user sets the address mode of "user@pm.me" to "split"
|
||||
And user "user@pm.me" finishes syncing
|
||||
When user "user@pm.me" connects and authenticates IMAP client "1" with address "user@pm.me"
|
||||
Given the user sets the address mode of user "user" to "split"
|
||||
And user "user" finishes syncing
|
||||
When user "user" connects and authenticates IMAP client "1" with address "user@[domain]"
|
||||
And IMAP client "1" sees the following messages in "All Mail":
|
||||
| from | to | subject | unread |
|
||||
| a@pm.me | a@pm.me | one | true |
|
||||
| b@pm.me | b@pm.me | two | false |
|
||||
When user "user@pm.me" connects and authenticates IMAP client "2" with address "alias@pm.me"
|
||||
| from | to | subject | unread |
|
||||
| a@[domain] | a@[domain] | one | true |
|
||||
| b@[domain] | b@[domain] | two | false |
|
||||
When user "user" connects and authenticates IMAP client "2" with address "alias@[domain]"
|
||||
And IMAP client "2" sees the following messages in "All Mail":
|
||||
| from | to | subject | unread |
|
||||
| c@pm.me | c@pm.me | three | true |
|
||||
| d@pm.me | d@pm.me | four | false |
|
||||
Given the account "user@pm.me" has additional address "other@pm.me"
|
||||
And bridge sends an address created event for user "user@pm.me"
|
||||
When user "user@pm.me" connects and authenticates IMAP client "3" with address "other@pm.me"
|
||||
| from | to | subject | unread |
|
||||
| c@[domain] | c@[domain] | three | true |
|
||||
| d@[domain] | d@[domain] | four | false |
|
||||
Given the account "user" has additional address "other@[domain]"
|
||||
And bridge sends an address created event for user "user"
|
||||
When user "user" connects and authenticates IMAP client "3" with address "other@[domain]"
|
||||
Then IMAP client "3" eventually sees 0 messages in "All Mail"
|
||||
|
||||
Scenario: The user deletes an address while in combined mode
|
||||
When user "user@pm.me" connects and authenticates IMAP client "1" with address "user@pm.me"
|
||||
When user "user" connects and authenticates IMAP client "1" with address "user@[domain]"
|
||||
Then IMAP client "1" sees the following messages in "All Mail":
|
||||
| from | to | subject | unread |
|
||||
| a@pm.me | a@pm.me | one | true |
|
||||
| b@pm.me | b@pm.me | two | false |
|
||||
| c@pm.me | c@pm.me | three | true |
|
||||
| d@pm.me | d@pm.me | four | false |
|
||||
When user "user@pm.me" connects and authenticates IMAP client "2" with address "alias@pm.me"
|
||||
| from | to | subject | unread |
|
||||
| a@[domain] | a@[domain] | one | true |
|
||||
| b@[domain] | b@[domain] | two | false |
|
||||
| c@[domain] | c@[domain] | three | true |
|
||||
| d@[domain] | d@[domain] | four | false |
|
||||
When user "user" connects and authenticates IMAP client "2" with address "alias@[domain]"
|
||||
Then IMAP client "2" sees the following messages in "All Mail":
|
||||
| from | to | subject | unread |
|
||||
| a@pm.me | a@pm.me | one | true |
|
||||
| b@pm.me | b@pm.me | two | false |
|
||||
| c@pm.me | c@pm.me | three | true |
|
||||
| d@pm.me | d@pm.me | four | false |
|
||||
Given the account "user@pm.me" no longer has additional address "alias@pm.me"
|
||||
And bridge sends an address deleted event for user "user@pm.me"
|
||||
When user "user@pm.me" connects IMAP client "3"
|
||||
Then IMAP client "3" cannot authenticate with address "alias@pm.me"
|
||||
| from | to | subject | unread |
|
||||
| a@[domain] | a@[domain] | one | true |
|
||||
| b@[domain] | b@[domain] | two | false |
|
||||
| c@[domain] | c@[domain] | three | true |
|
||||
| d@[domain] | d@[domain] | four | false |
|
||||
Given the account "user" no longer has additional address "alias@[domain]"
|
||||
And bridge sends an address deleted event for user "user"
|
||||
When user "user" connects IMAP client "3"
|
||||
Then IMAP client "3" cannot authenticate with address "alias@[domain]"
|
||||
|
||||
Scenario: The user deletes an address while in split mode
|
||||
Given the user sets the address mode of "user@pm.me" to "split"
|
||||
And user "user@pm.me" finishes syncing
|
||||
When user "user@pm.me" connects and authenticates IMAP client "1" with address "user@pm.me"
|
||||
Given the user sets the address mode of user "user" to "split"
|
||||
And user "user" finishes syncing
|
||||
When user "user" connects and authenticates IMAP client "1" with address "user@[domain]"
|
||||
And IMAP client "1" sees the following messages in "All Mail":
|
||||
| from | to | subject | unread |
|
||||
| a@pm.me | a@pm.me | one | true |
|
||||
| b@pm.me | b@pm.me | two | false |
|
||||
When user "user@pm.me" connects and authenticates IMAP client "2" with address "alias@pm.me"
|
||||
| from | to | subject | unread |
|
||||
| a@[domain] | a@[domain] | one | true |
|
||||
| b@[domain] | b@[domain] | two | false |
|
||||
When user "user" connects and authenticates IMAP client "2" with address "alias@[domain]"
|
||||
And IMAP client "2" sees the following messages in "All Mail":
|
||||
| from | to | subject | unread |
|
||||
| c@pm.me | c@pm.me | three | true |
|
||||
| d@pm.me | d@pm.me | four | false |
|
||||
Given the account "user@pm.me" no longer has additional address "alias@pm.me"
|
||||
And bridge sends an address deleted event for user "user@pm.me"
|
||||
When user "user@pm.me" connects IMAP client "3"
|
||||
Then IMAP client "3" cannot authenticate with address "alias@pm.me"
|
||||
| from | to | subject | unread |
|
||||
| c@[domain] | c@[domain] | three | true |
|
||||
| d@[domain] | d@[domain] | four | false |
|
||||
Given the account "user" no longer has additional address "alias@[domain]"
|
||||
And bridge sends an address deleted event for user "user"
|
||||
When user "user" connects IMAP client "3"
|
||||
Then IMAP client "3" cannot authenticate with address "alias@[domain]"
|
||||
|
||||
Scenario: The user makes an alias the primary address while in combined mode
|
||||
|
||||
|
||||
@ -1,14 +1,14 @@
|
||||
Feature: A user can be deleted
|
||||
Background:
|
||||
Given there exists an account with username "user@pm.me" and password "password"
|
||||
Given there exists an account with username "user" and password "password"
|
||||
And bridge starts
|
||||
And the user logs in with username "user@pm.me" and password "password"
|
||||
And the user logs in with username "user" and password "password"
|
||||
|
||||
Scenario: Delete a connected user
|
||||
When user "user@pm.me" is deleted
|
||||
Then user "user@pm.me" is not listed
|
||||
When user "user" is deleted
|
||||
Then user "user" is not listed
|
||||
|
||||
Scenario: Delete a disconnected user
|
||||
Given user "user@pm.me" logs out
|
||||
When user "user@pm.me" is deleted
|
||||
Then user "user@pm.me" is not listed
|
||||
Given user "user" logs out
|
||||
When user "user" is deleted
|
||||
Then user "user" is not listed
|
||||
@ -1,36 +1,36 @@
|
||||
Feature: A user can login
|
||||
Background:
|
||||
Given there exists an account with username "user@pm.me" and password "password"
|
||||
Given there exists an account with username "user" and password "password"
|
||||
And bridge starts
|
||||
|
||||
Scenario: Login to account
|
||||
When the user logs in with username "user@pm.me" and password "password"
|
||||
Then user "user@pm.me" is listed and connected
|
||||
When the user logs in with username "user" and password "password"
|
||||
Then user "user" is listed and connected
|
||||
|
||||
Scenario: Login to account with wrong password
|
||||
When the user logs in with username "user@pm.me" and password "wrong"
|
||||
Then user "user@pm.me" is not listed
|
||||
When the user logs in with username "user" and password "wrong"
|
||||
Then user "user" is not listed
|
||||
|
||||
Scenario: Login to nonexistent account
|
||||
When the user logs in with username "other@pm.me" and password "unknown"
|
||||
Then user "other@pm.me" is not listed
|
||||
When the user logs in with username "other" and password "unknown"
|
||||
Then user "other" is not listed
|
||||
|
||||
Scenario: Login to account without internet
|
||||
Given the internet is turned off
|
||||
When the user logs in with username "user@pm.me" and password "password"
|
||||
Then user "user@pm.me" is not listed
|
||||
When the user logs in with username "user" and password "password"
|
||||
Then user "user" is not listed
|
||||
|
||||
Scenario: Login to account without internet but the connection is later restored
|
||||
When the user logs in with username "user@pm.me" and password "password"
|
||||
When the user logs in with username "user" and password "password"
|
||||
And bridge stops
|
||||
And the internet is turned off
|
||||
And bridge starts
|
||||
And the internet is turned on
|
||||
Then user "user@pm.me" is eventually listed and connected
|
||||
Then user "user" is eventually listed and connected
|
||||
|
||||
Scenario: Login to multiple accounts
|
||||
Given there exists an account with username "additional@pm.me" and password "other"
|
||||
When the user logs in with username "user@pm.me" and password "password"
|
||||
And the user logs in with username "additional@pm.me" and password "other"
|
||||
Then user "user@pm.me" is listed and connected
|
||||
And user "additional@pm.me" is listed and connected
|
||||
Given there exists an account with username "additional" and password "other"
|
||||
When the user logs in with username "user" and password "password"
|
||||
And the user logs in with username "additional" and password "other"
|
||||
Then user "user" is listed and connected
|
||||
And user "additional" is listed and connected
|
||||
@ -1,15 +1,15 @@
|
||||
Feature: A logged out user can login again
|
||||
Background:
|
||||
Given there exists an account with username "user@pm.me" and password "password"
|
||||
Given there exists an account with username "user" and password "password"
|
||||
And bridge starts
|
||||
And the user logs in with username "user@pm.me" and password "password"
|
||||
And the user logs in with username "user" and password "password"
|
||||
|
||||
Scenario: Login to disconnected account
|
||||
When user "user@pm.me" logs out
|
||||
When user "user" logs out
|
||||
And bridge restarts
|
||||
And the user logs in with username "user@pm.me" and password "password"
|
||||
Then user "user@pm.me" is listed and connected
|
||||
And the user logs in with username "user" and password "password"
|
||||
Then user "user" is listed and connected
|
||||
|
||||
Scenario: Cannot login to removed account
|
||||
When user "user@pm.me" is deleted
|
||||
Then user "user@pm.me" is not listed
|
||||
When user "user" is deleted
|
||||
Then user "user" is not listed
|
||||
@ -1,16 +1,16 @@
|
||||
Feature: A logged in user is logged out when its auth is revoked.
|
||||
Background:
|
||||
Given there exists an account with username "user@pm.me" and password "password"
|
||||
Given there exists an account with username "user" and password "password"
|
||||
And bridge starts
|
||||
And the user logs in with username "user@pm.me" and password "password"
|
||||
And the user logs in with username "user" and password "password"
|
||||
|
||||
Scenario: The auth is revoked while bridge is running
|
||||
When the auth of user "user@pm.me" is revoked
|
||||
Then bridge sends a deauth event for user "user@pm.me"
|
||||
And user "user@pm.me" is listed but not connected
|
||||
When the auth of user "user" is revoked
|
||||
Then bridge sends a deauth event for user "user"
|
||||
And user "user" is listed but not connected
|
||||
|
||||
Scenario: The auth is revoked while bridge is not running
|
||||
Given bridge stops
|
||||
And the auth of user "user@pm.me" is revoked
|
||||
And the auth of user "user" is revoked
|
||||
When bridge starts
|
||||
Then user "user@pm.me" is listed but not connected
|
||||
Then user "user" is listed but not connected
|
||||
@ -1,26 +1,26 @@
|
||||
Feature: Bridge can fully sync an account
|
||||
Background:
|
||||
Given there exists an account with username "user@pm.me" and password "password"
|
||||
And the account "user@pm.me" has the following custom mailboxes:
|
||||
Given there exists an account with username "user" and password "password"
|
||||
And the account "user" has the following custom mailboxes:
|
||||
| name | type |
|
||||
| one | folder |
|
||||
| two | folder |
|
||||
| three | label |
|
||||
And the address "user@pm.me" of account "user@pm.me" has the following messages in "one":
|
||||
| from | to | subject | unread |
|
||||
| a@pm.me | a@pm.me | one | true |
|
||||
| b@pm.me | b@pm.me | two | false |
|
||||
And the address "user@pm.me" of account "user@pm.me" has the following messages in "two":
|
||||
| from | to | subject | unread |
|
||||
| a@pm.me | a@pm.me | one | true |
|
||||
| b@pm.me | b@pm.me | two | false |
|
||||
And the address "user@[domain]" of account "user" has the following messages in "one":
|
||||
| from | to | subject | unread |
|
||||
| a@[domain] | a@[domain] | one | true |
|
||||
| b@[domain] | b@[domain] | two | false |
|
||||
And the address "user@[domain]" of account "user" has the following messages in "two":
|
||||
| from | to | subject | unread |
|
||||
| a@[domain] | a@[domain] | one | true |
|
||||
| b@[domain] | b@[domain] | two | false |
|
||||
And bridge starts
|
||||
|
||||
|
||||
Scenario: The account is synced when the user logs in and persists across bridge restarts
|
||||
When the user logs in with username "user@pm.me" and password "password"
|
||||
Then bridge sends sync started and finished events for user "user@pm.me"
|
||||
When the user logs in with username "user" and password "password"
|
||||
Then bridge sends sync started and finished events for user "user"
|
||||
When bridge restarts
|
||||
And user "user@pm.me" connects and authenticates IMAP client "1"
|
||||
And user "user" connects and authenticates IMAP client "1"
|
||||
Then IMAP client "1" sees the following mailbox info:
|
||||
| name | total | unread |
|
||||
| INBOX | 0 | 0 |
|
||||
@ -38,12 +38,12 @@ Feature: Bridge can fully sync an account
|
||||
| Labels/three | 0 | 0 |
|
||||
|
||||
Scenario: If the gluon files are deleted, the account is synced again
|
||||
Given the user logs in with username "user@pm.me" and password "password"
|
||||
And user "user@pm.me" finishes syncing
|
||||
Given the user logs in with username "user" and password "password"
|
||||
And user "user" finishes syncing
|
||||
And bridge stops
|
||||
And the user deletes the gluon files
|
||||
And bridge starts
|
||||
When user "user@pm.me" connects and authenticates IMAP client "1"
|
||||
When user "user" connects and authenticates IMAP client "1"
|
||||
Then IMAP client "1" eventually sees the following mailbox info:
|
||||
| name | total | unread |
|
||||
| INBOX | 0 | 0 |
|
||||
@ -61,19 +61,19 @@ Feature: Bridge can fully sync an account
|
||||
| Labels/three | 0 | 0 |
|
||||
|
||||
Scenario: If an address has no keys, the account is still synced
|
||||
Given the account "user@pm.me" has additional address "alias@pm.me"
|
||||
And the account "user@pm.me" has the following custom mailboxes:
|
||||
Given the account "user" has additional address "alias@[domain]"
|
||||
And the account "user" has the following custom mailboxes:
|
||||
| name | type |
|
||||
| encrypted | folder |
|
||||
And the address "alias@pm.me" of account "user@pm.me" has the following messages in "encrypted":
|
||||
| from | to | subject |
|
||||
| a@pm.me | a@pm.me | no key |
|
||||
| b@pm.me | b@pm.me | no key |
|
||||
And the address "alias@pm.me" of account "user@pm.me" has no keys
|
||||
When the user logs in with username "user@pm.me" and password "password"
|
||||
And user "user@pm.me" finishes syncing
|
||||
When user "user@pm.me" connects and authenticates IMAP client "1"
|
||||
And the address "alias@[domain]" of account "user" has the following messages in "encrypted":
|
||||
| from | to | subject |
|
||||
| a@[domain] | a@[domain] | no key |
|
||||
| b@[domain] | b@[domain] | no key |
|
||||
And the address "alias@[domain]" of account "user" has no keys
|
||||
When the user logs in with username "user" and password "password"
|
||||
And user "user" finishes syncing
|
||||
When user "user" connects and authenticates IMAP client "1"
|
||||
Then IMAP client "1" eventually sees the following messages in "Folders/encrypted":
|
||||
| from | to | subject | mime-type |
|
||||
| a@pm.me | a@pm.me | no key | multipart/encrypted |
|
||||
| b@pm.me | b@pm.me | no key | multipart/encrypted |
|
||||
| from | to | subject | mime-type |
|
||||
| a@[domain] | a@[domain] | no key | multipart/encrypted |
|
||||
| b@[domain] | b@[domain] | no key | multipart/encrypted |
|
||||
Reference in New Issue
Block a user