File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -647,14 +647,11 @@ TEST_F(GcsIntegrationTest, GetFileInfo) {
647
647
AssertFileInfo (fs.get (), PreexistingBucketPath () + " dir/foo/" , FileType::Directory);
648
648
}
649
649
650
- TEST_F (GcsIntegrationTest, GetFileInfo_WithoutPermission) {
651
- TimePoint expiration = std::chrono::system_clock::now () + std::chrono::minutes (5 );
652
- auto options =
653
- GcsOptions::FromAccessToken (/* access_token=*/ " invalid-access-token" , expiration);
654
- options.endpoint_override = " 127.0.0.1:" + Testbench ()->port ();
655
-
650
+ TEST_F (GcsIntegrationTest, GetFileInfoWithoutPermission) {
651
+ auto options = GcsOptions::Defaults ();
652
+ // Test with real GCS.
656
653
ASSERT_OK_AND_ASSIGN (auto fs, GcsFileSystem::Make (options));
657
-
654
+ // Without permission, always File typs is FileType::NotFound.
658
655
constexpr auto kTextFileName = " dir/foo/bar.txt" ;
659
656
660
657
// check this is the File without permission.
You can’t perform that action at this time.
0 commit comments