mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-24 19:06:44 +00:00
GODT-2181(test): Use [user:NAME] for more test user names
This commit is contained in:
@ -1,17 +1,17 @@
|
||||
Feature: SMTP sending with APPENDing to Sent
|
||||
Background:
|
||||
Given there exists an account with username "user" and password "password"
|
||||
And there exists an account with username "bridgetest" and password "password"
|
||||
Given there exists an account with username "[user:user]" and password "password"
|
||||
And there exists an account with username "[user:to]" and password "password"
|
||||
And bridge starts
|
||||
And the user logs in with username "user" and password "password"
|
||||
And user "user" connects and authenticates SMTP client "1"
|
||||
And user "user" connects and authenticates IMAP client "1"
|
||||
And the user logs in with username "[user:user]" and password "password"
|
||||
And user "[user:user]" connects and authenticates SMTP client "1"
|
||||
And user "[user:user]" connects and authenticates IMAP client "1"
|
||||
|
||||
Scenario: Send message and append to Sent
|
||||
# First do sending.
|
||||
When SMTP client "1" sends the following message from "user@[domain]" to "bridgetest@[domain]":
|
||||
When SMTP client "1" sends the following message from "[user:user]@[domain]" to "[user:to]@[domain]":
|
||||
"""
|
||||
To: Internal Bridge <bridgetest@[domain]>
|
||||
To: Internal Bridge <[user:to]@[domain]>
|
||||
Subject: Manual send and append
|
||||
Message-ID: bridgemessage42
|
||||
|
||||
@ -29,13 +29,13 @@ Feature: SMTP sending with APPENDing to Sent
|
||||
}
|
||||
"""
|
||||
And IMAP client "1" eventually sees the following messages in "Sent":
|
||||
| to | subject | body | message-id |
|
||||
| bridgetest@[domain] | Manual send and append | hello | <bridgemessage42> |
|
||||
| to | subject | body | message-id |
|
||||
| [user:to]@[domain] | Manual send and append | hello | <bridgemessage42> |
|
||||
|
||||
# Then simulate manual append to Sent mailbox - message should be detected as a duplicate.
|
||||
When IMAP client "1" appends the following message to "Sent":
|
||||
"""
|
||||
To: Internal Bridge <bridgetest@[domain]>
|
||||
To: Internal Bridge <[user:to]@[domain]>
|
||||
Subject: Manual send and append
|
||||
Message-ID: bridgemessage42
|
||||
|
||||
@ -44,5 +44,5 @@ Feature: SMTP sending with APPENDing to Sent
|
||||
"""
|
||||
Then it succeeds
|
||||
And IMAP client "1" eventually sees the following messages in "Sent":
|
||||
| to | subject | body | message-id |
|
||||
| bridgetest@[domain] | Manual send and append | hello | <bridgemessage42> |
|
||||
| to | subject | body | message-id |
|
||||
| [user:to]@[domain] | Manual send and append | hello | <bridgemessage42> |
|
||||
Reference in New Issue
Block a user