Skip to content

Commit cb66702

Browse files
committed
rebase main
1 parent b8e0e4b commit cb66702

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

sdk/storage/assets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
"AssetsRepo": "Azure/azure-sdk-assets",
33
"AssetsRepoPrefixPath": "cpp",
44
"TagPrefix": "cpp/storage",
5-
"Tag": "cpp/storage_92d8f38118"
5+
"Tag": "cpp/storage_f268e583e4"
66
}

sdk/storage/azure-storage-files-shares/test/ut/share_directory_client_test.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -841,7 +841,7 @@ namespace Azure { namespace Storage { namespace Test {
841841
const std::string directoryNameWithTrailingDot = directoryName + ".";
842842
const std::string connectionString = StandardStorageConnectionString();
843843
const std::string shareName = m_shareName;
844-
auto options = InitClientOptions<Files::Shares::ShareClientOptions>();
844+
auto options = InitStorageClientOptions<Files::Shares::ShareClientOptions>();
845845

846846
auto testTrailingDot = [&](bool allowTrailingDot) {
847847
options.AllowTrailingDot = allowTrailingDot;
@@ -881,7 +881,7 @@ namespace Azure { namespace Storage { namespace Test {
881881
EXPECT_NO_THROW(directoryClient.SetProperties(Files::Shares::Models::FileSmbProperties()));
882882

883883
// SetMetadata
884-
EXPECT_NO_THROW(directoryClient.SetMetadata(GetMetadata()));
884+
EXPECT_NO_THROW(directoryClient.SetMetadata(RandomMetadata()));
885885

886886
// ForceCloseHandles
887887
auto closeHandlesResult = directoryClient.ForceCloseAllHandles();
@@ -903,7 +903,7 @@ namespace Azure { namespace Storage { namespace Test {
903903
const std::string directoryNameWithTrailingDot = RandomString() + ".";
904904
const std::string connectionString = StandardStorageConnectionString();
905905
const std::string shareName = m_shareName;
906-
auto options = InitClientOptions<Files::Shares::ShareClientOptions>();
906+
auto options = InitStorageClientOptions<Files::Shares::ShareClientOptions>();
907907

908908
auto testTrailingDot = [&](bool allowSourceTrailingDot) {
909909
options.AllowTrailingDot = true;

sdk/storage/azure-storage-files-shares/test/ut/share_file_client_test.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1036,7 +1036,7 @@ namespace Azure { namespace Storage { namespace Test {
10361036
const std::string fileNameWithTrailingDot = fileName + ".";
10371037
const std::string connectionString = StandardStorageConnectionString();
10381038
const std::string shareName = m_shareName;
1039-
auto options = InitClientOptions<Files::Shares::ShareClientOptions>();
1039+
auto options = InitStorageClientOptions<Files::Shares::ShareClientOptions>();
10401040

10411041
auto testTrailingDot = [&](bool allowTrailingDot) {
10421042
options.AllowTrailingDot = allowTrailingDot;
@@ -1048,7 +1048,7 @@ namespace Azure { namespace Storage { namespace Test {
10481048
auto fileClient = rootDirectoryClient.GetFileClient(fileNameWithTrailingDot);
10491049

10501050
size_t fileSize = 512;
1051-
std::vector<uint8_t> content(fileSize, 'x');
1051+
std::vector<uint8_t> content(RandomBuffer(fileSize));
10521052
auto memBodyStream = Core::IO::MemoryBodyStream(content);
10531053

10541054
// Create
@@ -1083,7 +1083,7 @@ namespace Azure { namespace Storage { namespace Test {
10831083
Files::Shares::Models::FileHttpHeaders(), Files::Shares::Models::FileSmbProperties()));
10841084

10851085
// SetMetadata
1086-
EXPECT_NO_THROW(fileClient.SetMetadata(GetMetadata()));
1086+
EXPECT_NO_THROW(fileClient.SetMetadata(RandomMetadata()));
10871087

10881088
// ForceCloseHandles
10891089
auto closeHandlesResult = fileClient.ForceCloseAllHandles();
@@ -1116,7 +1116,7 @@ namespace Azure { namespace Storage { namespace Test {
11161116
const std::string fileNameWithTrailingDot = fileName + ".";
11171117
const std::string connectionString = StandardStorageConnectionString();
11181118
const std::string shareName = m_shareName;
1119-
auto options = InitClientOptions<Files::Shares::ShareClientOptions>();
1119+
auto options = InitStorageClientOptions<Files::Shares::ShareClientOptions>();
11201120

11211121
auto testTrailingDot = [&](bool allowSourceTrailingDot) {
11221122
options.AllowTrailingDot = true;
@@ -1129,7 +1129,7 @@ namespace Azure { namespace Storage { namespace Test {
11291129
auto fileClient = rootDirectoryClient.GetFileClient(fileNameWithTrailingDot);
11301130

11311131
size_t fileSize = 1 * 1024 * 1024;
1132-
std::vector<uint8_t> content(fileSize, 'x');
1132+
std::vector<uint8_t> content(RandomBuffer(fileSize));
11331133
auto memBodyStream = Core::IO::MemoryBodyStream(content);
11341134

11351135
auto createResult = fileClient.Create(fileSize).Value;
@@ -1223,7 +1223,7 @@ namespace Azure { namespace Storage { namespace Test {
12231223
const std::string fileNameWithTrailingDot = RandomString() + ".";
12241224
const std::string connectionString = StandardStorageConnectionString();
12251225
const std::string shareName = m_shareName;
1226-
auto options = InitClientOptions<Files::Shares::ShareClientOptions>();
1226+
auto options = InitStorageClientOptions<Files::Shares::ShareClientOptions>();
12271227

12281228
auto testTrailingDot = [&](bool allowTrailingDot) {
12291229
options.AllowTrailingDot = allowTrailingDot;
@@ -1233,7 +1233,7 @@ namespace Azure { namespace Storage { namespace Test {
12331233
auto shareClient = shareServiceClient.GetShareClient(shareName);
12341234
auto rootDirectoryClient = shareClient.GetRootDirectoryClient();
12351235
auto fileClient = rootDirectoryClient.GetFileClient(fileNameWithTrailingDot);
1236-
std::string leaseId1 = Files::Shares::ShareLeaseClient::CreateUniqueLeaseId();
1236+
std::string leaseId1 = RandomUUID();
12371237
Files::Shares::ShareLeaseClient leaseClient(fileClient, leaseId1);
12381238

12391239
size_t fileSize = 512;
@@ -1243,7 +1243,7 @@ namespace Azure { namespace Storage { namespace Test {
12431243
EXPECT_NO_THROW(leaseClient.Acquire(Files::Shares::ShareLeaseClient::InfiniteLeaseDuration));
12441244

12451245
// Change
1246-
std::string leaseId2 = Files::Shares::ShareLeaseClient::CreateUniqueLeaseId();
1246+
std::string leaseId2 = RandomUUID();
12471247
EXPECT_NO_THROW(leaseClient.Change(leaseId2));
12481248

12491249
// Break

0 commit comments

Comments
 (0)