GODT-2181(test): use [domain] for test server domain

This commit is contained in:
James Houlahan
2022-12-13 00:12:29 +01:00
parent 1aca2cde71
commit 688cb30d4a
45 changed files with 866 additions and 840 deletions

View File

@ -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 |