Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

List system containers #22108

Merged
merged 9 commits into from
Dec 14, 2023
2 changes: 1 addition & 1 deletion sdk/storage/azdatalake/assets.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"AssetsRepo": "Azure/azure-sdk-assets",
"AssetsRepoPrefixPath": "go",
"TagPrefix": "go/storage/azdatalake",
"Tag": "go/storage/azdatalake_b5323f920e"
"Tag": "go/storage/azdatalake_1ee92f87a9"
}
20 changes: 20 additions & 0 deletions sdk/storage/azdatalake/service/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -695,6 +695,26 @@ func (s *ServiceRecordedTestsSuite) TestListFilesystemsBasicUsingConnectionStrin
_require.GreaterOrEqual(count, 0)
}

func (s *ServiceRecordedTestsSuite) TestListFilesystemsIncludeSystemFileSystems() {
_require := require.New(s.T())
svcClient, err := testcommon.GetServiceClient(s.T(), testcommon.TestAccountDatalake, nil)
_require.NoError(err)

listOptions := service.ListFileSystemsOptions{Include: service.ListFileSystemsInclude{System: to.Ptr(true)}}
count := 0
pager := svcClient.NewListFileSystemsPager(&listOptions)
for pager.More() {
tanyasethi-msft marked this conversation as resolved.
Show resolved Hide resolved
resp, err := pager.NextPage(context.Background())
_require.NoError(err)
for _, ctnr := range resp.FileSystemItems {
_require.NotNil(ctnr.Name)
_require.Equal("$logs", *ctnr.Name)
count += 1
}
}
_require.Equal(1, count)
}

func (s *ServiceRecordedTestsSuite) TestListFilesystemsPaged() {
_require := require.New(s.T())
testName := s.T().Name()
Expand Down