Skip to content

Commit

Permalink
fix unit tests for opensearch-api after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
lmouhib committed Aug 25, 2024
1 parent c586653 commit e211526
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions framework/test/unit/nag/consumption/nag-opensearch-api.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,20 +48,20 @@ NagSuppressions.addResourceSuppressionsByPath(

NagSuppressions.addResourceSuppressionsByPath(
stack,
'/Stack/CreateSLR/Provider/CustomResourceProvider/framework-onEvent/ServiceRole/Resource',
[{ id: 'AwsSolutions-IAM4', reason: 'Separately handled in SLR construct' }],
'/Stack/OpenSearch/CreateSLR/Provider/CustomResourceProvider/framework-onEvent/ServiceRole/Resource',
[{ id: 'AwsSolutions-IAM4', reason: 'Service role policy needed by construct' }],
);

NagSuppressions.addResourceSuppressionsByPath(
stack,
'/Stack/CreateSLR/Provider/CustomResourceProvider/framework-onEvent/ServiceRole/DefaultPolicy/Resource',
[{ id: 'AwsSolutions-IAM5', reason: 'Separately handled in SLR construct' }],
'/Stack/OpenSearch/CreateSLR/Provider/CustomResourceProvider/framework-onEvent/ServiceRole/DefaultPolicy/Resource',
[{ id: 'AwsSolutions-IAM5', reason: 'Inherited from the SLR creation construct' }],
);

NagSuppressions.addResourceSuppressionsByPath(
stack,
'/Stack/CreateSLR/Provider/CustomResourceProvider/framework-onEvent/Resource',
[{ id: 'AwsSolutions-L1', reason: 'Separately handled in SLR construct' }],
'/Stack/OpenSearch/CreateSLR/Provider/CustomResourceProvider/framework-onEvent/Resource',
[{ id: 'AwsSolutions-L1', reason: 'Inherited from the SLR creation construct' }],
);


Expand Down

0 comments on commit e211526

Please sign in to comment.