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,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:
"""
{