> +               @Override
> +               public Authorization apply(Credentials creds) {
> +                  return b2Api.getAuthorizationApi().authorizeAccount();
> +               }
> +            }));
> +   }
> +
> +   @Override
> +   public HttpRequest filter(HttpRequest request) throws HttpException {
> +      utils.logRequest(signatureLog, request, ">>");
> +      Credentials creds = this.creds.get();
> +      Authorization auth = cache.getUnchecked(creds);
> +
> +      // Replace fixed URL with API URL, except for unit tests tests
> +      URI endpoint = request.getEndpoint();
> +      if (!endpoint.getHost().equals("localhost")) {

Can we get rid of this, which couples the code to the tests? Can we configure 
the tests, and the json returned by the authorization requests to return an api 
url that can make the tests work without this conditional?

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/270/files/8bb355e1b286b2bbf77fd8d3cb75cd2d1aa6bc69#r64488142

Reply via email to