@@ -644,22 +644,12 @@ TEST_F(GcsIntegrationTest, GetFileInfo) {
644
644
645
645
// check parent directories are recognized as directories.
646
646
AssertFileInfo (fs.get (), PreexistingBucketPath () + " dir/" , FileType::Directory);
647
- AssertFileInfo (fs.get (), PreexistingBucketPath () + " dir/foo/" , FileType::Directory);
648
- }
649
-
650
- TEST_F (GcsIntegrationTest, GetFileInfoWithoutPermission) {
651
- auto options = GcsOptions::Defaults ();
652
- // Test with real GCS.
653
- ASSERT_OK_AND_ASSIGN (auto fs, GcsFileSystem::Make (options));
654
- // Without permission, always File typs is FileType::NotFound.
655
- constexpr auto kTextFileName = " dir/foo/bar.txt" ;
656
647
657
- // check this is the File without permission.
658
- AssertFileInfo (fs.get (), PreexistingBucketPath () + kTextFileName , FileType::NotFound);
659
-
660
- // check this is the directory without permission.
661
- AssertFileInfo (fs.get (), PreexistingBucketPath () + " dir/" , FileType::NotFound);
662
- AssertFileInfo (fs.get (), PreexistingBucketPath () + " dir/foo/" , FileType::NotFound);
648
+ // check not exists.
649
+ AssertFileInfo (fs.get (), PreexistingBucketPath () + " dir/foo/unexpected_dir/" ,
650
+ FileType::NotFound);
651
+ AssertFileInfo (fs.get (), PreexistingBucketPath () + " dir/foo/not_bar.txt" ,
652
+ FileType::NotFound);
663
653
}
664
654
665
655
TEST_F (GcsIntegrationTest, GetFileInfoObjectWithNestedStructure) {
0 commit comments