Skip to content

Commit

Permalink
fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
iliapolo committed May 14, 2023
1 parent 36d4dfe commit 3242e99
Showing 1 changed file with 29 additions and 3 deletions.
32 changes: 29 additions & 3 deletions packages/aws-cdk-lib/aws-eks/test/cluster.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2092,6 +2092,26 @@ describe('cluster', () => {
':iam::aws:policy/AmazonEC2ContainerRegistryReadOnly',
]],
},
{
'Fn::If': [
'MyClusterHasEcrPublicC68AA246',
{
'Fn::Join': [
'',
[
'arn:',
{
Ref: 'AWS::Partition',
},
':iam::aws:policy/AmazonElasticContainerRegistryPublicReadOnly',
],
],
},
{
Ref: 'AWS::NoValue',
},
],
},
],
});
});
Expand Down Expand Up @@ -2237,14 +2257,20 @@ describe('cluster', () => {
Action: 'eks:DescribeCluster',
Effect: 'Allow',
Resource: {
Ref: 'referencetoStackCluster18DFEAC17Arn',
'Fn::GetAtt': [
'Cluster1B02DD5A2',
'Arn',
],
},
},
{
Action: 'sts:AssumeRole',
Effect: 'Allow',
Resource: {
Ref: 'referencetoStackCluster1CreationRoleEF7C9BBCArn',
'Fn::GetAtt': [
'Cluster1CreationRoleA231BE8D',
'Arn',
],
},
},
],
Expand Down Expand Up @@ -2287,7 +2313,7 @@ describe('cluster', () => {
},
{
'Fn::If': [
'HasEcrPublic',
'Cluster1HasEcrPublicC08E47E3',
{
'Fn::Join': [
'',
Expand Down

0 comments on commit 3242e99

Please sign in to comment.