|
1 | 1 | import * as path from 'node:path'; |
2 | 2 | import { App, Duration, Size, Stack, StackProps, Tags } from 'aws-cdk-lib/core'; |
3 | | -import { IntegTest, ExpectedResult } from '@aws-cdk/integ-tests-alpha'; |
| 3 | +import { IntegTest } from '@aws-cdk/integ-tests-alpha'; |
4 | 4 | import { Construct } from 'constructs'; |
5 | 5 | import * as synthetics from 'aws-cdk-lib/aws-synthetics'; |
6 | 6 |
|
@@ -31,25 +31,6 @@ class TestStack extends Stack { |
31 | 31 | const app = new App(); |
32 | 32 | const testStack = new TestStack(app, 'SyntheticsCanaryResourcesToReplicateTagsStack'); |
33 | 33 |
|
34 | | -const integ = new IntegTest(app, 'SyntheticsCanaryResourcesToReplicateTags', { |
| 34 | +new IntegTest(app, 'SyntheticsCanaryResourcesToReplicateTags', { |
35 | 35 | testCases: [testStack], |
36 | 36 | }); |
37 | | - |
38 | | -const getCanary = integ.assertions.awsApiCall('Synthetics', 'getCanary', { |
39 | | - Name: 'tag-replication', |
40 | | -}); |
41 | | - |
42 | | -const getLambdaTags = integ.assertions.awsApiCall('Lambda', 'listTags', { |
43 | | - Resource: getCanary.getAttString('Canary.EngineArn'), |
44 | | -}); |
45 | | - |
46 | | -getLambdaTags.expect(ExpectedResult.objectLike({ |
47 | | - Tags: { |
48 | | - Environment: 'test', |
49 | | - Owner: 'cdk-team', |
50 | | - Project: 'synthetics-tag-replication', |
51 | | - }, |
52 | | -})).waitForAssertions({ |
53 | | - totalTimeout: Duration.minutes(5), |
54 | | - interval: Duration.seconds(30), |
55 | | -}); |
0 commit comments