Add missing quirks checks in tests

Missing Cache-Control and Content-Language.
pull/139/merge
Andrew Gaul 2016-06-17 18:29:14 -07:00
rodzic 187eb065aa
commit cd3a208243
1 zmienionych plików z 12 dodań i 0 usunięć

Wyświetl plik

@ -366,12 +366,18 @@ public final class S3ProxyTest {
public void testSinglepartUpload() throws Exception {
String blobName = "singlepart-upload";
String cacheControl = "max-age=3600";
if (Quirks.NO_CACHE_CONTROL_SUPPORT.contains(blobStoreType)) {
cacheControl = null;
}
String contentDisposition = "attachment; filename=new.jpg";
String contentEncoding = "gzip";
if (Quirks.NO_CONTENT_ENCODING.contains(blobStoreType)) {
contentEncoding = null;
}
String contentLanguage = "fr";
if (Quirks.NO_CONTENT_LANGUAGE.contains(blobStoreType)) {
contentLanguage = null;
}
String contentType = "audio/mp4";
Map<String, String> userMetadata = ImmutableMap.of(
"key1", "value1",
@ -423,12 +429,18 @@ public final class S3ProxyTest {
public void testMultipartUpload() throws Exception {
String blobName = "multipart-upload";
String cacheControl = "max-age=3600";
if (Quirks.NO_CACHE_CONTROL_SUPPORT.contains(blobStoreType)) {
cacheControl = null;
}
String contentDisposition = "attachment; filename=new.jpg";
String contentEncoding = "gzip";
if (Quirks.NO_CONTENT_ENCODING.contains(blobStoreType)) {
contentEncoding = null;
}
String contentLanguage = "fr";
if (Quirks.NO_CONTENT_LANGUAGE.contains(blobStoreType)) {
contentLanguage = null;
}
String contentType = "audio/mp4";
Map<String, String> userMetadata = ImmutableMap.of(
"key1", "value1",