Repository: incubator-griffin Updated Branches: refs/heads/master 33fe4c139 -> 887ea3389
Fix rest api bug in service component GET /api/v1/version returns mistaken release version 0.2.0 instead of 0.3.0 Author: Eugene <liu...@apache.org> Closes #416 from toyboxman/src/service. Project: http://git-wip-us.apache.org/repos/asf/incubator-griffin/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-griffin/commit/887ea338 Tree: http://git-wip-us.apache.org/repos/asf/incubator-griffin/tree/887ea338 Diff: http://git-wip-us.apache.org/repos/asf/incubator-griffin/diff/887ea338 Branch: refs/heads/master Commit: 887ea3389ed56cab6c478a1493f0c8dda6a18b44 Parents: 33fe4c1 Author: Eugene <liu...@apache.org> Authored: Thu Sep 20 13:59:18 2018 +0800 Committer: William Guo <gu...@apache.org> Committed: Thu Sep 20 13:59:18 2018 +0800 ---------------------------------------------------------------------- .../java/org/apache/griffin/core/info/GriffinInfoController.java | 2 +- .../org/apache/griffin/core/info/GriffinInfoControllerTest.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-griffin/blob/887ea338/service/src/main/java/org/apache/griffin/core/info/GriffinInfoController.java ---------------------------------------------------------------------- diff --git a/service/src/main/java/org/apache/griffin/core/info/GriffinInfoController.java b/service/src/main/java/org/apache/griffin/core/info/GriffinInfoController.java index 5c3c87a..ee0d777 100644 --- a/service/src/main/java/org/apache/griffin/core/info/GriffinInfoController.java +++ b/service/src/main/java/org/apache/griffin/core/info/GriffinInfoController.java @@ -29,6 +29,6 @@ public class GriffinInfoController { @RequestMapping(value = "/version", method = RequestMethod.GET) public String greeting() { - return "0.2.0"; + return "0.3.0"; } } http://git-wip-us.apache.org/repos/asf/incubator-griffin/blob/887ea338/service/src/test/java/org/apache/griffin/core/info/GriffinInfoControllerTest.java ---------------------------------------------------------------------- diff --git a/service/src/test/java/org/apache/griffin/core/info/GriffinInfoControllerTest.java b/service/src/test/java/org/apache/griffin/core/info/GriffinInfoControllerTest.java index 8ded661..d868ae3 100644 --- a/service/src/test/java/org/apache/griffin/core/info/GriffinInfoControllerTest.java +++ b/service/src/test/java/org/apache/griffin/core/info/GriffinInfoControllerTest.java @@ -43,6 +43,6 @@ public class GriffinInfoControllerTest { public void testGreeting() throws Exception { mockMvc.perform(get(URLHelper.API_VERSION_PATH + "/version")) .andExpect(status().isOk()) - .andExpect(jsonPath("$", is("0.2.0"))); + .andExpect(jsonPath("$", is("0.3.0"))); } }