use of keywhiz.api.CreateGroupRequest in project keywhiz by square.
the class AutomationSecretResourceIntegrationTest method createGroup.
private Response createGroup(String name) throws Exception {
CreateGroupRequest request = new CreateGroupRequest(name, "description", ImmutableMap.of());
String body = mapper.writeValueAsString(request);
Request post = new Request.Builder().post(RequestBody.create(KeywhizClient.JSON, body)).url(testUrl("/automation/groups")).addHeader(HttpHeaders.CONTENT_TYPE, MediaType.APPLICATION_JSON).addHeader(HttpHeaders.ACCEPT, MediaType.APPLICATION_JSON).build();
return mutualSslClient.newCall(post).execute();
}
Aggregations