> +            .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());
> +   }

Add also tests for the get and list fallbacks, a test for the create method, 
and the tests for the delete method and its fallback.

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/679/files#r24775827

Reply via email to