JAMES-2186 JMAP integration: add cucumber tests for delegation with getMessages

One of this test is broken in the current state of the commit.
It will be fix by latter commit


Project: http://git-wip-us.apache.org/repos/asf/james-project/repo
Commit: http://git-wip-us.apache.org/repos/asf/james-project/commit/841c45a4
Tree: http://git-wip-us.apache.org/repos/asf/james-project/tree/841c45a4
Diff: http://git-wip-us.apache.org/repos/asf/james-project/diff/841c45a4

Branch: refs/heads/master
Commit: 841c45a4a82b68ad2c2f8d605a38bdebcefd649e
Parents: 8a74cd7
Author: Luc DUZAN <[email protected]>
Authored: Mon Oct 16 16:02:17 2017 +0700
Committer: Matthieu Baechler <[email protected]>
Committed: Mon Oct 23 13:50:38 2017 +0200

----------------------------------------------------------------------
 .../test/resources/cucumber/GetMessages.feature   | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/james-project/blob/841c45a4/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 aaeb319..d586941 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
@@ -36,6 +36,24 @@ Feature: GetMessages method
     And the id of the message is "m1"
     And the message is in "custom,INBOX" mailboxes
 
+  Scenario: Retrieving a message in a mailbox delegated to me
+    Given "[email protected]" has a mailbox "shared"
+    Given "[email protected]" shares its mailbox "shared" with "[email protected]"
+    And the user has a message "m1" in "shared" mailbox with subject "my test 
subject", content "testmail"
+    Given "[email protected]" is connected
+    When the user ask for messages "m1"
+    Then no error is returned
+    And the list should contain 1 message
+    And the id of the message is "m1"
+
+  Scenario: Retrieving a message in a mailbox not delegated to me
+    Given "[email protected]" has a mailbox "notShared"
+    And the user has a message "m1" in "notShared" mailbox with subject "my 
test subject", content "testmail"
+    Given "[email protected]" is connected
+    When the user ask for messages "m1"
+    Then no error is returned
+    And the list should contain 0 message
+
   Scenario: Retrieving messages with a non null accountId should return a 
NotSupported error
     When the user ask for messages using its accountId
     Then an error "Not yet implemented" is returned


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to