You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by sw...@apache.org on 2014/05/22 19:36:19 UTC
[4/4] git commit: AMBARI-5799. Add filter by regex and sort
capabilities to API. Unit test fix. (swagle)
AMBARI-5799. Add filter by regex and sort capabilities to API. Unit test fix. (swagle)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/db7c6f50
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/db7c6f50
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/db7c6f50
Branch: refs/heads/trunk
Commit: db7c6f50ca0cecf9e84b789d0d6ec543902fdc21
Parents: f3db95f
Author: Siddharth Wagle <sw...@hortonworks.com>
Authored: Thu May 22 10:36:04 2014 -0700
Committer: Siddharth Wagle <sw...@hortonworks.com>
Committed: Thu May 22 10:36:04 2014 -0700
----------------------------------------------------------------------
.../org/apache/ambari/server/api/predicate/QueryParserTest.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/db7c6f50/ambari-server/src/test/java/org/apache/ambari/server/api/predicate/QueryParserTest.java
----------------------------------------------------------------------
diff --git a/ambari-server/src/test/java/org/apache/ambari/server/api/predicate/QueryParserTest.java b/ambari-server/src/test/java/org/apache/ambari/server/api/predicate/QueryParserTest.java
index bc7246f..90ad522 100644
--- a/ambari-server/src/test/java/org/apache/ambari/server/api/predicate/QueryParserTest.java
+++ b/ambari-server/src/test/java/org/apache/ambari/server/api/predicate/QueryParserTest.java
@@ -193,7 +193,7 @@ public class QueryParserTest {
@Test
public void testParse_FilterOp() throws Exception {
List<Token> listTokens = new ArrayList<Token>();
- listTokens.add(new Token(Token.TYPE.RELATIONAL_OPERATOR_FUNC, ".filter("));
+ listTokens.add(new Token(Token.TYPE.RELATIONAL_OPERATOR_FUNC, ".matches("));
listTokens.add(new Token(Token.TYPE.PROPERTY_OPERAND, "foo"));
listTokens.add(new Token(Token.TYPE.VALUE_OPERAND, ".*"));
listTokens.add(new Token(Token.TYPE.BRACKET_CLOSE, ")"));
@@ -209,7 +209,7 @@ public class QueryParserTest {
@Test
public void testParse_FilterOp_exception() throws Exception {
List<Token> listTokens = new ArrayList<Token>();
- listTokens.add(new Token(Token.TYPE.RELATIONAL_OPERATOR_FUNC, ".filter("));
+ listTokens.add(new Token(Token.TYPE.RELATIONAL_OPERATOR_FUNC, ".matches("));
listTokens.add(new Token(Token.TYPE.PROPERTY_OPERAND, "foo"));
listTokens.add(new Token(Token.TYPE.BRACKET_CLOSE, ")"));