Skip to content

Commit

Permalink
chore(cli): fix "iam diff" integration test
Browse files Browse the repository at this point in the history
The PR #8403 changed the "IAM stack" to use the default environment and forgot to update the expected output (which now does not contain a token for the URL suffix).
  • Loading branch information
Elad Ben-Israel committed Jun 7, 2020
1 parent 681b3bb commit 79908fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/aws-cdk/test/integ/cli/cli.integtest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -441,12 +441,12 @@ integTest('IAM diff', async () => {
// ┌───┬─────────────────┬────────┬────────────────┬────────────────────────────-──┬───────────┐
// │ │ Resource │ Effect │ Action │ Principal │ Condition │
// ├───┼─────────────────┼────────┼────────────────┼───────────────────────────────┼───────────┤
// │ + │ ${SomeRole.Arn} │ Allow │ sts:AssumeRole │ Service:ec2.${AWS::URLSuffix} │ │
// │ + │ ${SomeRole.Arn} │ Allow │ sts:AssumeRole │ Service:ec2.amazonaws.com │ │
// └───┴─────────────────┴────────┴────────────────┴───────────────────────────────┴───────────┘

expect(output).toContain('${SomeRole.Arn}');
expect(output).toContain('sts:AssumeRole');
expect(output).toContain('ec2.${AWS::URLSuffix}');
expect(output).toContain('ec2.amazonaws.com');
});

integTest('fast deploy', async () => {
Expand Down

0 comments on commit 79908fa

Please sign in to comment.