MAILBOX-270: MPT tests the quota, data size of at least 1024 and number of 
annotations at least 10


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

Branch: refs/heads/master
Commit: 5ae5c9e79c5afe4d9e19b195963930797c09377c
Parents: f59434c
Author: Quynh Nguyen <qngu...@linagora.com>
Authored: Mon Sep 12 11:14:28 2016 +0700
Committer: Quynh Nguyen <qngu...@linagora.com>
Committed: Wed Nov 9 11:39:49 2016 +0700

----------------------------------------------------------------------
 .../imapmailbox/suite/MailboxAnnotation.java    |  6 +++
 .../imap/scripts/AnnotationWithLimitation.test  | 45 ++++++++++++++++++++
 2 files changed, 51 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/james-project/blob/5ae5c9e7/mpt/impl/imap-mailbox/core/src/main/java/org/apache/james/mpt/imapmailbox/suite/MailboxAnnotation.java
----------------------------------------------------------------------
diff --git 
a/mpt/impl/imap-mailbox/core/src/main/java/org/apache/james/mpt/imapmailbox/suite/MailboxAnnotation.java
 
b/mpt/impl/imap-mailbox/core/src/main/java/org/apache/james/mpt/imapmailbox/suite/MailboxAnnotation.java
index 9073084..40a2377 100644
--- 
a/mpt/impl/imap-mailbox/core/src/main/java/org/apache/james/mpt/imapmailbox/suite/MailboxAnnotation.java
+++ 
b/mpt/impl/imap-mailbox/core/src/main/java/org/apache/james/mpt/imapmailbox/suite/MailboxAnnotation.java
@@ -43,4 +43,10 @@ public class MailboxAnnotation extends BaseSelectedInbox {
         
Assume.assumeTrue(system.supports(ImapFeatures.Feature.ANNOTATION_SUPPORT));
         scriptTest("Annotation", Locale.US);
     }
+
+    @Test
+    public void testAnnotationWithLimitationUS() throws Exception {
+        
Assume.assumeTrue(system.supports(ImapFeatures.Feature.ANNOTATION_SUPPORT));
+        scriptTest("AnnotationWithLimitation", Locale.US);
+    }
 }

http://git-wip-us.apache.org/repos/asf/james-project/blob/5ae5c9e7/mpt/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/AnnotationWithLimitation.test
----------------------------------------------------------------------
diff --git 
a/mpt/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/AnnotationWithLimitation.test
 
b/mpt/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/AnnotationWithLimitation.test
new file mode 100644
index 0000000..d0173d6
--- /dev/null
+++ 
b/mpt/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/AnnotationWithLimitation.test
@@ -0,0 +1,45 @@
+################################################################
+# 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.                                           #
+################################################################
+C: a0 CAPABILITY
+S: \* CAPABILITY .* ANNOTATION .*
+S: a0 OK CAPABILITY completed.
+
+C: a1 SETMETADATA INBOX (/private/comment {1025}
+S: \+
+C: 
AnyValueaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
+C: 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
+C: 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
+C: 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
+C: 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaEnd)
+S: a1 NO SETMETADATA annotation too big.
+
+C: a2 SETMETADATA INBOX (/private/comment1 "Comment" /private/comment2 
"Comment" /private/comment3 "Comment" /private/comment4 "Comment" 
/private/comment5 "Comment" /private/comment6 "Comment" /private/comment7 
"Comment" /private/comment8 "Comment" /private/comment9 "Comment" 
/private/comment10 "Comment")
+S: a2 OK SETMETADATA completed.
+
+C: 10 CREATE TRASK
+S: 10 OK CREATE completed.
+
+C: a3 SETMETADATA TRASK (/private/comment "My comment")
+S: a3 OK SETMETADATA completed.
+
+C: a4 SETMETADATA INBOX (/private/comment "My comment")
+S: a4 NO SETMETADATA too many annotations.
+
+C: a5 SETMETADATA INBOX (/private/comment1 "My comment")
+S: a5 OK SETMETADATA completed.
\ No newline at end of file


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org

Reply via email to