Skip to content

Commit

Permalink
list system containers (#3929)
Browse files Browse the repository at this point in the history
  • Loading branch information
microzchang authored Sep 19, 2022
1 parent d3c5dd4 commit ff1cd0f
Show file tree
Hide file tree
Showing 3 changed files with 230 additions and 184 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,27 @@ namespace Azure { namespace Storage { namespace Test {
}
}

TEST_F(DataLakeServiceClientTest, DISABLED_ListSystemFileSystems)
{
// Disabled temporarily because the test account on the pipeline hasn't system fileSystems.
// List system type FileSystems
Files::DataLake::ListFileSystemsOptions options;
options.Include = Files::DataLake::Models::ListFileSystemsIncludeFlags::System;
std::vector<std::string> fileSystems;
for (auto pageResult = m_dataLakeServiceClient->ListFileSystems(options); pageResult.HasPage();
pageResult.MoveToNextPage())
{
for (const auto& c : pageResult.FileSystems)
{
if (c.Name[0] == '$')
{
fileSystems.push_back(c.Name);
}
}
}
EXPECT_FALSE(fileSystems.empty());
}

TEST_F(DataLakeServiceClientTest, AnonymousConstructorsWorks_LIVEONLY_)
{
CHECK_SKIP_TEST();
Expand Down
Loading

0 comments on commit ff1cd0f

Please sign in to comment.