Skip to content

Commit

Permalink
List system containers (#22108)
Browse files Browse the repository at this point in the history
* corrected release date in changelog

* list system containers test

* push recording

* push recording

* recording

* recordings
  • Loading branch information
tanyasethi-msft committed Jan 2, 2024
1 parent f80e276 commit 3781b06
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
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() {
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

0 comments on commit 3781b06

Please sign in to comment.