@@ -1036,7 +1036,7 @@ namespace Azure { namespace Storage { namespace Test {
1036
1036
const std::string fileNameWithTrailingDot = fileName + " ." ;
1037
1037
const std::string connectionString = StandardStorageConnectionString ();
1038
1038
const std::string shareName = m_shareName;
1039
- auto options = InitClientOptions <Files::Shares::ShareClientOptions>();
1039
+ auto options = InitStorageClientOptions <Files::Shares::ShareClientOptions>();
1040
1040
1041
1041
auto testTrailingDot = [&](bool allowTrailingDot) {
1042
1042
options.AllowTrailingDot = allowTrailingDot;
@@ -1048,7 +1048,7 @@ namespace Azure { namespace Storage { namespace Test {
1048
1048
auto fileClient = rootDirectoryClient.GetFileClient (fileNameWithTrailingDot);
1049
1049
1050
1050
size_t fileSize = 512 ;
1051
- std::vector<uint8_t > content (fileSize, ' x ' );
1051
+ std::vector<uint8_t > content (RandomBuffer ( fileSize) );
1052
1052
auto memBodyStream = Core::IO::MemoryBodyStream (content);
1053
1053
1054
1054
// Create
@@ -1083,7 +1083,7 @@ namespace Azure { namespace Storage { namespace Test {
1083
1083
Files::Shares::Models::FileHttpHeaders (), Files::Shares::Models::FileSmbProperties ()));
1084
1084
1085
1085
// SetMetadata
1086
- EXPECT_NO_THROW (fileClient.SetMetadata (GetMetadata ()));
1086
+ EXPECT_NO_THROW (fileClient.SetMetadata (RandomMetadata ()));
1087
1087
1088
1088
// ForceCloseHandles
1089
1089
auto closeHandlesResult = fileClient.ForceCloseAllHandles ();
@@ -1116,7 +1116,7 @@ namespace Azure { namespace Storage { namespace Test {
1116
1116
const std::string fileNameWithTrailingDot = fileName + " ." ;
1117
1117
const std::string connectionString = StandardStorageConnectionString ();
1118
1118
const std::string shareName = m_shareName;
1119
- auto options = InitClientOptions <Files::Shares::ShareClientOptions>();
1119
+ auto options = InitStorageClientOptions <Files::Shares::ShareClientOptions>();
1120
1120
1121
1121
auto testTrailingDot = [&](bool allowSourceTrailingDot) {
1122
1122
options.AllowTrailingDot = true ;
@@ -1129,7 +1129,7 @@ namespace Azure { namespace Storage { namespace Test {
1129
1129
auto fileClient = rootDirectoryClient.GetFileClient (fileNameWithTrailingDot);
1130
1130
1131
1131
size_t fileSize = 1 * 1024 * 1024 ;
1132
- std::vector<uint8_t > content (fileSize, ' x ' );
1132
+ std::vector<uint8_t > content (RandomBuffer ( fileSize) );
1133
1133
auto memBodyStream = Core::IO::MemoryBodyStream (content);
1134
1134
1135
1135
auto createResult = fileClient.Create (fileSize).Value ;
@@ -1223,7 +1223,7 @@ namespace Azure { namespace Storage { namespace Test {
1223
1223
const std::string fileNameWithTrailingDot = RandomString () + " ." ;
1224
1224
const std::string connectionString = StandardStorageConnectionString ();
1225
1225
const std::string shareName = m_shareName;
1226
- auto options = InitClientOptions <Files::Shares::ShareClientOptions>();
1226
+ auto options = InitStorageClientOptions <Files::Shares::ShareClientOptions>();
1227
1227
1228
1228
auto testTrailingDot = [&](bool allowTrailingDot) {
1229
1229
options.AllowTrailingDot = allowTrailingDot;
@@ -1233,7 +1233,7 @@ namespace Azure { namespace Storage { namespace Test {
1233
1233
auto shareClient = shareServiceClient.GetShareClient (shareName);
1234
1234
auto rootDirectoryClient = shareClient.GetRootDirectoryClient ();
1235
1235
auto fileClient = rootDirectoryClient.GetFileClient (fileNameWithTrailingDot);
1236
- std::string leaseId1 = Files::Shares::ShareLeaseClient::CreateUniqueLeaseId ();
1236
+ std::string leaseId1 = RandomUUID ();
1237
1237
Files::Shares::ShareLeaseClient leaseClient (fileClient, leaseId1);
1238
1238
1239
1239
size_t fileSize = 512 ;
@@ -1243,7 +1243,7 @@ namespace Azure { namespace Storage { namespace Test {
1243
1243
EXPECT_NO_THROW (leaseClient.Acquire (Files::Shares::ShareLeaseClient::InfiniteLeaseDuration));
1244
1244
1245
1245
// Change
1246
- std::string leaseId2 = Files::Shares::ShareLeaseClient::CreateUniqueLeaseId ();
1246
+ std::string leaseId2 = RandomUUID ();
1247
1247
EXPECT_NO_THROW (leaseClient.Change (leaseId2));
1248
1248
1249
1249
// Break
0 commit comments