kopia lustrzana https://github.com/gaul/s3proxy
rodzic
8311d11456
commit
c28f7dba47
|
@ -577,10 +577,13 @@ public final class AwsSdkTest {
|
||||||
@Test
|
@Test
|
||||||
public void testSpecialCharacters() throws Exception {
|
public void testSpecialCharacters() throws Exception {
|
||||||
String prefix = "special !\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~";
|
String prefix = "special !\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~";
|
||||||
if (blobStoreType.equals("azureblob") || blobStoreType.equals("b2")) {
|
if (blobStoreType.equals("azureblob")
|
||||||
|
|| blobStoreType.equals("azureblob-sdk")
|
||||||
|
|| blobStoreType.equals("b2")) {
|
||||||
prefix = prefix.replace("\\", "");
|
prefix = prefix.replace("\\", "");
|
||||||
}
|
}
|
||||||
if (blobStoreType.equals("azureblob")) {
|
if (blobStoreType.equals("azureblob")
|
||||||
|
|| blobStoreType.equals("azureblob-sdk")) {
|
||||||
// Avoid blob names that end with a dot (.), a forward slash (/), or
|
// Avoid blob names that end with a dot (.), a forward slash (/), or
|
||||||
// a sequence or combination of the two.
|
// a sequence or combination of the two.
|
||||||
prefix = prefix.replace("./", "/") + ".";
|
prefix = prefix.replace("./", "/") + ".";
|
||||||
|
@ -1234,7 +1237,8 @@ public final class AwsSdkTest {
|
||||||
// uploads
|
// uploads
|
||||||
MultipartUploadListing multipartListing = client.listMultipartUploads(
|
MultipartUploadListing multipartListing = client.listMultipartUploads(
|
||||||
new ListMultipartUploadsRequest(containerName));
|
new ListMultipartUploadsRequest(containerName));
|
||||||
if (blobStoreType.equals("azureblob")) {
|
if (blobStoreType.equals("azureblob")
|
||||||
|
|| blobStoreType.equals("azureblob-sdk")) {
|
||||||
// Azure does not create a manifest during initiate multi-part
|
// Azure does not create a manifest during initiate multi-part
|
||||||
// upload. Instead the first part creates this.
|
// upload. Instead the first part creates this.
|
||||||
assertThat(multipartListing.getMultipartUploads()).isEmpty();
|
assertThat(multipartListing.getMultipartUploads()).isEmpty();
|
||||||
|
@ -1267,7 +1271,8 @@ public final class AwsSdkTest {
|
||||||
|
|
||||||
multipartListing = client.listMultipartUploads(
|
multipartListing = client.listMultipartUploads(
|
||||||
new ListMultipartUploadsRequest(containerName));
|
new ListMultipartUploadsRequest(containerName));
|
||||||
if (blobStoreType.equals("azureblob")) {
|
if (blobStoreType.equals("azureblob")
|
||||||
|
|| blobStoreType.equals("azureblob-sdk")) {
|
||||||
// Azure does not support explicit abort. It automatically
|
// Azure does not support explicit abort. It automatically
|
||||||
// removes incomplete multi-part uploads after 7 days.
|
// removes incomplete multi-part uploads after 7 days.
|
||||||
assertThat(multipartListing.getMultipartUploads()).hasSize(1);
|
assertThat(multipartListing.getMultipartUploads()).hasSize(1);
|
||||||
|
|
Ładowanie…
Reference in New Issue