We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a326f22 commit 68bc721Copy full SHA for 68bc721
hadoop-tools/hadoop-aws/src/test/java/org/apache/hadoop/fs/s3a/auth/ITestAssumeRole.java
@@ -394,8 +394,10 @@ public void testAssumeRoleRestrictedPolicyFS() throws Exception {
394
// when S3Guard is enabled, the restricted policy still
395
// permits S3Guard record lookup, so getFileStatus calls
396
// will work iff the record is in the database.
397
+ // probe the store using a path other than /, so a HEAD
398
+ // request is issued.
399
forbidden("getFileStatus",
- () -> fs.getFileStatus(ROOT));
400
+ () -> fs.getFileStatus(methodPath()));
401
}
402
forbidden("",
403
() -> fs.listStatus(ROOT));
0 commit comments