> @@ -83,13 +102,65 @@ public void testSignBlob() throws InterruptedException, 
> ExecutionException {
>              continue;
>           }
>           String containerName = Iterables.getLast(containers).getName();
> -         PageSet<? extends StorageMetadata> blobs = 
> region.list(containerName);
> -         if (blobs.isEmpty()) {
> -            continue;
> +
> +         final ByteSource input = ByteSource.wrap("str".getBytes());
> +         final HttpClient client = ctx.utils().http();
> +
> +         // test signed put
> +         String blobName = "test-" + UUID.randomUUID();
> +         Blob blob2 = region.blobBuilder(blobName).forSigning()
> +               .contentLength(input.size())
> +               .contentMD5(input.hash(Hashing.md5()).asBytes())

Remove call to `asBytes`.

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-openstack/pull/94/files#r16790779

Reply via email to