metron-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ottobackwards <>
Subject [GitHub] metron pull request #607: METRON-982 add new rest api for storm supervisor s...
Date Thu, 27 Jul 2017 18:55:57 GMT
Github user ottobackwards 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 --
    ok, i don't know how that got formatted to upTime, I have a comment in there that I copied
out of that page to go by.....
    The getter and setter names can stay though?  getUpTime() etc?

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