> +         .addHeader("X-Auth-Token", authToken)
> +         .payload(payloadFromStringWithContentType(
> +                  "{\"os-getVNCConsole\":{\"type\":\"novnc\"}}",
> +                  "application/json"))
> +         
> .endpoint("https://az-1.region-a.geo-1.compute.hpcloudsvc.com/v1.1/3456/";
> +               + "servers/" + serverId + "/action")
> +         .build();
> +
> +      HttpResponse getConsoleResponse = 
> HttpResponse.builder().statusCode(200)
> +         .message("HTTP/1.1 200 OK")
> +         .payload(payloadFromResourceWithContentType("/vnc_console.json",
> +                  "application/json; charset=UTF-8")).build();
> +
> +      NovaApi api = 
> requestsSendResponses(keystoneAuthWithUsernameAndPasswordAndTenantName,
> +            responseWithKeystoneAccess, extensionsOfNovaRequest, 
> extensionsOfNovaResponse,
> +            getConsole, getConsoleResponse);

I used the freshly created "access.json" instead of 
"keystoneAuthResponse.json", because it uses internal URL's (e.g. 
"URL/v2/da0d12be20394afb851716e10a49e4a7"), and this way I overcame the 
previous exception. Now I have an issue with assertExtensions() method, I 
believe we need a different one, since it expects a "GET /extensions" but the 
actual request made in the compute api is "GET /v2/<tenant id>/extensions" .

I'll push my changes, for you to review and maybe suggest new assertion methods 
to be added to BaseOpenStackMockTest

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

Reply via email to