kou commented on code in PR #39840:
URL: https://github.com/apache/arrow/pull/39840#discussion_r1476853514
##########
cpp/src/arrow/filesystem/azurefs_test.cc:
##########
@@ -1382,6 +1382,32 @@ TEST_F(TestAzuriteFileSystem,
DeleteDirContentsFailureNonexistent) {
this->TestDeleteDirContentsFailureNonexistent();
}
+TEST_F(TestAzuriteFileSystem, DeleteFileSuccess) {
+ CreateFile(fs(), "abc", "data");
+ arrow::fs::AssertFileInfo(fs(), "abc", FileType::File);
+ ASSERT_OK(fs()->DeleteFile("abc"));
+ arrow::fs::AssertFileInfo(fs(), "abc", FileType::NotFound);
+}
+
+TEST_F(TestAzuriteFileSystem, DeleteFileFailureNonexistent) {
+ ASSERT_RAISES(IOError, fs()->DeleteFile("nonexistent"));
Review Comment:
This deletes a container not a blob. Could you create a container and delete
an nonexistent blob in the container?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]