@aws-cdk-testing/cli-integ 2.167.1 → 2.168.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-cdk-testing/cli-integ",
3
3
  "description": "Integration tests for the AWS CDK CLI",
4
- "version": "2.167.1",
4
+ "version": "2.168.0",
5
5
  "bin": {
6
6
  "run-suite": "bin/run-suite",
7
7
  "download-and-run-old-tests": "bin/download-and-run-old-tests",
@@ -29,13 +29,13 @@
29
29
  },
30
30
  "license": "Apache-2.0",
31
31
  "devDependencies": {
32
- "@aws-cdk/cdk-build-tools": "2.167.1-alpha.0",
32
+ "@aws-cdk/cdk-build-tools": "2.168.0-alpha.0",
33
33
  "@types/semver": "^7.5.8",
34
34
  "@types/yargs": "^15.0.19",
35
35
  "@types/fs-extra": "^9.0.13",
36
36
  "@types/glob": "^7.2.0",
37
37
  "@types/npm": "^7.19.3",
38
- "@aws-cdk/pkglint": "2.167.1-alpha.0"
38
+ "@aws-cdk/pkglint": "2.168.0-alpha.0"
39
39
  },
40
40
  "dependencies": {
41
41
  "@octokit/rest": "^18.12.0",
@@ -742,12 +742,23 @@ class BuiltinLambdaStack extends cdk.Stack {
742
742
  }
743
743
  }
744
744
 
745
- class NotificationArnPropStack extends cdk.Stack {
745
+ class NotificationArnsStack extends cdk.Stack {
746
746
  constructor(parent, id, props) {
747
- super(parent, id, props);
748
- new sns.Topic(this, 'topic');
747
+
748
+ const arnsFromEnv = process.env.INTEG_NOTIFICATION_ARNS;
749
+ super(parent, id, {
750
+ ...props,
751
+ // comma separated list of arns.
752
+ // empty string means empty list.
753
+ // undefined means undefined
754
+ notificationArns: arnsFromEnv == '' ? [] : (arnsFromEnv ? arnsFromEnv.split(',') : undefined)
755
+ });
756
+
757
+ new cdk.CfnWaitConditionHandle(this, 'WaitConditionHandle');
758
+
749
759
  }
750
760
  }
761
+
751
762
  class AppSyncHotswapStack extends cdk.Stack {
752
763
  constructor(parent, id, props) {
753
764
  super(parent, id, props);
@@ -776,6 +787,15 @@ class AppSyncHotswapStack extends cdk.Stack {
776
787
  }
777
788
  }
778
789
 
790
+ class MetadataStack extends cdk.Stack {
791
+ constructor(parent, id, props) {
792
+ super(parent, id, props);
793
+ const handle = new cdk.CfnWaitConditionHandle(this, 'WaitConditionHandle');
794
+ handle.addMetadata('Key', process.env.INTEG_METADATA_VALUE ?? 'default')
795
+
796
+ }
797
+ }
798
+
779
799
  const app = new cdk.App({
780
800
  context: {
781
801
  '@aws-cdk/core:assetHashSalt': process.env.CODEBUILD_BUILD_ID, // Force all assets to be unique, but consistent in one build
@@ -830,9 +850,7 @@ switch (stackSet) {
830
850
  new DockerInUseStack(app, `${stackPrefix}-docker-in-use`);
831
851
  new DockerStackWithCustomFile(app, `${stackPrefix}-docker-with-custom-file`);
832
852
 
833
- new NotificationArnPropStack(app, `${stackPrefix}-notification-arn-prop`, {
834
- notificationArns: [`arn:aws:sns:${defaultEnv.region}:${defaultEnv.account}:${stackPrefix}-test-topic-prop`],
835
- });
853
+ new NotificationArnsStack(app, `${stackPrefix}-notification-arns`);
836
854
 
837
855
  // SSO stacks
838
856
  new SsoInstanceAccessControlConfig(app, `${stackPrefix}-sso-access-control`);
@@ -877,6 +895,8 @@ switch (stackSet) {
877
895
  new ExportValueStack(app, `${stackPrefix}-export-value-stack`);
878
896
 
879
897
  new BundlingStage(app, `${stackPrefix}-bundling-stage`);
898
+
899
+ new MetadataStack(app, `${stackPrefix}-metadata`);
880
900
  break;
881
901
 
882
902
  case 'stage-using-context':