knox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lmc...@apache.org
Subject knox git commit: KNOX-1143 - Add MR job history ws rest api rewrite rule to jobhistoryui (Guang Yang via lmccay)
Date Wed, 23 May 2018 01:17:28 GMT
Repository: knox
Updated Branches:
  refs/heads/master f6c858336 -> 25227ae6f


KNOX-1143 - Add MR job history ws rest api rewrite rule to jobhistoryui (Guang Yang via lmccay)

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

Branch: refs/heads/master
Commit: 25227ae6fa9fb9b45c0e0c21476f68961f82878b
Parents: f6c8583
Author: Larry McCay <lmccay@apache.org>
Authored: Tue May 22 21:17:12 2018 -0400
Committer: Larry McCay <lmccay@apache.org>
Committed: Tue May 22 21:17:12 2018 -0400

----------------------------------------------------------------------
 .../main/resources/services/jobhistoryui/2.7.0/rewrite.xml  | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/knox/blob/25227ae6/gateway-service-definitions/src/main/resources/services/jobhistoryui/2.7.0/rewrite.xml
----------------------------------------------------------------------
diff --git a/gateway-service-definitions/src/main/resources/services/jobhistoryui/2.7.0/rewrite.xml
b/gateway-service-definitions/src/main/resources/services/jobhistoryui/2.7.0/rewrite.xml
index 7c81fe6..2a8d3e7 100644
--- a/gateway-service-definitions/src/main/resources/services/jobhistoryui/2.7.0/rewrite.xml
+++ b/gateway-service-definitions/src/main/resources/services/jobhistoryui/2.7.0/rewrite.xml
@@ -71,13 +71,18 @@
     <rewrite template="{scheme}://{host}:{port}/logs/?{**}"/>
   </rule>
 
+  <!-- job history ws rest api -->
+  <rule dir="IN" name="JOBHISTORYUI/jobhistory/inbound/ws" pattern="*://*:*/**/jobhistory/ws/{**}">
+    <rewrite template="{$serviceUrl[JOBHISTORYUI]}/ws/{**}"/>
+  </rule>
+
   <rule dir="IN" name="JOBHISTORYUI/nodelink/inbound" pattern="*://*:*/**/jobhistory/node?{scheme}?{host}?{port}">
     <rewrite template="{scheme}://{host}:{port}/node?{scheme}?{host}?{port}"/>
   </rule>
 
   <rule dir="IN" name="JOBHISTORYUI/jobhistory/inbound/node" pattern="*://*:*/**/jobhistory/node?{host}&amp;{port=**}">
     <rewrite template="http://{host}:{port=**}/node"/>
-   </rule>
+  </rule>
 
   <!-- request out web content rewrite rules -->
 
@@ -165,4 +170,4 @@
     <match pattern="{scheme}://{host}:{port}"/>
     <rewrite template="{$frontend[url]}/jobhistory/node?{host}?{port}"/>
   </rule>
-</rules>
\ No newline at end of file
+</rules>


Mime
View raw message