From 99567fa14df91870f72634b479d007bc393f6f4f Mon Sep 17 00:00:00 2001 From: microzchang <110015819+microzchang@users.noreply.github.com> Date: Thu, 31 Aug 2023 17:20:04 +0000 Subject: [PATCH] Storage/Fix live test failure (#4920) --- .../test/ut/blob_batch_client_test.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sdk/storage/azure-storage-blobs/test/ut/blob_batch_client_test.cpp b/sdk/storage/azure-storage-blobs/test/ut/blob_batch_client_test.cpp index a0290a901..cc7f00cd9 100644 --- a/sdk/storage/azure-storage-blobs/test/ut/blob_batch_client_test.cpp +++ b/sdk/storage/azure-storage-blobs/test/ut/blob_batch_client_test.cpp @@ -150,7 +150,7 @@ namespace Azure { namespace Storage { namespace Test { auto batch = containerClient.CreateBatch(); auto setTier1Response = batch.SetBlobAccessTier(blob1Name, Blobs::Models::AccessTier::Cool); - auto setTier2Response = batch.SetBlobAccessTier(blob2Name, Blobs::Models::AccessTier::Archive); + auto setTier2Response = batch.SetBlobAccessTier(blob2Name, Blobs::Models::AccessTier::Cold); auto submitBatchResponse = containerClient.SubmitBatch(batch); EXPECT_NO_THROW(setTier1Response.GetResponse()); @@ -158,7 +158,7 @@ namespace Azure { namespace Storage { namespace Test { EXPECT_EQ( blob1Client.GetProperties().Value.AccessTier.Value(), Blobs::Models::AccessTier::Cool); EXPECT_EQ( - blob2Client.GetProperties().Value.AccessTier.Value(), Blobs::Models::AccessTier::Archive); + blob2Client.GetProperties().Value.AccessTier.Value(), Blobs::Models::AccessTier::Cold); } TEST_F(BlobContainerClientTest, ContainerBatchSubmitSetTier_LIVEONLY_) @@ -176,7 +176,7 @@ namespace Azure { namespace Storage { namespace Test { auto batch = containerClient.CreateBatch(); auto setTier1Response = batch.SetBlobAccessTierUrl(blob1Client.GetUrl(), Blobs::Models::AccessTier::Cool); - auto setTier2Response = batch.SetBlobAccessTier(blob2Name, Blobs::Models::AccessTier::Archive); + auto setTier2Response = batch.SetBlobAccessTier(blob2Name, Blobs::Models::AccessTier::Cold); auto submitBatchResponse = containerClient.SubmitBatch(batch); EXPECT_NO_THROW(setTier1Response.GetResponse()); @@ -184,7 +184,7 @@ namespace Azure { namespace Storage { namespace Test { EXPECT_EQ( blob1Client.GetProperties().Value.AccessTier.Value(), Blobs::Models::AccessTier::Cool); EXPECT_EQ( - blob2Client.GetProperties().Value.AccessTier.Value(), Blobs::Models::AccessTier::Archive); + blob2Client.GetProperties().Value.AccessTier.Value(), Blobs::Models::AccessTier::Cold); } TEST_F(BlobContainerClientTest, BatchTokenAuthorization_LIVEONLY_)