metron-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From merrimanr <>
Subject [GitHub] metron pull request #607: METRON-982 add new rest api for storm supervisor s...
Date Thu, 27 Jul 2017 18:58:57 GMT
Github user merrimanr commented on a diff in the pull request:
    --- Diff: metron-interface/metron-rest/src/test/java/org/apache/metron/rest/controller/
    @@ -182,6 +185,16 @@ public void test() throws Exception {
    +    this.mockMvc.perform(get(stormUrl + "/supervisors").with(httpBasic(user,password)))
    +            .andExpect(status().isOk())
    +            .andExpect(content().contentType(MediaType.parseMediaType("application/json;charset=UTF-8")))
    +            .andExpect(jsonPath("$.supervisors[0]").exists())
    +            .andExpect(jsonPath("$.supervisors[0].id").exists())
    +            .andExpect(jsonPath("$.supervisors[0].host").exists())
    +            .andExpect(jsonPath("$.supervisors[0].upTime").exists())
    --- End diff --
    I changed the getter/setter methods in my test.  You can try leaving them the same but
I know "getUptime()" works.

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

View raw message