Skip to content

Commit

Permalink
Update handles record
Browse files Browse the repository at this point in the history
  • Loading branch information
microzchang committed Jun 20, 2024
1 parent 9743e08 commit 98f849b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 14 deletions.
2 changes: 1 addition & 1 deletion sdk/storage/assets.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"AssetsRepo": "Azure/azure-sdk-assets",
"AssetsRepoPrefixPath": "cpp",
"TagPrefix": "cpp/storage",
"Tag": "cpp/storage_f7950308da"
"Tag": "cpp/storage_75931731d9"
}
Original file line number Diff line number Diff line change
Expand Up @@ -899,10 +899,7 @@ namespace Azure { namespace Storage { namespace Test {
// cspell:ignore myshare mydirectory
TEST_F(FileShareDirectoryClientTest, HandlesFunctionalityWorks_PLAYBACKONLY_)
{
auto shareClient = Files::Shares::ShareClient(
GetShareUrl("myshare"),
GetTestCredential(),
InitStorageClientOptions<Files::Shares::ShareClientOptions>());
auto shareClient = m_shareServiceClient->GetShareClient("myshare");
auto directoryClient
= shareClient.GetRootDirectoryClient().GetSubdirectoryClient("mydirectory");
Files::Shares::ListDirectoryHandlesOptions options;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ namespace Azure { namespace Storage { namespace Test {
TEST_F(FileShareFileClientTest, HandlesFunctionalityWorks_PLAYBACKONLY_)
{
auto shareClient = m_shareServiceClient->GetShareClient("myshare");
auto fileClient = shareClient.GetRootDirectoryClient().GetFileClient("myfile");
auto fileClient = shareClient.GetRootDirectoryClient().GetFileClient("myfile.txt");
Files::Shares::ListFileHandlesOptions options;
options.PageSizeHint = 1;
std::unordered_set<std::string> handles;
Expand Down Expand Up @@ -1745,10 +1745,7 @@ namespace Azure { namespace Storage { namespace Test {
// cspell:ignore myshare myfile
TEST_F(FileShareFileClientTest, ListHandlesAccessRights_PLAYBACKONLY_)
{
auto shareClient = Files::Shares::ShareClient(
GetShareUrl("myshare"),
GetTestCredential(),
InitStorageClientOptions<Files::Shares::ShareClientOptions>());
auto shareClient = m_shareServiceClient->GetShareClient("myshare");
auto fileClient = shareClient.GetRootDirectoryClient().GetFileClient("myfile");
auto fileHandles = fileClient.ListHandles().FileHandles;
Files::Shares::Models::ShareFileHandleAccessRights allAccessRights
Expand All @@ -1762,10 +1759,7 @@ namespace Azure { namespace Storage { namespace Test {

TEST_F(FileShareFileClientTest, ListHandlesWithClientName_PLAYBACKONLY_)
{
auto shareClient = Files::Shares::ShareClient(
GetShareUrl("myshare"),
GetTestCredential(),
InitStorageClientOptions<Files::Shares::ShareClientOptions>());
auto shareClient = m_shareServiceClient->GetShareClient("myshare");
auto fileClient
= shareClient.GetRootDirectoryClient().GetSubdirectoryClient("dir1").GetFileClient(
"test.txt");
Expand Down

0 comments on commit 98f849b

Please sign in to comment.