test(GODT-3220): Add test scenario for sending a message to multiple bcc accounts
- Added test scenario for sending a message to two bcc accounts - Verified on recipients' side that the message is received GODT-3220
This commit is contained in:
parent
bde8e45b37
commit
70fdc91aff
|
@ -3,10 +3,12 @@ Feature: SMTP with bcc
|
||||||
Given there exists an account with username "[user:user]" 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 there exists an account with username "[user:to]" and password "password"
|
||||||
And there exists an account with username "[user:bcc]" and password "password"
|
And there exists an account with username "[user:bcc]" and password "password"
|
||||||
|
And there exists an account with username "[user:bcc2]" and password "password"
|
||||||
Then it succeeds
|
Then it succeeds
|
||||||
When bridge starts
|
When bridge starts
|
||||||
And the user logs in with username "[user:user]" and password "password"
|
And the user logs in with username "[user:user]" and password "password"
|
||||||
And the user logs in with username "[user:bcc]" and password "password"
|
And the user logs in with username "[user:bcc]" and password "password"
|
||||||
|
And the user logs in with username "[user:bcc2]" and password "password"
|
||||||
And user "[user:user]" connects and authenticates SMTP client "1"
|
And user "[user:user]" connects and authenticates SMTP client "1"
|
||||||
Then it succeeds
|
Then it succeeds
|
||||||
|
|
||||||
|
@ -81,3 +83,52 @@ Feature: SMTP with bcc
|
||||||
Then IMAP client "2" eventually sees the following messages in "Inbox":
|
Then IMAP client "2" eventually sees the following messages in "Inbox":
|
||||||
| from | to | bcc | subject | unread |
|
| from | to | bcc | subject | unread |
|
||||||
| [user:user]@[domain] | | | hello | true |
|
| [user:user]@[domain] | | | hello | true |
|
||||||
|
|
||||||
|
Scenario: Send message to bcc and bcc2
|
||||||
|
When SMTP client "1" sends the following message from "[user:user]@[domain]" to "[user:bcc]@[domain], [user:bcc2]@[domain]":
|
||||||
|
"""
|
||||||
|
MIME-Version: 1.0
|
||||||
|
Content-Type: text/plain; charset="utf-8"
|
||||||
|
From: <[user:user]@[domain]>
|
||||||
|
Bcc: <[user:bcc]@[domain]>, <[user:bcc2]@[domain]>
|
||||||
|
Subject: hi
|
||||||
|
|
||||||
|
hello
|
||||||
|
|
||||||
|
"""
|
||||||
|
Then it succeeds
|
||||||
|
When user "[user:user]" connects and authenticates IMAP client "1"
|
||||||
|
Then IMAP client "1" eventually sees the following message in "Sent" with this structure:
|
||||||
|
"""
|
||||||
|
{
|
||||||
|
"from": "[user:user]@[domain]",
|
||||||
|
"BCC": "[user:bcc]@[domain]; [user:bcc2]@[domain]",
|
||||||
|
"subject": "hi",
|
||||||
|
"content":{
|
||||||
|
"content-type": "text/plain",
|
||||||
|
"content-type-charset": "utf-8",
|
||||||
|
"transfer-encoding": "quoted-printable",
|
||||||
|
"body-is": "hello"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
"""
|
||||||
|
When user "[user:bcc]" connects and authenticates IMAP client "2"
|
||||||
|
Then IMAP client "2" eventually sees the following messages in "Inbox":
|
||||||
|
| from | to | bcc | subject | unread |
|
||||||
|
| [user:user]@[domain] | | | hi | true |
|
||||||
|
When user "[user:bcc2]" connects and authenticates IMAP client "2"
|
||||||
|
Then IMAP client "2" eventually sees the following messages in "Inbox":
|
||||||
|
| from | to | bcc | subject | unread |
|
||||||
|
| [user:user]@[domain] | | | hi | true |
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue