> +
> + /*
> + * Check response
> + */
> + assertThat(resourceTypes).isNotEmpty();
> + assertThat(resourceTypes.size()).isEqualTo(20);
> +
> + } finally {
> + server.shutdown();
> + }
> + }
> +
> + public void testListTypesIsEmpty() throws Exception {
> + MockWebServer server = mockOpenStackServer();
> + server.enqueue(addCommonHeaders(new
> MockResponse().setBody(stringFromResource("/access.json"))));
> + server.enqueue(addCommonHeaders(new
> MockResponse().setResponseCode(404).setBody(stringFromResource("/resource_type_list_response.json"))));
Should the body be removed here? I assume that the server won't send a body on
a 404.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-openstack/pull/138/files#r17110227