mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-26 11:46:44 +00:00
GODT-2181(test): use [domain] for test server domain
This commit is contained in:
@ -1,9 +1,9 @@
|
||||
Feature: SMTP initiation
|
||||
Background:
|
||||
Given there exists an account with username "user@pm.me" and password "password"
|
||||
Given there exists an account with username "user" and password "password"
|
||||
And bridge starts
|
||||
And the user logs in with username "user@pm.me" and password "password"
|
||||
When user "user@pm.me" connects and authenticates SMTP client "1"
|
||||
And the user logs in with username "user" and password "password"
|
||||
When user "user" connects and authenticates SMTP client "1"
|
||||
|
||||
Scenario: Send without first announcing FROM and TO
|
||||
When SMTP client "1" sends DATA:
|
||||
@ -13,9 +13,9 @@ Feature: SMTP initiation
|
||||
Then it fails with error "Missing RCPT TO command"
|
||||
|
||||
Scenario: Reset is the same as without FROM and TO
|
||||
When SMTP client "1" sends MAIL FROM "<user@pm.me>"
|
||||
When SMTP client "1" sends MAIL FROM "<user@[domain]>"
|
||||
Then it succeeds
|
||||
When SMTP client "1" sends RCPT TO "<user@pm.me>"
|
||||
When SMTP client "1" sends RCPT TO "<user@[domain]>"
|
||||
Then it succeeds
|
||||
When SMTP client "1" sends RSET
|
||||
Then it succeeds
|
||||
@ -26,11 +26,11 @@ Feature: SMTP initiation
|
||||
Then it fails with error "Missing RCPT TO command"
|
||||
|
||||
Scenario: Send without FROM
|
||||
When SMTP client "1" sends RCPT TO "<user@pm.me>"
|
||||
When SMTP client "1" sends RCPT TO "<user@[domain]>"
|
||||
Then it fails with error "Missing MAIL FROM command"
|
||||
|
||||
Scenario: Send without TO
|
||||
When SMTP client "1" sends MAIL FROM "<user@pm.me>"
|
||||
When SMTP client "1" sends MAIL FROM "<user@[domain]>"
|
||||
Then it succeeds
|
||||
When SMTP client "1" sends DATA:
|
||||
"""
|
||||
@ -39,16 +39,16 @@ Feature: SMTP initiation
|
||||
Then it fails with error "Missing RCPT TO command"
|
||||
|
||||
Scenario: Send with empty FROM
|
||||
When SMTP client "1" sends the following message from "<>" to "bridgetest@protonmail.com":
|
||||
When SMTP client "1" sends the following message from "<>" to "bridgetest@[domain]":
|
||||
"""
|
||||
To: Internal Bridge <bridgetest@protonmail.com>
|
||||
To: Internal Bridge <bridgetest@[domain]>
|
||||
|
||||
this should fail
|
||||
"""
|
||||
Then it fails
|
||||
|
||||
Scenario: Send with empty TO
|
||||
When SMTP client "1" sends MAIL FROM "<user@pm.me>"
|
||||
When SMTP client "1" sends MAIL FROM "<user@[domain]>"
|
||||
Then it succeeds
|
||||
When SMTP client "1" sends RCPT TO "<>"
|
||||
Then it succeeds
|
||||
@ -59,14 +59,14 @@ Feature: SMTP initiation
|
||||
Then it fails with error "invalid recipient"
|
||||
|
||||
Scenario: Allow BODY parameter of MAIL FROM command
|
||||
When SMTP client "1" sends MAIL FROM "<user@pm.me> BODY=7BIT"
|
||||
When SMTP client "1" sends MAIL FROM "<user@[domain]> BODY=7BIT"
|
||||
Then it succeeds
|
||||
|
||||
Scenario: FROM not owned by user
|
||||
When SMTP client "1" sends the following message from "other@pm.me" to "bridgetest@protonmail.com":
|
||||
When SMTP client "1" sends the following message from "other@[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]>
|
||||
|
||||
this should fail
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user