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,28 +1,28 @@
Feature: SMTP with bcc
Background:
Given there exists an account with username "user@pm.me" and password "password"
Given there exists an account with username "bridgetest@protonmail.com" and password "password"
Given there exists an account with username "bcc@protonmail.com" and password "password"
Given there exists an account with username "user" and password "password"
Given there exists an account with username "bridgetest" and password "password"
Given there exists an account with username "bcc" and password "password"
And bridge starts
And the user logs in with username "user@pm.me" and password "password"
And the user logs in with username "bcc@protonmail.com" 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 the user logs in with username "bcc" and password "password"
And user "user" connects and authenticates SMTP client "1"
Scenario: Send message to address in to and bcc
When SMTP client "1" sends the following message from "user@pm.me" to "bridgetest@protonmail.com, bcc@protonmail.com":
When SMTP client "1" sends the following message from "user@[domain]" to "bridgetest@[domain], bcc@[domain]":
"""
Subject: hello
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 | bcc | subject | unread |
| user@pm.me | bridgetest@protonmail.com | bcc@protonmail.com | hello | false |
| from | to | bcc | subject | unread |
| user@[domain] | bridgetest@[domain] | bcc@[domain] | hello | false |
And the body in the "POST" request to "/mail/v4/messages" is:
"""
{
@ -30,14 +30,14 @@ Feature: SMTP with bcc
"Subject": "hello",
"ToList": [
{
"Address": "bridgetest@protonmail.com",
"Address": "bridgetest@[domain]",
"Name": "Internal Bridge"
}
],
"CCList": [],
"BCCList": [
{
"Address": "bcc@protonmail.com"
"Address": "bcc@[domain]"
}
]
}
@ -46,19 +46,19 @@ Feature: SMTP with bcc
Scenario: Send message only to bcc
When SMTP client "1" sends the following message from "user@pm.me" to "bcc@protonmail.com":
When SMTP client "1" sends the following message from "user@[domain]" to "bcc@[domain]":
"""
Subject: hello
From: Bridge Test <user@pm.me>
From: Bridge Test <user@[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 | bcc | subject |
| user@pm.me | | bcc@protonmail.com | hello |
| from | to | bcc | subject |
| user@[domain] | | bcc@[domain] | hello |
And the body in the "POST" request to "/mail/v4/messages" is:
"""
{
@ -68,13 +68,13 @@ Feature: SMTP with bcc
"CCList": [],
"BCCList": [
{
"Address": "bcc@protonmail.com"
"Address": "bcc@[domain]"
}
]
}
}
"""
When user "bcc@protonmail.com" connects and authenticates IMAP client "2"
When 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@pm.me | | | hello | true |
| from | to | bcc | subject | unread |
| user@[domain] | | | hello | true |

View File

@ -1,17 +1,17 @@
Feature: SMTP sending embedded message
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 the user logs in with username "bridgetest@protonmail.com" 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 the user logs in with username "bridgetest" and password "password"
And user "user" connects and authenticates SMTP client "1"
Scenario: Send it
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]>
Subject: Embedded message
Content-Type: multipart/mixed; boundary="boundary"
@ -39,11 +39,11 @@ Feature: SMTP sending embedded message
"""
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 | Embedded message |
When user "bridgetest@protonmail.com" connects and authenticates IMAP client "2"
| from | to | subject |
| user@[domain] | bridgetest@[domain] | Embedded message |
When user "bridgetest" connects and authenticates IMAP client "2"
Then IMAP client "2" eventually sees the following messages in "Inbox":
| from | to | subject | attachments | unread |
| user@pm.me | bridgetest@protonmail.com | Embedded message | embedded.eml | true |
| from | to | subject | attachments | unread |
| user@[domain] | bridgetest@[domain] | Embedded message | embedded.eml | true |

View File

@ -1,16 +1,16 @@
Feature: SMTP wrong messages
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: Message with attachment and wrong boundaries
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]>
Subject: With attachment (wrong boundaries)
Content-Type: multipart/related; boundary=bc5bd30245232f31b6c976adcd59bb0069c9b13f986f9e40c2571bb80aa16606
@ -44,10 +44,10 @@ Feature: SMTP wrong messages
Then it fails
Scenario: Invalid from
When SMTP client "1" sends the following message from "bridgetest@pm.test" to "bridgetest@protonmail.com":
When SMTP client "1" sends the following message from "bridgetest@pm.test" to "bridgetest@[domain]":
"""
From: Bridge Test <bridgetest@pm.test>
To: Internal Bridge <bridgetest@protonmail.com>
To: Internal Bridge <bridgetest@[domain]>
hello

View File

@ -1,15 +1,15 @@
Feature: SMTP sending of plain messages
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: HTML message to external account
When SMTP client "1" sends the following message from "user@pm.me" to "pm.bridge.qa@gmail.com":
When SMTP client "1" sends the following message from "user@[domain]" to "pm.bridge.qa@gmail.com":
"""
From: Bridge Test <user@pm.me>
From: Bridge Test <user@[domain]>
To: External Bridge <pm.bridge.qa@gmail.com>
Subject: HTML text external
Content-Disposition: inline
@ -21,10 +21,10 @@ Feature: SMTP sending of plain messages
"""
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 | pm.bridge.qa@gmail.com | HTML text external |
| from | to | subject |
| user@[domain] | pm.bridge.qa@gmail.com | HTML text external |
And the body in the "POST" request to "/mail/v4/messages" is:
"""
{
@ -47,9 +47,9 @@ Feature: SMTP sending of plain messages
"""
Scenario: HTML message with inline image to external account
When SMTP client "1" sends the following message from "user@pm.me" to "pm.bridge.qa@gmail.com":
When SMTP client "1" sends the following message from "user@[domain]" to "pm.bridge.qa@gmail.com":
"""
From: Bridge Test <user@pm.me>
From: Bridge Test <user@[domain]>
To: External Bridge <pm.bridge.qa@gmail.com>
Subject: Html Inline External
Content-Disposition: inline
@ -97,10 +97,10 @@ Feature: SMTP sending of plain messages
"""
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 | pm.bridge.qa@gmail.com | Html Inline External |
| from | to | subject |
| user@[domain] | pm.bridge.qa@gmail.com | Html Inline External |
And the body in the "POST" request to "/mail/v4/messages" is:
"""
{
@ -123,10 +123,10 @@ Feature: SMTP sending of plain messages
"""
Scenario: HTML message with alternative inline to internal account
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]>
Subject: Html Inline Alternative Internal
Content-Disposition: inline
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.0
@ -187,10 +187,10 @@ Feature: SMTP sending of plain messages
"""
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 | Html Inline Alternative Internal |
| from | to | subject |
| user@[domain] | bridgetest@[domain] | Html Inline Alternative Internal |
And the body in the "POST" request to "/mail/v4/messages" is:
"""
{
@ -201,7 +201,7 @@ Feature: SMTP sending of plain messages
},
"ToList": [
{
"Address": "bridgetest@protonmail.com",
"Address": "bridgetest@[domain]",
"Name": "Internal Bridge"
}
],
@ -213,9 +213,9 @@ Feature: SMTP sending of plain messages
"""
Scenario: HTML message with alternative inline to external account
When SMTP client "1" sends the following message from "user@pm.me" to "pm.bridge.qa@gmail.com":
When SMTP client "1" sends the following message from "user@[domain]" to "pm.bridge.qa@gmail.com":
"""
From: Bridge Test <user@pm.me>
From: Bridge Test <user@[domain]>
To: External Bridge <pm.bridge.qa@gmail.com>
Subject: Html Inline Alternative External
Content-Disposition: inline
@ -277,10 +277,10 @@ Feature: SMTP sending of plain messages
"""
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 | pm.bridge.qa@gmail.com | Html Inline Alternative External |
| from | to | subject |
| user@[domain] | pm.bridge.qa@gmail.com | Html Inline Alternative External |
And the body in the "POST" request to "/mail/v4/messages" is:
"""
{
@ -303,9 +303,9 @@ Feature: SMTP sending of plain messages
"""
Scenario: HTML message with extremely long line (greater than default 2000 line limit) to external account
When SMTP client "1" sends the following message from "user@pm.me" to "pm.bridge.qa@gmail.com":
When SMTP client "1" sends the following message from "user@[domain]" to "pm.bridge.qa@gmail.com":
"""
From: Bridge Test <user@pm.me>
From: Bridge Test <user@[domain]>
To: External Bridge <pm.bridge.qa@gmail.com>
Subject: HTML text external
Content-Disposition: inline
@ -317,10 +317,10 @@ Feature: SMTP sending of plain messages
"""
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 | pm.bridge.qa@gmail.com | HTML text external |
| from | to | subject |
| user@[domain] | pm.bridge.qa@gmail.com | HTML text external |
And the body in the "POST" request to "/mail/v4/messages" is:
"""
{

View File

@ -1,16 +1,16 @@
Feature: SMTP sending of plain messages
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: HTML message with attachment to internal account
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]>
Subject: HTML with attachment internal
Content-Type: multipart/related; boundary=bc5bd30245232f31b6c976adcd59bb0069c9b13f986f9e40c2571bb80aa16606
@ -41,10 +41,10 @@ Feature: SMTP sending of plain messages
"""
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 | HTML with attachment internal |
| from | to | subject |
| user@[domain] | bridgetest@[domain] | HTML with attachment internal |
And the body in the "POST" request to "/mail/v4/messages" is:
"""
{
@ -55,7 +55,7 @@ Feature: SMTP sending of plain messages
},
"ToList": [
{
"Address": "bridgetest@protonmail.com",
"Address": "bridgetest@[domain]",
"Name": "Internal Bridge"
}
],
@ -67,9 +67,9 @@ Feature: SMTP sending of plain messages
"""
Scenario: HTML message with attachment to external account
When SMTP client "1" sends the following message from "user@pm.me" to "pm.bridge.qa@gmail.com":
When SMTP client "1" sends the following message from "user@[domain]" to "pm.bridge.qa@gmail.com":
"""
From: Bridge Test <user@pm.me>
From: Bridge Test <user@[domain]>
To: External Bridge <pm.bridge.qa@gmail.com>
Subject: HTML with attachment external PGP
Content-Type: multipart/mixed; boundary=bc5bd30245232f31b6c976adcd59bb0069c9b13f986f9e40c2571bb80aa16606
@ -101,10 +101,10 @@ Feature: SMTP sending of plain messages
"""
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 | pm.bridge.qa@gmail.com | HTML with attachment external PGP |
| from | to | subject |
| user@[domain] | pm.bridge.qa@gmail.com | HTML with attachment external PGP |
And the body in the "POST" request to "/mail/v4/messages" is:
"""
{
@ -127,9 +127,9 @@ Feature: SMTP sending of plain messages
"""
Scenario: Alternative plain and HTML message with rfc822 attachment
When SMTP client "1" sends the following message from "user@pm.me" to "pm.bridge.qa@gmail.com":
When SMTP client "1" sends the following message from "user@[domain]" to "pm.bridge.qa@gmail.com":
"""
From: Bridge Test <user@pm.me>
From: Bridge Test <user@[domain]>
To: External Bridge <pm.bridge.qa@gmail.com>
Subject: Alternative plain and HTML with rfc822 attachment
Content-Type: multipart/mixed; boundary=main-parts
@ -159,8 +159,8 @@ Feature: SMTP sending of plain messages
Content-Disposition: attachment
Received: from mx1.opensuse.org (mx1.infra.opensuse.org [192.168.47.95]) by
mailman3.infra.opensuse.org (Postfix) with ESMTP id 38BE2AC3 for
<factory@lists.opensuse.org>; Sun, 11 Jul 2021 19:50:34 +0000 (UTC)
mailman3.infra.opensuse.org (Postfix) with ESMTP id 38BE2AC3 for
<factory@lists.opensuse.org>; Sun, 11 Jul 2021 19:50:34 +0000 (UTC)
From: "Bob " <Bob@something.net>
Sender: "Bob" <Bob@gmail.com>
To: "opensuse-factory" <opensuse-factory@opensuse.org>
@ -190,10 +190,10 @@ Feature: SMTP sending of plain messages
"""
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 | pm.bridge.qa@gmail.com | Alternative plain and HTML with rfc822 attachment |
| from | to | subject |
| user@[domain] | pm.bridge.qa@gmail.com | Alternative plain and HTML with rfc822 attachment |
And the body in the "POST" request to "/mail/v4/messages" is:
"""
{

View File

@ -1,16 +1,16 @@
Feature: SMTP messages containing inlines
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: A message with inline attachment to internal account
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]>
Subject: Plain with inline
Content-Type: multipart/related; boundary=bc5bd30245232f31b6c976adcd59bb0069c9b13f986f9e40c2571bb80aa16606
@ -40,10 +40,10 @@ Feature: SMTP messages containing inlines
"""
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 | Plain with inline |
| from | to | subject |
| user@[domain] | bridgetest@[domain] | Plain with inline |
And the body in the "POST" request to "/mail/v4/messages" is:
"""
{
@ -54,7 +54,7 @@ Feature: SMTP messages containing inlines
},
"ToList": [
{
"Address": "bridgetest@protonmail.com",
"Address": "bridgetest@[domain]",
"Name": "Internal Bridge"
}
],
@ -66,10 +66,10 @@ Feature: SMTP messages containing inlines
"""
Scenario: A message with inline attachment without content ID to internal account
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]>
Subject: Plain with inline
Content-Type: multipart/related; boundary=bc5bd30245232f31b6c976adcd59bb0069c9b13f986f9e40c2571bb80aa16606
@ -98,10 +98,10 @@ Feature: SMTP messages containing inlines
"""
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 | Plain with inline |
| from | to | subject |
| user@[domain] | bridgetest@[domain] | Plain with inline |
And the body in the "POST" request to "/mail/v4/messages" is:
"""
{
@ -112,7 +112,7 @@ Feature: SMTP messages containing inlines
},
"ToList": [
{
"Address": "bridgetest@protonmail.com",
"Address": "bridgetest@[domain]",
"Name": "Internal Bridge"
}
],
@ -124,10 +124,10 @@ Feature: SMTP messages containing inlines
"""
Scenario: A message with bad disposition to internal account
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]>
Subject: Plain with inline
Content-Type: multipart/related; boundary=bc5bd30245232f31b6c976adcd59bb0069c9b13f986f9e40c2571bb80aa16606
@ -156,10 +156,10 @@ Feature: SMTP messages containing inlines
"""
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 | Plain with inline |
| from | to | subject |
| user@[domain] | bridgetest@[domain] | Plain with inline |
And the body in the "POST" request to "/mail/v4/messages" is:
"""
{
@ -170,7 +170,7 @@ Feature: SMTP messages containing inlines
},
"ToList": [
{
"Address": "bridgetest@protonmail.com",
"Address": "bridgetest@[domain]",
"Name": "Internal Bridge"
}
],

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"
}
],

View File

@ -1,17 +1,17 @@
Feature: SMTP sending two messages
Background:
Given there exists an account with username "user@pm.me" and password "password"
And there exists an account with username "other@pm.me" and password "other"
Given there exists an account with username "user" and password "password"
And there exists an account with username "other" and password "other"
And bridge starts
And the user logs in with username "user@pm.me" and password "password"
And the user logs in with username "other@pm.me" and password "other"
And the user logs in with username "user" and password "password"
And the user logs in with username "other" and password "other"
Scenario: Send from one account to the other
When user "user@pm.me" connects and authenticates SMTP client "1"
And SMTP client "1" sends the following message from "user@pm.me" to "other@pm.me":
When user "user" connects and authenticates SMTP client "1"
And SMTP client "1" sends the following message from "user@[domain]" to "other@[domain]":
"""
From: Bridge Test <user@pm.me>
To: Internal Bridge <other@pm.me>
From: Bridge Test <user@[domain]>
To: Internal Bridge <other@[domain]>
Subject: One account to the other
hello
@ -25,12 +25,12 @@ Feature: SMTP sending two messages
"Subject": "One account to the other",
"Sender": {
"Name": "Bridge Test",
"Address": "user@pm.me"
"Address": "user@[domain]"
},
"ToList": [
{
"Name": "Internal Bridge",
"Address": "other@pm.me"
"Address": "other@[domain]"
}
],
"CCList": [],
@ -42,30 +42,30 @@ Feature: SMTP sending two messages
And the body in the "POST" request to "/mail/v4/messages/.*" is:
"""
{
"Packages":[
{
"Addresses":{
"other@pm.me":{
"Type":1
}
},
"Type":1,
"MIMEType":"text/plain"
}
"Packages": [
{
"Addresses": {
"other@[domain]": {
"Type": 1
}
},
"Type": 1,
"MIMEType": "text/plain"
}
]
}
"""
When user "other@pm.me" connects and authenticates IMAP client "1"
When user "other" connects and authenticates IMAP client "1"
Then IMAP client "1" eventually sees the following messages in "Inbox":
| from | to | subject | body |
| user@pm.me | other@pm.me | One account to the other | hello |
| from | to | subject | body |
| user@[domain] | other@[domain] | One account to the other | hello |
Scenario: Send from one account to the other with attachments
When user "user@pm.me" connects and authenticates SMTP client "1"
And SMTP client "1" sends the following message from "user@pm.me" to "other@pm.me":
When user "user" connects and authenticates SMTP client "1"
And SMTP client "1" sends the following message from "user@[domain]" to "other@[domain]":
"""
From: Bridge Test <user@pm.me>
To: Internal Bridge <other@pm.me>
From: Bridge Test <user@[domain]>
To: Internal Bridge <other@[domain]>
Subject: Plain with attachment internal
Content-Type: multipart/related; boundary=bc5bd30245232f31b6c976adcd59bb0069c9b13f986f9e40c2571bb80aa16606
@ -106,7 +106,7 @@ Feature: SMTP sending two messages
},
"ToList": [
{
"Address": "other@pm.me",
"Address": "other@[domain]",
"Name": "Internal Bridge"
}
],
@ -119,24 +119,24 @@ Feature: SMTP sending two messages
And the body in the "POST" request to "/mail/v4/messages/.*" is:
"""
{
"Packages":[
{
"Addresses":{
"other@pm.me":{
"Type":1
}
},
"Type":1,
"MIMEType":"text/plain"
}
"Packages": [
{
"Addresses": {
"other@[domain]": {
"Type": 1
}
},
"Type": 1,
"MIMEType": "text/plain"
}
]
}
"""
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 | body | attachments | unread |
| user@pm.me | other@pm.me | Plain with attachment internal | This is the body | outline-light-instagram-48.png | false |
When user "other@pm.me" connects and authenticates IMAP client "2"
| from | to | subject | body | attachments | unread |
| user@[domain] | other@[domain] | Plain with attachment internal | This is the body | outline-light-instagram-48.png | false |
When user "other" connects and authenticates IMAP client "2"
Then IMAP client "2" eventually sees the following messages in "Inbox":
| from | to | subject | body | attachments | unread |
| user@pm.me | other@pm.me | Plain with attachment internal | This is the body | outline-light-instagram-48.png | true |
| from | to | subject | body | attachments | unread |
| user@[domain] | other@[domain] | Plain with attachment internal | This is the body | outline-light-instagram-48.png | true |

View File

@ -1,26 +1,26 @@
Feature: SMTP sending of plain messages
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"
And there exists an account with username "bridgetest2@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 there exists an account with username "bridgetest2" 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: Only from and to headers to internal account
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:
"""
{
@ -31,7 +31,7 @@ Feature: SMTP sending of plain messages
},
"ToList": [
{
"Address": "bridgetest@protonmail.com",
"Address": "bridgetest@[domain]",
"Name": "Internal Bridge"
}
],
@ -43,19 +43,19 @@ Feature: SMTP sending of plain messages
"""
Scenario: Only from and to headers to external account
When SMTP client "1" sends the following message from "user@pm.me" to "pm.bridge.qa@gmail.com":
When SMTP client "1" sends the following message from "user@[domain]" to "pm.bridge.qa@gmail.com":
"""
From: Bridge Test <user@pm.me>
From: Bridge Test <user@[domain]>
To: External Bridge <pm.bridge.qa@gmail.com>
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 | pm.bridge.qa@gmail.com | |
| from | to | subject |
| user@[domain] | pm.bridge.qa@gmail.com | |
And the body in the "POST" request to "/mail/v4/messages" is:
"""
{
@ -78,10 +78,10 @@ Feature: SMTP sending of plain messages
"""
Scenario: Basic message to internal account
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]>
Subject: Plain text internal
Content-Disposition: inline
Content-Type: text/plain; charset=utf-8
@ -90,10 +90,10 @@ Feature: SMTP sending of plain messages
"""
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 | Plain text internal |
| from | to | subject |
| user@[domain] | bridgetest@[domain] | Plain text internal |
And the body in the "POST" request to "/mail/v4/messages" is:
"""
{
@ -104,7 +104,7 @@ Feature: SMTP sending of plain messages
},
"ToList": [
{
"Address": "bridgetest@protonmail.com",
"Address": "bridgetest@[domain]",
"Name": "Internal Bridge"
}
],
@ -116,9 +116,9 @@ Feature: SMTP sending of plain messages
"""
Scenario: Basic message to external account
When SMTP client "1" sends the following message from "user@pm.me" to "pm.bridge.qa@gmail.com":
When SMTP client "1" sends the following message from "user@[domain]" to "pm.bridge.qa@gmail.com":
"""
From: Bridge Test <user@pm.me>
From: Bridge Test <user@[domain]>
To: External Bridge <pm.bridge.qa@gmail.com>
Subject: Plain text external
Content-Disposition: inline
@ -128,10 +128,10 @@ Feature: SMTP sending of plain messages
"""
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 | pm.bridge.qa@gmail.com | Plain text external |
| from | to | subject |
| user@[domain] | pm.bridge.qa@gmail.com | Plain text external |
And the body in the "POST" request to "/mail/v4/messages" is:
"""
{
@ -154,9 +154,9 @@ Feature: SMTP sending of plain messages
"""
Scenario: Message without charset is utf8
When SMTP client "1" sends the following message from "user@pm.me" to "pm.bridge.qa@gmail.com":
When SMTP client "1" sends the following message from "user@[domain]" to "pm.bridge.qa@gmail.com":
"""
From: Bridge Test <user@pm.me>
From: Bridge Test <user@[domain]>
To: External Bridge <pm.bridge.qa@gmail.com>
Subject: Plain text no charset external
Content-Disposition: inline
@ -166,10 +166,10 @@ Feature: SMTP sending of plain messages
"""
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 | pm.bridge.qa@gmail.com | Plain text no charset external |
| from | to | subject |
| user@[domain] | pm.bridge.qa@gmail.com | Plain text no charset external |
And the body in the "POST" request to "/mail/v4/messages" is:
"""
{
@ -192,9 +192,9 @@ Feature: SMTP sending of plain messages
"""
Scenario: Message without charset is base64-encoded latin1
When SMTP client "1" sends the following message from "user@pm.me" to "pm.bridge.qa@gmail.com":
When SMTP client "1" sends the following message from "user@[domain]" to "pm.bridge.qa@gmail.com":
"""
From: Bridge Test <user@pm.me>
From: Bridge Test <user@[domain]>
To: External Bridge <pm.bridge.qa@gmail.com>
Subject: Plain text no charset external
Content-Disposition: inline
@ -207,10 +207,10 @@ Feature: SMTP sending of plain messages
"""
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 | pm.bridge.qa@gmail.com | Plain text no charset external |
| from | to | subject |
| user@[domain] | pm.bridge.qa@gmail.com | Plain text no charset external |
And the body in the "POST" request to "/mail/v4/messages" is:
"""
{
@ -233,9 +233,9 @@ Feature: SMTP sending of plain messages
"""
Scenario: Message without charset and content is detected as HTML
When SMTP client "1" sends the following message from "user@pm.me" to "pm.bridge.qa@gmail.com":
When SMTP client "1" sends the following message from "user@[domain]" to "pm.bridge.qa@gmail.com":
"""
From: Bridge Test <user@pm.me>
From: Bridge Test <user@[domain]>
To: External Bridge <pm.bridge.qa@gmail.com>
Subject: Plain, no charset, no content, external
Content-Disposition: inline
@ -243,10 +243,10 @@ Feature: SMTP sending of plain messages
"""
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 | pm.bridge.qa@gmail.com | Plain, no charset, no content, external |
| from | to | subject |
| user@[domain] | pm.bridge.qa@gmail.com | Plain, no charset, no content, external |
And the body in the "POST" request to "/mail/v4/messages" is:
"""
{
@ -269,24 +269,24 @@ Feature: SMTP sending of plain messages
"""
Scenario: RCPT does not contain all CC
When SMTP client "1" sends MAIL FROM "<user@pm.me>"
And SMTP client "1" sends RCPT TO "<bridgetest@protonmail.com>"
When SMTP client "1" sends MAIL FROM "<user@[domain]>"
And SMTP client "1" sends RCPT TO "<bridgetest@[domain]>"
And SMTP client "1" sends DATA:
"""
From: Bridge Test <user@pm.me>
To: Internal Bridge <bridgetest@protonmail.com>
CC: Internal Bridge 2 <bridgetest2@protonmail.com>
From: Bridge Test <user@[domain]>
To: Internal Bridge <bridgetest@[domain]>
CC: Internal Bridge 2 <bridgetest2@[domain]>
Content-Type: text/plain
Subject: RCPT-CC test
This is CC missing in RCPT test. Have a nice day!
.
.
"""
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 | cc | subject |
| user@pm.me | bridgetest@protonmail.com | bridgetest2@protonmail.com | RCPT-CC test |
| from | to | cc | subject |
| user@[domain] | bridgetest@[domain] | bridgetest2@[domain] | RCPT-CC test |
And the body in the "POST" request to "/mail/v4/messages" is:
"""
{
@ -297,13 +297,13 @@ Feature: SMTP sending of plain messages
},
"ToList": [
{
"Address": "bridgetest@protonmail.com",
"Address": "bridgetest@[domain]",
"Name": "Internal Bridge"
}
],
"CCList": [
{
"Address": "bridgetest2@protonmail.com",
"Address": "bridgetest2@[domain]",
"Name": "Internal Bridge 2"
}
],
@ -314,19 +314,19 @@ Feature: SMTP sending of plain messages
And the body in the "POST" request to "/mail/v4/messages/.*" is:
"""
{
"Packages":[
{
"Addresses":{
"bridgetest@protonmail.com":{
"Type":1
},
"bridgetest2@protonmail.com":{
"Type":1
}
"Packages": [
{
"Addresses": {
"bridgetest@[domain]": {
"Type": 1
},
"Type":1,
"MIMEType":"text/plain"
}
"bridgetest2@[domain]": {
"Type": 1
}
},
"Type": 1,
"MIMEType": "text/plain"
}
]
}
"""

View File

@ -1,16 +1,16 @@
Feature: SMTP sending of plain messages
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: Basic message with attachment to internal account
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]>
Subject: Plain with attachment
Content-Type: multipart/related; boundary=bc5bd30245232f31b6c976adcd59bb0069c9b13f986f9e40c2571bb80aa16606
@ -41,10 +41,10 @@ Feature: SMTP sending of plain messages
"""
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 | Plain with attachment |
| from | to | subject |
| user@[domain] | bridgetest@[domain] | Plain with attachment |
And the body in the "POST" request to "/mail/v4/messages" is:
"""
{
@ -55,7 +55,7 @@ Feature: SMTP sending of plain messages
},
"ToList": [
{
"Address": "bridgetest@protonmail.com",
"Address": "bridgetest@[domain]",
"Name": "Internal Bridge"
}
],
@ -67,9 +67,9 @@ Feature: SMTP sending of plain messages
"""
Scenario: Plain message with attachment to external account
When SMTP client "1" sends the following message from "user@pm.me" to "pm.bridge.qa@gmail.com":
When SMTP client "1" sends the following message from "user@[domain]" to "pm.bridge.qa@gmail.com":
"""
From: Bridge Test <user@pm.me>
From: Bridge Test <user@[domain]>
To: External Bridge <pm.bridge.qa@gmail.com>
Subject: Plain with attachment external
Content-Type: multipart/related; boundary=bc5bd30245232f31b6c976adcd59bb0069c9b13f986f9e40c2571bb80aa16606
@ -101,10 +101,10 @@ Feature: SMTP sending of plain messages
"""
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 | pm.bridge.qa@gmail.com | Plain with attachment external |
| from | to | subject |
| user@[domain] | pm.bridge.qa@gmail.com | Plain with attachment external |
And the body in the "POST" request to "/mail/v4/messages" is:
"""
{
@ -127,9 +127,9 @@ Feature: SMTP sending of plain messages
"""
Scenario: Plain message with attachment to two external accounts
When SMTP client "1" sends the following message from "user@pm.me" to "pm.bridge.qa@gmail.com":
When SMTP client "1" sends the following message from "user@[domain]" to "pm.bridge.qa@gmail.com":
"""
From: Bridge Test <user@pm.me>
From: Bridge Test <user@[domain]>
To: External Bridge 1 <pm.bridge.qa@gmail.com>
CC: External Bridge 2 <bridgeqa@seznam.cz>
Subject: Plain with attachment external PGP and external CC
@ -162,10 +162,10 @@ Feature: SMTP sending of plain messages
"""
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 | cc | subject |
| user@pm.me | pm.bridge.qa@gmail.com | bridgeqa@seznam.cz | Plain with attachment external PGP and external CC |
| from | to | cc | subject |
| user@[domain] | pm.bridge.qa@gmail.com | bridgeqa@seznam.cz | Plain with attachment external PGP and external CC |
And the body in the "POST" request to "/mail/v4/messages" is:
"""
{

View File

@ -1,15 +1,15 @@
Feature: SMTP sending the same message twice
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 the user logs in with username "bridgetest@protonmail.com" and password "password"
And user "user@pm.me" connects and authenticates SMTP client "1"
And SMTP client "1" sends the following message from "user@pm.me" to "bridgetest@protonmail.com":
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 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]>
Subject: Hello
World
@ -17,42 +17,42 @@ Feature: SMTP sending the same message twice
And it succeeds
Scenario: The exact same message is not sent twice
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]>
Subject: Hello
World
"""
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 | body |
| user@pm.me | bridgetest@protonmail.com | Hello | World |
When user "bridgetest@protonmail.com" connects and authenticates IMAP client "2"
| from | to | subject | body |
| user@[domain] | bridgetest@[domain] | Hello | World |
When user "bridgetest" connects and authenticates IMAP client "2"
Then IMAP client "2" eventually sees the following messages in "Inbox":
| from | to | subject | body |
| user@pm.me | bridgetest@protonmail.com | Hello | World |
| from | to | subject | body |
| user@[domain] | bridgetest@[domain] | Hello | World |
Scenario: Slight change means different message and is sent twice
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]>
Subject: Hello.
World
"""
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 | body |
| user@pm.me | bridgetest@protonmail.com | Hello | World |
| user@pm.me | bridgetest@protonmail.com | Hello. | World |
When user "bridgetest@protonmail.com" connects and authenticates IMAP client "2"
| from | to | subject | body |
| user@[domain] | bridgetest@[domain] | Hello | World |
| user@[domain] | bridgetest@[domain] | Hello. | World |
When user "bridgetest" connects and authenticates IMAP client "2"
Then IMAP client "2" eventually sees the following messages in "Inbox":
| from | to | subject | body |
| user@pm.me | bridgetest@protonmail.com | Hello | World |
| user@pm.me | bridgetest@protonmail.com | Hello. | World |
| from | to | subject | body |
| user@[domain] | bridgetest@[domain] | Hello | World |
| user@[domain] | bridgetest@[domain] | Hello. | World |

View File

@ -1,17 +1,17 @@
Feature: SMTP sending with APPENDing to Sent
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 user "user@pm.me" connects and authenticates IMAP client "1"
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"
Scenario: Send message and append to Sent
# First do sending.
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]":
"""
To: Internal Bridge <bridgetest@protonmail.com>
To: Internal Bridge <bridgetest@[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@protonmail.com | Manual send and append | hello | <bridgemessage42> |
| to | subject | body | message-id |
| bridgetest@[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@protonmail.com>
To: Internal Bridge <bridgetest@[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@protonmail.com | Manual send and append | hello | <bridgemessage42> |
| to | subject | body | message-id |
| bridgetest@[domain] | Manual send and append | hello | <bridgemessage42> |

View File

@ -1,29 +1,29 @@
Feature: SMTP sending two messages
Background:
Given there exists an account with username "user@pm.me" and password "password"
And there exists an account with username "user-multi@pm.me" and password "password"
And the account "user-multi@pm.me" has additional address "user-multi-alias@pm.me"
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 "user-multi" and password "password"
And the account "user-multi" has additional address "user-multi-alias@[domain]"
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 the user logs in with username "user-multi@pm.me" and password "password"
And the user sets the address mode of "user-multi@pm.me" to "split"
And the user logs in with username "user" and password "password"
And the user logs in with username "user-multi" and password "password"
And the user sets the address mode of user "user-multi" to "split"
Scenario: Send two messages in one connection
When user "user@pm.me" connects and authenticates SMTP client "1"
And SMTP client "1" sends the following message from "user@pm.me" to "bridgetest@protonmail.com":
When user "user" connects and authenticates SMTP client "1"
And 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 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]>
world
@ -31,21 +31,21 @@ Feature: SMTP sending two messages
Then it succeeds
Scenario: Send with two addresses of the same user in split mode
When user "user-multi@pm.me" connects and authenticates SMTP client "1" with address "user-multi@pm.me"
And user "user-multi@pm.me" connects and authenticates SMTP client "2" with address "user-multi-alias@pm.me"
And SMTP client "1" sends the following message from "user-multi@pm.me" to "bridgetest@protonmail.com>":
When user "user-multi" connects and authenticates SMTP client "1" with address "user-multi@[domain]"
And user "user-multi" connects and authenticates SMTP client "2" with address "user-multi-alias@[domain]"
And SMTP client "1" sends the following message from "user-multi@[domain]" to "bridgetest@[domain]>":
"""
From: Bridge Test <user-multi@pm.me>
To: Internal Bridge <bridgetest@protonmail.com>
From: Bridge Test <user-multi@[domain]>
To: Internal Bridge <bridgetest@[domain]>
hello
"""
Then it succeeds
When SMTP client "2" sends the following message from "user-multi@pm.me" to "bridgetest@protonmail.com>":
When SMTP client "2" sends the following message from "user-multi@[domain]" to "bridgetest@[domain]>":
"""
From: Bridge Test <user-multi@pm.me>
To: Internal Bridge <bridgetest@protonmail.com>
From: Bridge Test <user-multi@[domain]>
To: Internal Bridge <bridgetest@[domain]>
world
@ -53,21 +53,21 @@ Feature: SMTP sending two messages
Then it succeeds
Scenario: Send with two separate users
When user "user@pm.me" connects and authenticates SMTP client "1"
And user "user-multi@pm.me" connects and authenticates SMTP client "2"
When SMTP client "1" sends the following message from "user@pm.me" to "bridgetest@protonmail.com>":
When user "user" connects and authenticates SMTP client "1"
And user "user-multi" connects and authenticates SMTP client "2"
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 SMTP client "2" sends the following message from "user-multi@pm.me" to "bridgetest@protonmail.com>":
When SMTP client "2" sends the following message from "user-multi@[domain]" to "bridgetest@[domain]>":
"""
From: Bridge Test <user-multi@pm.me>
To: Internal Bridge <bridgetest@protonmail.com>
From: Bridge Test <user-multi@[domain]>
To: Internal Bridge <bridgetest@[domain]>
world