You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by ma...@apache.org on 2017/10/23 11:51:18 UTC
[07/16] james-project git commit: JAMES-2186 rename cucumber "should
receive that blob"
JAMES-2186 rename cucumber "should receive that blob"
into "can read that blob"
Project: http://git-wip-us.apache.org/repos/asf/james-project/repo
Commit: http://git-wip-us.apache.org/repos/asf/james-project/commit/4d28230f
Tree: http://git-wip-us.apache.org/repos/asf/james-project/tree/4d28230f
Diff: http://git-wip-us.apache.org/repos/asf/james-project/diff/4d28230f
Branch: refs/heads/master
Commit: 4d28230fc59bbddf959f1c94a22feac89e636dba
Parents: eff87da
Author: Luc DUZAN <ld...@linagora.com>
Authored: Thu Oct 19 15:06:04 2017 +0700
Committer: Matthieu Baechler <ma...@apache.org>
Committed: Mon Oct 23 13:50:39 2017 +0200
----------------------------------------------------------------------
.../integration/cucumber/DownloadStepdefs.java | 2 +-
.../src/test/resources/cucumber/DownloadGet.feature | 14 +++++++-------
2 files changed, 8 insertions(+), 8 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/james-project/blob/4d28230f/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/java/org/apache/james/jmap/methods/integration/cucumber/DownloadStepdefs.java
----------------------------------------------------------------------
diff --git a/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/java/org/apache/james/jmap/methods/integration/cucumber/DownloadStepdefs.java b/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/java/org/apache/james/jmap/methods/integration/cucumber/DownloadStepdefs.java
index f3d0462..80d378c 100644
--- a/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/java/org/apache/james/jmap/methods/integration/cucumber/DownloadStepdefs.java
+++ b/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/java/org/apache/james/jmap/methods/integration/cucumber/DownloadStepdefs.java
@@ -360,7 +360,7 @@ public class DownloadStepdefs {
assertThat(response.getStatusLine().getStatusCode()).isEqualTo(400);
}
- @Then("^the user should receive that blob")
+ @Then("^the user can read that blob")
public void httpOkStatusAndExpectedContent() throws IOException {
assertThat(response.getStatusLine().getStatusCode()).isEqualTo(200);
assertThat(IOUtils.toString(response.getEntity().getContent(), Charsets.UTF_8)).isNotEmpty();
http://git-wip-us.apache.org/repos/asf/james-project/blob/4d28230f/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 b413d58..6619d5d 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
@@ -30,7 +30,7 @@ Feature: Download GET
Scenario: Getting an attachment previously stored
Given "alice@domain.tld" mailbox "INBOX" contains a message "1" with an attachment "2"
When "alice@domain.tld" downloads "2"
- Then the user should receive that blob
+ Then the user can read that blob
And the blob size is 3071
Scenario: Getting an attachment with an unknown blobId
@@ -41,26 +41,26 @@ Feature: Download GET
Scenario: Getting an attachment previously stored with a desired name
Given "alice@domain.tld" mailbox "INBOX" contains a message "1" with an attachment "2"
When "alice@domain.tld" downloads "2" with "myFileName.txt" name
- Then the user should receive that blob
+ Then the user can read that blob
And the attachment is named "myFileName.txt"
Scenario: Getting an attachment previously stored with a non ASCII name
Given "alice@domain.tld" mailbox "INBOX" contains a message "1" with an attachment "2"
When "alice@domain.tld" downloads "2" with "ديناصور.odt" name
- Then the user should receive that blob
+ Then the user can read that blob
And the attachment is named "ديناصور.odt"
Scenario: Getting a message blob previously stored
Given "alice@domain.tld" mailbox "INBOX" contains a message "1"
When "alice@domain.tld" downloads "1"
- Then the user should receive that blob
+ Then the user can read 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 "alice@domain.tld" downloads the message by its blobId
- Then the user should receive that blob
+ Then the user can read that blob
And the blob size is 36
Scenario: Deleted message should revoke attachment blob download rights
@@ -89,7 +89,7 @@ Feature: Download GET
And a connected user "bob@domain.tld"
And "bob@domain.tld" has a mailbox "sharedMailbox"
When "bob@domain.tld" downloads "2"
- Then the user should receive that blob
+ Then the user can read that blob
And the blob size is 3071
Scenario: User can download message blob of another user when shared mailbox
@@ -98,5 +98,5 @@ Feature: Download GET
And a connected user "bob@domain.tld"
And "bob@domain.tld" has a mailbox "sharedMailbox"
When "bob@domain.tld" downloads "1"
- Then the user should receive that blob
+ Then the user can read that blob
And the blob size is 4963
\ No newline at end of file
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org