mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-26 11:46:44 +00:00
GODT-2181(test): Use [user:NAME] for more test user names
This commit is contained in:
@ -1,25 +1,25 @@
|
||||
Feature: SMTP sending with mixed case address
|
||||
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 the user logs in with username "[user:user]" and password "password"
|
||||
And user "[user:user]" connects and authenticates SMTP client "1"
|
||||
|
||||
Scenario: Mixed sender case in sender address
|
||||
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 <{toUpper:[user:user]@[domain]}>
|
||||
To: Internal Bridge <[user:to]@[domain]>
|
||||
|
||||
hello
|
||||
|
||||
"""
|
||||
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] | |
|
||||
| from | to | subject |
|
||||
| [user:user]@[domain] | [user:to]@[domain] | |
|
||||
And the body in the "POST" request to "/mail/v4/messages" is:
|
||||
"""
|
||||
{
|
||||
@ -27,11 +27,11 @@ Feature: SMTP sending with mixed case address
|
||||
"Subject": "",
|
||||
"Sender": {
|
||||
"Name": "Bridge Test",
|
||||
"Address": "user@[domain]"
|
||||
"Address": "[user:user]@[domain]"
|
||||
},
|
||||
"ToList": [
|
||||
{
|
||||
"Address": "bridgetest@[domain]",
|
||||
"Address": "[user:to]@[domain]",
|
||||
"Name": "Internal Bridge"
|
||||
}
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user