mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-17 23:56:56 +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 embedded message
|
||||
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 the user logs in with username "bridgetest" and password "password"
|
||||
And user "user" connects and authenticates SMTP client "1"
|
||||
And the user logs in with username "[user:user]" and password "password"
|
||||
And the user logs in with username "[user:to]" and password "password"
|
||||
And user "[user:user]" connects and authenticates SMTP client "1"
|
||||
|
||||
Scenario: Send it
|
||||
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]":
|
||||
"""
|
||||
From: Bridge Test <user@[domain]>
|
||||
To: Internal Bridge <bridgetest@[domain]>
|
||||
From: Bridge Test <[user:user]@[domain]>
|
||||
To: Internal Bridge <[user:to]@[domain]>
|
||||
Subject: Embedded message
|
||||
Content-Type: multipart/mixed; boundary="boundary"
|
||||
|
||||
@ -27,7 +27,7 @@ Feature: SMTP sending embedded message
|
||||
Content-Disposition: attachment; filename="embedded.eml"
|
||||
|
||||
From: Bar <bar@example.com>
|
||||
To: Bridge Test <bridgetest@pm.test>
|
||||
To: Bridge Test <[user:to]@pm.test>
|
||||
Subject: (No Subject)
|
||||
Content-Type: text/plain; charset=utf-8
|
||||
Content-Transfer-Encoding: quoted-printable
|
||||
@ -39,11 +39,11 @@ Feature: SMTP sending embedded message
|
||||
|
||||
"""
|
||||
Then it succeeds
|
||||
When user "user" connects and authenticates IMAP client "1"
|
||||
When user "[user:user]" connects and authenticates IMAP client "1"
|
||||
Then IMAP client "1" eventually sees the following messages in "Sent":
|
||||
| from | to | subject |
|
||||
| user@[domain] | bridgetest@[domain] | Embedded message |
|
||||
When user "bridgetest" connects and authenticates IMAP client "2"
|
||||
| from | to | subject |
|
||||
| [user:user]@[domain] | [user:to]@[domain] | Embedded message |
|
||||
When user "[user:to]" connects and authenticates IMAP client "2"
|
||||
Then IMAP client "2" eventually sees the following messages in "Inbox":
|
||||
| from | to | subject | attachments | unread |
|
||||
| user@[domain] | bridgetest@[domain] | Embedded message | embedded.eml | true |
|
||||
| from | to | subject | attachments | unread |
|
||||
| [user:user]@[domain] | [user:to]@[domain] | Embedded message | embedded.eml | true |
|
||||
Reference in New Issue
Block a user