stringFromResource("/role_create_response.json"))));
try {
KeystoneApi keystoneApi = api(server.getUrl("/").toString(), "openstack-keystone");
RoleAdminApi roleAdminApi = keystoneApi.getRoleAdminApi().get();
Role role = roleAdminApi.get("r1000");
assertEquals(server.getRequestCount(), 3);
assertAuthentication(server);
assertExtensions(server);
RecordedRequest updateRoleRequest = server.takeRequest();
assertEquals(updateRoleRequest.getRequestLine(), "GET /OS-KSADM/roles/r1000 HTTP/1.1");
/*
* Check response
*/
assertEquals(role.getId(), "r1000");
assertEquals(role.getName(), "jclouds-role");
} finally {
server.shutdown();
}
}