stringFromResource("/service_create_response.json"))));
try {
KeystoneApi keystoneApi = api(server.getUrl("/").toString(), "openstack-keystone");
ServiceAdminApi serviceAdminApi = keystoneApi.getServiceAdminApi().get();
Service service = serviceAdminApi.get("s1000");
assertEquals(server.getRequestCount(), 3);
assertAuthentication(server);
assertExtensions(server);
RecordedRequest updateServiceRequest = server.takeRequest();
assertEquals(updateServiceRequest.getRequestLine(), "GET /OS-KSADM/services/s1000 HTTP/1.1");
/*
* Check response
*/
assertEquals(service.getId(), "s1000");
assertEquals(service.getName(), "jclouds-service-test");
} finally {
server.shutdown();
}
}