JCLOUDS-732: Azure portable object ACLs

Azure does not implement support for these:

https://msdn.microsoft.com/library/azure/dd179354.aspx
This commit is contained in:
Andrew Gaul 2015-02-18 16:54:38 -08:00
parent a49fb7941f
commit 019ae75a61
2 changed files with 16 additions and 0 deletions

View File

@ -41,6 +41,7 @@ import org.jclouds.azureblob.domain.PublicAccess;
import org.jclouds.azureblob.options.ListBlobsOptions;
import org.jclouds.blobstore.BlobStoreContext;
import org.jclouds.blobstore.domain.Blob;
import org.jclouds.blobstore.domain.BlobAccess;
import org.jclouds.blobstore.domain.BlobMetadata;
import org.jclouds.blobstore.domain.ContainerAccess;
import org.jclouds.blobstore.domain.PageSet;
@ -304,4 +305,14 @@ public class AzureBlobStore extends BaseBlobStore {
}
sync.setPublicAccessForContainer(container, publicAccess);
}
@Override
public BlobAccess getBlobAccess(String container, String key) {
throw new UnsupportedOperationException("unsupported in Azure");
}
@Override
public void setBlobAccess(String container, String key, BlobAccess access) {
throw new UnsupportedOperationException("unsupported in Azure");
}
}

View File

@ -63,6 +63,11 @@ public class AzureBlobIntegrationLiveTest extends BaseBlobIntegrationTest {
super.testPutObjectStream();
}
@Test(groups = { "integration", "live" })
public void testSetBlobAccess() throws Exception {
throw new SkipException("unsupported in Azure");
}
// according to docs, content disposition is not persisted
// http://msdn.microsoft.com/en-us/library/dd179440.aspx
@Override