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 89eae01 commit bb7d63c
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions pkg/policy/bucket-policy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,31 @@ func TestUnmarshalBucketPolicy(t *testing.T) {
}
}
]
}`, shouldSucceed: true},
// Test 10
{policyData: `{
"Version": "2012-10-17",
"Statement": [{
"Effect": "Deny",
"Principal": {
"AWS": [
"*"
]
},
"Action": [
"s3:PutObject"
],
"Resource": [
"arn:aws:s3:::mytest/*"
],
"Condition": {
"Null": {
"s3:x-amz-server-side-encryption": [
true
]
}
}
}]
}`, shouldSucceed: true},
}

Expand Down

0 comments on commit bb7d63c

Please sign in to comment.