Skip to content

Commit

Permalink
fix expected s3 policy output in unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Flavio Leggio committed Jan 19, 2022
1 parent 069b745 commit f0da7e9
Show file tree
Hide file tree
Showing 8 changed files with 64 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,10 @@ describe('', () => {
'Action': [
's3:DeleteObject*',
's3:PutObject',
's3:PutObjectLegalHold',
's3:PutObjectRetention',
's3:PutObjectTagging',
's3:PutObjectVersionTagging',
's3:Abort*',
],
'Effect': 'Allow',
Expand Down Expand Up @@ -247,6 +251,10 @@ describe('', () => {
'Action': [
's3:DeleteObject*',
's3:PutObject',
's3:PutObjectLegalHold',
's3:PutObjectRetention',
's3:PutObjectTagging',
's3:PutObjectVersionTagging',
's3:Abort*',
],
'Effect': 'Allow',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ describe('', () => {
's3:List*',
's3:DeleteObject*',
's3:PutObject',
's3:PutObjectLegalHold',
's3:PutObjectRetention',
's3:PutObjectTagging',
's3:PutObjectVersionTagging',
's3:Abort*',
],
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,14 @@ describe('tests', () => {
Version: '2012-10-17',
Statement: [
{
Action: ['s3:PutObject', 's3:Abort*'],
Action: [
's3:PutObject',
's3:PutObjectLegalHold',
's3:PutObjectRetention',
's3:PutObjectTagging',
's3:PutObjectVersionTagging',
's3:Abort*',
],
Effect: 'Allow',
Principal: { AWS: { 'Fn::Join': ['', ['arn:', { Ref: 'AWS::Partition' }, ':iam::127311923021:root']] } },
Resource: {
Expand Down Expand Up @@ -236,7 +243,14 @@ describe('tests', () => {
Version: '2012-10-17',
Statement: [
{
Action: ['s3:PutObject', 's3:Abort*'],
Action: [
's3:PutObject',
's3:PutObjectLegalHold',
's3:PutObjectRetention',
's3:PutObjectTagging',
's3:PutObjectVersionTagging',
's3:Abort*',
],
Effect: 'Allow',
Principal: { AWS: { 'Fn::Join': ['', ['arn:', { Ref: 'AWS::Partition' }, ':iam::127311923021:root']] } },
Resource: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,14 @@ describe('tests', () => {
Version: '2012-10-17',
Statement: [
{
Action: ['s3:PutObject', 's3:Abort*'],
Action: [
's3:PutObject',
's3:PutObjectLegalHold',
's3:PutObjectRetention',
's3:PutObjectTagging',
's3:PutObjectVersionTagging',
's3:Abort*',
],
Effect: 'Allow',
Principal: { AWS: { 'Fn::Join': ['', ['arn:', { Ref: 'AWS::Partition' }, ':iam::127311923021:root']] } },
Resource: {
Expand Down Expand Up @@ -180,7 +187,14 @@ describe('tests', () => {
Version: '2012-10-17',
Statement: [
{
Action: ['s3:PutObject', 's3:Abort*'],
Action: [
's3:PutObject',
's3:PutObjectLegalHold',
's3:PutObjectRetention',
's3:PutObjectTagging',
's3:PutObjectVersionTagging',
's3:Abort*',
],
Effect: 'Allow',
Principal: { AWS: { 'Fn::Join': ['', ['arn:', { Ref: 'AWS::Partition' }, ':iam::127311923021:root']] } },
Resource: {
Expand Down
8 changes: 8 additions & 0 deletions packages/@aws-cdk/aws-glue/test/table.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1281,6 +1281,10 @@ describe('grants', () => {
Action: [
's3:DeleteObject*',
's3:PutObject',
's3:PutObjectLegalHold',
's3:PutObjectRetention',
's3:PutObjectTagging',
's3:PutObjectVersionTagging',
's3:Abort*',
],
Effect: 'Allow',
Expand Down Expand Up @@ -1393,6 +1397,10 @@ describe('grants', () => {
's3:List*',
's3:DeleteObject*',
's3:PutObject',
's3:PutObjectLegalHold',
's3:PutObjectRetention',
's3:PutObjectTagging',
's3:PutObjectVersionTagging',
's3:Abort*',
],
Effect: 'Allow',
Expand Down
4 changes: 4 additions & 0 deletions packages/@aws-cdk/aws-rds/test/cluster.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1323,6 +1323,10 @@ describe('cluster', () => {
's3:List*',
's3:DeleteObject*',
's3:PutObject',
's3:PutObjectLegalHold',
's3:PutObjectRetention',
's3:PutObjectTagging',
's3:PutObjectVersionTagging',
's3:Abort*',
],
Effect: 'Allow',
Expand Down
4 changes: 4 additions & 0 deletions packages/@aws-cdk/aws-rds/test/instance.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1301,6 +1301,10 @@ describe('instance', () => {
's3:List*',
's3:DeleteObject*',
's3:PutObject',
's3:PutObjectLegalHold',
's3:PutObjectRetention',
's3:PutObjectTagging',
's3:PutObjectVersionTagging',
's3:Abort*',
],
Effect: 'Allow',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -666,6 +666,10 @@ testFutureBehavior('lambda execution role gets permissions to read from the sour
's3:List*',
's3:DeleteObject*',
's3:PutObject',
's3:PutObjectLegalHold',
's3:PutObjectRetention',
's3:PutObjectTagging',
's3:PutObjectVersionTagging',
's3:Abort*',
],
Effect: 'Allow',
Expand Down

0 comments on commit f0da7e9

Please sign in to comment.