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,25 +1,25 @@
Feature: SMTP sending with mixed case address
Background:
Given there exists an account with username "user@pm.me" and password "password"
And there exists an account with username "bridgetest@protonmail.com" and password "password"
Given there exists an account with username "user" and password "password"
And there exists an account with username "bridgetest" and password "password"
And bridge starts
And the user logs in with username "user@pm.me" and password "password"
And user "user@pm.me" connects and authenticates SMTP client "1"
And the user logs in with username "user" and password "password"
And 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@pm.me" to "bridgetest@protonmail.com":
When SMTP client "1" sends the following message from "user@[domain]" to "bridgetest@[domain]":
"""
From: Bridge Test <USER@pm.me>
To: Internal Bridge <bridgetest@protonmail.com>
From: Bridge Test <USER@[domain]>
To: Internal Bridge <bridgetest@[domain]>
hello
"""
Then it succeeds
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 messages in "Sent":
| from | to | subject |
| user@pm.me | bridgetest@protonmail.com | |
| from | to | subject |
| user@[domain] | bridgetest@[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@pm.me"
"Address": "user@[domain]"
},
"ToList": [
{
"Address": "bridgetest@protonmail.com",
"Address": "bridgetest@[domain]",
"Name": "Internal Bridge"
}
],