You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
1.3 KiB
45 lines
1.3 KiB
Feature: SMTP sending the same message twice |
|
Background: |
|
Given there is connected user "user" |
|
And there is SMTP client logged in as "user" |
|
When SMTP client sends message |
|
""" |
|
From: Bridge Test <[userAddress]> |
|
To: Internal Bridge <bridgetest@protonmail.com> |
|
Subject: Hello |
|
|
|
World |
|
|
|
""" |
|
Then SMTP response is "OK" |
|
|
|
Scenario: The exact same message is not sent twice |
|
When SMTP client sends message |
|
""" |
|
From: Bridge Test <[userAddress]> |
|
To: Internal Bridge <bridgetest@protonmail.com> |
|
Subject: Hello |
|
|
|
World |
|
|
|
""" |
|
Then SMTP response is "OK" |
|
And mailbox "Sent" for "user" has messages |
|
| from | to | subject | |
|
| [userAddress] | bridgetest@protonmail.com | Hello | |
|
|
|
Scenario: Slight change means different message and is sent twice |
|
When SMTP client sends message |
|
""" |
|
From: Bridge Test <[userAddress]> |
|
To: Internal Bridge <bridgetest@protonmail.com> |
|
Subject: Hello. |
|
|
|
World |
|
|
|
""" |
|
Then SMTP response is "OK" |
|
And mailbox "Sent" for "user" has messages |
|
| from | to | subject | |
|
| [userAddress] | bridgetest@protonmail.com | Hello | |
|
| [userAddress] | bridgetest@protonmail.com | Hello. |
|
|
|