You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Damien Carol (JIRA)" <ji...@apache.org> on 2015/02/01 15:22:34 UTC

[jira] [Commented] (HIVE-9539) Wrong check of version format in TestWebHCatE2e.getHiveVersion()

    [ https://issues.apache.org/jira/browse/HIVE-9539?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14300206#comment-14300206 ] 

Damien Carol commented on HIVE-9539:
------------------------------------

It's a one line patch in this method :
{code}
@Test
public void getHiveVersion() throws Exception {
MethodCallRetVal p = doHttpCall(templetonBaseUrl + "/version/hive",
HTTP_METHOD_TYPE.GET);
Assert.assertEquals(HttpStatus.OK_200, p.httpStatusCode);
Map<String, Object> props = JsonBuilder.jsonToMap(p.responseBody);
Assert.assertEquals("hive", props.get("module"));
Assert.assertTrue(p.getAssertMsg(),
((String) props.get("version")).matches("0.[0-9]+.[0-9]+.*"));
}
{code}
Line 244 should be : {code}((String) props.get("version")).matches("[0-9]+.[0-9]+.[0-9]+.*"));{code}
Instead of {code}((String) props.get("version")).matches("0.[0-9]+.[0-9]+.*"));{code}



> Wrong check of version format in TestWebHCatE2e.getHiveVersion()
> ----------------------------------------------------------------
>
>                 Key: HIVE-9539
>                 URL: https://issues.apache.org/jira/browse/HIVE-9539
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Damien Carol
>            Priority: Minor
>
> Test of {{org.apache.hive.hcatalog.templeton.TestWebHCatE2e.getHiveVersion()}} check that version in that format : {{0.[0-9]+.[0-9]+.*}}
> This doesn't works since HIVE version is like {{1.2.0-SNAPHSOT}}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)