JAMES-2186 Adding a test for GetMessages on a message not delegated to me
Project: http://git-wip-us.apache.org/repos/asf/james-project/repo Commit: http://git-wip-us.apache.org/repos/asf/james-project/commit/61884561 Tree: http://git-wip-us.apache.org/repos/asf/james-project/tree/61884561 Diff: http://git-wip-us.apache.org/repos/asf/james-project/diff/61884561 Branch: refs/heads/master Commit: 6188456104261061561761cdf74bdb7ea8225308 Parents: 3bdff34 Author: benwa <[email protected]> Authored: Mon Oct 23 15:50:07 2017 +0700 Committer: Matthieu Baechler <[email protected]> Committed: Mon Oct 23 13:50:39 2017 +0200 ---------------------------------------------------------------------- .../src/test/resources/cucumber/GetMessages.feature | 9 +++++++++ 1 file changed, 9 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/james-project/blob/61884561/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/resources/cucumber/GetMessages.feature ---------------------------------------------------------------------- diff --git a/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/resources/cucumber/GetMessages.feature b/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/resources/cucumber/GetMessages.feature index fd5a10a..c8e34f7 100644 --- a/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/resources/cucumber/GetMessages.feature +++ b/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/resources/cucumber/GetMessages.feature @@ -25,6 +25,7 @@ Feature: GetMessages method Given a domain named "domain.tld" And a user "[email protected]" And a user "[email protected]" + And a user "[email protected]" And "[email protected]" has a mailbox "INBOX" Scenario: Retrieving a message in several mailboxes should return a single message in these mailboxes @@ -45,6 +46,14 @@ Feature: GetMessages method And the list should contain 1 message And the id of the message is "m1" + Scenario: Retrieving a message in a mailbox delegated to someone else + Given "[email protected]" has a mailbox "shared" + And "[email protected]" shares its mailbox "shared" with "[email protected]" + And "[email protected]" has a message "m1" in "shared" mailbox with subject "my test subject", content "testmail" + When "[email protected]" ask for messages "m1" + Then no error is returned + And the list of messages is empty + Scenario: Retrieving a message in a mailbox not delegated to me Given "[email protected]" has a mailbox "notShared" And "[email protected]" has a message "m1" in "notShared" mailbox with subject "my test subject", content "testmail" --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
