Skip to content

Commit

Permalink
ut
Browse files Browse the repository at this point in the history
  • Loading branch information
guozhi.li committed Jan 18, 2024
1 parent bb7d63c commit 5e79a6d
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions pkg/policy/bucket-policy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,26 @@ func TestUnmarshalBucketPolicy(t *testing.T) {
}
}
}]
}`, shouldSucceed: true},
// Test 11
{policyData: `{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Deny",
"Principal": "*",
"Action": "s3:PutObject",
"Resource": [
"arn:aws:s3:::DOC-EXAMPLE-BUCKET1",
"arn:aws:s3:::DOC-EXAMPLE-BUCKET1/*"
],
"Condition": {
"NumericLessThan": {
"s3:TlsVersion": 1.2
}
}
}
]
}`, shouldSucceed: true},
}

Expand Down

0 comments on commit 5e79a6d

Please sign in to comment.