JAMES-2187 JMAP integration: Rename username and username1 to Alice and Bob
Project: http://git-wip-us.apache.org/repos/asf/james-project/repo Commit: http://git-wip-us.apache.org/repos/asf/james-project/commit/1a7ebcd0 Tree: http://git-wip-us.apache.org/repos/asf/james-project/tree/1a7ebcd0 Diff: http://git-wip-us.apache.org/repos/asf/james-project/diff/1a7ebcd0 Branch: refs/heads/master Commit: 1a7ebcd0f2880cf91897f0cd42b40b8d448e6ef7 Parents: d9d746e Author: quynhn <[email protected]> Authored: Tue Oct 17 10:16:13 2017 +0700 Committer: Matthieu Baechler <[email protected]> Committed: Mon Oct 23 13:50:39 2017 +0200 ---------------------------------------------------------------------- .../test/resources/cucumber/DownloadGet.feature | 70 ++++++++++---------- 1 file changed, 35 insertions(+), 35 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/james-project/blob/1a7ebcd0/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 16d3271..b413d58 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 @@ -23,80 +23,80 @@ Feature: Download GET Background: Given a domain named "domain.tld" - And a connected user "[email protected]" - And "[email protected]" has a mailbox "INBOX" - And "[email protected]" has a mailbox "sharedMailbox" + And a connected user "[email protected]" + And "[email protected]" has a mailbox "INBOX" + And "[email protected]" has a mailbox "sharedMailbox" Scenario: Getting an attachment previously stored - Given "[email protected]" mailbox "INBOX" contains a message "1" with an attachment "2" - When "[email protected]" downloads "2" + Given "[email protected]" mailbox "INBOX" contains a message "1" with an attachment "2" + When "[email protected]" downloads "2" Then the user should receive that blob And the blob size is 3071 Scenario: Getting an attachment with an unknown blobId - Given "[email protected]" mailbox "INBOX" contains a message "1" with an attachment "2" - When "[email protected]" downloads "2" with a valid authentication token but a bad blobId + Given "[email protected]" mailbox "INBOX" contains a message "1" with an attachment "2" + When "[email protected]" downloads "2" with a valid authentication token but a bad blobId Then the user should receive a not found response Scenario: Getting an attachment previously stored with a desired name - Given "[email protected]" mailbox "INBOX" contains a message "1" with an attachment "2" - When "[email protected]" downloads "2" with "myFileName.txt" name + Given "[email protected]" mailbox "INBOX" contains a message "1" with an attachment "2" + When "[email protected]" downloads "2" with "myFileName.txt" name Then the user should receive that blob And the attachment is named "myFileName.txt" Scenario: Getting an attachment previously stored with a non ASCII name - Given "[email protected]" mailbox "INBOX" contains a message "1" with an attachment "2" - When "[email protected]" downloads "2" with "دÙÙØ§ØµÙر.odt" name + Given "[email protected]" mailbox "INBOX" contains a message "1" with an attachment "2" + When "[email protected]" downloads "2" with "دÙÙØ§ØµÙر.odt" name Then the user should receive that blob And the attachment is named "دÙÙØ§ØµÙر.odt" Scenario: Getting a message blob previously stored - Given "[email protected]" mailbox "INBOX" contains a message "1" - When "[email protected]" downloads "1" + Given "[email protected]" mailbox "INBOX" contains a message "1" + When "[email protected]" downloads "1" Then the user should receive that blob And the blob size is 4963 Scenario: Getting a message then getting its blob Given the user has a message "m1" in "INBOX" mailbox with subject "my test subject", content "testmail" And the user ask for messages "m1" - When "[email protected]" downloads the message by its blobId + When "[email protected]" downloads the message by its blobId Then the user should receive that blob And the blob size is 36 Scenario: Deleted message should revoke attachment blob download rights - Given "[email protected]" mailbox "INBOX" contains a message "1" with an attachment "2" - And "[email protected]" delete mailbox "INBOX" - When "[email protected]" downloads "2" + Given "[email protected]" mailbox "INBOX" contains a message "1" with an attachment "2" + And "[email protected]" delete mailbox "INBOX" + When "[email protected]" downloads "2" Then the user should receive a not found response Scenario: User cannot download attachment of another user - Given "[email protected]" mailbox "INBOX" contains a message "1" with an attachment "2" - And a connected user "[email protected]" - And "[email protected]" has a mailbox "INBOX" - When "[email protected]" downloads "2" + Given "[email protected]" mailbox "INBOX" contains a message "1" with an attachment "2" + And a connected user "[email protected]" + And "[email protected]" has a mailbox "INBOX" + When "[email protected]" downloads "2" Then the user should receive a not found response Scenario: User cannot download message blob of another user - Given "[email protected]" mailbox "INBOX" contains a message "1" with an attachment "2" - And a connected user "[email protected]" - And "[email protected]" has a mailbox "INBOX" - When "[email protected]" downloads "1" + Given "[email protected]" mailbox "INBOX" contains a message "1" with an attachment "2" + And a connected user "[email protected]" + And "[email protected]" has a mailbox "INBOX" + When "[email protected]" downloads "1" Then the user should receive a not found response Scenario: User can download attachment of another user when shared mailbox - Given "[email protected]" mailbox "sharedMailbox" contains a message "1" with an attachment "2" - And "[email protected]" shares its mailbox "sharedMailbox" with "[email protected]" - And a connected user "[email protected]" - And "[email protected]" has a mailbox "sharedMailbox" - When "[email protected]" downloads "2" + Given "[email protected]" mailbox "sharedMailbox" contains a message "1" with an attachment "2" + And "[email protected]" shares its mailbox "sharedMailbox" with "[email protected]" + And a connected user "[email protected]" + And "[email protected]" has a mailbox "sharedMailbox" + When "[email protected]" downloads "2" Then the user should receive that blob And the blob size is 3071 Scenario: User can download message blob of another user when shared mailbox - Given "[email protected]" mailbox "sharedMailbox" contains a message "1" with an attachment "2" - And "[email protected]" shares its mailbox "sharedMailbox" with "[email protected]" - And a connected user "[email protected]" - And "[email protected]" has a mailbox "sharedMailbox" - When "[email protected]" downloads "1" + Given "[email protected]" mailbox "sharedMailbox" contains a message "1" with an attachment "2" + And "[email protected]" shares its mailbox "sharedMailbox" with "[email protected]" + And a connected user "[email protected]" + And "[email protected]" has a mailbox "sharedMailbox" + When "[email protected]" downloads "1" Then the user should receive that blob And the blob size is 4963 \ No newline at end of file --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
