> + .method("GET")
> + .endpoint(
> +
> "https://az-1.region-a.geo-1.compute.hpcloudsvc.com/v2/3456/servers/instance-1/os-interface/ce531f90-199f-48c0-816c-13e38010b442")
> + .addHeader("Accept",
> "application/json").addHeader("X-Auth-Token", authToken).build();
> +
> + HttpResponse listResponse = HttpResponse.builder().statusCode(200)
> +
> .payload(payloadFromResource("/attach_interface_details.json")).build();
> +
> + NovaApi novaApi =
> requestsSendResponses(keystoneAuthWithUsernameAndPasswordAndTenantName,
> + responseWithKeystoneAccess, extensionsOfNovaRequest,
> extensionsOfNovaResponse, list, listResponse);
> +
> + InterfaceAttachment interfaceAttachment =
> novaApi.getAttachInterfaceApi("az-1.region-a.geo-1").get()
> + .get("instance-1", "ce531f90-199f-48c0-816c-13e38010b442");
> +
> + assertEquals(interfaceAttachment, testInterfaceAttachment());
> + }
There should be also tests for the `create` and `delete` methods, as long as
tests that verify the fallbacks. The `list`, `get`and `delete`methods define a
fallback, and there should be the corresponding tests to assert that jclouds
returns the expected value.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/497/files#r17109741