Repository: james-project Updated Branches: refs/heads/master 4b211274a -> 6c6efcd12
JAMES-2183 Add licence to all feature files Project: http://git-wip-us.apache.org/repos/asf/james-project/repo Commit: http://git-wip-us.apache.org/repos/asf/james-project/commit/3fabba9e Tree: http://git-wip-us.apache.org/repos/asf/james-project/tree/3fabba9e Diff: http://git-wip-us.apache.org/repos/asf/james-project/diff/3fabba9e Branch: refs/heads/master Commit: 3fabba9e097920037b6741bae2dc0987ff1d3ab0 Parents: 4b21127 Author: quynhn <qngu...@linagora.com> Authored: Fri Oct 13 14:26:04 2017 +0700 Committer: benwa <btell...@linagora.com> Committed: Wed Oct 18 08:59:58 2017 +0700 ---------------------------------------------------------------------- .../resources/cucumber/DownloadEndpoint.feature | 19 ++++ .../test/resources/cucumber/DownloadGet.feature | 19 ++++ .../resources/cucumber/DownloadPost.feature | 19 ++++ .../test/resources/cucumber/GetMessages.feature | 19 ++++ .../cucumber/ImapKeywordsConsistency.feature | 109 +++++++++++++++++++ ...essagesMailboxesUpdatesCompatibility.feature | 19 ++++ .../cucumber/MailboxModification.feature | 19 ++++ .../resources/cucumber/UploadEndpoint.feature | 19 ++++ 8 files changed, 242 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/james-project/blob/3fabba9e/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/resources/cucumber/DownloadEndpoint.feature ---------------------------------------------------------------------- diff --git a/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/resources/cucumber/DownloadEndpoint.feature b/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/resources/cucumber/DownloadEndpoint.feature index f4be86e..419ae98 100644 --- a/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/resources/cucumber/DownloadEndpoint.feature +++ b/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/resources/cucumber/DownloadEndpoint.feature @@ -1,3 +1,22 @@ +#*************************************************************** +# Licensed to the Apache Software Foundation (ASF) under one * +# or more contributor license agreements. See the NOTICE file * +# distributed with this work for additional information * +# regarding copyright ownership. The ASF licenses this file * +# to you under the Apache License, Version 2.0 (the * +# "License"); you may not use this file except in compliance * +# with the License. You may obtain a copy of the License at * +# * +# http://www.apache.org/licenses/LICENSE-2.0 * +# * +# Unless required by applicable law or agreed to in writing, * +# software distributed under the License is distributed on an * +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * +# KIND, either express or implied. See the License for the * +# specific language governing permissions and limitations * +# under the License. * +# **************************************************************/ + Feature: Download endpoint As a James user I want to access to the download endpoint http://git-wip-us.apache.org/repos/asf/james-project/blob/3fabba9e/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 2487487..586a321 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 @@ -1,3 +1,22 @@ +#*************************************************************** +# Licensed to the Apache Software Foundation (ASF) under one * +# or more contributor license agreements. See the NOTICE file * +# distributed with this work for additional information * +# regarding copyright ownership. The ASF licenses this file * +# to you under the Apache License, Version 2.0 (the * +# "License"); you may not use this file except in compliance * +# with the License. You may obtain a copy of the License at * +# * +# http://www.apache.org/licenses/LICENSE-2.0 * +# * +# Unless required by applicable law or agreed to in writing, * +# software distributed under the License is distributed on an * +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * +# KIND, either express or implied. See the License for the * +# specific language governing permissions and limitations * +# under the License. * +# **************************************************************/ + Feature: Download GET As a James user I want to retrieve my blobs (attachments and messages) http://git-wip-us.apache.org/repos/asf/james-project/blob/3fabba9e/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/resources/cucumber/DownloadPost.feature ---------------------------------------------------------------------- diff --git a/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/resources/cucumber/DownloadPost.feature b/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/resources/cucumber/DownloadPost.feature index 12d655d..571af47 100644 --- a/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/resources/cucumber/DownloadPost.feature +++ b/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/resources/cucumber/DownloadPost.feature @@ -1,3 +1,22 @@ +#*************************************************************** +# Licensed to the Apache Software Foundation (ASF) under one * +# or more contributor license agreements. See the NOTICE file * +# distributed with this work for additional information * +# regarding copyright ownership. The ASF licenses this file * +# to you under the Apache License, Version 2.0 (the * +# "License"); you may not use this file except in compliance * +# with the License. You may obtain a copy of the License at * +# * +# http://www.apache.org/licenses/LICENSE-2.0 * +# * +# Unless required by applicable law or agreed to in writing, * +# software distributed under the License is distributed on an * +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * +# KIND, either express or implied. See the License for the * +# specific language governing permissions and limitations * +# under the License. * +# **************************************************************/ + Feature: Alternative authentication mechanism for getting attachment via a POST request returning a specific authentication token As a James user I want to retrieve my attachments without an alternative authentication mechanim http://git-wip-us.apache.org/repos/asf/james-project/blob/3fabba9e/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 06715f3..a74acb7 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 @@ -1,3 +1,22 @@ +#*************************************************************** +# Licensed to the Apache Software Foundation (ASF) under one * +# or more contributor license agreements. See the NOTICE file * +# distributed with this work for additional information * +# regarding copyright ownership. The ASF licenses this file * +# to you under the Apache License, Version 2.0 (the * +# "License"); you may not use this file except in compliance * +# with the License. You may obtain a copy of the License at * +# * +# http://www.apache.org/licenses/LICENSE-2.0 * +# * +# Unless required by applicable law or agreed to in writing, * +# software distributed under the License is distributed on an * +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * +# KIND, either express or implied. See the License for the * +# specific language governing permissions and limitations * +# under the License. * +# **************************************************************/ + Feature: GetMessages method As a James user I want to be able to retrieve my messages http://git-wip-us.apache.org/repos/asf/james-project/blob/3fabba9e/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/resources/cucumber/ImapKeywordsConsistency.feature ---------------------------------------------------------------------- diff --git a/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/resources/cucumber/ImapKeywordsConsistency.feature b/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/resources/cucumber/ImapKeywordsConsistency.feature new file mode 100644 index 0000000..5a4ec8d --- /dev/null +++ b/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/resources/cucumber/ImapKeywordsConsistency.feature @@ -0,0 +1,109 @@ +#*************************************************************** +# Licensed to the Apache Software Foundation (ASF) under one * +# or more contributor license agreements. See the NOTICE file * +# distributed with this work for additional information * +# regarding copyright ownership. The ASF licenses this file * +# to you under the Apache License, Version 2.0 (the * +# "License"); you may not use this file except in compliance * +# with the License. You may obtain a copy of the License at * +# * +# http://www.apache.org/licenses/LICENSE-2.0 * +# * +# Unless required by applicable law or agreed to in writing, * +# software distributed under the License is distributed on an * +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * +# KIND, either express or implied. See the License for the * +# specific language governing permissions and limitations * +# under the License. * +# **************************************************************/ + +Feature: Impact of IMAP on JMAP keywords consistency + + Background: + Given a domain named "domain.tld" + And a connected user "usern...@domain.tld" + And "usern...@domain.tld" has a mailbox "source" + And "usern...@domain.tld" has a mailbox "mailbox" + And "usern...@domain.tld" has a mailbox "trash" + + Scenario Outline: GetMessages should union keywords when an inconsistency was created via IMAP + Given the user has a message "m1" in "source" mailbox with subject "My awesome subject", content "This is the content" + And the user copy "m1" from mailbox "source" to mailbox "mailbox" + And the user has an open IMAP connection with mailbox "<mailbox>" selected + And the user set flags via IMAP to "(\Flagged)" for all messages in mailbox "<mailbox>" + 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" + And the keywords of the message is <keyword> + + Examples: + |keyword | mailbox | + |$Flagged | mailbox | + |$Flagged | source | + + Scenario Outline: GetMessages should intersect Draft when an inconsistency was created via IMAP + Given the user has a message "m1" in "source" mailbox with subject "My awesome subject", content "This is the content" + And the user copy "m1" from mailbox "source" to mailbox "mailbox" + And the user has an open IMAP connection with mailbox "<mailbox>" selected + And the user set flags via IMAP to "(\Draft)" for all messages in mailbox "<mailbox>" + 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" + And the keywords of the message is <keyword> + + Examples: + |keyword | mailbox | + | | mailbox | + | | source | + + Scenario: GetMessageList should return matching messageId when matching in at least 1 mailbox + Given the user has a message "m1" in "source" mailbox with subject "My awesome subject", content "This is the content" + And the user copy "m1" from mailbox "source" to mailbox "mailbox" + And the user has an open IMAP connection with mailbox "mailbox" selected + And the user set flags via IMAP to "(\Flagged)" for all messages in mailbox "mailbox" + When the user asks for message list with flag "$Flagged" + Then the message list has size 1 + And the message list contains "m1" + + Scenario: GetMessageList in specific mailbox should return messageId when matching + Given the user has a message "m1" in "source" mailbox with subject "My awesome subject", content "This is the content" + And the user copy "m1" from mailbox "source" to mailbox "mailbox" + And the user has an open IMAP connection with mailbox "mailbox" selected + And the user set flags via IMAP to "(\Flagged)" for all messages in mailbox "mailbox" + When the user asks for message list in mailbox "mailbox" with flag "$Flagged" + Then the message list has size 1 + And the message list contains "m1" + + Scenario: GetMessageList in specific mailbox should skip messageId when not matching + Given the user has a message "m1" in "source" mailbox with subject "My awesome subject", content "This is the content" + And the user copy "m1" from mailbox "source" to mailbox "mailbox" + And the user has an open IMAP connection with mailbox "mailbox" selected + And the user set flags via IMAP to "(\Flagged)" for all messages in mailbox "mailbox" + When the user asks for message list in mailbox "source" with flag "$Flagged" + Then the message list is empty + + Scenario: SetMessages should succeed to solve Keywords conflict introduced via IMAP upon flags addition + Given the user has a message "m1" in "source" mailbox with subject "My awesome subject", content "This is the content" + And the user copy "m1" from mailbox "source" to mailbox "mailbox" + And the user has an open IMAP connection with mailbox "mailbox" selected + And the user set flags via IMAP to "(\Flagged)" for all messages in mailbox "mailbox" + When the user set flags on "m1" to "$Flagged" + Then the user asks for message list in mailbox "mailbox" with flag "$Flagged" + And the message list has size 1 + And the message list contains "m1" + And the user asks for message list in mailbox "source" with flag "$Flagged" + And the message list has size 1 + And the message list contains "m1" + + Scenario: SetMessages should ignore Keywords conflict introduced via IMAP upon flags deletion + Given the user has a message "m1" in "source" mailbox with subject "My awesome subject", content "This is the content" + And the user copy "m1" from mailbox "source" to mailbox "mailbox" + And the user has an open IMAP connection with mailbox "mailbox" selected + And the user set flags via IMAP to "(\Flagged)" for all messages in mailbox "mailbox" + When the user set flags on "m1" to "$Answered" + Then the user asks for message list in mailbox "mailbox" with flag "$Flagged" + And the message list is empty + And the user asks for message list in mailbox "source" with flag "$Flagged" + And the message list is empty \ No newline at end of file http://git-wip-us.apache.org/repos/asf/james-project/blob/3fabba9e/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/resources/cucumber/ImapSetMessagesMailboxesUpdatesCompatibility.feature ---------------------------------------------------------------------- diff --git a/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/resources/cucumber/ImapSetMessagesMailboxesUpdatesCompatibility.feature b/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/resources/cucumber/ImapSetMessagesMailboxesUpdatesCompatibility.feature index fdc12c9..33ae498 100644 --- a/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/resources/cucumber/ImapSetMessagesMailboxesUpdatesCompatibility.feature +++ b/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/resources/cucumber/ImapSetMessagesMailboxesUpdatesCompatibility.feature @@ -1,3 +1,22 @@ +#*************************************************************** +# Licensed to the Apache Software Foundation (ASF) under one * +# or more contributor license agreements. See the NOTICE file * +# distributed with this work for additional information * +# regarding copyright ownership. The ASF licenses this file * +# to you under the Apache License, Version 2.0 (the * +# "License"); you may not use this file except in compliance * +# with the License. You may obtain a copy of the License at * +# * +# http://www.apache.org/licenses/LICENSE-2.0 * +# * +# Unless required by applicable law or agreed to in writing, * +# software distributed under the License is distributed on an * +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * +# KIND, either express or implied. See the License for the * +# specific language governing permissions and limitations * +# under the License. * +# **************************************************************/ + Feature: IMAP compatibility of JMAP setMessages method used to update mailboxes As a James user I want to be able to access by IMAP messages moved and copied by JMAP http://git-wip-us.apache.org/repos/asf/james-project/blob/3fabba9e/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/resources/cucumber/MailboxModification.feature ---------------------------------------------------------------------- diff --git a/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/resources/cucumber/MailboxModification.feature b/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/resources/cucumber/MailboxModification.feature index 8ec100c..7b63c86 100644 --- a/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/resources/cucumber/MailboxModification.feature +++ b/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/resources/cucumber/MailboxModification.feature @@ -1,3 +1,22 @@ +#*************************************************************** +# Licensed to the Apache Software Foundation (ASF) under one * +# or more contributor license agreements. See the NOTICE file * +# distributed with this work for additional information * +# regarding copyright ownership. The ASF licenses this file * +# to you under the Apache License, Version 2.0 (the * +# "License"); you may not use this file except in compliance * +# with the License. You may obtain a copy of the License at * +# * +# http://www.apache.org/licenses/LICENSE-2.0 * +# * +# Unless required by applicable law or agreed to in writing, * +# software distributed under the License is distributed on an * +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * +# KIND, either express or implied. See the License for the * +# specific language governing permissions and limitations * +# under the License. * +# **************************************************************/ + Feature: Mailbox modification As a James user I want a mailbox to be modified when I modify it http://git-wip-us.apache.org/repos/asf/james-project/blob/3fabba9e/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/resources/cucumber/UploadEndpoint.feature ---------------------------------------------------------------------- diff --git a/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/resources/cucumber/UploadEndpoint.feature b/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/resources/cucumber/UploadEndpoint.feature index 6f82ada..2a33fd9 100644 --- a/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/resources/cucumber/UploadEndpoint.feature +++ b/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/resources/cucumber/UploadEndpoint.feature @@ -1,3 +1,22 @@ +#*************************************************************** +# Licensed to the Apache Software Foundation (ASF) under one * +# or more contributor license agreements. See the NOTICE file * +# distributed with this work for additional information * +# regarding copyright ownership. The ASF licenses this file * +# to you under the Apache License, Version 2.0 (the * +# "License"); you may not use this file except in compliance * +# with the License. You may obtain a copy of the License at * +# * +# http://www.apache.org/licenses/LICENSE-2.0 * +# * +# Unless required by applicable law or agreed to in writing, * +# software distributed under the License is distributed on an * +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * +# KIND, either express or implied. See the License for the * +# specific language governing permissions and limitations * +# under the License. * +# **************************************************************/ + Feature: An upload endpoint should be available to upload contents As a James user I want to upload my attachments --------------------------------------------------------------------- To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org For additional commands, e-mail: server-dev-h...@james.apache.org