metron-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From merrimanr <...@git.apache.org>
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:

    https://github.com/apache/metron/pull/607#discussion_r129930004
  
    --- Diff: metron-interface/metron-rest/src/test/java/org/apache/metron/rest/controller/StormControllerIntegrationTest.java
---
    @@ -182,6 +185,16 @@ public void test() throws Exception {
                 .andExpect(jsonPath("$.status").value("SUCCESS"))
                 .andExpect(jsonPath("$.message").value(TopologyStatusCode.STARTED.name()));
     
    +    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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message