You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@usergrid.apache.org by gr...@apache.org on 2015/05/29 22:10:16 UTC
incubator-usergrid git commit: [USERGRID-687] Fixes to AndOrQueryTests
Repository: incubator-usergrid
Updated Branches:
refs/heads/two-dot-o-dev 38472b6b5 -> b8f93bbbd
[USERGRID-687] Fixes to AndOrQueryTests
Project: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/commit/b8f93bbb
Tree: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/tree/b8f93bbb
Diff: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/diff/b8f93bbb
Branch: refs/heads/two-dot-o-dev
Commit: b8f93bbbd5e80368b3c2430fee8543b50dbd06d4
Parents: 38472b6
Author: GERey <gr...@apigee.com>
Authored: Fri May 29 13:10:02 2015 -0700
Committer: GERey <gr...@apigee.com>
Committed: Fri May 29 13:10:02 2015 -0700
----------------------------------------------------------------------
.../usergrid/rest/applications/queries/AndOrQueryTest.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/b8f93bbb/stack/rest/src/test/java/org/apache/usergrid/rest/applications/queries/AndOrQueryTest.java
----------------------------------------------------------------------
diff --git a/stack/rest/src/test/java/org/apache/usergrid/rest/applications/queries/AndOrQueryTest.java b/stack/rest/src/test/java/org/apache/usergrid/rest/applications/queries/AndOrQueryTest.java
index fbd067e..8deab48 100644
--- a/stack/rest/src/test/java/org/apache/usergrid/rest/applications/queries/AndOrQueryTest.java
+++ b/stack/rest/src/test/java/org/apache/usergrid/rest/applications/queries/AndOrQueryTest.java
@@ -306,7 +306,7 @@ public class AndOrQueryTest extends QueryTestBase {
generateTestEntities(numOfEntities, collectionName);
//2. Issue a query
- String inquisitiveQuery = String.format("select * where ordinal >= 0 and ordinal <= %d or WhoHelpedYou = 'Ruff'", numOfEntities);
+ String inquisitiveQuery = String.format("select * where ordinal >= 0 and ordinal <= %d or WhoHelpedYou = 'Ruff' ORDER BY created", numOfEntities);
QueryParameters params = new QueryParameters().setQuery(inquisitiveQuery);
Collection activities = this.app().collection(collectionName).get(params);
@@ -333,7 +333,7 @@ public class AndOrQueryTest extends QueryTestBase {
generateTestEntities(numOfEntities, collectionName);
//2. Issue a query using alphanumeric operators
- String inquisitiveQuery = "select * where Ordinal gte 0 and Ordinal lte 2000 or WhoHelpedYou eq 'Ruff'";
+ String inquisitiveQuery = "select * where Ordinal gte 0 and Ordinal lte 2000 or WhoHelpedYou eq 'Ruff' ORDER BY created";
QueryParameters params = new QueryParameters().setQuery(inquisitiveQuery);
Collection activities = this.app().collection(collectionName).get(params);