Enable tests for setting tiers for snapshots/versions (#743)

This commit is contained in:
JinmingHu 2020-10-13 09:42:10 +08:00 committed by GitHub
parent 2ca2aad77d
commit b6032bfe54
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -215,18 +215,12 @@ namespace Azure { namespace Storage { namespace Test {
auto emptyContent = Azure::Core::Http::MemoryBodyStream(nullptr, 0);
EXPECT_THROW(snapshotClient.Upload(&emptyContent), StorageError);
EXPECT_THROW(snapshotClient.SetMetadata({}), StorageError);
/*
This feature isn't GA yet.
EXPECT_NO_THROW(snapshotClient.SetAccessTier(Azure::Storage::Blobs::AccessTier::Cool));
*/
EXPECT_THROW(
snapshotClient.SetHttpHeaders(Azure::Storage::Blobs::BlobHttpHeaders()), StorageError);
EXPECT_THROW(versionClient.Upload(&emptyContent), StorageError);
EXPECT_THROW(versionClient.SetMetadata({}), StorageError);
/*
This feature isn't GA yet
EXPECT_NO_THROW(versionClient.SetAccessTier(Azure::Storage::Blobs::AccessTier::Cool));
*/
EXPECT_THROW(
versionClient.SetHttpHeaders(Azure::Storage::Blobs::BlobHttpHeaders()), StorageError);