Skip to content

Commit 802f130

Browse files
authored
chore(ec2): update PrefixList.fromLookup() to expect the result from CcApi context provider has exactly one resource (#34565)
Re-creation of #34199 A jsii related issue #34199 (comment) should be fixed before merging this PR. ### Issue # (if applicable) Follow-up to #33619. ### Reason for this change CcApi context provider now can expect the matched count of resources: aws/aws-cdk-cli#251. `PrefixList.fromLookup()` is needed to be updated using this feature not to persist invalid results in `cdk.context.json`. See also aws/aws-cdk-cli#257. ### Description of changes - Bumped `@aws-cdk/cloud-assembly-schema` to latest ^44.1.0. - Specify `expectedMatchCount: 'exactly-one'` to expect exactly one prefix list id is returned. - Updated validation to check unexpected result. Actual error will be returned from the context provider. ### Describe any new or updated permissions being added N/A ### Description of how you validated changes Updated integ tests. ### Checklist - [x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md) ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent 703a379 commit 802f130

File tree

40 files changed

+83
-183
lines changed

40 files changed

+83
-183
lines changed

packages/@aws-cdk-testing/framework-integ/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"license": "Apache-2.0",
3131
"devDependencies": {
3232
"@aws-cdk/cdk-build-tools": "0.0.0",
33-
"@aws-cdk/integ-runner": "^2.186.9",
33+
"@aws-cdk/integ-runner": "^2.186.11",
3434
"@aws-cdk/pkglint": "0.0.0",
3535
"@aws-sdk/client-acm": "3.632.0",
3636
"@aws-sdk/client-rds": "3.632.0",

packages/@aws-cdk/app-staging-synthesizer-alpha/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
},
9090
"devDependencies": {
9191
"aws-cdk-lib": "0.0.0",
92-
"@aws-cdk/integ-runner": "^2.186.9",
92+
"@aws-cdk/integ-runner": "^2.186.11",
9393
"@aws-cdk/integ-tests-alpha": "0.0.0",
9494
"constructs": "^10.0.0",
9595
"@aws-cdk/cdk-build-tools": "0.0.0",

packages/@aws-cdk/aws-amplify-alpha/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
"license": "Apache-2.0",
8888
"devDependencies": {
8989
"@aws-cdk/cdk-build-tools": "0.0.0",
90-
"@aws-cdk/integ-runner": "^2.186.9",
90+
"@aws-cdk/integ-runner": "^2.186.11",
9191
"@aws-cdk/pkglint": "0.0.0",
9292
"@aws-cdk/custom-resource-handlers": "0.0.0",
9393
"@aws-sdk/client-amplify": "3.632.0",

packages/@aws-cdk/aws-applicationsignals-alpha/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
"license": "Apache-2.0",
8585
"devDependencies": {
8686
"@aws-cdk/cdk-build-tools": "0.0.0",
87-
"@aws-cdk/integ-runner": "^2.186.9",
87+
"@aws-cdk/integ-runner": "^2.186.11",
8888
"@aws-cdk/integ-tests-alpha": "0.0.0",
8989
"@aws-cdk/pkglint": "0.0.0",
9090
"@types/jest": "^29.5.14",

packages/@aws-cdk/aws-apprunner-alpha/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
"devDependencies": {
8787
"@aws-cdk/cdk-build-tools": "0.0.0",
8888
"aws-cdk-lib": "0.0.0",
89-
"@aws-cdk/integ-runner": "^2.186.9",
89+
"@aws-cdk/integ-runner": "^2.186.11",
9090
"@aws-cdk/pkglint": "0.0.0",
9191
"@types/jest": "^29.5.14",
9292
"constructs": "^10.0.0",

packages/@aws-cdk/aws-cloud9-alpha/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
"license": "Apache-2.0",
8383
"devDependencies": {
8484
"@aws-cdk/cdk-build-tools": "0.0.0",
85-
"@aws-cdk/integ-runner": "^2.186.9",
85+
"@aws-cdk/integ-runner": "^2.186.11",
8686
"@aws-cdk/pkglint": "0.0.0",
8787
"@types/jest": "^29.5.14",
8888
"aws-cdk-lib": "0.0.0",

packages/@aws-cdk/aws-codestar-alpha/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
"license": "Apache-2.0",
8585
"devDependencies": {
8686
"@aws-cdk/cdk-build-tools": "0.0.0",
87-
"@aws-cdk/integ-runner": "^2.186.9",
87+
"@aws-cdk/integ-runner": "^2.186.11",
8888
"@aws-cdk/pkglint": "0.0.0",
8989
"@types/jest": "^29.5.14",
9090
"aws-cdk-lib": "0.0.0",

packages/@aws-cdk/aws-ec2-alpha/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
"license": "Apache-2.0",
7979
"devDependencies": {
8080
"@aws-cdk/cdk-build-tools": "0.0.0",
81-
"@aws-cdk/integ-runner": "^2.186.9",
81+
"@aws-cdk/integ-runner": "^2.186.11",
8282
"@aws-cdk/integ-tests-alpha": "^0.0.0",
8383
"@aws-cdk/pkglint": "0.0.0",
8484
"@types/jest": "^29.5.14",

packages/@aws-cdk/aws-eks-v2-alpha/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
"license": "Apache-2.0",
8585
"devDependencies": {
8686
"@aws-cdk/cdk-build-tools": "0.0.0",
87-
"@aws-cdk/integ-runner": "^2.186.9",
87+
"@aws-cdk/integ-runner": "^2.186.11",
8888
"@aws-cdk/integ-tests-alpha": "0.0.0",
8989
"@aws-cdk/pkglint": "0.0.0",
9090
"@aws-cdk/lambda-layer-kubectl-v24": "^2.0.242",

packages/@aws-cdk/aws-gamelift-alpha/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
"license": "Apache-2.0",
8383
"devDependencies": {
8484
"@aws-cdk/cdk-build-tools": "0.0.0",
85-
"@aws-cdk/integ-runner": "^2.186.9",
85+
"@aws-cdk/integ-runner": "^2.186.11",
8686
"@aws-cdk/pkglint": "0.0.0",
8787
"@types/jest": "^29.5.14",
8888
"jest": "^29.7.0",

0 commit comments

Comments
 (0)