incubator-blur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From amccu...@apache.org
Subject [1/3] git commit: Fixed the tests that broke with the upgrade/cleanup
Date Wed, 22 May 2013 01:06:25 GMT
Updated Branches:
  refs/heads/0.1.5 db3d6b181 -> 6302f0fdf


Fixed the tests that broke with the upgrade/cleanup

Signed-off-by: Aaron McCurry <amccurry@gmail.com>


Project: http://git-wip-us.apache.org/repos/asf/incubator-blur/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-blur/commit/5084ccc6
Tree: http://git-wip-us.apache.org/repos/asf/incubator-blur/tree/5084ccc6
Diff: http://git-wip-us.apache.org/repos/asf/incubator-blur/diff/5084ccc6

Branch: refs/heads/0.1.5
Commit: 5084ccc6498051665db58f52383f8f5686aab979
Parents: 620abf3
Author: Chris Rohr <crohr@nearinfinity.com>
Authored: Tue May 21 16:48:31 2013 -0400
Committer: Aaron McCurry <amccurry@gmail.com>
Committed: Tue May 21 21:04:54 2013 -0400

----------------------------------------------------------------------
 src/contrib/blur-console/blur-agent/pom.xml        |   14 +++++++++++++-
 .../collectors/blur/query/QueryCollectorTest.java  |    6 +++++-
 2 files changed, 18 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/5084ccc6/src/contrib/blur-console/blur-agent/pom.xml
----------------------------------------------------------------------
diff --git a/src/contrib/blur-console/blur-agent/pom.xml b/src/contrib/blur-console/blur-agent/pom.xml
index 6889b9f..af784fc 100644
--- a/src/contrib/blur-console/blur-agent/pom.xml
+++ b/src/contrib/blur-console/blur-agent/pom.xml
@@ -64,7 +64,7 @@
 		<dependency>
 			<groupId>org.apache.thrift</groupId>
 			<artifactId>libthrift</artifactId>
-			<version>0.7.0</version>
+			<version>0.9.0</version>
 		</dependency>
 		<dependency>
 			<groupId>org.slf4j</groupId>
@@ -131,6 +131,12 @@
 			<scope>test</scope>
 		</dependency>
 		<dependency>
+			<groupId>org.apache.hadoop</groupId>
+			<artifactId>hadoop-test</artifactId>
+			<version>1.0.4</version>
+			<scope>test</scope>
+		</dependency>
+		<dependency>
 			<groupId>org.apache.blur</groupId>
 			<artifactId>blur-store</artifactId>
 			<version>0.1.5</version>
@@ -148,6 +154,12 @@
 			<version>0.7</version>
 			<scope>test</scope>
 		</dependency>
+		<dependency>
+        	<groupId>com.sun.jersey</groupId>
+            <artifactId>jersey-core</artifactId>
+            <version>1.14</version>
+            <scope>test</scope>
+       	</dependency>
 		            
 	</dependencies>
 

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/5084ccc6/src/contrib/blur-console/blur-agent/src/test/java/com/nearinfinity/agent/collectors/blur/query/QueryCollectorTest.java
----------------------------------------------------------------------
diff --git a/src/contrib/blur-console/blur-agent/src/test/java/com/nearinfinity/agent/collectors/blur/query/QueryCollectorTest.java
b/src/contrib/blur-console/blur-agent/src/test/java/com/nearinfinity/agent/collectors/blur/query/QueryCollectorTest.java
index f94fdad..f73782f 100644
--- a/src/contrib/blur-console/blur-agent/src/test/java/com/nearinfinity/agent/collectors/blur/query/QueryCollectorTest.java
+++ b/src/contrib/blur-console/blur-agent/src/test/java/com/nearinfinity/agent/collectors/blur/query/QueryCollectorTest.java
@@ -11,6 +11,8 @@ import org.apache.blur.thrift.generated.AnalyzerDefinition;
 import org.apache.blur.thrift.generated.Blur.Iface;
 import org.apache.blur.thrift.generated.BlurException;
 import org.apache.blur.thrift.generated.BlurQuery;
+import org.apache.blur.thrift.generated.ScoreType;
+import org.apache.blur.thrift.generated.SimpleQuery;
 import org.apache.blur.thrift.generated.TableDescriptor;
 import org.apache.thrift.TException;
 import org.junit.Test;
@@ -33,7 +35,9 @@ public class QueryCollectorTest extends BlurAgentBaseTestClass {
 
 		blurConnection.createTable(td);
 		
-		blurConnection.query("test.col:*", new BlurQuery());
+		BlurQuery query = new BlurQuery();
+		query.setSimpleQuery(new SimpleQuery("test.col:*", true, ScoreType.SUPER, null, null));
+		blurConnection.query("test", query);
 		
 		Thread testQueryCollector = new Thread(new QueryCollector(BlurClient.getClient(MiniCluster.getControllerConnectionStr()),
"test",
 				1, database), "Query Test Thread");


Mime
View raw message