forked from Silverfish/proton-bridge
GODT-1817: Delete unnecessary IDLE tests
Gluon tests already cover this.
This commit is contained in:
@ -1,63 +0,0 @@
|
|||||||
Feature: IMAP IDLE
|
|
||||||
Background:
|
|
||||||
Given there is connected user "user"
|
|
||||||
And there are 10 messages in mailbox "INBOX" for "user"
|
|
||||||
|
|
||||||
# Those tests are ignored as currently our IMAP implementation is not responding with updates to all open connections.
|
|
||||||
@ignore
|
|
||||||
Scenario Outline: Mark as read
|
|
||||||
Given there is IMAP client "active" logged in as "user"
|
|
||||||
And there is IMAP client "active" selected in "INBOX"
|
|
||||||
And there is IMAP client "idling" logged in as "user"
|
|
||||||
And there is IMAP client "idling" selected in "INBOX"
|
|
||||||
When IMAP client "idling" starts IDLE-ing
|
|
||||||
And IMAP client "active" marks message seq "<seq>" as read
|
|
||||||
Then IMAP client "idling" receives update marking message seq "<seq>" as read within <seconds> seconds
|
|
||||||
Then message "<seq>" in "INBOX" for "user" is marked as read
|
|
||||||
|
|
||||||
Examples:
|
|
||||||
| seq | seconds |
|
|
||||||
| 1 | 2 |
|
|
||||||
| 1:5 | 2 |
|
|
||||||
| 1:10 | 5 |
|
|
||||||
|
|
||||||
@ignore
|
|
||||||
Scenario Outline: Mark as unread
|
|
||||||
Given there is IMAP client "active" logged in as "user"
|
|
||||||
And there is IMAP client "active" selected in "INBOX"
|
|
||||||
And there is IMAP client "idling" logged in as "user"
|
|
||||||
And there is IMAP client "idling" selected in "INBOX"
|
|
||||||
When IMAP client "idling" starts IDLE-ing
|
|
||||||
And IMAP client "active" marks message seq "<seq>" as unread
|
|
||||||
Then IMAP client "idling" receives update marking message seq "<seq>" as unread within <seconds> seconds
|
|
||||||
And message "<seq>" in "INBOX" for "user" is marked as unread
|
|
||||||
|
|
||||||
Examples:
|
|
||||||
| seq | seconds |
|
|
||||||
| 1 | 2 |
|
|
||||||
| 1:5 | 2 |
|
|
||||||
| 1:10 | 5 |
|
|
||||||
|
|
||||||
@ignore
|
|
||||||
Scenario Outline: Three IDLEing
|
|
||||||
Given there is IMAP client "active" logged in as "user"
|
|
||||||
And there is IMAP client "active" selected in "INBOX"
|
|
||||||
And there is IMAP client "idling1" logged in as "user"
|
|
||||||
And there is IMAP client "idling1" selected in "INBOX"
|
|
||||||
And there is IMAP client "idling2" logged in as "user"
|
|
||||||
And there is IMAP client "idling2" selected in "INBOX"
|
|
||||||
And there is IMAP client "idling3" logged in as "user"
|
|
||||||
And there is IMAP client "idling3" selected in "INBOX"
|
|
||||||
When IMAP client "idling1" starts IDLE-ing
|
|
||||||
And IMAP client "idling2" starts IDLE-ing
|
|
||||||
And IMAP client "idling3" starts IDLE-ing
|
|
||||||
And IMAP client "active" marks message seq "<seq>" as read
|
|
||||||
Then IMAP client "idling1" receives update marking message seq "<seq>" as read within <seconds> seconds
|
|
||||||
Then IMAP client "idling2" receives update marking message seq "<seq>" as read within <seconds> seconds
|
|
||||||
Then IMAP client "idling3" receives update marking message seq "<seq>" as read within <seconds> seconds
|
|
||||||
|
|
||||||
Examples:
|
|
||||||
| seq | seconds |
|
|
||||||
| 1 | 2 |
|
|
||||||
| 1:5 | 2 |
|
|
||||||
| 1:10 | 5 |
|
|
||||||
@ -1,27 +0,0 @@
|
|||||||
Feature: IMAP IDLE with two users
|
|
||||||
Scenario: IDLE statements are not leaked to other account
|
|
||||||
Given there is connected user "user"
|
|
||||||
And there are 10 messages in mailbox "INBOX" for "user"
|
|
||||||
And there is connected user "userMoreAddresses"
|
|
||||||
And there is IMAP client "active" logged in as "user"
|
|
||||||
And there is IMAP client "active" selected in "INBOX"
|
|
||||||
And there is IMAP client "idling" logged in as "userMoreAddresses"
|
|
||||||
And there is IMAP client "idling" selected in "INBOX"
|
|
||||||
When IMAP client "idling" starts IDLE-ing
|
|
||||||
And IMAP client "active" marks message seq "1" as read
|
|
||||||
Then IMAP client "idling" does not receive update for message seq "1" within 5 seconds
|
|
||||||
|
|
||||||
Scenario: IDLE statements are not leaked to other alias
|
|
||||||
Given there is connected user "userMoreAddresses"
|
|
||||||
And there is "userMoreAddresses" in "combined" address mode
|
|
||||||
And there are messages in mailbox "INBOX" for "userMoreAddresses"
|
|
||||||
| from | to | subject |
|
|
||||||
| john.doe@mail.com | [primary] | foo |
|
|
||||||
| jane.doe@mail.com | [secondary] | bar |
|
|
||||||
And there is IMAP client "active" logged in as "userMoreAddresses" with address "primary"
|
|
||||||
And there is IMAP client "active" selected in "INBOX"
|
|
||||||
And there is IMAP client "idling" logged in as "userMoreAddresses" with address "secondary"
|
|
||||||
And there is IMAP client "idling" selected in "INBOX"
|
|
||||||
When IMAP client "idling" starts IDLE-ing
|
|
||||||
And IMAP client "active" marks message seq "1" as read
|
|
||||||
Then IMAP client "idling" does not receive update for message seq "1" within 5 seconds
|
|
||||||
Reference in New Issue
Block a user