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:
parent
40bea8e20a
commit
efc0d8930a
@ -2,5 +2,5 @@
|
||||
"AssetsRepo": "Azure/azure-sdk-assets",
|
||||
"AssetsRepoPrefixPath": "cpp",
|
||||
"TagPrefix": "cpp/storage",
|
||||
"Tag": "cpp/storage_366c2de93d"
|
||||
"Tag": "cpp/storage_34b082e038"
|
||||
}
|
||||
|
||||
@ -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)
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user