JAMES−2186 Add test showing download and delegation are user specific

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

Branch: refs/heads/master
Commit: 5a219087bd73d47ac10d9609638b342d513aa64d
Parents: 8e2efe4
Author: benwa <[email protected]>
Authored: Mon Oct 23 15:46:03 2017 +0700
Committer: Matthieu Baechler <[email protected]>
Committed: Mon Oct 23 13:50:39 2017 +0200

----------------------------------------------------------------------
 .../src/test/resources/cucumber/DownloadGet.feature  | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/james-project/blob/5a219087/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/resources/cucumber/DownloadGet.feature
----------------------------------------------------------------------
diff --git 
a/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/resources/cucumber/DownloadGet.feature
 
b/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/resources/cucumber/DownloadGet.feature
index 402b8ef..c46d7b7 100644
--- 
a/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/resources/cucumber/DownloadGet.feature
+++ 
b/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/resources/cucumber/DownloadGet.feature
@@ -25,6 +25,7 @@ Feature: Download GET
     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"
     And "[email protected]" has a mailbox "sharedMailbox"
 
@@ -96,4 +97,16 @@ Feature: Download GET
     And "[email protected]" has a mailbox "sharedMailbox"
     When "[email protected]" downloads "1"
     Then he can read that blob
-    And the blob size is 4963
\ No newline at end of file
+    And the blob size is 4963
+
+  Scenario: Attachment read delegation should be user specific
+    Given "[email protected]" mailbox "sharedMailbox" contains a message "1" 
with an attachment "2"
+    And "[email protected]" shares its mailbox "sharedMailbox" with 
"[email protected]"
+    When "[email protected]" downloads "1"
+    Then "[email protected]" should receive a not found response
+
+  Scenario: Message download read delegation should be user specific
+    Given "[email protected]" mailbox "sharedMailbox" contains a message "1" 
with an attachment "2"
+    And "[email protected]" shares its mailbox "sharedMailbox" with 
"[email protected]"
+    When "[email protected]" downloads "2"
+    Then "[email protected]" should receive a not found response
\ No newline at end of file


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

Reply via email to