Unverified Commit 9b6b41d9 authored by Selvakumar Kamatchinathan's avatar Selvakumar Kamatchinathan Committed by GitHub
Browse files

test update for newly created fields

parent 44501a24
......@@ -138,12 +138,13 @@ public class PropertyRegistryServiceApplicationTests {
String location = postTestPhenotype();
mockMvc.perform(patch(location).with(oAuthHelper.bearerToken("testEditor@gmail.com"))
.content("{\"id\":\"BMI\"," + "\"phenotypeGroup\":\"RENAL\"}"))
.content("{\"id\":\"BMI\"," + "\"phenotypeGroup\":\"RENAL\"," + "\"allowedValues\":\"nn.nnnn\"}"))
.andExpect(status().is2xxSuccessful());
mockMvc.perform(get(location).with(oAuthHelper.bearerToken("testUser@gmail.com")))
.andExpect(status().isOk())
.andExpect(jsonPath("$.phenotypeGroup").value("RENAL"));
.andExpect(jsonPath("$.phenotypeGroup").value("RENAL"))
.andExpect(jsonPath("$.allowedValues").value("nn.nnnn"));
}
@Test
......@@ -333,4 +334,4 @@ public class PropertyRegistryServiceApplicationTests {
.content(propertyContent)).andExpect(status().isCreated());
}
}
\ No newline at end of file
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment