Repository: james-project
Updated Branches:
  refs/heads/master a7959458f -> 8d5c53b12


JAMES-2259 Add minimal integration test regarding MODSEQ search

These tests are hard to write with MPT as we can not access the MODSEQ value. 
Hence I believe a minimum strategy can be adopted:

 - Pick a very high modseq
 - Ensure nothing is returned.


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

Branch: refs/heads/master
Commit: 8d5c53b123a3e6e1248d42052a042b4ba01f1ec9
Parents: 452e1a1
Author: benwa <[email protected]>
Authored: Fri Dec 15 11:07:06 2017 +0700
Committer: benwa <[email protected]>
Committed: Mon Dec 18 13:16:21 2017 +0700

----------------------------------------------------------------------
 .../org/apache/james/imap/scripts/SearchAtoms.test       | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/james-project/blob/8d5c53b1/mpt/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/SearchAtoms.test
----------------------------------------------------------------------
diff --git 
a/mpt/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/SearchAtoms.test
 
b/mpt/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/SearchAtoms.test
index 1ce099c..99374eb 100644
--- 
a/mpt/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/SearchAtoms.test
+++ 
b/mpt/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/SearchAtoms.test
@@ -1916,5 +1916,12 @@ S: A148 OK SEARCH completed\.
 C: A149 SEARCH UNSEEN
 S: \* SEARCH 3 4 8 9 13 14 18 19
 S: A149 OK SEARCH completed\.
-C: A150 DELETE testmailbox
-S: A150 OK DELETE completed\.
+
+C: A150 SEARCH MODSEQ 150000
+S: \* OK \[HIGHESTMODSEQ .*\] Highest
+S: \* SEARCH
+S: A150 OK SEARCH completed\.
+# We expect no modseq to be over 1500, hence we expect an empty result.
+
+C: A151 DELETE testmailbox
+S: A151 OK DELETE completed\.


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

Reply via email to