GODT-2181(test): Use [user:NAME] for more test user names

This commit is contained in:
James Houlahan
2022-12-13 03:48:54 +01:00
parent 9623e2de6f
commit 87ce5a6d82
43 changed files with 631 additions and 603 deletions

View File

@ -1,16 +1,16 @@
Feature: SMTP messages containing inlines
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: A message with inline attachment to internal account
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: Plain with inline
Content-Type: multipart/related; boundary=bc5bd30245232f31b6c976adcd59bb0069c9b13f986f9e40c2571bb80aa16606
@ -40,10 +40,10 @@ Feature: SMTP messages containing inlines
"""
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] | Plain with inline |
| from | to | subject |
| [user:user]@[domain] | [user:to]@[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@[domain]",
"Address": "[user:to]@[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@[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: Plain with inline
Content-Type: multipart/related; boundary=bc5bd30245232f31b6c976adcd59bb0069c9b13f986f9e40c2571bb80aa16606
@ -98,10 +98,10 @@ Feature: SMTP messages containing inlines
"""
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] | Plain with inline |
| from | to | subject |
| [user:user]@[domain] | [user:to]@[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@[domain]",
"Address": "[user:to]@[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@[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: Plain with inline
Content-Type: multipart/related; boundary=bc5bd30245232f31b6c976adcd59bb0069c9b13f986f9e40c2571bb80aa16606
@ -156,10 +156,10 @@ Feature: SMTP messages containing inlines
"""
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] | Plain with inline |
| from | to | subject |
| [user:user]@[domain] | [user:to]@[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@[domain]",
"Address": "[user:to]@[domain]",
"Name": "Internal Bridge"
}
],