knox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From m...@apache.org
Subject knox git commit: KNOX-1005 - WebHbase get rid of extra decoding
Date Tue, 12 Sep 2017 21:56:32 GMT
Repository: knox
Updated Branches:
  refs/heads/master 5c95ab4e3 -> 751f76489


KNOX-1005 - WebHbase get rid of extra decoding


Project: http://git-wip-us.apache.org/repos/asf/knox/repo
Commit: http://git-wip-us.apache.org/repos/asf/knox/commit/751f7648
Tree: http://git-wip-us.apache.org/repos/asf/knox/tree/751f7648
Diff: http://git-wip-us.apache.org/repos/asf/knox/diff/751f7648

Branch: refs/heads/master
Commit: 751f7648982dff7ffbaf1dbb1cb1a02fb831d797
Parents: 5c95ab4
Author: Sandeep More <more@apache.org>
Authored: Tue Sep 12 17:56:23 2017 -0400
Committer: Sandeep More <more@apache.org>
Committed: Tue Sep 12 17:56:23 2017 -0400

----------------------------------------------------------------------
 .../src/main/resources/services/hbase/0.98.0/service.xml         | 2 +-
 .../hadoop/gateway/service/definition/ServiceDefinitionTest.java | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/knox/blob/751f7648/gateway-service-definitions/src/main/resources/services/hbase/0.98.0/service.xml
----------------------------------------------------------------------
diff --git a/gateway-service-definitions/src/main/resources/services/hbase/0.98.0/service.xml
b/gateway-service-definitions/src/main/resources/services/hbase/0.98.0/service.xml
index 181b536..28896b5 100644
--- a/gateway-service-definitions/src/main/resources/services/hbase/0.98.0/service.xml
+++ b/gateway-service-definitions/src/main/resources/services/hbase/0.98.0/service.xml
@@ -29,7 +29,7 @@
             <rewrite apply="WEBHBASE/webhbase/regions/outbound" to="response.body"/>
         </route>
     </routes>
-    <dispatch classname="org.apache.hadoop.gateway.hbase.HBaseDispatch"/>
+
     <testURLs>
         <testURL>/hbase/version</testURL>
         <testURL>/hbase/version/cluster</testURL>

http://git-wip-us.apache.org/repos/asf/knox/blob/751f7648/gateway-service-definitions/src/test/java/org/apache/hadoop/gateway/service/definition/ServiceDefinitionTest.java
----------------------------------------------------------------------
diff --git a/gateway-service-definitions/src/test/java/org/apache/hadoop/gateway/service/definition/ServiceDefinitionTest.java
b/gateway-service-definitions/src/test/java/org/apache/hadoop/gateway/service/definition/ServiceDefinitionTest.java
index 436e83d..4e8c39c 100644
--- a/gateway-service-definitions/src/test/java/org/apache/hadoop/gateway/service/definition/ServiceDefinitionTest.java
+++ b/gateway-service-definitions/src/test/java/org/apache/hadoop/gateway/service/definition/ServiceDefinitionTest.java
@@ -78,8 +78,8 @@ public class ServiceDefinitionTest {
     assertNotNull(routes.get(0).getPath());
     url = ClassLoader.getSystemResource("services/hbase/0.98.0/service.xml");
     definition = (ServiceDefinition) unmarshaller.unmarshal(url.openStream());
-    assertNotNull(definition.getDispatch());
-    assertEquals("org.apache.hadoop.gateway.hbase.HBaseDispatch", definition.getDispatch().getClassName());
+    assertNotNull(definition.getName());
+    assertEquals("webhbase", definition.getName());
     url = ClassLoader.getSystemResource("services/webhdfs/2.4.0/service.xml");
     definition = (ServiceDefinition) unmarshaller.unmarshal(url.openStream());
     assertNotNull(definition.getDispatch());


Mime
View raw message