Skip to content

Commit 62fa0b2

Browse files
lvthillovishaalmehrishi
authored andcommitted
chore: remove assertion from integ test because the standard integ test functionality can not handle it for this specific case
1 parent 3c8b82e commit 62fa0b2

File tree

1 file changed

+2
-21
lines changed

1 file changed

+2
-21
lines changed

packages/@aws-cdk-testing/framework-integ/test/aws-synthetics/test/integ.canary-resources-to-replicate-tags.ts

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as path from 'node:path';
22
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';
44
import { Construct } from 'constructs';
55
import * as synthetics from 'aws-cdk-lib/aws-synthetics';
66

@@ -31,25 +31,6 @@ class TestStack extends Stack {
3131
const app = new App();
3232
const testStack = new TestStack(app, 'SyntheticsCanaryResourcesToReplicateTagsStack');
3333

34-
const integ = new IntegTest(app, 'SyntheticsCanaryResourcesToReplicateTags', {
34+
new IntegTest(app, 'SyntheticsCanaryResourcesToReplicateTags', {
3535
testCases: [testStack],
3636
});
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

Comments
 (0)