mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-15 14:56:42 +00:00
GODT-2181(test): Use [user:NAME] for more test user names
This commit is contained in:
@ -1,16 +1,16 @@
|
||||
Feature: SMTP wrong messages
|
||||
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: Message with attachment and wrong boundaries
|
||||
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: 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@[domain]":
|
||||
When SMTP client "1" sends the following message from "unowned@[domain]" to "[user:to]@[domain]":
|
||||
"""
|
||||
From: Bridge Test <bridgetest@pm.test>
|
||||
To: Internal Bridge <bridgetest@[domain]>
|
||||
From: Bridge Test <unowned@[domain]>
|
||||
To: Internal Bridge <[user:to]@[domain]>
|
||||
|
||||
hello
|
||||
|
||||
|
||||
Reference in New Issue
Block a user