From 64b41d08c623f9c3b2439dcb6fe5a157b69dac51 Mon Sep 17 00:00:00 2001 From: Andrew Gaul Date: Fri, 16 Jan 2015 05:13:25 -0800 Subject: [PATCH] JCLOUDS-805: ensure overriding of metadata methods Setting Content-Encoding causes testPutByteSource and testPutInputStream to fail. GCS should support this: https://cloud.google.com/storage/docs/gsutil/addlhelp/WorkingWithObjectMetadata#content-encoding --- .../GoogleCloudStorageBlobIntegrationLiveTest.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/providers/google-cloud-storage/src/test/java/org/jclouds/googlecloudstorage/blobstore/integration/GoogleCloudStorageBlobIntegrationLiveTest.java b/providers/google-cloud-storage/src/test/java/org/jclouds/googlecloudstorage/blobstore/integration/GoogleCloudStorageBlobIntegrationLiveTest.java index 4cb9281520..fd392732f1 100644 --- a/providers/google-cloud-storage/src/test/java/org/jclouds/googlecloudstorage/blobstore/integration/GoogleCloudStorageBlobIntegrationLiveTest.java +++ b/providers/google-cloud-storage/src/test/java/org/jclouds/googlecloudstorage/blobstore/integration/GoogleCloudStorageBlobIntegrationLiveTest.java @@ -125,15 +125,21 @@ public class GoogleCloudStorageBlobIntegrationLiveTest extends BaseBlobIntegrati } } - private void addContentMetadata(PayloadBlobBuilder blobBuilder) { + @Override + protected void addContentMetadata(PayloadBlobBuilder blobBuilder) { blobBuilder.contentType("text/csv"); blobBuilder.contentDisposition("attachment; filename=photo.jpg"); + // TODO: causes failures with subsequent GET operations: + // HTTP/1.1 failed with response: HTTP/1.1 503 Service Unavailable; content: [Service Unavailable] + //blobBuilder.contentEncoding("gzip"); blobBuilder.contentLanguage("en"); } + @Override protected void checkContentMetadata(Blob blob) { checkContentType(blob, "text/csv"); checkContentDisposition(blob, "attachment; filename=photo.jpg"); + //checkContentEncoding(blob, "gzip"); checkContentLanguage(blob, "en"); }