Storage/Datalake test improvement (#4884)

* Update sas test

* add test case and test records

* fix import file

* fix import files

* update record

* fix test name

* fix conversations

* update test

* fix clang format
This commit is contained in:
microzchang 2023-08-15 14:17:39 +08:00 committed by GitHub
parent 40bea8e20a
commit efc0d8930a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 710 additions and 382 deletions

View File

@ -2,5 +2,5 @@
"AssetsRepo": "Azure/azure-sdk-assets",
"AssetsRepoPrefixPath": "cpp",
"TagPrefix": "cpp/storage",
"Tag": "cpp/storage_366c2de93d"
"Tag": "cpp/storage_34b082e038"
}

View File

@ -163,6 +163,16 @@ namespace Azure { namespace Storage { namespace Test {
EXPECT_NO_THROW(deleted = dirClient.DeleteEmptyIfExists().Value.Deleted);
EXPECT_FALSE(deleted);
}
{
// Recursive delete if exists
auto rootDir = baseName + "root";
auto rootDirClient = m_fileSystemClient->GetDirectoryClient(rootDir);
EXPECT_NO_THROW(rootDirClient.Create());
auto fileClient = rootDirClient.GetFileClient(RandomString());
EXPECT_NO_THROW(fileClient.Create());
EXPECT_THROW(rootDirClient.DeleteEmpty(), StorageException);
EXPECT_NO_THROW(rootDirClient.DeleteRecursiveIfExists());
}
}
TEST_F(DataLakeDirectoryClientTest, RenameFile)

View File

@ -144,7 +144,7 @@ namespace Azure { namespace Storage { namespace Test {
}
}
TEST_F(DataLakeServiceClientTest, DISABLED_ListSystemFileSystems)
TEST_F(DataLakeServiceClientTest, ListSystemFileSystems_PLAYBACKONLY_)
{
// Disabled temporarily because the test account on the pipeline hasn't system fileSystems.
// List system type FileSystems