jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Gaul <notificati...@github.com>
Subject Re: [jclouds/jclouds-labs] JCLOUDS-1005: Backblaze B2 skeleton and bucket ops (#270)
Date Tue, 24 May 2016 22:58:12 GMT
> +         assertThat(server.getRequestCount()).isEqualTo(2);
> +         assertAuthentication(server);
> +         assertRequest(server.takeRequest(), "POST", "/b2api/v1/b2_list_buckets", "/list_buckets_request.json");
> +      } finally {
> +         server.shutdown();
> +      }
> +   }
> +
> +   @SuppressWarnings("serial")
> +   public B2Api api(String uri, String provider, Properties overrides) {
> +      return ContextBuilder.newBuilder(provider)
> +            .credentials("ACCOUNT_ID", "APPLICATION_KEY")
> +            .endpoint(uri)
> +            .overrides(overrides)
> +            .modules(modules)
> +            .buildApi(new TypeToken<B2Api>(getClass()) {});

Done.

---
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#r64489913
Mime
View raw message