Skip to content

Commit

Permalink
chore(iotevents): update integ tests to use IntegTest (aws#24293)
Browse files Browse the repository at this point in the history
----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
  • Loading branch information
TheRealAmazonKendra authored Feb 23, 2023
1 parent dd22fc1 commit 1ca9b76
Show file tree
Hide file tree
Showing 7 changed files with 50 additions and 23 deletions.
1 change: 1 addition & 0 deletions packages/@aws-cdk/aws-iotevents/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@
"@aws-cdk/assertions": "0.0.0",
"@aws-cdk/cdk-build-tools": "0.0.0",
"@aws-cdk/integ-runner": "0.0.0",
"@aws-cdk/integ-tests": "0.0.0",
"@aws-cdk/cfn2ts": "0.0.0",
"@aws-cdk/pkglint": "0.0.0",
"@types/jest": "^27.5.2",
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"version":"20.0.0"}
{"version":"30.1.0"}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "20.0.0",
"version": "30.1.0",
"files": {
"142fd9106d7d51034f9c3594f2af5eaa1feff13065dca63084f39e0c91149152": {
"source": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "20.0.0",
"version": "30.1.0",
"testCases": {
"integ.detector-model": {
"stacks": [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
{
"version": "20.0.0",
"version": "30.1.0",
"artifacts": {
"Tree": {
"type": "cdk:tree",
"properties": {
"file": "tree.json"
}
},
"detector-model-test-stack.assets": {
"type": "cdk:asset-manifest",
"properties": {
Expand Down Expand Up @@ -71,6 +65,12 @@
]
},
"displayName": "detector-model-test-stack"
},
"Tree": {
"type": "cdk:tree",
"properties": {
"file": "tree.json"
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,6 @@
"id": "App",
"path": "",
"children": {
"Tree": {
"id": "Tree",
"path": "Tree",
"constructInfo": {
"fqn": "constructs.Construct",
"version": "10.1.85"
}
},
"detector-model-test-stack": {
"id": "detector-model-test-stack",
"path": "detector-model-test-stack",
Expand Down Expand Up @@ -58,6 +50,14 @@
"id": "DetectorModelRole",
"path": "detector-model-test-stack/MyDetectorModel/DetectorModelRole",
"children": {
"ImportDetectorModelRole": {
"id": "ImportDetectorModelRole",
"path": "detector-model-test-stack/MyDetectorModel/DetectorModelRole/ImportDetectorModelRole",
"constructInfo": {
"fqn": "@aws-cdk/core.Resource",
"version": "0.0.0"
}
},
"Resource": {
"id": "Resource",
"path": "detector-model-test-stack/MyDetectorModel/DetectorModelRole/Resource",
Expand Down Expand Up @@ -227,17 +227,41 @@
"fqn": "@aws-cdk/aws-iotevents.DetectorModel",
"version": "0.0.0"
}
},
"BootstrapVersion": {
"id": "BootstrapVersion",
"path": "detector-model-test-stack/BootstrapVersion",
"constructInfo": {
"fqn": "@aws-cdk/core.CfnParameter",
"version": "0.0.0"
}
},
"CheckBootstrapVersion": {
"id": "CheckBootstrapVersion",
"path": "detector-model-test-stack/CheckBootstrapVersion",
"constructInfo": {
"fqn": "@aws-cdk/core.CfnRule",
"version": "0.0.0"
}
}
},
"constructInfo": {
"fqn": "@aws-cdk/core.Stack",
"version": "0.0.0"
}
},
"Tree": {
"id": "Tree",
"path": "Tree",
"constructInfo": {
"fqn": "constructs.Construct",
"version": "10.1.85"
"version": "10.1.252"
}
}
},
"constructInfo": {
"fqn": "constructs.Construct",
"version": "10.1.85"
"fqn": "@aws-cdk/core.App",
"version": "0.0.0"
}
}
}
6 changes: 4 additions & 2 deletions packages/@aws-cdk/aws-iotevents/test/integ.detector-model.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import * as cdk from '@aws-cdk/core';
import { IntegTest } from '@aws-cdk/integ-tests';
import * as iotevents from '../lib';

class TestStack extends cdk.Stack {
Expand Down Expand Up @@ -68,5 +69,6 @@ class TestStack extends cdk.Stack {
}

const app = new cdk.App();
new TestStack(app, 'detector-model-test-stack');
app.synth();
new IntegTest(app, 'cdk-integ-detector-model-test-stack', {
testCases: [new TestStack(app, 'detector-model-test-stack')],
});

0 comments on commit 1ca9b76

Please sign in to comment.