authenticate the request first for headObject() (#15820)

This commit is contained in:
Harshavardhana
2022-10-07 21:45:53 -07:00
committed by GitHub
parent dfe0c96b87
commit 927a879052
3 changed files with 55 additions and 28 deletions

View File

@@ -173,6 +173,7 @@ func (s *TestSuiteIAM) TestSTSWithTags(c *check) {
// Validate sts creds can access the object
c.mustPutObjectWithTags(ctx, uClient, bucket, object)
c.mustGetObject(ctx, uClient, bucket, object)
c.mustHeadObject(ctx, uClient, bucket, object, 2)
// Validate that the client can remove objects
if err = minioClient.RemoveObjectTagging(ctx, bucket, object, minio.RemoveObjectTaggingOptions{}); err != nil {