diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/authorizers/integ.api-with-authorizer-and-method.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/authorizers/integ.api-with-authorizer-and-method.ts index 7572ae17ef764..656da775255dc 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/authorizers/integ.api-with-authorizer-and-method.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/authorizers/integ.api-with-authorizer-and-method.ts @@ -8,7 +8,7 @@ import * as agw from 'aws-cdk-lib/aws-apigateway'; * * `curl -i ` should return HTTP code 200 */ -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'integtest-restapi-with-authorizer-and-proxy'); const userPool = new cognito.UserPool(stack, 'UserPool'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/authorizers/integ.api-with-authorizer-and-proxy.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/authorizers/integ.api-with-authorizer-and-proxy.ts index b380f6ed90f30..ecc852985537d 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/authorizers/integ.api-with-authorizer-and-proxy.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/authorizers/integ.api-with-authorizer-and-proxy.ts @@ -11,6 +11,7 @@ import * as lambda from 'aws-cdk-lib/aws-lambda'; */ const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/authorizers/integ.api-with-overriding-default-authorizer.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/authorizers/integ.api-with-overriding-default-authorizer.ts index 794c3fb1bbc14..24c04795e65bb 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/authorizers/integ.api-with-overriding-default-authorizer.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/authorizers/integ.api-with-overriding-default-authorizer.ts @@ -9,7 +9,7 @@ import { AuthorizationType, MockIntegration, PassthroughBehavior } from 'aws-cdk * * `curl -i ` should return HTTP code 200 */ -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'integtest-restapi-with-overriding-default-authorizer'); // create a cognito user pool diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/authorizers/integ.cognito-authorizer.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/authorizers/integ.cognito-authorizer.ts index 8ff6642fbf2ac..fafa652764d18 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/authorizers/integ.cognito-authorizer.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/authorizers/integ.cognito-authorizer.ts @@ -17,7 +17,7 @@ import { AuthorizationType, CognitoUserPoolsAuthorizer, MockIntegration, Passthr * * c. `curl -s -o /dev/null -w "%{http_code}" -H 'Authorization: ' ` should return 200 */ -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'CognitoUserPoolsAuthorizerInteg'); const userPool = new cognito.UserPool(stack, 'UserPool'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/authorizers/integ.request-authorizer.lit.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/authorizers/integ.request-authorizer.lit.ts index 8efce387e9466..2decec3a30d31 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/authorizers/integ.request-authorizer.lit.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/authorizers/integ.request-authorizer.lit.ts @@ -10,6 +10,7 @@ import { STANDARD_NODEJS_RUNTIME } from '../../../config'; // `curl -s -o /dev/null -w "%{http_code}" -H 'Authorization: allow' ?allow=yes` should return 200 const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/authorizers/integ.token-authorizer-iam-role.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/authorizers/integ.token-authorizer-iam-role.ts index 47735c89f819f..ce7698af766c2 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/authorizers/integ.token-authorizer-iam-role.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/authorizers/integ.token-authorizer-iam-role.ts @@ -14,6 +14,7 @@ import { STANDARD_NODEJS_RUNTIME } from '../../../config'; */ const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/authorizers/integ.token-authorizer.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/authorizers/integ.token-authorizer.ts index 0536ff98a749d..b5690410406f3 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/authorizers/integ.token-authorizer.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/authorizers/integ.token-authorizer.ts @@ -6,6 +6,7 @@ import { MockIntegration, PassthroughBehavior, RestApi, TokenAuthorizer, Cors } import { STANDARD_NODEJS_RUNTIME } from '../../../config'; const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.api-definition.asset.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.api-definition.asset.ts index 86992ffc5249a..70548a3ddbbec 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.api-definition.asset.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.api-definition.asset.ts @@ -9,7 +9,7 @@ import * as apigateway from 'aws-cdk-lib/aws-apigateway'; * * `curl -s -o /dev/null -w "%{http_code}" ` should return HTTP code 200 */ -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'integtest-restapi-fromdefinition-asset'); const api = new apigateway.SpecRestApi(stack, 'my-api', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.api-definition.inline.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.api-definition.inline.ts index f1d72be8ea038..4b1e287375181 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.api-definition.inline.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.api-definition.inline.ts @@ -7,7 +7,7 @@ import * as apigateway from 'aws-cdk-lib/aws-apigateway'; * * `curl -i ` should return HTTP code 200 */ -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'integtest-restapi-fromdefinition-inline'); const api = new apigateway.SpecRestApi(stack, 'my-api', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.base-path-mapping.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.base-path-mapping.ts index ec8b557159781..8946efe0006a6 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.base-path-mapping.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.base-path-mapping.ts @@ -37,7 +37,7 @@ export class TestStack extends cdk.Stack { } } -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const testStack = new TestStack(app, 'test-stack'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.cloudwatch-disabled.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.cloudwatch-disabled.ts index a4d9d990a11d9..8ca4bbf9ed8b1 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.cloudwatch-disabled.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.cloudwatch-disabled.ts @@ -12,7 +12,7 @@ export class Test extends cdk.Stack { } } -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); new IntegTest(app, 'cloudwatch-logs-disabled', { testCases: [ new Test(app, 'default-api'), diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.cors-allow-multiple-origins.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.cors-allow-multiple-origins.ts index 7ba3e3672dae3..4f82abc6dd8bf 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.cors-allow-multiple-origins.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.cors-allow-multiple-origins.ts @@ -5,6 +5,7 @@ import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import * as apigw from 'aws-cdk-lib/aws-apigateway'; const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.cors.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.cors.ts index 5173c16a89513..416384896f49b 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.cors.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.cors.ts @@ -32,6 +32,9 @@ class TestStack extends Stack { } const app = new App({ + context: { + '@aws-cdk/core:disableGitSource': true, + }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.domain-name.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.domain-name.ts index 60bd2bbac9663..5939a33528581 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.domain-name.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.domain-name.ts @@ -20,7 +20,7 @@ if (!domainName || !certArn || !hostedZoneId) { * ------------------------- GIVEN------------------------ * ------------------------------------------------------- */ -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const testCase = new cdk.Stack(app, 'integ-apigw-domain-name-mapping'); interface ApiProps { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.lambda-api-nonproxy.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.lambda-api-nonproxy.ts index a78e756b590f2..6ff57678c18df 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.lambda-api-nonproxy.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.lambda-api-nonproxy.ts @@ -35,6 +35,7 @@ class LambdaApiIntegrationOptionsNonProxyIntegrationStack extends Stack { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.lambda-api.latebound-deploymentstage.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.lambda-api.latebound-deploymentstage.ts index 18ed3ba3576e7..4f8b8267be628 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.lambda-api.latebound-deploymentstage.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.lambda-api.latebound-deploymentstage.ts @@ -30,6 +30,7 @@ class LateBoundDeploymentStageStack extends Stack { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.lambda-api.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.lambda-api.ts index 4c013c3f445fc..28720559c2a0b 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.lambda-api.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.lambda-api.ts @@ -34,6 +34,7 @@ class LambdaApiIntegrationOptionsStack extends Stack { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.lambda-permission-consolidation.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.lambda-permission-consolidation.ts index a4217add923c0..68add71365d63 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.lambda-permission-consolidation.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.lambda-permission-consolidation.ts @@ -38,6 +38,7 @@ class LambdaPermissionConsolidationStack extends Stack { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.method-grant-execute.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.method-grant-execute.ts index 291d1190892f1..d296a397df76a 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.method-grant-execute.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.method-grant-execute.ts @@ -3,7 +3,7 @@ import * as cdk from 'aws-cdk-lib'; import * as integ from '@aws-cdk/integ-tests-alpha'; import * as apigw from 'aws-cdk-lib/aws-apigateway'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'GrantExecute'); const user = new iam.User(stack, 'user'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.model-schema-additional-items.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.model-schema-additional-items.ts index 3dbc2f28577c8..565488c0fe595 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.model-schema-additional-items.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.model-schema-additional-items.ts @@ -64,7 +64,7 @@ class TestStack extends cdk.Stack { } } -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new TestStack(app, 'model-schema-additional-items-test'); new IntegTest(app, 'ModelSchemaAdditionalItemsTest', { testCases: [stack], diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi-cloudwatch-removal-policy.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi-cloudwatch-removal-policy.ts index b734c5f7dee25..79fe53e464080 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi-cloudwatch-removal-policy.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi-cloudwatch-removal-policy.ts @@ -2,7 +2,7 @@ import * as cdk from 'aws-cdk-lib'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import * as apigateway from 'aws-cdk-lib/aws-apigateway'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'test-apigateway-restapi-cloudwatch-removal-policy'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi-default-apikey.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi-default-apikey.ts index df2368b1b2502..df61d06c929e8 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi-default-apikey.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi-default-apikey.ts @@ -5,6 +5,7 @@ import { App, Stack } from 'aws-cdk-lib'; import { STANDARD_NODEJS_RUNTIME } from '../../config'; const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi-import.lit.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi-import.lit.ts index 55854a7d8d248..7d5cff66388ec 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi-import.lit.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi-import.lit.ts @@ -129,4 +129,4 @@ class DeployStack extends NestedStack { } } -new RootStack(new App()); +new RootStack(new App({ context: { '@aws-cdk/core:disableGitSource': true } })); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi-ip-address-type.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi-ip-address-type.ts index 9d8ee3067e7b1..18598a4c918d3 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi-ip-address-type.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi-ip-address-type.ts @@ -3,7 +3,7 @@ import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import * as apigateway from 'aws-cdk-lib/aws-apigateway'; import * as ec2 from 'aws-cdk-lib/aws-ec2'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'restapi-ip-address-type-test-stack'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi-metrics.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi-metrics.ts index dbad107b39bc0..bcf144412c6c3 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi-metrics.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi-metrics.ts @@ -3,7 +3,7 @@ import * as cdk from 'aws-cdk-lib'; import * as integ from '@aws-cdk/integ-tests-alpha'; import * as apigw from 'aws-cdk-lib/aws-apigateway'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'restapi-metrics'); const restApi = new apigw.RestApi(stack, 'Api', { cloudWatchRole: true }); const stage = restApi.deploymentStage; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi-stream.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi-stream.ts index 3d3b6e6d27bbf..f87d9ed832935 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi-stream.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi-stream.ts @@ -34,6 +34,7 @@ class RestApiStreamStack extends Stack { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi.access-log-firehose.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi.access-log-firehose.ts index b0783206bcfb0..0ece361ebd619 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi.access-log-firehose.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi.access-log-firehose.ts @@ -55,7 +55,7 @@ class RestApiAccessLogFirehoseTest extends cdk.Stack { } } -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new RestApiAccessLogFirehoseTest(app, 'test-apigateway-access-logs-firehose'); new IntegTest(app, 'apigateway-access-logs-firehose', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi.access-log.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi.access-log.ts index 5d656bb58b94f..5af2dd372d093 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi.access-log.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi.access-log.ts @@ -37,7 +37,7 @@ class Test extends cdk.Stack { } } -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const testCase = new Test(app, 'test-apigateway-access-logs'); new IntegTest(app, 'apigateway-access-logs', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi.books.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi.books.ts index 5af430300b5e8..02214cb93c55f 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi.books.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi.books.ts @@ -48,6 +48,7 @@ class BookStack extends cdk.Stack { } const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi.defaults.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi.defaults.ts index a775afa1c1c39..3f46675269537 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi.defaults.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi.defaults.ts @@ -2,7 +2,7 @@ import * as cdk from 'aws-cdk-lib'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import * as apigateway from 'aws-cdk-lib/aws-apigateway'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'test-apigateway-restapi-defaults'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi.multistack.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi.multistack.ts index d21748d3b4256..09b7c4afa3883 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi.multistack.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi.multistack.ts @@ -44,7 +44,7 @@ class SecondStack extends cdk.Stack { } } -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const first = new FirstStack(app, 'FirstStack'); const testCase = new SecondStack(app, 'SecondStack', { lambda: first.firstLambda }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi.multiuse.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi.multiuse.ts index 561b025065d1d..79726aad3ac0a 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi.multiuse.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi.multiuse.ts @@ -23,6 +23,7 @@ class MultiStack extends cdk.Stack { } const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi.ts index 275e537aed26d..25a4f59d8a3e5 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi.ts @@ -95,6 +95,7 @@ class Test extends cdk.Stack { } const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi.vpc-endpoint.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi.vpc-endpoint.ts index 4a7bc72c6b192..dc97255235aa0 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi.vpc-endpoint.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi.vpc-endpoint.ts @@ -125,6 +125,7 @@ class TestStack extends cdk.Stack { } const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, '@aws-cdk/aws-lambda:createNewPoliciesWithAddToRolePolicy': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.spec-restapi-endpointconfiguration.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.spec-restapi-endpointconfiguration.ts index 7b6f8c7f3cfa9..182174f3da9d3 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.spec-restapi-endpointconfiguration.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.spec-restapi-endpointconfiguration.ts @@ -3,7 +3,7 @@ import { App, CfnOutput, Stack } from 'aws-cdk-lib'; import { ExpectedResult, IntegTest } from '@aws-cdk/integ-tests-alpha'; import * as apigateway from 'aws-cdk-lib/aws-apigateway'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'specrestapi-endpointConfiguration'); const api = new apigateway.SpecRestApi(stack, 'my-api', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.spec-restapi.import-deploymentstage.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.spec-restapi.import-deploymentstage.ts index b7af850028b7a..15a8bd3557a0e 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.spec-restapi.import-deploymentstage.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.spec-restapi.import-deploymentstage.ts @@ -2,7 +2,7 @@ import * as cdk from 'aws-cdk-lib/core'; import * as apigateway from 'aws-cdk-lib/aws-apigateway'; import * as integ from '@aws-cdk/integ-tests-alpha'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'integtest-specrestapi-import-deployment-stage'); const apiDefinition = { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.spec-restapi.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.spec-restapi.ts index f006bf64eef5e..ef6073b0d4e2e 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.spec-restapi.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.spec-restapi.ts @@ -90,6 +90,7 @@ class Test extends cdk.Stack { } const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.stepfunctions-api-without-default-method-responses.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.stepfunctions-api-without-default-method-responses.ts index a775027acbe77..15e19cdcbc4ee 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.stepfunctions-api-without-default-method-responses.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.stepfunctions-api-without-default-method-responses.ts @@ -28,7 +28,7 @@ class SfnRestApiWithoutDefaultMethodResponsesStack extends cdk.Stack { } } -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const testCase = new SfnRestApiWithoutDefaultMethodResponsesStack(app); new IntegTest(app, 'sfn-restapi-without-default-method-responses', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.stepfunctions-api.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.stepfunctions-api.ts index 475ee8f620fd0..e3b907ab943e3 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.stepfunctions-api.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.stepfunctions-api.ts @@ -49,7 +49,7 @@ class StepFunctionsRestApiDeploymentStack extends cdk.Stack { } } -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const testCase = new StepFunctionsRestApiDeploymentStack(app); new IntegTest(app, 'step-functions-restapi', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.stepfunctions-startexecution-without-default-method-responses.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.stepfunctions-startexecution-without-default-method-responses.ts index 90d95435e6515..3789a98c3cdf4 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.stepfunctions-startexecution-without-default-method-responses.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.stepfunctions-startexecution-without-default-method-responses.ts @@ -3,7 +3,7 @@ import * as cdk from 'aws-cdk-lib'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import * as apigw from 'aws-cdk-lib/aws-apigateway'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-aws-apigateway-stepfunctions-startexecution-without-default-method-responses'); const api = new apigw.RestApi(stack, 'my-rest-api'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.stepfunctions-startexecution.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.stepfunctions-startexecution.ts index e4b94f845aaa2..f989f35e650ea 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.stepfunctions-startexecution.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.stepfunctions-startexecution.ts @@ -3,7 +3,7 @@ import * as cdk from 'aws-cdk-lib'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import * as apigw from 'aws-cdk-lib/aws-apigateway'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-aws-apigateway-stepfunctions-startexecution'); const api = new apigw.RestApi(stack, 'my-rest-api'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.usage-plan.multikey.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.usage-plan.multikey.ts index 7bb1b50b63424..5ac930fba6f43 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.usage-plan.multikey.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.usage-plan.multikey.ts @@ -13,7 +13,7 @@ class Test extends cdk.Stack { } } -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); new Test(app, 'test-apigateway-usageplan-multikey'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.usage-plan.sharing.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.usage-plan.sharing.ts index 89da5fc318d1a..4eed52b5670d1 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.usage-plan.sharing.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.usage-plan.sharing.ts @@ -27,7 +27,7 @@ class Import extends cdk.Stack { } } -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const test = new Create(app, 'test-apigateway-usageplan-create'); new Import(app, 'test-apigateway-usageplan-import', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2-authorizers/test/http/integ.iam.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2-authorizers/test/http/integ.iam.ts index a73aabb3bdf6f..516ac48d98808 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2-authorizers/test/http/integ.iam.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2-authorizers/test/http/integ.iam.ts @@ -14,7 +14,7 @@ class ExampleComIntegration extends apigatewayv2.HttpRouteIntegration { } } -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'IntegApiGatewayV2Iam'); const user = new iam.User(stack, 'User'); const userAccessKey = new iam.AccessKey(stack, 'UserAccess', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2-authorizers/test/http/integ.lambda.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2-authorizers/test/http/integ.lambda.ts index d6c9de8953bb3..2034954bf1966 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2-authorizers/test/http/integ.lambda.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2-authorizers/test/http/integ.lambda.ts @@ -13,6 +13,7 @@ import { HttpLambdaAuthorizer, HttpLambdaResponseType } from 'aws-cdk-lib/aws-ap */ const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2-authorizers/test/http/integ.user-pool.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2-authorizers/test/http/integ.user-pool.ts index 642629114a1fa..8b92e485746a9 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2-authorizers/test/http/integ.user-pool.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2-authorizers/test/http/integ.user-pool.ts @@ -14,6 +14,7 @@ import { HttpUserPoolAuthorizer } from 'aws-cdk-lib/aws-apigatewayv2-authorizers */ const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2-authorizers/test/websocket/integ.iam.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2-authorizers/test/websocket/integ.iam.ts index 68c2852d7e098..30c70e8c823cd 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2-authorizers/test/websocket/integ.iam.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2-authorizers/test/websocket/integ.iam.ts @@ -8,6 +8,7 @@ import * as integ from '@aws-cdk/integ-tests-alpha'; import { WebSocketIamAuthorizer } from 'aws-cdk-lib/aws-apigatewayv2-authorizers'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2-integrations/test/http/integ.add-subroute-integration.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2-integrations/test/http/integ.add-subroute-integration.ts index 60e49e3816cfd..d220cbaae6d54 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2-integrations/test/http/integ.add-subroute-integration.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2-integrations/test/http/integ.add-subroute-integration.ts @@ -5,6 +5,7 @@ import { App, Stack } from 'aws-cdk-lib'; import { HttpLambdaIntegration } from 'aws-cdk-lib/aws-apigatewayv2-integrations'; const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2-integrations/test/http/integ.alb.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2-integrations/test/http/integ.alb.ts index e87f19a2cf5fd..460bad06c46a1 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2-integrations/test/http/integ.alb.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2-integrations/test/http/integ.alb.ts @@ -7,7 +7,7 @@ import { HttpAlbIntegration } from 'aws-cdk-lib/aws-apigatewayv2-integrations'; import * as ec2 from 'aws-cdk-lib/aws-ec2'; import * as elbv2 from 'aws-cdk-lib/aws-elasticloadbalancingv2'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'integ-alb-integration'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2-integrations/test/http/integ.eventbridge.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2-integrations/test/http/integ.eventbridge.ts index ea817dff4f775..92a18744cc928 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2-integrations/test/http/integ.eventbridge.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2-integrations/test/http/integ.eventbridge.ts @@ -4,7 +4,7 @@ import { App, Stack } from 'aws-cdk-lib'; import { HttpEventBridgeIntegration } from 'aws-cdk-lib/aws-apigatewayv2-integrations'; import * as integ from '@aws-cdk/integ-tests-alpha'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'eventbridge-integration'); const bus = new events.EventBus(stack, 'Bus'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2-integrations/test/http/integ.http-proxy.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2-integrations/test/http/integ.http-proxy.ts index 34000e595d081..642ee785708ee 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2-integrations/test/http/integ.http-proxy.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2-integrations/test/http/integ.http-proxy.ts @@ -9,6 +9,7 @@ import { HttpUrlIntegration, HttpLambdaIntegration } from 'aws-cdk-lib/aws-apiga */ const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2-integrations/test/http/integ.lambda-permission-consolidation.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2-integrations/test/http/integ.lambda-permission-consolidation.ts index 0210eda452902..053af50972de2 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2-integrations/test/http/integ.lambda-permission-consolidation.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2-integrations/test/http/integ.lambda-permission-consolidation.ts @@ -6,6 +6,7 @@ import { HttpLambdaIntegration } from 'aws-cdk-lib/aws-apigatewayv2-integrations import { STANDARD_NODEJS_RUNTIME } from '../../../config'; const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2-integrations/test/http/integ.lambda-proxy.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2-integrations/test/http/integ.lambda-proxy.ts index 41db3d6179d9c..01c58d7fd4bbb 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2-integrations/test/http/integ.lambda-proxy.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2-integrations/test/http/integ.lambda-proxy.ts @@ -9,6 +9,7 @@ import { HttpLambdaIntegration } from 'aws-cdk-lib/aws-apigatewayv2-integrations */ const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2-integrations/test/http/integ.nlb.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2-integrations/test/http/integ.nlb.ts index 1f657bc1869a9..62e5f59925b0f 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2-integrations/test/http/integ.nlb.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2-integrations/test/http/integ.nlb.ts @@ -6,7 +6,7 @@ import { HttpNlbIntegration } from 'aws-cdk-lib/aws-apigatewayv2-integrations'; import type { AssertionsProvider } from '@aws-cdk/integ-tests-alpha'; import { IntegTest, ExpectedResult } from '@aws-cdk/integ-tests-alpha'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'integ-nlb-integration'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2-integrations/test/http/integ.service-discovery.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2-integrations/test/http/integ.service-discovery.ts index 8b399d869dcad..ca3e29ad0fc93 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2-integrations/test/http/integ.service-discovery.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2-integrations/test/http/integ.service-discovery.ts @@ -4,7 +4,7 @@ import * as servicediscovery from 'aws-cdk-lib/aws-servicediscovery'; import { App, CfnOutput, Stack } from 'aws-cdk-lib'; import { HttpServiceDiscoveryIntegration } from 'aws-cdk-lib/aws-apigatewayv2-integrations'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'integ-service-discovery-integration'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2-integrations/test/http/integ.sqs.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2-integrations/test/http/integ.sqs.ts index 21a2104de487f..6600965bcf829 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2-integrations/test/http/integ.sqs.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2-integrations/test/http/integ.sqs.ts @@ -4,7 +4,7 @@ import { App, Stack } from 'aws-cdk-lib'; import { HttpSqsIntegration } from 'aws-cdk-lib/aws-apigatewayv2-integrations'; import * as integ from '@aws-cdk/integ-tests-alpha'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'sqs-integration'); const queue = new sqs.Queue(stack, 'Queue'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2-integrations/test/http/integ.stepfunctions.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2-integrations/test/http/integ.stepfunctions.ts index 75c62de15d74d..4350b87ddc854 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2-integrations/test/http/integ.stepfunctions.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2-integrations/test/http/integ.stepfunctions.ts @@ -4,7 +4,7 @@ import { App, Stack } from 'aws-cdk-lib'; import { HttpStepFunctionsIntegration } from 'aws-cdk-lib/aws-apigatewayv2-integrations'; import * as integ from '@aws-cdk/integ-tests-alpha'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'stepfunctions-integration'); const stateMachine = new sfn.StateMachine(stack, 'RouteStateMachine', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2-integrations/test/websocket/integ.aws.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2-integrations/test/websocket/integ.aws.ts index c31f9aa5c5133..26a3181381e0e 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2-integrations/test/websocket/integ.aws.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2-integrations/test/websocket/integ.aws.ts @@ -10,7 +10,7 @@ import { IntegTest } from '@aws-cdk/integ-tests-alpha'; * 1. Verify manually that the integration has type "MOCK" */ -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'integ-aws-websocket-integration'); const table = new dynamodb.Table(stack, 'MyTable', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2-integrations/test/websocket/integ.lambda-connect-disconnect-trigger.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2-integrations/test/websocket/integ.lambda-connect-disconnect-trigger.ts index e2fb2d627f2a5..600e5a4b68d0b 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2-integrations/test/websocket/integ.lambda-connect-disconnect-trigger.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2-integrations/test/websocket/integ.lambda-connect-disconnect-trigger.ts @@ -7,6 +7,7 @@ import * as path from 'path'; import * as dynamodb from 'aws-cdk-lib/aws-dynamodb'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2-integrations/test/websocket/integ.lambda.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2-integrations/test/websocket/integ.lambda.ts index e766af4ca9380..09097071fef1b 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2-integrations/test/websocket/integ.lambda.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2-integrations/test/websocket/integ.lambda.ts @@ -12,6 +12,7 @@ import { WebSocketLambdaIntegration } from 'aws-cdk-lib/aws-apigatewayv2-integra */ const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2-integrations/test/websocket/integ.mock.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2-integrations/test/websocket/integ.mock.ts index 37e760937e3ac..b3e20e2b95d11 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2-integrations/test/websocket/integ.mock.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2-integrations/test/websocket/integ.mock.ts @@ -8,7 +8,7 @@ import { IntegTest } from '@aws-cdk/integ-tests-alpha'; * 1. Verify manually that the integration has type "MOCK" */ -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'integ-mock-websocket-integration'); const webSocketApi = new WebSocketApi(stack, 'mywsapi', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2-integrations/test/websocket/integ.route-response.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2-integrations/test/websocket/integ.route-response.ts index 2b135946fa858..7588fe6e3b7ee 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2-integrations/test/websocket/integ.route-response.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2-integrations/test/websocket/integ.route-response.ts @@ -3,7 +3,7 @@ import * as cdk from 'aws-cdk-lib'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import { WebSocketMockIntegration } from 'aws-cdk-lib/aws-apigatewayv2-integrations'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-aws-apigatewayv2-websockets'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2-integrations/test/websocket/integ.sqs.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2-integrations/test/websocket/integ.sqs.ts index 49d430bf4ebe2..9ef16ed781c0a 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2-integrations/test/websocket/integ.sqs.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2-integrations/test/websocket/integ.sqs.ts @@ -10,7 +10,7 @@ import { IntegTest } from '@aws-cdk/integ-tests-alpha'; * 1. Verify manually that the integration has type "AWS" */ -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'integ-aws-websocket-sqs-integration'); const sqsMessageQueue = new sqs.Queue(stack, 'MessageSQSQueue', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2/test/http/integ.api-domain-name.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2/test/http/integ.api-domain-name.ts index 03f856fa7f050..4af7b6fe31b7b 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2/test/http/integ.api-domain-name.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2/test/http/integ.api-domain-name.ts @@ -17,7 +17,7 @@ if (!hostedZoneName) throw new Error('For this test you must provide your own Ho const domainName = process.env.CDK_INTEG_DOMAIN_NAME ?? process.env.DOMAIN_NAME; if (!domainName) throw new Error('For this test you must provide your own DomainName as an env var "DOMAIN_NAME". See framework-integ/README.md for details.'); -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-aws-apigatewayv2-domain-name'); const hostedZone = route53.PublicHostedZone.fromHostedZoneAttributes(stack, 'HostedZone', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2/test/http/integ.api-dualstack.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2/test/http/integ.api-dualstack.ts index 08ab024540c2a..48f46ef85f709 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2/test/http/integ.api-dualstack.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2/test/http/integ.api-dualstack.ts @@ -3,7 +3,7 @@ import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import * as cdk from 'aws-cdk-lib'; import * as apigw from 'aws-cdk-lib/aws-apigatewayv2'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'DualStackHttpApiStack'); new apigw.HttpApi(stack, 'HttpApi', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2/test/http/integ.api.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2/test/http/integ.api.ts index e60b20380a4ac..86e1360a711cd 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2/test/http/integ.api.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2/test/http/integ.api.ts @@ -3,7 +3,7 @@ import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import * as cdk from 'aws-cdk-lib'; import * as apigw from 'aws-cdk-lib/aws-apigatewayv2'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-aws-apigatewayv2'); new apigw.HttpApi(stack, 'HttpApi', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2/test/http/integ.stage.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2/test/http/integ.stage.ts index 768bc8b21cce7..a82d9c2c0f2bf 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2/test/http/integ.stage.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2/test/http/integ.stage.ts @@ -5,7 +5,7 @@ import * as apigwv2 from 'aws-cdk-lib/aws-apigatewayv2'; import * as apigw from 'aws-cdk-lib/aws-apigateway'; import * as logs from 'aws-cdk-lib/aws-logs'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-aws-apigatewayv2-http-stage'); const testLogGroup = new logs.LogGroup(stack, 'MyLogGroup'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2/test/websocket/integ.api-apikey.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2/test/websocket/integ.api-apikey.ts index c9e887d1380ac..91d9e828985e7 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2/test/websocket/integ.api-apikey.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2/test/websocket/integ.api-apikey.ts @@ -2,7 +2,7 @@ import * as cdk from 'aws-cdk-lib'; import * as apigw from 'aws-cdk-lib/aws-apigatewayv2'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-aws-apigatewayv2-websockets'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2/test/websocket/integ.api-dualstack.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2/test/websocket/integ.api-dualstack.ts index 2fc5e25339ff9..f163e63dce515 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2/test/websocket/integ.api-dualstack.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2/test/websocket/integ.api-dualstack.ts @@ -3,7 +3,7 @@ import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import * as cdk from 'aws-cdk-lib'; import * as apigw from 'aws-cdk-lib/aws-apigatewayv2'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'DualStackWebsocketApiStack'); new apigw.WebSocketApi(stack, 'WebSocketApi', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2/test/websocket/integ.api-grant-invoke.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2/test/websocket/integ.api-grant-invoke.ts index 2392b07b5bcef..62188381c24fa 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2/test/websocket/integ.api-grant-invoke.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2/test/websocket/integ.api-grant-invoke.ts @@ -4,7 +4,7 @@ import * as cdk from 'aws-cdk-lib'; import * as apigw from 'aws-cdk-lib/aws-apigatewayv2'; import * as iam from 'aws-cdk-lib/aws-iam'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-aws-apigatewayv2'); const websocketApi = new apigw.WebSocketApi(stack, 'webocket-api'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2/test/websocket/integ.api.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2/test/websocket/integ.api.ts index 57ef29a81c083..57d4aff06b109 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2/test/websocket/integ.api.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2/test/websocket/integ.api.ts @@ -3,7 +3,7 @@ import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import * as cdk from 'aws-cdk-lib'; import * as apigw from 'aws-cdk-lib/aws-apigatewayv2'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-aws-apigatewayv2'); new apigw.WebSocketApi(stack, 'WebSocketApi'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2/test/websocket/integ.stage.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2/test/websocket/integ.stage.ts index 617709be0bd5c..31efb87f1f6f0 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2/test/websocket/integ.stage.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2/test/websocket/integ.stage.ts @@ -5,7 +5,7 @@ import * as apigwv2 from 'aws-cdk-lib/aws-apigatewayv2'; import * as apigw from 'aws-cdk-lib/aws-apigateway'; import * as logs from 'aws-cdk-lib/aws-logs'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-aws-apigatewayv2-websocket-stage'); const logGroup = new logs.LogGroup(stack, 'MyLogGroup', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2/test/websocket/integ.usage-plan.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2/test/websocket/integ.usage-plan.ts index a3eeb7b0259b7..aa037109504fc 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2/test/websocket/integ.usage-plan.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2/test/websocket/integ.usage-plan.ts @@ -2,7 +2,7 @@ import * as integ from '@aws-cdk/integ-tests-alpha'; import * as cdk from 'aws-cdk-lib'; import { WebSocketApi, WebSocketStage, UsagePlan, ApiKey, RateLimitedApiKey, Period } from 'aws-cdk-lib/aws-apigatewayv2'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-aws-apigatewayv2-websocket-usage-plan'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-appconfig/test/integ.application.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-appconfig/test/integ.application.ts index 8719c35194824..346959f1d10cc 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-appconfig/test/integ.application.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-appconfig/test/integ.application.ts @@ -3,7 +3,7 @@ import { Stack, App } from 'aws-cdk-lib'; import { FargateTaskDefinition } from 'aws-cdk-lib/aws-ecs'; import { Application } from 'aws-cdk-lib/aws-appconfig'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'aws-appconfig-application'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-appconfig/test/integ.configuration-kms.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-appconfig/test/integ.configuration-kms.ts index fa1ec9baba512..098fb48164cfb 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-appconfig/test/integ.configuration-kms.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-appconfig/test/integ.configuration-kms.ts @@ -8,7 +8,7 @@ import { } from 'aws-cdk-lib/aws-appconfig'; import * as path from 'path'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'aws-appconfig-configuration-kms'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-appconfig/test/integ.configuration.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-appconfig/test/integ.configuration.ts index 056744c0aacc4..a82c2de6eefd2 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-appconfig/test/integ.configuration.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-appconfig/test/integ.configuration.ts @@ -36,6 +36,7 @@ def handler(event, context): `; const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, '@aws-cdk/aws-codepipeline:defaultPipelineTypeToV2': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-appconfig/test/integ.deployment-strategy.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-appconfig/test/integ.deployment-strategy.ts index 00fbe9154e3a3..029cd037dd324 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-appconfig/test/integ.deployment-strategy.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-appconfig/test/integ.deployment-strategy.ts @@ -2,7 +2,7 @@ import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import { App, Duration, Stack } from 'aws-cdk-lib'; import { DeploymentStrategy, RolloutStrategy } from 'aws-cdk-lib/aws-appconfig'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'aws-appconfig-deployment-strategy'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-appconfig/test/integ.environment-grant.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-appconfig/test/integ.environment-grant.ts index ac01944f3c708..cff90d656c832 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-appconfig/test/integ.environment-grant.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-appconfig/test/integ.environment-grant.ts @@ -4,7 +4,7 @@ import * as iam from 'aws-cdk-lib/aws-iam'; import { App, Stack } from 'aws-cdk-lib'; import { Application, Environment } from 'aws-cdk-lib/aws-appconfig'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'aws-appconfig-environment-grant'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-appconfig/test/integ.environment.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-appconfig/test/integ.environment.ts index aa11622386de7..0b1bbc69cb9c8 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-appconfig/test/integ.environment.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-appconfig/test/integ.environment.ts @@ -4,7 +4,7 @@ import { Alarm, ComparisonOperator, CompositeAlarm, Metric, TreatMissingData } f import { Role, ServicePrincipal, Effect, PolicyStatement, PolicyDocument } from 'aws-cdk-lib/aws-iam'; import { Application, ConfigurationContent, DeletionProtectionCheck, DeploymentStrategy, Environment, HostedConfiguration, Monitor, RolloutStrategy } from 'aws-cdk-lib/aws-appconfig'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'aws-appconfig-environment'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-appconfig/test/integ.extension.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-appconfig/test/integ.extension.ts index 578c96fd0b44b..af2f063691ba3 100755 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-appconfig/test/integ.extension.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-appconfig/test/integ.extension.ts @@ -21,6 +21,7 @@ import { } from 'aws-cdk-lib/aws-appconfig'; const cdkApp = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-appconfig/test/integ.multi-config-env.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-appconfig/test/integ.multi-config-env.ts index bcacbd18d326e..b12b8c8080c1e 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-appconfig/test/integ.multi-config-env.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-appconfig/test/integ.multi-config-env.ts @@ -12,7 +12,7 @@ import { Application, ConfigurationContent, DeploymentStrategy, Environment, Hos * violating AppConfig's simultaneous deployment rule. */ -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'aws-appconfig-multi-config-env'); const application = new Application(stack, 'MyApplicationForEnv'); const env = new Environment(stack, 'MultiConfigEnvironment', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-appmesh/test/integ.mesh-port-match.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-appmesh/test/integ.mesh-port-match.ts index b879cc0a04176..601584474c09b 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-appmesh/test/integ.mesh-port-match.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-appmesh/test/integ.mesh-port-match.ts @@ -4,7 +4,7 @@ import * as cdk from 'aws-cdk-lib'; import * as appmesh from 'aws-cdk-lib/aws-appmesh'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; -export const app = new cdk.App(); +export const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'mesh-stack', {}); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-appmesh/test/integ.mesh.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-appmesh/test/integ.mesh.ts index 65fde7cad7f42..79cd55c37a8a3 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-appmesh/test/integ.mesh.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-appmesh/test/integ.mesh.ts @@ -3,7 +3,7 @@ import * as cloudmap from 'aws-cdk-lib/aws-servicediscovery'; import * as cdk from 'aws-cdk-lib'; import * as appmesh from 'aws-cdk-lib/aws-appmesh'; -export const app = new cdk.App(); +export const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'mesh-stack', {}); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.api-import.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.api-import.ts index ab74a2a84a64c..ea428ef822745 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.api-import.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.api-import.ts @@ -19,7 +19,7 @@ import * as appsync from 'aws-cdk-lib/aws-appsync'; * -- cdk destroy --app 'node integ.api-import.js' stack baseStack -- clean -- */ -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const baseStack = new cdk.Stack(app, 'baseStack'); const baseApi = new appsync.GraphqlApi(baseStack, 'baseApi', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-channel-namespace.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-channel-namespace.ts index 18cc52f88237b..a17fdf57373b6 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-channel-namespace.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-channel-namespace.ts @@ -89,6 +89,7 @@ class EventApiChannelNamespaceStack extends cdk.Stack { } const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-disable-introspection.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-disable-introspection.ts index b8c5d602d4647..33216f95b56c8 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-disable-introspection.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-disable-introspection.ts @@ -3,7 +3,7 @@ import * as cdk from 'aws-cdk-lib'; import * as appsync from 'aws-cdk-lib/aws-appsync'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'stack'); const api = new appsync.GraphqlApi(stack, 'DisableIntrospection', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-enhanced-metrics.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-enhanced-metrics.ts index 40a31032388c2..05c4f3e6b32b6 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-enhanced-metrics.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-enhanced-metrics.ts @@ -3,7 +3,7 @@ import * as cdk from 'aws-cdk-lib'; import * as appsync from 'aws-cdk-lib/aws-appsync'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'stack'); const api = new appsync.GraphqlApi(stack, 'EnhancedMetrics', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-event-api.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-event-api.ts index 33ae405fa9b9d..1bdf541950dcc 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-event-api.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-event-api.ts @@ -226,6 +226,7 @@ const domainName = process.env.CDK_INTEG_DOMAIN_NAME ?? process.env.DOMAIN_NAME; if (!domainName) throw new Error('For this test you must provide your own DomainName as an env var "DOMAIN_NAME". See framework-integ/README.md for details.'); const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-eventapi-api-key-auth.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-eventapi-api-key-auth.ts index 0dcb6a0cd94fd..94d7150f89f75 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-eventapi-api-key-auth.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-eventapi-api-key-auth.ts @@ -47,6 +47,7 @@ class EventApiApiKeyAuthStack extends cdk.Stack { } const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-eventapi-cognito-auth.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-eventapi-cognito-auth.ts index a4a038d2f3a1c..6bc3d12f63393 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-eventapi-cognito-auth.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-eventapi-cognito-auth.ts @@ -72,6 +72,7 @@ class EventApiCognitoAuthStack extends cdk.Stack { } const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-eventapi-dynamodb.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-eventapi-dynamodb.ts index f2fa57b31cca0..5fd16f3427f9b 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-eventapi-dynamodb.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-eventapi-dynamodb.ts @@ -56,6 +56,7 @@ class EventApiDynamoDBStack extends cdk.Stack { } const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-eventapi-eventbridge.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-eventapi-eventbridge.ts index d5110e252d062..f8d1e84434e02 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-eventapi-eventbridge.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-eventapi-eventbridge.ts @@ -62,6 +62,7 @@ class EventApiEventBridgeStack extends cdk.Stack { } const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-eventapi-grants.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-eventapi-grants.ts index 072d97180402c..48ce13789f2e8 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-eventapi-grants.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-eventapi-grants.ts @@ -64,6 +64,7 @@ class EventApiApiGrantStack extends cdk.Stack { } const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-eventapi-http.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-eventapi-http.ts index cab0137233825..998bcf2b2093c 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-eventapi-http.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-eventapi-http.ts @@ -63,6 +63,7 @@ class EventApiHttpStack extends cdk.Stack { } const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-eventapi-iam-auth.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-eventapi-iam-auth.ts index 50780fbd4f3b7..8c04cccc1429a 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-eventapi-iam-auth.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-eventapi-iam-auth.ts @@ -49,6 +49,7 @@ class EventApiIamAuthStack extends cdk.Stack { } const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-eventapi-lambda-auth.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-eventapi-lambda-auth.ts index 7cb986745727d..f1555be8d5545 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-eventapi-lambda-auth.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-eventapi-lambda-auth.ts @@ -76,6 +76,7 @@ class EventApiLambdaAuthStack extends cdk.Stack { } const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-eventapi-lambda-direct-async.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-eventapi-lambda-direct-async.ts index d7417a6cca938..f40eca5cac515 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-eventapi-lambda-direct-async.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-eventapi-lambda-direct-async.ts @@ -52,6 +52,7 @@ class EventApiLambdaDirectAsyncStack extends cdk.Stack { } const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-eventapi-lambda-direct.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-eventapi-lambda-direct.ts index 595dc1d911bb4..29a3b7f679f3d 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-eventapi-lambda-direct.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-eventapi-lambda-direct.ts @@ -51,6 +51,7 @@ class EventApiLambdaDirectStack extends cdk.Stack { } const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-eventapi-lambda.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-eventapi-lambda.ts index 6c64f5510cdbd..54efda50a2878 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-eventapi-lambda.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-eventapi-lambda.ts @@ -51,6 +51,7 @@ class EventApiLambdaStack extends cdk.Stack { } const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-eventapi-opensearch.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-eventapi-opensearch.ts index 909d0d6af3532..d51dca207b2f7 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-eventapi-opensearch.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-eventapi-opensearch.ts @@ -92,6 +92,7 @@ class EventApiOpenSearchStack extends cdk.Stack { } const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-eventapi-rds.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-eventapi-rds.ts index e0836682ed876..8ba9bae74cb56 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-eventapi-rds.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-eventapi-rds.ts @@ -134,6 +134,7 @@ class EventApiRdsStack extends cdk.Stack { } const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, '@aws-cdk/custom-resources:logApiResponseDataPropertyTrueDefault': true, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-eventbridge.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-eventbridge.ts index 38981563648df..95f215c5d002e 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-eventbridge.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-eventbridge.ts @@ -4,7 +4,7 @@ import * as appsync from 'aws-cdk-lib/aws-appsync'; import * as events from 'aws-cdk-lib/aws-events'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'stack'); const api = new appsync.GraphqlApi(stack, 'EventBridgeApi', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-function-max-batch-size.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-function-max-batch-size.ts index 780608e5352f3..5856cb9ebfedc 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-function-max-batch-size.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-function-max-batch-size.ts @@ -6,6 +6,7 @@ import * as appsync from 'aws-cdk-lib/aws-appsync'; import { STANDARD_NODEJS_RUNTIME } from '../../config'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-global-api.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-global-api.ts index a21be89983e6f..13ef28ca9442e 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-global-api.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-global-api.ts @@ -3,7 +3,7 @@ import * as cdk from 'aws-cdk-lib'; import * as appsync from 'aws-cdk-lib/aws-appsync'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'stack'); const api = new appsync.GraphqlApi(stack, 'GlobalApi', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-lambda.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-lambda.ts index 0ff2716d500c0..c2a7aadccc5a2 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-lambda.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-lambda.ts @@ -19,7 +19,7 @@ import { STANDARD_NODEJS_RUNTIME } from '../../config'; * -- bash verify.integ.appsync-lambda.sh --clean -- clean -- */ -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'stack'); const api = new appsync.GraphqlApi(stack, 'LambdaAPI', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-limit-configs.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-limit-configs.ts index ae590d143de21..008fa8ad3688f 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-limit-configs.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-limit-configs.ts @@ -3,7 +3,7 @@ import * as cdk from 'aws-cdk-lib'; import * as appsync from 'aws-cdk-lib/aws-appsync'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'stack'); const api = new appsync.GraphqlApi(stack, 'ApiLimitConfigs', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-logmetrics.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-logmetrics.ts index 9620a7abf31f5..f2855d24b0c91 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-logmetrics.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-logmetrics.ts @@ -5,7 +5,7 @@ import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import type { LogConfig } from 'aws-cdk-lib/aws-appsync'; import { GraphqlApi, SchemaFile } from 'aws-cdk-lib/aws-appsync'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'AppSyncLogMetrics'); const retentionTime = RetentionDays.ONE_WEEK; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-merged-api-arn-flag-enabled.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-merged-api-arn-flag-enabled.ts index 3d1e434e1a074..0612bba9db98d 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-merged-api-arn-flag-enabled.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-merged-api-arn-flag-enabled.ts @@ -4,6 +4,7 @@ import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import * as appsync from 'aws-cdk-lib/aws-appsync'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { [cdk.cx_api.APPSYNC_ENABLE_USE_ARN_IDENTIFIER_SOURCE_API_ASSOCIATION]: true, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-merged-api.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-merged-api.ts index 6c665e35bc725..7afab522ac9de 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-merged-api.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-merged-api.ts @@ -4,6 +4,7 @@ import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import * as appsync from 'aws-cdk-lib/aws-appsync'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { [cdk.cx_api.APPSYNC_ENABLE_USE_ARN_IDENTIFIER_SOURCE_API_ASSOCIATION]: false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-none.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-none.ts index 3aad620a3066a..05a6b171d5b79 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-none.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-none.ts @@ -3,7 +3,7 @@ import * as cdk from 'aws-cdk-lib'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import * as appsync from 'aws-cdk-lib/aws-appsync'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'stack'); const api = new appsync.GraphqlApi(stack, 'NoneAPI', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-owner-contact.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-owner-contact.ts index 730c488e33caa..5f1eb5dc99d04 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-owner-contact.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-owner-contact.ts @@ -3,7 +3,7 @@ import * as cdk from 'aws-cdk-lib'; import * as appsync from 'aws-cdk-lib/aws-appsync'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'stack'); const api = new appsync.GraphqlApi(stack, 'OwnerContact', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-private-api.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-private-api.ts index b5d2bc2df975d..0bacf5dd4eeb0 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-private-api.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-private-api.ts @@ -3,7 +3,7 @@ import * as cdk from 'aws-cdk-lib'; import * as appsync from 'aws-cdk-lib/aws-appsync'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'stack'); const api = new appsync.GraphqlApi(stack, 'PrivateApi', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-source-api-association.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-source-api-association.ts index ceeafeeb82943..95fa0d541f128 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-source-api-association.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-source-api-association.ts @@ -4,7 +4,7 @@ import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import * as appsync from 'aws-cdk-lib/aws-appsync'; import * as iam from 'aws-cdk-lib/aws-iam'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'Stack'); const firstApi = new appsync.GraphqlApi(stack, 'FirstSourceAPI', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.auth-apikey.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.auth-apikey.ts index 64f24259b7208..2aa610bd0226b 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.auth-apikey.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.auth-apikey.ts @@ -18,7 +18,7 @@ import { AuthorizationType, GraphqlApi, MappingTemplate, PrimaryKey, SchemaFile, * -- bash verify.integ.auth-apikey.sh --clean -- clean dependencies/stack -- */ -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'aws-appsync-integ'); const api = new GraphqlApi(stack, 'Api', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.environment-variables.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.environment-variables.ts index cd08eae1495a3..cf036b43024f9 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.environment-variables.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.environment-variables.ts @@ -3,7 +3,7 @@ import * as cdk from 'aws-cdk-lib'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import * as appsync from 'aws-cdk-lib/aws-appsync'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'AppSyncEnvironmentVariables'); const api = new appsync.GraphqlApi(stack, 'Api', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.graphql-elasticsearch.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.graphql-elasticsearch.ts index c7db6c47bf37d..0fc6cfe5bd2f4 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.graphql-elasticsearch.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.graphql-elasticsearch.ts @@ -4,7 +4,7 @@ import { User } from 'aws-cdk-lib/aws-iam'; import * as cdk from 'aws-cdk-lib'; import * as appsync from 'aws-cdk-lib/aws-appsync'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'appsync-elasticsearch'); const user = new User(stack, 'User'); const domain = new es.Domain(stack, 'Domain', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.graphql-field-level-log.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.graphql-field-level-log.ts index 722a6df3d054f..ed92a32eeafe8 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.graphql-field-level-log.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.graphql-field-level-log.ts @@ -3,7 +3,7 @@ import * as cdk from 'aws-cdk-lib'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import * as appsync from 'aws-cdk-lib/aws-appsync'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-appsync-graphql-field-level-log'); new appsync.GraphqlApi(stack, 'LambdaAPI', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.graphql-grant-imported-api.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.graphql-grant-imported-api.ts index 318a534953e32..cc6c01e8f744f 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.graphql-grant-imported-api.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.graphql-grant-imported-api.ts @@ -80,7 +80,7 @@ class ImportedStack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const originalStack = new OriginalStack(app, 'aws-appsync-integ'); const importedStack = new ImportedStack(app, 'imported-stack', { apiId: originalStack.apiId, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.graphql-iam.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.graphql-iam.ts index f2d7147384cb4..7f0e0cc42ec7f 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.graphql-iam.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.graphql-iam.ts @@ -32,6 +32,7 @@ import { STANDARD_NODEJS_RUNTIME } from '../../config'; */ const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.graphql-lambda-permission.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.graphql-lambda-permission.ts index df2f773e324d6..8967be3e0e5f5 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.graphql-lambda-permission.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.graphql-lambda-permission.ts @@ -11,7 +11,7 @@ const myFeatureFlag = { }; const app = new cdk.App({ - context: myFeatureFlag, + context: { myFeatureFlag, '@aws-cdk/core:disableGitSource': true }, }); const stack = new cdk.Stack(app, 'aws-graphql-lambda-permissions'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.graphql-opensearch.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.graphql-opensearch.ts index 51d05bbdbc6b4..3c2ea6ca98b2f 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.graphql-opensearch.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.graphql-opensearch.ts @@ -73,7 +73,7 @@ class OpensSearch23Stack extends cdk.Stack { } } -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const testCase = new OpensSearch23Stack(app); new IntegTest(app, 'opensearch-2.3-stack', { testCases: [testCase], diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.graphql-rds-serverlessv2.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.graphql-rds-serverlessv2.ts index 66d2372e2257a..d31fe0a5aeb69 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.graphql-rds-serverlessv2.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.graphql-rds-serverlessv2.ts @@ -124,7 +124,7 @@ class TestStack extends cdk.Stack { } } -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const testCase = new TestStack(app); new IntegTest(app, 'rds-serverlessV2-stack', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.graphql.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.graphql.ts index 754e3404ffe19..707f7735bdee1 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.graphql.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.graphql.ts @@ -26,7 +26,7 @@ import { * -- bash verify.integ.graphql.sh [apiKey] [url] -- shows query and mutation -- */ -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'aws-appsync-integ'); const userPool = new UserPool(stack, 'Pool', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.js-resolver.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.js-resolver.ts index cc8d56534c822..567579215c7db 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.js-resolver.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.js-resolver.ts @@ -7,6 +7,7 @@ import { IntegTest, ExpectedResult } from '@aws-cdk/integ-tests-alpha'; import * as appsync from 'aws-cdk-lib/aws-appsync'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.lambda-auth.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.lambda-auth.ts index 7c03f05d2fead..3a947a49f6911 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.lambda-auth.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.lambda-auth.ts @@ -56,6 +56,7 @@ const myFeatureFlag = { }; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: myFeatureFlag, }); const testCase = new GraphQLApiLambdaAuthStack(app); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.log-retention.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.log-retention.ts index 66e07dcf29aeb..119decd01f596 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.log-retention.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.log-retention.ts @@ -5,7 +5,7 @@ import { ExpectedResult, IntegTest } from '@aws-cdk/integ-tests-alpha'; import type { LogConfig } from 'aws-cdk-lib/aws-appsync'; import { GraphqlApi, SchemaFile } from 'aws-cdk-lib/aws-appsync'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'AppSyncIntegLogRetention'); const retentionTime = RetentionDays.ONE_WEEK; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling-hooktargets/test/integ.queue-hook.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling-hooktargets/test/integ.queue-hook.ts index e22ef2964c45c..9b0e03f61620a 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling-hooktargets/test/integ.queue-hook.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling-hooktargets/test/integ.queue-hook.ts @@ -7,7 +7,7 @@ import { IntegTest, ExpectedResult } from '@aws-cdk/integ-tests-alpha'; import type { Construct } from 'constructs'; import { QueueHook } from 'aws-cdk-lib/aws-autoscaling-hooktargets'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); class TestStack extends cdk.Stack { public readonly queueUrl: string; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.amazonlinux2.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.amazonlinux2.ts index 9726ab6f1c4f8..79f7116474a7c 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.amazonlinux2.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.amazonlinux2.ts @@ -3,7 +3,7 @@ import * as ec2 from 'aws-cdk-lib/aws-ec2'; import * as cdk from 'aws-cdk-lib'; import * as autoscaling from 'aws-cdk-lib/aws-autoscaling'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-autoscaling-integ'); const vpc = new ec2.Vpc(stack, 'VPC', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.asg-capacity-distribution-strategy.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.asg-capacity-distribution-strategy.ts index 1decbab6a6d54..b684ad8e6caaa 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.asg-capacity-distribution-strategy.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.asg-capacity-distribution-strategy.ts @@ -4,7 +4,7 @@ import * as cdk from 'aws-cdk-lib'; import * as integ from '@aws-cdk/integ-tests-alpha'; import * as autoscaling from 'aws-cdk-lib/aws-autoscaling'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-autoscaling-integ'); const vpc = new ec2.Vpc(stack, 'VPC', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.asg-capacity-rebalance.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.asg-capacity-rebalance.ts index 5284cbc9ac5a0..0957bfeac68e4 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.asg-capacity-rebalance.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.asg-capacity-rebalance.ts @@ -4,7 +4,7 @@ import * as cdk from 'aws-cdk-lib'; import * as integ from '@aws-cdk/integ-tests-alpha'; import * as autoscaling from 'aws-cdk-lib/aws-autoscaling'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-autoscaling-integ'); const vpc = new ec2.Vpc(stack, 'VPC', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.asg-deletion-protection.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.asg-deletion-protection.ts index 16af039b23614..71dbc69053cd6 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.asg-deletion-protection.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.asg-deletion-protection.ts @@ -4,7 +4,7 @@ import * as integ from '@aws-cdk/integ-tests-alpha'; import * as autoscaling from 'aws-cdk-lib/aws-autoscaling'; import { Template } from 'aws-cdk-lib/assertions'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stackName = 'aws-cdk-autoscaling-deletion-protection'; const asgStack = new cdk.Stack(app, stackName); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.asg-instance-lifecycle-policy.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.asg-instance-lifecycle-policy.ts index 02451075842ae..1a7d48742cc6b 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.asg-instance-lifecycle-policy.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.asg-instance-lifecycle-policy.ts @@ -4,7 +4,7 @@ import * as cdk from 'aws-cdk-lib'; import * as integ from '@aws-cdk/integ-tests-alpha'; import * as autoscaling from 'aws-cdk-lib/aws-autoscaling'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-autoscaling-instance-lifecycle-policy'); const vpc = new ec2.Vpc(stack, 'VPC', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.asg-instance-maintenance-policy.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.asg-instance-maintenance-policy.ts index fd0195c35d326..c305ea6169bc2 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.asg-instance-maintenance-policy.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.asg-instance-maintenance-policy.ts @@ -4,7 +4,7 @@ import * as cdk from 'aws-cdk-lib'; import * as integ from '@aws-cdk/integ-tests-alpha'; import * as autoscaling from 'aws-cdk-lib/aws-autoscaling'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-autoscaling-instance-maintenance-policy'); const vpc = new ec2.Vpc(stack, 'VPC', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.asg-instance-termination-policy.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.asg-instance-termination-policy.ts index 9965cf18f10c0..9722f16532b85 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.asg-instance-termination-policy.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.asg-instance-termination-policy.ts @@ -7,6 +7,7 @@ import * as lambda from 'aws-cdk-lib/aws-lambda'; import * as iam from 'aws-cdk-lib/aws-iam'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.asg-keypair.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.asg-keypair.ts index db29a7fbf9446..3d7dac0b5ce5c 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.asg-keypair.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.asg-keypair.ts @@ -5,7 +5,7 @@ import * as autoscaling from 'aws-cdk-lib/aws-autoscaling'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import { AUTOSCALING_GENERATE_LAUNCH_TEMPLATE } from 'aws-cdk-lib/cx-api'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-asg-integ'); stack.node.setContext(AUTOSCALING_GENERATE_LAUNCH_TEMPLATE, true); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.asg-lc.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.asg-lc.ts index f5e8e7a2582d7..936227eff7dc9 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.asg-lc.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.asg-lc.ts @@ -4,7 +4,7 @@ import * as cdk from 'aws-cdk-lib'; import * as autoscaling from 'aws-cdk-lib/aws-autoscaling'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-asg-integ'); const lt = new ec2.LaunchTemplate(stack, 'MainLT', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.asg-lt.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.asg-lt.ts index 86ff7ef05ce09..28b393c511197 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.asg-lt.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.asg-lt.ts @@ -5,7 +5,7 @@ import * as cdk from 'aws-cdk-lib'; import * as autoscaling from 'aws-cdk-lib/aws-autoscaling'; import { AUTOSCALING_GENERATE_LAUNCH_TEMPLATE } from 'aws-cdk-lib/cx-api'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-asg-integ'); stack.node.setContext(AUTOSCALING_GENERATE_LAUNCH_TEMPLATE, true); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.asg-step-scaling.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.asg-step-scaling.ts index 081d85b8c6ec8..6efa1d8caabaf 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.asg-step-scaling.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.asg-step-scaling.ts @@ -5,7 +5,7 @@ import * as cdk from 'aws-cdk-lib'; import * as integ from '@aws-cdk/integ-tests-alpha'; import * as autoscaling from 'aws-cdk-lib/aws-autoscaling'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'autoscaling-step-scaling'); const vpc = new ec2.Vpc(stack, 'VPC', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.asg-update-policy.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.asg-update-policy.ts index 8936cda67ce89..cc1d3ff0a3b68 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.asg-update-policy.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.asg-update-policy.ts @@ -4,7 +4,7 @@ import * as cdk from 'aws-cdk-lib'; import * as integ from '@aws-cdk/integ-tests-alpha'; import * as autoscaling from 'aws-cdk-lib/aws-autoscaling'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-autoscaling-update-policy'); const vpc = new ec2.Vpc(stack, 'VPC', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.asg-w-classic-loadbalancer.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.asg-w-classic-loadbalancer.ts index d89a4023b681a..668f08c002fdc 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.asg-w-classic-loadbalancer.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.asg-w-classic-loadbalancer.ts @@ -4,7 +4,7 @@ import * as elb from 'aws-cdk-lib/aws-elasticloadbalancing'; import * as cdk from 'aws-cdk-lib'; import * as autoscaling from 'aws-cdk-lib/aws-autoscaling'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-asg-integ'); const vpc = new ec2.Vpc(stack, 'VPC', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.asg-w-elbv2.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.asg-w-elbv2.ts index 337ea8f4dea77..de7d9f9ff4d9c 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.asg-w-elbv2.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.asg-w-elbv2.ts @@ -89,7 +89,7 @@ class ElbV2AsgAtgStack extends cdk.Stack { asg.attachToApplicationTargetGroup(atg2); } } -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); new integ.IntegTest(app, 'LambdaTest', { testCases: [ diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.capacity.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.capacity.ts index e27bf8049c1ee..d0405fb1c374b 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.capacity.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.capacity.ts @@ -3,7 +3,7 @@ import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import * as ec2 from 'aws-cdk-lib/aws-ec2'; import * as autoscaling from 'aws-cdk-lib/aws-autoscaling'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-autoscaling-integ'); const vpc = new ec2.Vpc(stack, 'VPC', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.custom-scaling.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.custom-scaling.ts index 50fdf5655ff0e..a0001768d5ddb 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.custom-scaling.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.custom-scaling.ts @@ -3,7 +3,7 @@ import * as ec2 from 'aws-cdk-lib/aws-ec2'; import * as cdk from 'aws-cdk-lib'; import * as autoscaling from 'aws-cdk-lib/aws-autoscaling'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-autoscaling-integ'); const vpc = new ec2.Vpc(stack, 'VPC', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.external-role.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.external-role.ts index 5e39c3f949caf..aa11082120f87 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.external-role.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.external-role.ts @@ -21,7 +21,7 @@ class TestStack extends cdk.Stack { } } -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); new TestStack(app, 'integ-iam-external-role'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.health-checks.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.health-checks.ts index 1fd6973a18414..b0672c926458a 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.health-checks.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.health-checks.ts @@ -47,7 +47,7 @@ export class TestStack extends cdk.Stack { } } -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new TestStack(app, 'integ-health-checks'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.role-target-hook.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.role-target-hook.ts index f7ee02b0fc555..bd236b0f25f69 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.role-target-hook.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.role-target-hook.ts @@ -72,7 +72,7 @@ export class TestStack extends cdk.Stack { } } -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); new TestStack(app, 'integ-role-target-hook'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.spot-instances.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.spot-instances.ts index 510cacde52ed8..abe2e05a0295c 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.spot-instances.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.spot-instances.ts @@ -3,7 +3,7 @@ import * as ec2 from 'aws-cdk-lib/aws-ec2'; import * as cdk from 'aws-cdk-lib'; import * as autoscaling from 'aws-cdk-lib/aws-autoscaling'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-autoscaling-integ'); const vpc = new ec2.Vpc(stack, 'VPC', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.step-scaling-with-cooldown.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.step-scaling-with-cooldown.ts index 02f6978dd4ba7..c3d8beb7d6ad0 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.step-scaling-with-cooldown.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.step-scaling-with-cooldown.ts @@ -5,7 +5,7 @@ import * as autoscaling from 'aws-cdk-lib/aws-autoscaling'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import { Metric } from 'aws-cdk-lib/aws-cloudwatch'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-autoscaling-integ'); const vpc = new ec2.Vpc(stack, 'VPC', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.warm-pool.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.warm-pool.ts index 664fac2324d40..c999d61d69366 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.warm-pool.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.warm-pool.ts @@ -8,7 +8,7 @@ import * as autoscaling from 'aws-cdk-lib/aws-autoscaling'; * * -- aws autoscaling describe-warm-pool --auto-scaling-group-name ASG has 0 and 'Stopped' as MinSize and PoolState, respectively. */ -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-autoscaling-integ'); const vpc = new ec2.Vpc(stack, 'VPC', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-backup/test/integ.backup-selection.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-backup/test/integ.backup-selection.ts index a0619366af069..9b851192d7172 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-backup/test/integ.backup-selection.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-backup/test/integ.backup-selection.ts @@ -57,7 +57,7 @@ class TestStack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new TestStack(app, 'cdk-backup-selection'); new IntegTest(app, 'BackupSelectionTest', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-backup/test/integ.backup.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-backup/test/integ.backup.ts index 37fb504f0596c..b39c6de4d8318 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-backup/test/integ.backup.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-backup/test/integ.backup.ts @@ -76,6 +76,6 @@ class TestStack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); new TestStack(app, 'cdk-backup'); app.synth(); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-batch/test/integ.batch-unique-name.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-batch/test/integ.batch-unique-name.ts index 4970dcdfdce41..4c795320b5e1a 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-batch/test/integ.batch-unique-name.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-batch/test/integ.batch-unique-name.ts @@ -5,7 +5,7 @@ import * as targets from 'aws-cdk-lib/aws-events-targets'; import { App, Size, Stack } from 'aws-cdk-lib/core'; import * as batch from 'aws-cdk-lib/aws-batch'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'stack'); const jobQueue = new batch.JobQueue(stack, 'MyQueue', { computeEnvironments: [ diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-batch/test/integ.ecs-exec-batch-job.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-batch/test/integ.ecs-exec-batch-job.ts index 5eace0bcb6576..f2140b468fc35 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-batch/test/integ.ecs-exec-batch-job.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-batch/test/integ.ecs-exec-batch-job.ts @@ -72,7 +72,7 @@ class EcsExecBatchStack extends cdk.Stack { } } -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new EcsExecBatchStack(app, 'EcsExecBatchStack'); const integ = new IntegTest(app, 'EcsExecBatchTest', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-batch/test/integ.ecs-job-definition.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-batch/test/integ.ecs-job-definition.ts index 42bd10cb5ebfc..25d5fb646f240 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-batch/test/integ.ecs-job-definition.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-batch/test/integ.ecs-job-definition.ts @@ -10,7 +10,7 @@ import { App, Duration, Size, Stack } from 'aws-cdk-lib'; import * as integ from '@aws-cdk/integ-tests-alpha'; import * as batch from 'aws-cdk-lib/aws-batch'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'stack'); const vpc = new Vpc(stack, 'vpc', { restrictDefaultSecurityGroup: false }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-batch/test/integ.eks-job-definition.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-batch/test/integ.eks-job-definition.ts index 659d63b7bd7eb..0e92471698fb4 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-batch/test/integ.eks-job-definition.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-batch/test/integ.eks-job-definition.ts @@ -3,7 +3,7 @@ import { App, Stack, Size } from 'aws-cdk-lib'; import * as integ from '@aws-cdk/integ-tests-alpha'; import * as batch from 'aws-cdk-lib/aws-batch'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'stack'); new batch.EksJobDefinition(stack, 'EksJobDefn', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-batch/test/integ.grants.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-batch/test/integ.grants.ts index cc95eddf67144..2d456a601d406 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-batch/test/integ.grants.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-batch/test/integ.grants.ts @@ -5,7 +5,7 @@ import * as iam from 'aws-cdk-lib/aws-iam'; import * as batch from 'aws-cdk-lib/aws-batch'; import * as ecs from 'aws-cdk-lib/aws-ecs'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'stack'); const vpc = new Vpc(stack, 'vpc', { restrictDefaultSecurityGroup: false }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-batch/test/integ.job-queue-job-state-time-limit-actions.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-batch/test/integ.job-queue-job-state-time-limit-actions.ts index 146edab2d652a..c404eab7bbff1 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-batch/test/integ.job-queue-job-state-time-limit-actions.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-batch/test/integ.job-queue-job-state-time-limit-actions.ts @@ -3,7 +3,7 @@ import { App, Stack, Duration } from 'aws-cdk-lib/core'; import * as integ from '@aws-cdk/integ-tests-alpha'; import * as batch from 'aws-cdk-lib/aws-batch'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'batch-stack-job-queue'); const vpc = new Vpc(stack, 'vpc'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-batch/test/integ.job-queue.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-batch/test/integ.job-queue.ts index 90792a8711066..07247bc62ddb3 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-batch/test/integ.job-queue.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-batch/test/integ.job-queue.ts @@ -3,7 +3,7 @@ import { App, Stack, Duration } from 'aws-cdk-lib/core'; import * as integ from '@aws-cdk/integ-tests-alpha'; import * as batch from 'aws-cdk-lib/aws-batch'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'stack'); const vpc = new Vpc(stack, 'vpc', { restrictDefaultSecurityGroup: false }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-batch/test/integ.managed-compute-environment-default-instance-class.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-batch/test/integ.managed-compute-environment-default-instance-class.ts index bd01b95c141da..2a6ee1b4bdd4e 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-batch/test/integ.managed-compute-environment-default-instance-class.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-batch/test/integ.managed-compute-environment-default-instance-class.ts @@ -3,7 +3,7 @@ import { App, Stack } from 'aws-cdk-lib'; import * as integ from '@aws-cdk/integ-tests-alpha'; import { ManagedEc2EcsComputeEnvironment, EcsMachineImageType, DefaultInstanceClass } from 'aws-cdk-lib/aws-batch'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'managed-compute-environment-default-instance-class'); const vpc = new ec2.Vpc(stack, 'vpc', { restrictDefaultSecurityGroup: false }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-batch/test/integ.managed-compute-environment.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-batch/test/integ.managed-compute-environment.ts index 546dc3fbbb613..bc213e16e865a 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-batch/test/integ.managed-compute-environment.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-batch/test/integ.managed-compute-environment.ts @@ -5,7 +5,7 @@ import { App, CfnParameter, Duration, Stack, Tags } from 'aws-cdk-lib'; import * as integ from '@aws-cdk/integ-tests-alpha'; import { AllocationStrategy, FargateComputeEnvironment, ManagedEc2EcsComputeEnvironment, EcsMachineImageType } from 'aws-cdk-lib/aws-batch'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'batch-stack'); const vpc = new ec2.Vpc(stack, 'vpc', { restrictDefaultSecurityGroup: false }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-batch/test/integ.multinode-job-definition.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-batch/test/integ.multinode-job-definition.ts index 461881c870400..d45e3355702ec 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-batch/test/integ.multinode-job-definition.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-batch/test/integ.multinode-job-definition.ts @@ -4,7 +4,7 @@ import { App, Size, Stack } from 'aws-cdk-lib'; import * as integ from '@aws-cdk/integ-tests-alpha'; import * as batch from 'aws-cdk-lib/aws-batch'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'stack'); new batch.MultiNodeJobDefinition(stack, 'SingleContainerMultiNodeJob', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-batch/test/integ.unmanaged-compute-environment.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-batch/test/integ.unmanaged-compute-environment.ts index 27ca5cb649002..5c77d63d3652c 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-batch/test/integ.unmanaged-compute-environment.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-batch/test/integ.unmanaged-compute-environment.ts @@ -3,7 +3,7 @@ import { App, Stack } from 'aws-cdk-lib'; import * as integ from '@aws-cdk/integ-tests-alpha'; import { UnmanagedComputeEnvironment } from 'aws-cdk-lib/aws-batch'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'batch-stack'); new UnmanagedComputeEnvironment(stack, 'minimalProps'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-certificatemanager/test/integ.certificate-key-algorithm.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-certificatemanager/test/integ.certificate-key-algorithm.ts index 379c7445bdfaa..84ea8cb08b2d2 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-certificatemanager/test/integ.certificate-key-algorithm.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-certificatemanager/test/integ.certificate-key-algorithm.ts @@ -16,7 +16,7 @@ if (!hostedZoneName) throw new Error('For this test you must provide your own Ho const domainName = process.env.CDK_INTEG_DOMAIN_NAME ?? process.env.DOMAIN_NAME; if (!domainName) throw new Error('For this test you must provide your own DomainName as an env var "DOMAIN_NAME". See framework-integ/README.md for details.'); -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'integ-key-algorithm'); const hostedZone = PublicHostedZone.fromHostedZoneAttributes(stack, 'HostedZone', { hostedZoneId, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-certificatemanager/test/integ.certificate-name.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-certificatemanager/test/integ.certificate-name.ts index 6de4bd3632e3f..6095bb5e22b02 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-certificatemanager/test/integ.certificate-name.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-certificatemanager/test/integ.certificate-name.ts @@ -15,7 +15,7 @@ if (!hostedZoneName) throw new Error('For this test you must provide your own Ho const domainName = process.env.CDK_INTEG_DOMAIN_NAME ?? process.env.DOMAIN_NAME; if (!domainName) throw new Error('For this test you must provide your own DomainName as an env var "DOMAIN_NAME". See framework-integ/README.md for details.'); -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'integ-certificate-name'); const hostedZone = PublicHostedZone.fromHostedZoneAttributes(stack, 'HostedZone', { hostedZoneId, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-certificatemanager/test/integ.dns-validated-certificate.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-certificatemanager/test/integ.dns-validated-certificate.ts index 217ae19572822..3002ae8c94568 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-certificatemanager/test/integ.dns-validated-certificate.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-certificatemanager/test/integ.dns-validated-certificate.ts @@ -27,6 +27,7 @@ const domainName = process.env.CDK_INTEG_DOMAIN_NAME ?? process.env.DOMAIN_NAME; if (!domainName) throw new Error('For this test you must provide your own DomainName as an env var "DOMAIN_NAME". See framework-integ/README.md for details.'); const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-chatbot/test/integ.chatbot-guardrails.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-chatbot/test/integ.chatbot-guardrails.ts index 118d28239b131..6de33a1ef31b6 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-chatbot/test/integ.chatbot-guardrails.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-chatbot/test/integ.chatbot-guardrails.ts @@ -17,7 +17,7 @@ class ChatbotGuardrailsInteg extends cdk.Stack { } } -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); new ChatbotGuardrailsInteg(app, 'ChatbotGuardrailsInteg'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-chatbot/test/integ.chatbot-logretention.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-chatbot/test/integ.chatbot-logretention.ts index 22e3e77a07fc1..497974d71f761 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-chatbot/test/integ.chatbot-logretention.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-chatbot/test/integ.chatbot-logretention.ts @@ -25,7 +25,7 @@ class ChatbotLogRetentionInteg extends cdk.Stack { } } -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); new ChatbotLogRetentionInteg(app, 'ChatbotLogRetentionInteg'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-chatbot/test/integ.chatbot-user-role-required.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-chatbot/test/integ.chatbot-user-role-required.ts index b04c6d4eeb73b..d376f0ed7215b 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-chatbot/test/integ.chatbot-user-role-required.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-chatbot/test/integ.chatbot-user-role-required.ts @@ -2,7 +2,7 @@ import * as cdk from 'aws-cdk-lib'; import * as chatbot from 'aws-cdk-lib/aws-chatbot'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const testStack = new cdk.Stack(app, 'ChatbotInteg'); new chatbot.SlackChannelConfiguration(testStack, 'MySlackChannel', { slackChannelConfigurationName: 'test-channel', diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-chatbot/test/integ.chatbot.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-chatbot/test/integ.chatbot.ts index f239892c766bf..75cdf5fd7f6b2 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-chatbot/test/integ.chatbot.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-chatbot/test/integ.chatbot.ts @@ -23,7 +23,7 @@ class ChatbotInteg extends cdk.Stack { } } -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); new ChatbotInteg(app, 'ChatbotInteg'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.core-cross-region-references.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.core-cross-region-references.ts index f7cda73ec1ca3..b159216f04f7e 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.core-cross-region-references.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.core-cross-region-references.ts @@ -8,6 +8,7 @@ import { Construct } from 'constructs'; // GIVEN const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, treeMetadata: false, }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.core-custom-resources-node-18.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.core-custom-resources-node-18.ts index a3010b5c8e338..3186ad3ed265d 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.core-custom-resources-node-18.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.core-custom-resources-node-18.ts @@ -49,7 +49,7 @@ class TestStack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new TestStack(app, 'custom-resource-test-node-18-stack'); new IntegTest(app, 'custom-resource-test-node-18-integ-test', { testCases: [stack], diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.core-custom-resources-service-timeout.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.core-custom-resources-service-timeout.ts index 5a38ca40c5043..e191bdc66b3e3 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.core-custom-resources-service-timeout.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.core-custom-resources-service-timeout.ts @@ -28,7 +28,7 @@ class TestStack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new TestStack(app, 'custom-resource-test-service-timeout'); new IntegTest(app, 'custom-resource-test-service-timeout-integ-test', { testCases: [stack], diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.core-custom-resources.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.core-custom-resources.ts index 381c5c2837aeb..f49338db2f157 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.core-custom-resources.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.core-custom-resources.ts @@ -49,6 +49,6 @@ class TestStack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); new TestStack(app, 'custom-resource-test'); app.synth(); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.core-deps.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.core-deps.ts index dd2c4a6dfb7c9..ed1cb82190364 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.core-deps.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.core-deps.ts @@ -66,6 +66,7 @@ class TestNestedStack extends Stack { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.nested-stack.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.nested-stack.ts index c299604b88b11..b1466e71b8f79 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.nested-stack.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.nested-stack.ts @@ -63,6 +63,7 @@ class MyTestStack extends Stack { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.nested-stacks-assets.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.nested-stacks-assets.ts index 55f254f19fd58..06c1d216b1af1 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.nested-stacks-assets.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.nested-stacks-assets.ts @@ -25,6 +25,7 @@ class ParentStack extends Stack { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.nested-stacks-multi-refs.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.nested-stacks-multi-refs.ts index b8852d919555c..7a93d9abebf64 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.nested-stacks-multi-refs.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.nested-stacks-multi-refs.ts @@ -1,7 +1,7 @@ import * as sns from 'aws-cdk-lib/aws-sns'; import { App, Fn, NestedStack, Stack } from 'aws-cdk-lib'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const top = new Stack(app, 'nested-stacks-multi-refs'); const level1 = new sns.Topic(top, 'Level1'); const nested1 = new NestedStack(top, 'Nested1'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.nested-stacks-multi.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.nested-stacks-multi.ts index 15830c53e6eeb..47f585aa4d958 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.nested-stacks-multi.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.nested-stacks-multi.ts @@ -20,7 +20,7 @@ class MyNestedStack extends NestedStack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'nested-stacks-multi'); new MyNestedStack(stack, 'NestedStack'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.nested-stacks-nested-export-to-sibling.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.nested-stacks-nested-export-to-sibling.ts index ff4df705b32ef..810b940355b4a 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.nested-stacks-nested-export-to-sibling.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.nested-stacks-nested-export-to-sibling.ts @@ -3,7 +3,7 @@ import * as sns from 'aws-cdk-lib/aws-sns'; import { App, Fn, NestedStack, Stack } from 'aws-cdk-lib'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack1 = new Stack(app, 'Stack1'); const stack2 = new Stack(app, 'Stack2'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.nested-stacks-refs1.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.nested-stacks-refs1.ts index 9ac2532c34770..4a3b5ce9377b7 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.nested-stacks-refs1.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.nested-stacks-refs1.ts @@ -33,7 +33,7 @@ class ParentStack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const producer = new ProducerStack(app, 'nest-stacks-refs1-producer'); new ParentStack(app, 'nested-stacks-refs1-parent-with-consumer', producer.topic); app.synth(); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.nested-stacks-refs2.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.nested-stacks-refs2.ts index aec519d5261b4..b68c57e6bc10c 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.nested-stacks-refs2.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.nested-stacks-refs2.ts @@ -36,7 +36,7 @@ class ConsumerStack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const parent = new ParentStack(app, 'nested-stacks-refs2-parent-with-producer'); new ConsumerStack(app, 'nested-stacks-refs2-consumer', parent.topic); app.synth(); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.nested-stacks-refs3.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.nested-stacks-refs3.ts index 27a0c3dc55c23..b5ecd407d8609 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.nested-stacks-refs3.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.nested-stacks-refs3.ts @@ -34,7 +34,7 @@ class ParentStack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); new ParentStack(app, 'nested-stacks-refs3-siblings'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.function-url-origin-ip-address-type.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.function-url-origin-ip-address-type.ts index 2673c6018d769..dac03e1c4c188 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.function-url-origin-ip-address-type.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.function-url-origin-ip-address-type.ts @@ -5,7 +5,7 @@ import { App, Stack } from 'aws-cdk-lib'; import { ExpectedResult, IntegTest } from '@aws-cdk/integ-tests-alpha'; import { OriginIpAddressType } from 'aws-cdk-lib/aws-cloudfront'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'FunctionUrlOriginIpAddressTypeStack'); // Lambda function diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.function-url-origin-oac-alias.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.function-url-origin-oac-alias.ts index 740b05ba1861e..3d25cd59fc8c4 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.function-url-origin-oac-alias.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.function-url-origin-oac-alias.ts @@ -5,6 +5,7 @@ import { ExpectedResult, IntegTest, Match } from '@aws-cdk/integ-tests-alpha'; import * as origins from 'aws-cdk-lib/aws-cloudfront-origins'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.function-url-origin-oac-custom.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.function-url-origin-oac-custom.ts index ff862c0765ebe..d7dea958dc34a 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.function-url-origin-oac-custom.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.function-url-origin-oac-custom.ts @@ -5,6 +5,7 @@ import { ExpectedResult, IntegTest, Match } from '@aws-cdk/integ-tests-alpha'; import * as origins from 'aws-cdk-lib/aws-cloudfront-origins'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.function-url-origin-oac.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.function-url-origin-oac.ts index 14c70afe21355..e82379927c0c9 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.function-url-origin-oac.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.function-url-origin-oac.ts @@ -5,6 +5,7 @@ import { ExpectedResult, IntegTest, Match } from '@aws-cdk/integ-tests-alpha'; import * as origins from 'aws-cdk-lib/aws-cloudfront-origins'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.function-url-origin.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.function-url-origin.ts index f3e04b1ecc399..67fc61bb85270 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.function-url-origin.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.function-url-origin.ts @@ -5,6 +5,7 @@ import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import * as origins from 'aws-cdk-lib/aws-cloudfront-origins'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.http-origin.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.http-origin.ts index e501c2ff24767..4aae23a33771f 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.http-origin.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.http-origin.ts @@ -3,7 +3,7 @@ import * as cdk from 'aws-cdk-lib'; import * as origins from 'aws-cdk-lib/aws-cloudfront-origins'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'cloudfront-http-origin'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.load-balancer-origin.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.load-balancer-origin.ts index 18afcfb3922fc..b1fded5bb0983 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.load-balancer-origin.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.load-balancer-origin.ts @@ -4,7 +4,7 @@ import * as elbv2 from 'aws-cdk-lib/aws-elasticloadbalancingv2'; import * as cdk from 'aws-cdk-lib'; import * as origins from 'aws-cdk-lib/aws-cloudfront-origins'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'cloudfront-load-balancer-origin'); const vpc = new ec2.Vpc(stack, 'Vpc', { maxAzs: 2, restrictDefaultSecurityGroup: false }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.origin-group-selection-criteria.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.origin-group-selection-criteria.ts index 54b1a011cb1dd..8bd54d27e3ac0 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.origin-group-selection-criteria.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.origin-group-selection-criteria.ts @@ -4,7 +4,7 @@ import * as origins from 'aws-cdk-lib/aws-cloudfront-origins'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import { CfnChannelGroup } from 'aws-cdk-lib/aws-mediapackagev2'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'cloudfront-origin-group-selection-criteria'); const channelGroup = new CfnChannelGroup(stack, 'cg1', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.origin-group.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.origin-group.ts index f9aedd3ab7384..66fc632940694 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.origin-group.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.origin-group.ts @@ -3,7 +3,7 @@ import * as s3 from 'aws-cdk-lib/aws-s3'; import * as cdk from 'aws-cdk-lib'; import * as origins from 'aws-cdk-lib/aws-cloudfront-origins'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'cloudfront-origin-group'); const bucket = new s3.Bucket(stack, 'Bucket', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.origin-response-completion-timeout.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.origin-response-completion-timeout.ts index 0392de3a880a7..6d228edd41d42 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.origin-response-completion-timeout.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.origin-response-completion-timeout.ts @@ -4,7 +4,7 @@ import * as lambda from 'aws-cdk-lib/aws-lambda'; import * as cdk from 'aws-cdk-lib'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'integ-cloudfront-response-completion-timeout'); const httpOrigin = new origins.HttpOrigin('example.com', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.rest-api-origin-custom-origin-path.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.rest-api-origin-custom-origin-path.ts index 0dc7bd9ed4305..fafd17df96d34 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.rest-api-origin-custom-origin-path.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.rest-api-origin-custom-origin-path.ts @@ -4,7 +4,7 @@ import * as cdk from 'aws-cdk-lib'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import * as origins from 'aws-cdk-lib/aws-cloudfront-origins'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'integ-cloudfront-rest-api-origin-custom-origin-path'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.rest-api-origin.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.rest-api-origin.ts index 12323aa227cf7..13a20fa771ed7 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.rest-api-origin.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.rest-api-origin.ts @@ -4,7 +4,7 @@ import * as cdk from 'aws-cdk-lib'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import * as origins from 'aws-cdk-lib/aws-cloudfront-origins'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'integ-cloudfront-rest-api-origin'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.s3-bucket-origin-default.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.s3-bucket-origin-default.ts index 584b3cb32de78..c4b72f43aa49e 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.s3-bucket-origin-default.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.s3-bucket-origin-default.ts @@ -4,7 +4,7 @@ import * as cdk from 'aws-cdk-lib'; import * as origins from 'aws-cdk-lib/aws-cloudfront-origins'; import { ExpectedResult, IntegTest, Match } from '@aws-cdk/integ-tests-alpha'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'cloudfront-s3-bucket-origin-default'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.s3-bucket-origin-oai.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.s3-bucket-origin-oai.ts index 4141d515a7f5c..7563ed6f06fbb 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.s3-bucket-origin-oai.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.s3-bucket-origin-oai.ts @@ -4,7 +4,7 @@ import * as cdk from 'aws-cdk-lib'; import * as origins from 'aws-cdk-lib/aws-cloudfront-origins'; import { ExpectedResult, IntegTest, Match } from '@aws-cdk/integ-tests-alpha'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'cloudfront-s3-bucket-origin-oai'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.s3-encrypted-bucket-origin-oac.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.s3-encrypted-bucket-origin-oac.ts index 9e3ed59b06b8c..27ce3a9b48a1b 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.s3-encrypted-bucket-origin-oac.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.s3-encrypted-bucket-origin-oac.ts @@ -8,6 +8,7 @@ import * as path from 'path'; import * as s3deploy from 'aws-cdk-lib/aws-s3-deployment'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.s3-origin-oac-list-access.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.s3-origin-oac-list-access.ts index 63d17f696dc05..bfdc7005dc992 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.s3-origin-oac-list-access.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.s3-origin-oac-list-access.ts @@ -4,7 +4,7 @@ import * as cdk from 'aws-cdk-lib'; import * as origins from 'aws-cdk-lib/aws-cloudfront-origins'; import { ExpectedResult, IntegTest } from '@aws-cdk/integ-tests-alpha'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'cloudfront-s3-bucket-origin-oac-list-access'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.s3-origin-oac-read-versioned.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.s3-origin-oac-read-versioned.ts index 2b37c33bbdb9c..8c370f901c4e9 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.s3-origin-oac-read-versioned.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.s3-origin-oac-read-versioned.ts @@ -3,7 +3,7 @@ import * as s3 from 'aws-cdk-lib/aws-s3'; import * as cdk from 'aws-cdk-lib'; import * as origins from 'aws-cdk-lib/aws-cloudfront-origins'; import { ExpectedResult, IntegTest, Match } from '@aws-cdk/integ-tests-alpha'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'cloudfront-s3-bucket-origin-oac-read-versioned-access'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.s3-origin-oac.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.s3-origin-oac.ts index 370da10074026..e8a1fd80b8d93 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.s3-origin-oac.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.s3-origin-oac.ts @@ -4,7 +4,7 @@ import * as cdk from 'aws-cdk-lib'; import * as origins from 'aws-cdk-lib/aws-cloudfront-origins'; import { ExpectedResult, IntegTest, Match } from '@aws-cdk/integ-tests-alpha'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'cloudfront-s3-bucket-origin-oac'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.s3-origin-oai.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.s3-origin-oai.ts index 22addbac4b88c..e079ccd067f58 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.s3-origin-oai.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.s3-origin-oai.ts @@ -3,7 +3,7 @@ import * as s3 from 'aws-cdk-lib/aws-s3'; import * as cdk from 'aws-cdk-lib'; import * as origins from 'aws-cdk-lib/aws-cloudfront-origins'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'cloudfront-s3-origin-oai'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.s3-origin.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.s3-origin.ts index 1cbfc500756f4..35ddc01cc08b2 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.s3-origin.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.s3-origin.ts @@ -3,7 +3,7 @@ import * as s3 from 'aws-cdk-lib/aws-s3'; import * as cdk from 'aws-cdk-lib'; import * as origins from 'aws-cdk-lib/aws-cloudfront-origins'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'cloudfront-s3-origin'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.s3-static-website-origin.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.s3-static-website-origin.ts index fa180e7f090ed..c73f9e31e26e0 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.s3-static-website-origin.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.s3-static-website-origin.ts @@ -4,7 +4,7 @@ import * as cdk from 'aws-cdk-lib'; import * as origins from 'aws-cdk-lib/aws-cloudfront-origins'; import { ExpectedResult, IntegTest, Match } from '@aws-cdk/integ-tests-alpha'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'cloudfront-s3-static-website-origin'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.spec-rest-api-origin-custom-origin.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.spec-rest-api-origin-custom-origin.ts index e9b89149b86ae..a15c834282936 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.spec-rest-api-origin-custom-origin.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.spec-rest-api-origin-custom-origin.ts @@ -4,7 +4,7 @@ import * as cdk from 'aws-cdk-lib'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import * as origins from 'aws-cdk-lib/aws-cloudfront-origins'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'integ-spec-rest-api-origin-custom-origin'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.vpc-origin.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.vpc-origin.ts index 2d79274a4e118..2ce327ec7ac27 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.vpc-origin.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.vpc-origin.ts @@ -8,6 +8,7 @@ import * as cdk from 'aws-cdk-lib'; import { ExpectedResult, IntegTest } from '@aws-cdk/integ-tests-alpha'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-bucket-logging.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-bucket-logging.ts index 07ea6b0801b14..168c2d3c3081a 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-bucket-logging.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-bucket-logging.ts @@ -2,7 +2,7 @@ import * as s3 from 'aws-cdk-lib/aws-s3'; import * as cdk from 'aws-cdk-lib'; import * as cloudfront from 'aws-cdk-lib/aws-cloudfront'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-cloudfront-custom'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-cross-region-cert.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-cross-region-cert.ts index 5e44c387cc2d2..2eba54e2ace2b 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-cross-region-cert.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-cross-region-cert.ts @@ -23,6 +23,7 @@ const domainName = process.env.CDK_INTEG_DOMAIN_NAME ?? process.env.DOMAIN_NAME; if (!domainName) throw new Error('For this test you must provide your own DomainName as an env var "DOMAIN_NAME". See framework-integ/README.md for details.'); const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, treeMetadata: false, }); const acmStack = new cdk.Stack(app, 'integ-acm-stack', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-custom-s3.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-custom-s3.ts index f0c4ea71ee3a1..ce95a380cbc07 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-custom-s3.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-custom-s3.ts @@ -32,7 +32,7 @@ class TestStack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); new IntegTest(app, 'integ-cloudfront-custom-s3', { testCases: [new TestStack(app, 'cloudfront-custom-s3-stack')], diffAssets: true, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-custom.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-custom.ts index 686c52f81632f..3ea3cc0e8edc0 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-custom.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-custom.ts @@ -2,7 +2,7 @@ import * as cdk from 'aws-cdk-lib'; import * as cloudfront from 'aws-cdk-lib/aws-cloudfront'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-cloudfront-custom'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-empty-root.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-empty-root.ts index 5cc3f2ddefa38..c2bf9731f6c0b 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-empty-root.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-empty-root.ts @@ -2,7 +2,7 @@ import * as cdk from 'aws-cdk-lib'; import * as cloudfront from 'aws-cdk-lib/aws-cloudfront'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-cloudfront-custom'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-failover.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-failover.ts index 2332982304638..cd368aa796ba2 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-failover.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-failover.ts @@ -2,7 +2,7 @@ import * as s3 from 'aws-cdk-lib/aws-s3'; import * as cdk from 'aws-cdk-lib'; import * as cloudfront from 'aws-cdk-lib/aws-cloudfront'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'integ-cloudfront-failover'); const dist = new cloudfront.CloudFrontWebDistribution(stack, 'Distribution', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-geo-restrictions.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-geo-restrictions.ts index d5572e256fcc5..020b2adbce898 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-geo-restrictions.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-geo-restrictions.ts @@ -2,7 +2,7 @@ import * as s3 from 'aws-cdk-lib/aws-s3'; import * as cdk from 'aws-cdk-lib'; import * as cloudfront from 'aws-cdk-lib/aws-cloudfront'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'cloudfront-geo-restrictions'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-ipv6-disabled.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-ipv6-disabled.ts index 23cb1204bc493..75d97866a08fd 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-ipv6-disabled.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-ipv6-disabled.ts @@ -3,7 +3,7 @@ import * as s3 from 'aws-cdk-lib/aws-s3'; import * as cdk from 'aws-cdk-lib'; import * as cloudfront from 'aws-cdk-lib/aws-cloudfront'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-cloudfront'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-key-group.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-key-group.ts index 9527149e72d5f..5e6e5350731f0 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-key-group.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-key-group.ts @@ -1,7 +1,7 @@ import * as cdk from 'aws-cdk-lib'; import * as cloudfront from 'aws-cdk-lib/aws-cloudfront'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-cloudfront-custom'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-lambda-association.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-lambda-association.ts index ced532109c581..ba0f7abb9c24e 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-lambda-association.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-lambda-association.ts @@ -11,6 +11,7 @@ import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import { STANDARD_NODEJS_RUNTIME } from '../../config'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-s3.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-s3.ts index 3d4b090770c22..135de47ce1e6a 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-s3.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-s3.ts @@ -2,7 +2,7 @@ import * as s3 from 'aws-cdk-lib/aws-s3'; import * as cdk from 'aws-cdk-lib'; import * as cloudfront from 'aws-cdk-lib/aws-cloudfront'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'integ-cloudfront-s3'); const bucket = new s3.Bucket(stack, 'Bucket', { removalPolicy: cdk.RemovalPolicy.DESTROY }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-security-policy.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-security-policy.ts index 2ba1501eeec3b..45b2e0a984d1c 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-security-policy.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-security-policy.ts @@ -7,7 +7,7 @@ import * as cdk from 'aws-cdk-lib'; import * as cloudfront from 'aws-cdk-lib/aws-cloudfront'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-cloudfront-custom'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-vpc-origin.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-vpc-origin.ts index 2cd6f149dc391..a9c1f7a646b7c 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-vpc-origin.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-vpc-origin.ts @@ -4,7 +4,7 @@ import * as ec2 from 'aws-cdk-lib/aws-ec2'; import * as cdk from 'aws-cdk-lib'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'integ-cloudfront-vpc-origin'); const vpc = new ec2.Vpc(stack, 'Vpc', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-with-webacl.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-with-webacl.ts index b2bdff67feca9..58a5053497f06 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-with-webacl.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-with-webacl.ts @@ -4,7 +4,7 @@ import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import { TestOrigin } from './test-origin'; import { CfnWebACL } from 'aws-cdk-lib/aws-wafv2'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-cloudfront-with-webacl', { env: { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront.ts index 964032b025e11..ddb2466f0def7 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront.ts @@ -3,7 +3,7 @@ import * as s3 from 'aws-cdk-lib/aws-s3'; import * as cdk from 'aws-cdk-lib'; import * as cloudfront from 'aws-cdk-lib/aws-cloudfront'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-cloudfront'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-additional-metrics.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-additional-metrics.ts index c31ad646799bb..4395700c4553c 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-additional-metrics.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-additional-metrics.ts @@ -36,7 +36,7 @@ class DistributionMetricsTestStack extends cdk.Stack { } } -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new DistributionMetricsTestStack(app, 'MyTestStack'); new IntegTest(app, 'MyTest', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-basic.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-basic.ts index 4b72fdb0d2638..765621ef51c97 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-basic.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-basic.ts @@ -4,7 +4,7 @@ import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import { TestOrigin } from './test-origin'; import * as cloudfront from 'aws-cdk-lib/aws-cloudfront'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'integ-distribution-basic'); const distribution = new cloudfront.Distribution(stack, 'Dist', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-default-metrics.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-default-metrics.ts index 6c0b4934bf811..b539478aa7c75 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-default-metrics.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-default-metrics.ts @@ -33,7 +33,7 @@ class DistributionMetricsTestStack extends cdk.Stack { } } -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new DistributionMetricsTestStack(app, 'MyTestStack'); new IntegTest(app, 'MyTest', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-extensive.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-extensive.ts index 89525f3ecc042..98b89cd3c77c5 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-extensive.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-extensive.ts @@ -2,7 +2,7 @@ import * as cdk from 'aws-cdk-lib'; import { TestOrigin } from './test-origin'; import * as cloudfront from 'aws-cdk-lib/aws-cloudfront'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'integ-distribution-extensive'); new cloudfront.Distribution(stack, 'MyDist', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-function-autopublish.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-function-autopublish.ts index 0abc60b135096..5238ced701b8f 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-function-autopublish.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-function-autopublish.ts @@ -2,7 +2,7 @@ import * as cdk from 'aws-cdk-lib'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import * as cloudfront from 'aws-cdk-lib/aws-cloudfront'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'integ-distribution-function-autopublish'); new cloudfront.Function(stack, 'function', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-function-default-runtime.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-function-default-runtime.ts index 10d314cf57ef7..6c7f8b3db4d56 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-function-default-runtime.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-function-default-runtime.ts @@ -4,6 +4,7 @@ import * as cloudfront from 'aws-cdk-lib/aws-cloudfront'; import { ExpectedResult, IntegTest, Match } from '@aws-cdk/integ-tests-alpha'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-cloudfront:defaultFunctionRuntimeV2_0': true, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-function-runtime.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-function-runtime.ts index fdd0a427398e0..e20776e47a930 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-function-runtime.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-function-runtime.ts @@ -3,7 +3,7 @@ import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import { TestOrigin } from './test-origin'; import * as cloudfront from 'aws-cdk-lib/aws-cloudfront'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'integ-distribution-function-runtime'); const cfFunctionRequest = new cloudfront.Function(stack, 'FunctionRequest', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-function.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-function.ts index cdab2510bad9f..0385fb6bfa000 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-function.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-function.ts @@ -3,7 +3,7 @@ import { TestOrigin } from './test-origin'; import * as cloudfront from 'aws-cdk-lib/aws-cloudfront'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'integ-distribution-function'); const cfFunction = new cloudfront.Function(stack, 'Function', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-grpc.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-grpc.ts index 9c8b89503a894..bf85ab154ca64 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-grpc.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-grpc.ts @@ -3,7 +3,7 @@ import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import { TestOrigin } from './test-origin'; import * as cloudfront from 'aws-cdk-lib/aws-cloudfront'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'integ-distribution-grpc'); const origin = new TestOrigin('www.example.com'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-http-version.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-http-version.ts index c8dc8d003f1de..94aecf07766ee 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-http-version.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-http-version.ts @@ -3,7 +3,7 @@ import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import { TestOrigin } from './test-origin'; import * as cloudfront from 'aws-cdk-lib/aws-cloudfront'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'integ-distribution-http-version'); new cloudfront.Distribution(stack, 'Http11', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-key-group.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-key-group.ts index aea198dc72b69..c91cf5243802d 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-key-group.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-key-group.ts @@ -2,7 +2,7 @@ import * as cdk from 'aws-cdk-lib'; import { TestOrigin } from './test-origin'; import * as cloudfront from 'aws-cdk-lib/aws-cloudfront'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'integ-distribution-key-group'); const publicKey = `-----BEGIN PUBLIC KEY----- MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAudf8/iNkQgdvjEdm6xYS diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-lambda-cross-region.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-lambda-cross-region.ts index 61b0c1e5b3e11..f6b68b11e9c94 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-lambda-cross-region.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-lambda-cross-region.ts @@ -11,7 +11,7 @@ import * as cloudfront from 'aws-cdk-lib/aws-cloudfront'; import { STANDARD_NODEJS_RUNTIME } from '../../config'; import * as integ from '@aws-cdk/integ-tests-alpha'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); // Hardcoded region is intentional — this test validates cross-region EdgeFunction // behavior (main stack in eu-west-1, edge lambdas auto-created in us-east-1). diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-lambda.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-lambda.ts index 63fdd9f58f4a3..153507c55c9fb 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-lambda.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-lambda.ts @@ -11,6 +11,7 @@ import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import { STANDARD_NODEJS_RUNTIME } from '../../config'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-logbucket.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-logbucket.ts index 1396a9a4cd5f4..d69e5f25e487b 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-logbucket.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-logbucket.ts @@ -3,7 +3,7 @@ import { TestOrigin } from './test-origin'; import * as cloudfront from 'aws-cdk-lib/aws-cloudfront'; import * as integ from '@aws-cdk/integ-tests-alpha'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'integ-distribution-logbucket'); const logBucket = new cdk.aws_s3.Bucket(stack, 'LogBucket', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-origin-id.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-origin-id.ts index 46ddf3082fc86..e63b28d76cad5 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-origin-id.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-origin-id.ts @@ -3,7 +3,7 @@ import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import { TestOrigin } from './test-origin'; import * as cloudfront from 'aws-cdk-lib/aws-cloudfront'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'integ-distribution-origin-id'); const origin = new TestOrigin('www.example.com', { originId: 'my-custom-origin-id' }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-origin-shield.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-origin-shield.ts index d62c0499c30fc..f17a81a759b82 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-origin-shield.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-origin-shield.ts @@ -3,7 +3,7 @@ import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import { TestOrigin } from './test-origin'; import * as cloudfront from 'aws-cdk-lib/aws-cloudfront'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'integ-distribution-origin-shield'); new cloudfront.Distribution(stack, 'Dist', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-policies.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-policies.ts index bfb5e2726633b..26a77d9d62092 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-policies.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-policies.ts @@ -4,7 +4,7 @@ import { TestOrigin } from './test-origin'; import * as cloudfront from 'aws-cdk-lib/aws-cloudfront'; import { OriginRequestPolicy } from 'aws-cdk-lib/aws-cloudfront'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'integ-distribution-policies'); const cachePolicy = new cloudfront.CachePolicy(stack, 'CachePolicy', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.function-key-value-store-association.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.function-key-value-store-association.ts index b11a3cc47c131..d8f871452c054 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.function-key-value-store-association.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.function-key-value-store-association.ts @@ -3,7 +3,7 @@ import * as cdk from 'aws-cdk-lib'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import * as cloudfront from 'aws-cdk-lib/aws-cloudfront'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'integ-function-key-value-store-association'); const store = new cloudfront.KeyValueStore(stack, 'TestKeyValueStore', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.key-value-store-frominline.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.key-value-store-frominline.ts index 00f8619173c7a..1df2560a258e8 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.key-value-store-frominline.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.key-value-store-frominline.ts @@ -2,7 +2,7 @@ import * as cdk from 'aws-cdk-lib'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import * as cloudfront from 'aws-cdk-lib/aws-cloudfront'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'integ-key-value-store-frominline'); new cloudfront.KeyValueStore(stack, 'TestKeyValueStore', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.key-value-store.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.key-value-store.ts index be6c2f8da3155..9e3299c0e0aef 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.key-value-store.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.key-value-store.ts @@ -3,7 +3,7 @@ import * as cdk from 'aws-cdk-lib'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import * as cloudfront from 'aws-cdk-lib/aws-cloudfront'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'integ-key-value-store'); new cloudfront.KeyValueStore(stack, 'TestKeyValueStore', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.realtime-log-config.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.realtime-log-config.ts index 0897e599028b3..02a19a30c3138 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.realtime-log-config.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.realtime-log-config.ts @@ -4,7 +4,7 @@ import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import * as cloudfront from 'aws-cdk-lib/aws-cloudfront'; import { Stream, StreamEncryption, StreamMode } from 'aws-cdk-lib/aws-kinesis'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'integ-realtime-config'); const role = new iam.Role(stack, 'Role', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudtrail/test/integ.cloudtrail-data-events-only.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudtrail/test/integ.cloudtrail-data-events-only.ts index a9d839fb99cf4..556f3c2664c27 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudtrail/test/integ.cloudtrail-data-events-only.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudtrail/test/integ.cloudtrail-data-events-only.ts @@ -5,6 +5,7 @@ import * as integ from '@aws-cdk/integ-tests-alpha'; import * as cloudtrail from 'aws-cdk-lib/aws-cloudtrail'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudtrail/test/integ.cloudtrail-defaults.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudtrail/test/integ.cloudtrail-defaults.ts index 750609fd9024a..723d4663313b8 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudtrail/test/integ.cloudtrail-defaults.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudtrail/test/integ.cloudtrail-defaults.ts @@ -2,7 +2,7 @@ import * as cdk from 'aws-cdk-lib'; import * as integ from '@aws-cdk/integ-tests-alpha'; import * as cloudtrail from 'aws-cdk-lib/aws-cloudtrail'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'integ-cloudtrail-defaults'); new cloudtrail.Trail(stack, 'Trail'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudtrail/test/integ.cloudtrail-insight.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudtrail/test/integ.cloudtrail-insight.ts index 168fe37ae329c..cce85564102ee 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudtrail/test/integ.cloudtrail-insight.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudtrail/test/integ.cloudtrail-insight.ts @@ -5,7 +5,7 @@ import * as integ from '@aws-cdk/integ-tests-alpha'; import * as cloudtrail from 'aws-cdk-lib/aws-cloudtrail'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'aws-cdk-cloudtrail-inshights-test'); const cloudTrailPrincipal = new iam.ServicePrincipal('cloudtrail.amazonaws.com'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudtrail/test/integ.cloudtrail-supplied-bucket.lit.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudtrail/test/integ.cloudtrail-supplied-bucket.lit.ts index f3bf6893a2cbe..7a464cf7769d7 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudtrail/test/integ.cloudtrail-supplied-bucket.lit.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudtrail/test/integ.cloudtrail-supplied-bucket.lit.ts @@ -7,6 +7,7 @@ import * as cloudtrail from 'aws-cdk-lib/aws-cloudtrail'; import { STANDARD_NODEJS_RUNTIME } from '../../config'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudtrail/test/integ.cloudtrail.lit.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudtrail/test/integ.cloudtrail.lit.ts index 44037a70c294a..7a764fc19f2f0 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudtrail/test/integ.cloudtrail.lit.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudtrail/test/integ.cloudtrail.lit.ts @@ -6,6 +6,7 @@ import * as cloudtrail from 'aws-cdk-lib/aws-cloudtrail'; import { STANDARD_NODEJS_RUNTIME } from '../../config'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch-actions/test/integ.lambda-alarm-action.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch-actions/test/integ.lambda-alarm-action.ts index 9b854d6121fc7..25fde9d6f2a53 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch-actions/test/integ.lambda-alarm-action.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch-actions/test/integ.lambda-alarm-action.ts @@ -82,6 +82,7 @@ app.synth(); const appWithFeatureFlag = new App({ context: { + '@aws-cdk/core:disableGitSource': true, [LAMBDA_PERMISSION_LOGICAL_ID_FOR_LAMBDA_ACTION]: true, '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch-actions/test/integ.lambda-alarm-multiple-stepscalingpolicy.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch-actions/test/integ.lambda-alarm-multiple-stepscalingpolicy.ts index d12f04657d626..79b9f4f530754 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch-actions/test/integ.lambda-alarm-multiple-stepscalingpolicy.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch-actions/test/integ.lambda-alarm-multiple-stepscalingpolicy.ts @@ -9,6 +9,7 @@ import { LAMBDA_PERMISSION_LOGICAL_ID_FOR_LAMBDA_ACTION } from 'aws-cdk-lib/cx-a const app = new App({ context: { + '@aws-cdk/core:disableGitSource': true, [LAMBDA_PERMISSION_LOGICAL_ID_FOR_LAMBDA_ACTION]: true, '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.alarm-and-dashboard.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.alarm-and-dashboard.ts index 0a8fa819ee964..51f51c9191910 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.alarm-and-dashboard.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.alarm-and-dashboard.ts @@ -8,7 +8,7 @@ import * as cdk from 'aws-cdk-lib'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import * as cloudwatch from 'aws-cdk-lib/aws-cloudwatch'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-cloudwatch-alarms'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.alarm-with-label.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.alarm-with-label.ts index b36aac60f5723..1e4f11a5c00d0 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.alarm-with-label.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.alarm-with-label.ts @@ -26,7 +26,7 @@ class AlarmWithLabelIntegrationTest extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); new IntegTest(app, 'cdk-cloudwatch-alarms-with-label-integ-test', { testCases: [new AlarmWithLabelIntegrationTest(app, 'AlarmWithLabelIntegrationTest')], diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.anomaly-detection-alarm.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.anomaly-detection-alarm.ts index 8ef9b01f9f548..77b7e90738eb2 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.anomaly-detection-alarm.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.anomaly-detection-alarm.ts @@ -2,7 +2,7 @@ import { App, Stack, Duration } from 'aws-cdk-lib'; import { ExpectedResult, IntegTest, Match } from '@aws-cdk/integ-tests-alpha'; import { Metric, ComparisonOperator, AnomalyDetectionAlarm, Alarm } from 'aws-cdk-lib/aws-cloudwatch'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'AnomalyDetectionAlarmTestStack'); // Create the test metric. Period will default to 300 seconds. diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.composite-alarm.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.composite-alarm.ts index 6b7a0b93647b8..ff8e4602667e2 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.composite-alarm.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.composite-alarm.ts @@ -74,7 +74,7 @@ class CompositeAlarmImportIntegrationTest extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); new IntegTest(app, 'cdk-integ-composite-alarm', { testCases: [ diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.dashboard-and-widget-with-start-and-end.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.dashboard-and-widget-with-start-and-end.ts index 68a291bee3b08..e5157e725a0d4 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.dashboard-and-widget-with-start-and-end.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.dashboard-and-widget-with-start-and-end.ts @@ -39,7 +39,7 @@ class TestStack extends Stack { dashboard.addWidgets(gaugeWidget); } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); new IntegTest(app, 'cdk-integ-dashboard-and-widget-with-start-and-end', { testCases: [new TestStack(app, 'DashboardAndWidgetWithStartAndEnd')], }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.dashboard-variables.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.dashboard-variables.ts index 67be181f65148..0553e60b0b8f9 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.dashboard-variables.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.dashboard-variables.ts @@ -59,7 +59,7 @@ class DashboardVariablesIntegrationTest extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); new IntegTest(app, 'cdk-integ-dashboard-with-variables', { testCases: [new DashboardVariablesIntegrationTest(app, 'DashboardVariablesIntegrationTest')], }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.dashboard-with-graphwidget-with-annotations.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.dashboard-with-graphwidget-with-annotations.ts index 40e39df6ab97a..6d9d753487243 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.dashboard-with-graphwidget-with-annotations.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.dashboard-with-graphwidget-with-annotations.ts @@ -74,7 +74,7 @@ class DashboardWithGraphWidgetWithAnnotationsIntegrationTest extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); new IntegTest(app, 'cdk-integ-dashboard-with-graph-widget-with-annotations', { testCases: [new DashboardWithGraphWidgetWithAnnotationsIntegrationTest(app, 'DashboardWithGraphWidgetWithAnnotationsIntegrationTest')], }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.dashboard-with-graphwidget-with-labels-visible.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.dashboard-with-graphwidget-with-labels-visible.ts index 0e85710f68f7f..de7d70ded3d78 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.dashboard-with-graphwidget-with-labels-visible.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.dashboard-with-graphwidget-with-labels-visible.ts @@ -87,7 +87,7 @@ class DashboardWithGraphWidgetWithLabelsVisibleIntegrationTest extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); new IntegTest(app, 'cdk-integ-dashboard-with-graph-widget-with-annotations', { testCases: [new DashboardWithGraphWidgetWithLabelsVisibleIntegrationTest(app, 'DashboardWithGraphWidgetWithLabelsVisibleIntegrationTest')], }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.dashboard-with-graphwidget-with-statistic.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.dashboard-with-graphwidget-with-statistic.ts index f82c9be61d45a..0357d397f5443 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.dashboard-with-graphwidget-with-statistic.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.dashboard-with-graphwidget-with-statistic.ts @@ -47,7 +47,7 @@ class DashboardWithGraphWidgetWithStatisticIntegrationTest extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); new IntegTest(app, 'cdk-integ-dashboard-with-graph-widget-with-statistic', { testCases: [new DashboardWithGraphWidgetWithStatisticIntegrationTest(app, 'DashboardWithGraphWidgetWithStatisticIntegrationTest')], }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.dashboard-with-metric-id-and-visible.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.dashboard-with-metric-id-and-visible.ts index 3efe27017146f..b70173ca136d9 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.dashboard-with-metric-id-and-visible.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.dashboard-with-metric-id-and-visible.ts @@ -65,7 +65,7 @@ class DashboardWithMetricIdAndVisibleIntegrationTest extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); new IntegTest(app, 'cdk-integ-dashboard-with-metric-id-and-visible', { testCases: [new DashboardWithMetricIdAndVisibleIntegrationTest(app, 'DashboardWithMetricIdAndVisibleIntegrationTest')], }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.dashboard.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.dashboard.ts index 1b85a7c43eebf..f63230e8aac1c 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.dashboard.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.dashboard.ts @@ -3,7 +3,7 @@ import * as integ from '@aws-cdk/integ-tests-alpha'; import * as cloudwatch from 'aws-cdk-lib/aws-cloudwatch'; import { TextWidgetBackground } from 'aws-cdk-lib/aws-cloudwatch'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'DashboardIntegrationTestStack'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.gauge-alarm.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.gauge-alarm.ts index 3d64dbb8bd0ca..041c56dc9a3f5 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.gauge-alarm.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.gauge-alarm.ts @@ -2,7 +2,7 @@ import * as cdk from 'aws-cdk-lib'; import * as integ from '@aws-cdk/integ-tests-alpha'; import * as cloudwatch from 'aws-cdk-lib/aws-cloudwatch'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'gauge-alarm'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.gauge-widget.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.gauge-widget.ts index 231f36be5ade6..4650d149b02cf 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.gauge-widget.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.gauge-widget.ts @@ -2,7 +2,7 @@ import * as cdk from 'aws-cdk-lib/core'; import * as integ from '@aws-cdk/integ-tests-alpha'; import * as cloudwatch from 'aws-cdk-lib/aws-cloudwatch'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'gauge-alarm'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.math-alarm-and-dashboard.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.math-alarm-and-dashboard.ts index 615d02148b91d..d7d7cff82fbe5 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.math-alarm-and-dashboard.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.math-alarm-and-dashboard.ts @@ -8,7 +8,7 @@ import * as cdk from 'aws-cdk-lib'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import * as cloudwatch from 'aws-cdk-lib/aws-cloudwatch'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-cloudwatch'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.metric-with-dimensions.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.metric-with-dimensions.ts index 96ee94b15492d..04d6c174850f2 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.metric-with-dimensions.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.metric-with-dimensions.ts @@ -4,7 +4,7 @@ import * as cdk from 'aws-cdk-lib'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import * as cloudwatch from 'aws-cdk-lib/aws-cloudwatch'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-cloudwatch-metric-dimensions'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.period-singlevaluewidget-and-dashboard.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.period-singlevaluewidget-and-dashboard.ts index abc62c1818e18..4d679b2682f07 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.period-singlevaluewidget-and-dashboard.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.period-singlevaluewidget-and-dashboard.ts @@ -22,7 +22,7 @@ class TestStack extends Stack { dashboard.addWidgets(widget); } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const testCase = new TestStack(app, 'aws-cdk-cloudwatch-singlevaluewidget-period-integ'); new IntegTest(app, 'singlevaluewidget-with-period', { testCases: [testCase], diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.search-expression.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.search-expression.ts index 5e825593ad108..81f9e297677aa 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.search-expression.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.search-expression.ts @@ -44,7 +44,7 @@ class SearchExpressionStack extends cdk.Stack { } } -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); new IntegTest(app, 'SearchExpressionIntegTest', { testCases: [new SearchExpressionStack(app, 'SearchExpressionStack')], diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.sparkline-singlevaluewidget-and-dashboard.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.sparkline-singlevaluewidget-and-dashboard.ts index fe0f6fc44da97..ef28cce2a8729 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.sparkline-singlevaluewidget-and-dashboard.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.sparkline-singlevaluewidget-and-dashboard.ts @@ -22,7 +22,7 @@ class TestStack extends Stack { dashboard.addWidgets(widget); } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const testCase = new TestStack(app, 'aws-cdk-cloudwatch-singlevaluewidget-sparkline-integ'); new IntegTest(app, 'singlevaluewidget-with-sparkline', { testCases: [testCase], diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.table-widget.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.table-widget.ts index d2cf61873252e..751e45f982552 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.table-widget.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.table-widget.ts @@ -3,7 +3,7 @@ import * as integ from '@aws-cdk/integ-tests-alpha'; import * as cloudwatch from 'aws-cdk-lib/aws-cloudwatch'; import { Color, TableThreshold } from 'aws-cdk-lib/aws-cloudwatch'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'TableWidget'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.asset-build-spec.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.asset-build-spec.ts index 84cb71f2a9051..0fd1e1b11d8e9 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.asset-build-spec.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.asset-build-spec.ts @@ -3,7 +3,7 @@ import * as cdk from 'aws-cdk-lib'; import { IntegTest, ExpectedResult } from '@aws-cdk/integ-tests-alpha'; import * as codebuild from 'aws-cdk-lib/aws-codebuild'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'CodeBuildAssetBuildSpecStack'); // Create a codebuild project using a local asset as the buildspec file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.aws-deep-learning-container-build-image.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.aws-deep-learning-container-build-image.ts index 04acd71e6f5ad..4e3e3b63e35bf 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.aws-deep-learning-container-build-image.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.aws-deep-learning-container-build-image.ts @@ -1,7 +1,7 @@ import * as core from 'aws-cdk-lib'; import * as codebuild from 'aws-cdk-lib/aws-codebuild'; -const app = new core.App(); +const app = new core.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new core.Stack(app, 'aws-deep-learning-container-build-image'); new codebuild.Project(stack, 'Project', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.breakpoint.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.breakpoint.ts index 80cf89a0c1ba3..e2415d55a751d 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.breakpoint.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.breakpoint.ts @@ -3,7 +3,7 @@ import * as cdk from 'aws-cdk-lib'; import * as integ from '@aws-cdk/integ-tests-alpha'; import * as codebuild from 'aws-cdk-lib/aws-codebuild'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-codebuild-breakpoint'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.caching.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.caching.ts index 8559a0532b853..7810ac38ce8e0 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.caching.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.caching.ts @@ -4,7 +4,7 @@ import * as cdk from 'aws-cdk-lib'; import * as codebuild from 'aws-cdk-lib/aws-codebuild'; import { Cache } from 'aws-cdk-lib/aws-codebuild'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-codebuild'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.defaults.lit.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.defaults.lit.ts index 6a4235f68abb4..ff292149be4d4 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.defaults.lit.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.defaults.lit.ts @@ -22,7 +22,7 @@ class TestStack extends cdk.Stack { } } -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); new TestStack(app, 'codebuild-default-project'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.docker-asset.lit.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.docker-asset.lit.ts index 8d30a45dabc24..5e711a03c74f6 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.docker-asset.lit.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.docker-asset.lit.ts @@ -27,7 +27,7 @@ class TestStack extends cdk.Stack { } } -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); new TestStack(app, 'test-codebuild-docker-asset'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.docker-registry-arm.lit.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.docker-registry-arm.lit.ts index aa4e6fd9790fc..e379895a4421b 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.docker-registry-arm.lit.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.docker-registry-arm.lit.ts @@ -29,7 +29,7 @@ class TestStack extends cdk.Stack { } } -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const codebuildarmdockerasset = new TestStack(app, 'test-codebuild-arm-docker-registry'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.docker-registry.lit.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.docker-registry.lit.ts index 535f2a2bba65b..62cff1396c756 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.docker-registry.lit.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.docker-registry.lit.ts @@ -30,7 +30,7 @@ class TestStack extends cdk.Stack { } } -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); new TestStack(app, 'test-codebuild-docker-asset'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.ecr.lit.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.ecr.lit.ts index 43ee2c075fe04..f0679e359ab5d 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.ecr.lit.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.ecr.lit.ts @@ -27,7 +27,7 @@ class TestStack extends cdk.Stack { } } -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); new TestStack(app, 'test-codebuild-docker-asset'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.github-org-webhook.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.github-org-webhook.ts index a589403934b9e..4f417b8ca2273 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.github-org-webhook.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.github-org-webhook.ts @@ -23,7 +23,7 @@ class GitHubOrgWebhookTestStack extends cdk.Stack { } } -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); new GitHubOrgWebhookTestStack(app, 'codebuild-github-org-webhook'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.github-webhook-batch.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.github-webhook-batch.ts index 903dc3c75074d..a51b18f16ca4e 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.github-webhook-batch.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.github-webhook-batch.ts @@ -22,7 +22,7 @@ class TestStack extends cdk.Stack { } } -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); new TestStack(app, 'test-codebuild-github-webhook-batch'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.github.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.github.ts index 3dfe1697d44f6..383c59e4b5c8a 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.github.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.github.ts @@ -17,7 +17,7 @@ class TestStack extends cdk.Stack { } } -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); new TestStack(app, 'test-codebuild-github'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-amazonlinux-image.lit.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-amazonlinux-image.lit.ts index 4e36de1576946..b3deab184eeb0 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-amazonlinux-image.lit.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-amazonlinux-image.lit.ts @@ -18,7 +18,7 @@ class AmazonLinuxImageTestStack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const codebuildamazonlinux25 = new AmazonLinuxImageTestStack(app, 'codebuild-project-amazonlinux-2-5'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-auto-retry-limit.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-auto-retry-limit.ts index a55b665cd746e..974d46e4b071c 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-auto-retry-limit.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-auto-retry-limit.ts @@ -5,7 +5,7 @@ import * as s3 from 'aws-cdk-lib/aws-s3'; import * as codebuild from 'aws-cdk-lib/aws-codebuild'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); class AutoRetryLimitStack extends Stack { constructor(scope: Construct, id: string) { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-bucket.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-bucket.ts index 19a60b87a8ecc..1e5037c06a11f 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-bucket.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-bucket.ts @@ -3,7 +3,7 @@ import * as s3 from 'aws-cdk-lib/aws-s3'; import * as cdk from 'aws-cdk-lib'; import * as codebuild from 'aws-cdk-lib/aws-codebuild'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-codebuild'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-buildspec-artifacts.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-buildspec-artifacts.ts index 5f8dfd67ef437..8d62285b8449c 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-buildspec-artifacts.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-buildspec-artifacts.ts @@ -2,7 +2,7 @@ import * as s3 from 'aws-cdk-lib/aws-s3'; import * as cdk from 'aws-cdk-lib'; import * as codebuild from 'aws-cdk-lib/aws-codebuild'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-codebuild-buildspec-artifact-name'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-docker-server.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-docker-server.ts index fe2d2ddb54c48..d282d31e0f1ae 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-docker-server.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-docker-server.ts @@ -3,7 +3,7 @@ import { Project, BuildSpec, DockerServerComputeType, Source, ComputeType } from import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import * as ec2 from 'aws-cdk-lib/aws-ec2'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'codebuild-project-docker-server'); const vpc = new ec2.Vpc(stack, 'Vpc', { restrictDefaultSecurityGroup: false }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-file-system-location.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-file-system-location.ts index a6d26fd04eaa5..7a94bb4194d0a 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-file-system-location.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-file-system-location.ts @@ -2,7 +2,7 @@ import * as ec2 from 'aws-cdk-lib/aws-ec2'; import * as cdk from 'aws-cdk-lib'; import * as codebuild from 'aws-cdk-lib/aws-codebuild'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-codebuild-file-system-locations'); const vpc = new ec2.Vpc(stack, 'MyVPC', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-fleet-attribute-based-compute.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-fleet-attribute-based-compute.ts index c7915dd3cb692..90f40e78d15c6 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-fleet-attribute-based-compute.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-fleet-attribute-based-compute.ts @@ -95,7 +95,7 @@ class FleetStack extends cdk.Stack { } } -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stacks = configurations.map( (config, index) => new FleetStack( app, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-fleet-custom-instance-type.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-fleet-custom-instance-type.ts index 09ac7fe5b710a..b009a1d6f34cc 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-fleet-custom-instance-type.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-fleet-custom-instance-type.ts @@ -93,7 +93,7 @@ class FleetStack extends cdk.Stack { } } -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stacks = configurations.map( (config, index) => new FleetStack( app, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-fleet-overflow-behavior.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-fleet-overflow-behavior.ts index 7a8e923f95767..a89e34120444d 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-fleet-overflow-behavior.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-fleet-overflow-behavior.ts @@ -32,7 +32,7 @@ class FleetStack extends cdk.Stack { } } -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack= new FleetStack( app, 'OverflowBehaviorFleetStack', diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-fleet.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-fleet.ts index d79cb28efd324..2074b63b27d52 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-fleet.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-fleet.ts @@ -13,7 +13,7 @@ import * as codebuild from 'aws-cdk-lib/aws-codebuild'; * and then running the integ test was the workaround used. */ -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-project-fleet'); const fleet = new codebuild.Fleet(stack, 'MyFleet', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-linux-arm-lambda-image.lit.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-linux-arm-lambda-image.lit.ts index 5884a3ea3fc62..837d0c96c9cbd 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-linux-arm-lambda-image.lit.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-linux-arm-lambda-image.lit.ts @@ -26,7 +26,7 @@ class LinuxArmLambdaImageTestStack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const codebuildLinuxLambda = new LinuxArmLambdaImageTestStack(app, 'codebuild-project-linux-arm-lambda'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-linux-arm.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-linux-arm.ts index 03634201239b8..553deed425dbf 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-linux-arm.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-linux-arm.ts @@ -39,7 +39,7 @@ class AmazonLinuxArmTestStack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const codebuildArm = new AmazonLinuxArmTestStack(app, 'codebuild-project-arm'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-linux-lambda-image.lit.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-linux-lambda-image.lit.ts index c0dda2b1ad59c..08f543e21ac2d 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-linux-lambda-image.lit.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-linux-lambda-image.lit.ts @@ -26,7 +26,7 @@ class LinuxLambdaImageTestStack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const codebuildLinuxLambda = new LinuxLambdaImageTestStack(app, 'codebuild-project-linux-lambda'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-logging.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-logging.ts index d9a072966ac1a..ded460521e16a 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-logging.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-logging.ts @@ -3,7 +3,7 @@ import * as s3 from 'aws-cdk-lib/aws-s3'; import * as cdk from 'aws-cdk-lib'; import * as codebuild from 'aws-cdk-lib/aws-codebuild'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-codebuild-logging'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-macos-fleet-base14.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-macos-fleet-base14.ts index 063744a0eb793..eb79670de2e4d 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-macos-fleet-base14.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-macos-fleet-base14.ts @@ -13,7 +13,7 @@ import * as codebuild from 'aws-cdk-lib/aws-codebuild'; * and then running the integ test was the workaround used. */ -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-project-macos-base14'); const fleet = new codebuild.Fleet(stack, 'MacOsFleet', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-macos-fleet-base15.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-macos-fleet-base15.ts index 901a88c710b80..4fa607d634307 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-macos-fleet-base15.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-macos-fleet-base15.ts @@ -13,7 +13,7 @@ import * as codebuild from 'aws-cdk-lib/aws-codebuild'; * and then running the integ test was the workaround used. */ -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-project-macos-base15'); const fleet = new codebuild.Fleet(stack, 'MacOsFleet', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-macos-fleet-base26.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-macos-fleet-base26.ts index b7419d0bacb80..5c4da4caf8b8a 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-macos-fleet-base26.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-macos-fleet-base26.ts @@ -13,7 +13,7 @@ import * as codebuild from 'aws-cdk-lib/aws-codebuild'; * and then running the integ test was the workaround used. */ -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-project-macos-base26'); const fleet = new codebuild.Fleet(stack, 'MacOsFleet', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-notification.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-notification.ts index 477ec7363867d..6bec1dc452f83 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-notification.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-notification.ts @@ -3,7 +3,7 @@ import * as sns from 'aws-cdk-lib/aws-sns'; import * as cdk from 'aws-cdk-lib'; import * as codebuild from 'aws-cdk-lib/aws-codebuild'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-codebuild-project-vpc'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-s3-cache.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-s3-cache.ts index ee71199ba2d81..54fbbfdfd1ea7 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-s3-cache.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-s3-cache.ts @@ -4,7 +4,7 @@ import * as cdk from 'aws-cdk-lib'; import * as codebuild from 'aws-cdk-lib/aws-codebuild'; import { ExpectedResult, IntegTest } from '@aws-cdk/integ-tests-alpha'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'codebuild-s3-cache-stack'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-secondary-sources-artifacts.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-secondary-sources-artifacts.ts index e3f22351aecb8..ed53963b6400e 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-secondary-sources-artifacts.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-secondary-sources-artifacts.ts @@ -2,7 +2,7 @@ import * as s3 from 'aws-cdk-lib/aws-s3'; import * as cdk from 'aws-cdk-lib'; import * as codebuild from 'aws-cdk-lib/aws-codebuild'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-codebuild-secondary-sources-artifacts'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-standard-image.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-standard-image.ts index 8d9d004bc8022..171f096bbaf2c 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-standard-image.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-standard-image.ts @@ -18,7 +18,7 @@ class ImageTestStack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); new IntegTest(app, 'integ-project-standard-images', { testCases: [ diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-visibility.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-visibility.ts index 3f5d2a2209686..9adf831c1bffc 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-visibility.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-visibility.ts @@ -5,7 +5,7 @@ import * as s3 from 'aws-cdk-lib/aws-s3'; import * as codebuild from 'aws-cdk-lib/aws-codebuild'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); class VisibilityTestStack extends Stack { constructor(scope: Construct, id: string) { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-vpc.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-vpc.ts index 9f05305eb0920..1bba351fb57c2 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-vpc.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-vpc.ts @@ -3,7 +3,7 @@ import * as ec2 from 'aws-cdk-lib/aws-ec2'; import * as cdk from 'aws-cdk-lib'; import * as codebuild from 'aws-cdk-lib/aws-codebuild'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-codebuild-project-vpc'); const vpc = new ec2.Vpc(stack, 'MyVPC', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-windows-2019-fleet.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-windows-2019-fleet.ts index 480156e889c95..ba5a7d6762066 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-windows-2019-fleet.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-windows-2019-fleet.ts @@ -14,7 +14,7 @@ import * as codebuild from 'aws-cdk-lib/aws-codebuild'; * and then running the integ test was the workaround used. */ -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-project-windows-2019-fleet'); const fleet = new codebuild.Fleet(stack, 'MyFleet', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-windows-2022-fleet.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-windows-2022-fleet.ts index df6a6dff2949b..212a9cb396b0d 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-windows-2022-fleet.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-windows-2022-fleet.ts @@ -14,7 +14,7 @@ import * as codebuild from 'aws-cdk-lib/aws-codebuild'; * and then running the integ test was the workaround used. */ -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-project-windows-2022-fleet'); const fleet = new codebuild.Fleet(stack, 'MyFleet', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-windows-image.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-windows-image.ts index 1eb77f669eb6c..87aa4234904bf 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-windows-image.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-windows-image.ts @@ -19,7 +19,7 @@ class ImageTestStack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); new IntegTest(app, 'integ-project-windows-images', { testCases: [ diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.report-group-delete-reports.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.report-group-delete-reports.ts index bb767bb5eb209..af0240138628c 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.report-group-delete-reports.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.report-group-delete-reports.ts @@ -2,7 +2,7 @@ import * as cdk from 'aws-cdk-lib'; import * as integ from '@aws-cdk/integ-tests-alpha'; import * as codebuild from 'aws-cdk-lib/aws-codebuild'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-report-group-delete-reports'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.report-group.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.report-group.ts index 837a869ed45b9..01f2414ccff8e 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.report-group.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.report-group.ts @@ -2,7 +2,7 @@ import * as cdk from 'aws-cdk-lib'; import * as integ from '@aws-cdk/integ-tests-alpha'; import * as codebuild from 'aws-cdk-lib/aws-codebuild'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-report-group'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codecommit/test/integ.codecommit-code-asset-zip.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codecommit/test/integ.codecommit-code-asset-zip.ts index 0b67bbdc42acd..52c43edeb4795 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codecommit/test/integ.codecommit-code-asset-zip.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-codecommit/test/integ.codecommit-code-asset-zip.ts @@ -3,7 +3,7 @@ import * as codecommit from 'aws-cdk-lib/aws-codecommit'; import { Code } from 'aws-cdk-lib/aws-codecommit'; import * as path from 'path'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-codecommit-repo-contents-zip-file'); new codecommit.Repository(stack, 'Repo', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codecommit/test/integ.codecommit-code-asset.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codecommit/test/integ.codecommit-code-asset.ts index d1ea9942efff4..963198e8f0603 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codecommit/test/integ.codecommit-code-asset.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-codecommit/test/integ.codecommit-code-asset.ts @@ -3,7 +3,7 @@ import * as codecommit from 'aws-cdk-lib/aws-codecommit'; import { Code } from 'aws-cdk-lib/aws-codecommit'; import * as path from 'path'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-codecommit-repo-contents-assets'); new codecommit.Repository(stack, 'Repo', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codecommit/test/integ.codecommit-events.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codecommit/test/integ.codecommit-events.ts index 9d67a54c38ef8..880d8c1fa86c2 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codecommit/test/integ.codecommit-events.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-codecommit/test/integ.codecommit-events.ts @@ -2,7 +2,7 @@ import * as sns from 'aws-cdk-lib/aws-sns'; import * as cdk from 'aws-cdk-lib'; import * as codecommit from 'aws-cdk-lib/aws-codecommit'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-codecommit-events'); const repo = new codecommit.Repository(stack, 'Repo', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codecommit/test/integ.repository-encryption.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codecommit/test/integ.repository-encryption.ts index 49ee3fced5dbc..b73995f60e5e8 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codecommit/test/integ.repository-encryption.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-codecommit/test/integ.repository-encryption.ts @@ -4,7 +4,7 @@ import * as codecommit from 'aws-cdk-lib/aws-codecommit'; import * as integ from '@aws-cdk/integ-tests-alpha'; import * as kms from 'aws-cdk-lib/aws-kms'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'RepositoryEncryption'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codecommit/test/integ.repository-notification.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codecommit/test/integ.repository-notification.ts index 38ceee1b79447..1b92c3a85053f 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codecommit/test/integ.repository-notification.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-codecommit/test/integ.repository-notification.ts @@ -4,7 +4,7 @@ import * as cdk from 'aws-cdk-lib'; import * as codecommit from 'aws-cdk-lib/aws-codecommit'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-codecommit'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codedeploy/test/ecs/integ.deployment-config.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codedeploy/test/ecs/integ.deployment-config.ts index a6ca520f4f94b..aad831982cb34 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codedeploy/test/ecs/integ.deployment-config.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-codedeploy/test/ecs/integ.deployment-config.ts @@ -2,7 +2,7 @@ import * as cdk from 'aws-cdk-lib'; import * as integ from '@aws-cdk/integ-tests-alpha'; import * as codedeploy from 'aws-cdk-lib/aws-codedeploy'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-codedeploy-ecs-config'); new codedeploy.EcsDeploymentConfig(stack, 'LinearConfig', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codedeploy/test/ecs/integ.deployment-group.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codedeploy/test/ecs/integ.deployment-group.ts index 35ddc79a0eb65..bec4a4a172ba0 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codedeploy/test/ecs/integ.deployment-group.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-codedeploy/test/ecs/integ.deployment-group.ts @@ -69,7 +69,7 @@ $ cdk destroy --app 'node integ.deployment-group.js' aws-cdk-codedeploy-ecs-dg ``` */ -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-codedeploy-ecs-dg'); // Network infrastructure diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codedeploy/test/lambda/integ.deployment-config.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codedeploy/test/lambda/integ.deployment-config.ts index 4a95afb3596ff..bc86f29769dd2 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codedeploy/test/lambda/integ.deployment-config.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-codedeploy/test/lambda/integ.deployment-config.ts @@ -3,6 +3,7 @@ import * as integ from '@aws-cdk/integ-tests-alpha'; import * as codedeploy from 'aws-cdk-lib/aws-codedeploy'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codedeploy/test/lambda/integ.deployment-group.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codedeploy/test/lambda/integ.deployment-group.ts index 483f9e5a3d191..9300d58060edd 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codedeploy/test/lambda/integ.deployment-group.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-codedeploy/test/lambda/integ.deployment-group.ts @@ -6,6 +6,7 @@ import * as codedeploy from 'aws-cdk-lib/aws-codedeploy'; import { STANDARD_NODEJS_RUNTIME } from '../../../config'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codedeploy/test/server/integ.deployment-group-multiple-load-balancers.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codedeploy/test/server/integ.deployment-group-multiple-load-balancers.ts index 6e16a1b81f95a..fd74ebe99e857 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codedeploy/test/server/integ.deployment-group-multiple-load-balancers.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-codedeploy/test/server/integ.deployment-group-multiple-load-balancers.ts @@ -6,7 +6,7 @@ import * as lb2 from 'aws-cdk-lib/aws-elasticloadbalancingv2'; import * as cdk from 'aws-cdk-lib'; import * as codedeploy from 'aws-cdk-lib/aws-codedeploy'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-codedeploy-server-dg-multi-lb'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codedeploy/test/server/integ.deployment-group-zonal-config.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codedeploy/test/server/integ.deployment-group-zonal-config.ts index 22a08ba25d07c..45ee77c1b550d 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codedeploy/test/server/integ.deployment-group-zonal-config.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-codedeploy/test/server/integ.deployment-group-zonal-config.ts @@ -6,7 +6,7 @@ import * as cdk from 'aws-cdk-lib'; import * as codedeploy from 'aws-cdk-lib/aws-codedeploy'; import * as integ from '@aws-cdk/integ-tests-alpha'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'Stack'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codedeploy/test/server/integ.deployment-group.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codedeploy/test/server/integ.deployment-group.ts index 00ce2f8c69e9d..cabf706be2871 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codedeploy/test/server/integ.deployment-group.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-codedeploy/test/server/integ.deployment-group.ts @@ -6,7 +6,7 @@ import * as cdk from 'aws-cdk-lib'; import * as codedeploy from 'aws-cdk-lib/aws-codedeploy'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-codedeploy-server-dg'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codeguruprofiler/test/integ.profiler-group-import-functions.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codeguruprofiler/test/integ.profiler-group-import-functions.ts index fe09f09593801..93716e025c910 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codeguruprofiler/test/integ.profiler-group-import-functions.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-codeguruprofiler/test/integ.profiler-group-import-functions.ts @@ -3,7 +3,7 @@ import { App, CfnOutput, Stack } from 'aws-cdk-lib'; import { ExpectedResult, IntegTest } from '@aws-cdk/integ-tests-alpha'; import { ProfilingGroup } from 'aws-cdk-lib/aws-codeguruprofiler'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'ProfilingGroupTestStack'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codeguruprofiler/test/integ.profiler-group.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codeguruprofiler/test/integ.profiler-group.ts index 02a378a6b1020..3a6b8f2a6835f 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codeguruprofiler/test/integ.profiler-group.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-codeguruprofiler/test/integ.profiler-group.ts @@ -22,7 +22,7 @@ class ProfilerGroupIntegrationTest extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); // AWS::CodeGuruProfiler::ProfilingGroup is not available in all regions. // Verify with: aws cloudformation describe-type --type RESOURCE --type-name AWS::CodeGuruProfiler::ProfilingGroup --region diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/cloudformation/integ.stacksets.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/cloudformation/integ.stacksets.ts index 8dfd294f46bbc..93f479f916dfc 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/cloudformation/integ.stacksets.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/cloudformation/integ.stacksets.ts @@ -78,6 +78,7 @@ export class StackSetPipelineStack extends Stack { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-codepipeline:defaultPipelineTypeToV2': false, '@aws-cdk/pipelines:reduceStageRoleTrustScope': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.cfn-template-from-repo.lit.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.cfn-template-from-repo.lit.ts index 381884bc0335d..a0583cbde6959 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.cfn-template-from-repo.lit.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.cfn-template-from-repo.lit.ts @@ -4,6 +4,7 @@ import * as cdk from 'aws-cdk-lib'; import * as cpactions from 'aws-cdk-lib/aws-codepipeline-actions'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-codepipeline:defaultPipelineTypeToV2': false, '@aws-cdk/pipelines:reduceStageRoleTrustScope': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.codepipeline-with-nested-stack.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.codepipeline-with-nested-stack.ts index 084b1042f2844..416692f14a311 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.codepipeline-with-nested-stack.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.codepipeline-with-nested-stack.ts @@ -83,6 +83,7 @@ export class PipelineCrossRegionStack extends cdk.NestedStack { } const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-codepipeline:defaultPipelineTypeToV2': false, '@aws-cdk/pipelines:reduceStageRoleTrustScope': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.cross-account-pipeline-cfn-action.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.cross-account-pipeline-cfn-action.ts index c0219bb18e801..815ca67aeb7ab 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.cross-account-pipeline-cfn-action.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.cross-account-pipeline-cfn-action.ts @@ -138,6 +138,7 @@ class PipelineStack extends Stack { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, '@aws-cdk/pipelines:reduceCrossAccountActionRoleTrustScope': true, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.cross-account-pipeline-sfn-action.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.cross-account-pipeline-sfn-action.ts index bcc75ad5df8cf..d8d8518b915ac 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.cross-account-pipeline-sfn-action.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.cross-account-pipeline-sfn-action.ts @@ -139,6 +139,7 @@ class PipelineStack extends Stack { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, '@aws-cdk/pipelines:reduceStageRoleTrustScope': true, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.lambda-deployed-through-codepipeline.lit.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.lambda-deployed-through-codepipeline.lit.ts index d97853cd119d9..94aaf6a453fe3 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.lambda-deployed-through-codepipeline.lit.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.lambda-deployed-through-codepipeline.lit.ts @@ -8,6 +8,7 @@ import * as codepipeline_actions from 'aws-cdk-lib/aws-codepipeline-actions'; import { STANDARD_NODEJS_RUNTIME } from '../../config'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-codepipeline:defaultPipelineTypeToV2': false, '@aws-cdk/pipelines:reduceStageRoleTrustScope': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.lambda-pipeline.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.lambda-pipeline.ts index fd22586bb794a..1ffbb4e4931d2 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.lambda-pipeline.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.lambda-pipeline.ts @@ -7,6 +7,7 @@ import * as cpactions from 'aws-cdk-lib/aws-codepipeline-actions'; import { STANDARD_NODEJS_RUNTIME } from '../../config'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, '@aws-cdk/aws-codepipeline:defaultPipelineTypeToV2': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-alexa-deploy.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-alexa-deploy.ts index fb1373ae3f906..fd14f4a1d8b93 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-alexa-deploy.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-alexa-deploy.ts @@ -5,6 +5,7 @@ import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import * as cpactions from 'aws-cdk-lib/aws-codepipeline-actions'; const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-codepipeline:defaultPipelineTypeToV2': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-cfn-cross-region.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-cfn-cross-region.ts index 7df6b133f270c..90b02b7d5b65a 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-cfn-cross-region.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-cfn-cross-region.ts @@ -4,6 +4,7 @@ import * as cdk from 'aws-cdk-lib'; import * as cpactions from 'aws-cdk-lib/aws-codepipeline-actions'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-codepipeline:defaultPipelineTypeToV2': false, '@aws-cdk/pipelines:reduceStageRoleTrustScope': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-cfn-with-action-role.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-cfn-with-action-role.ts index 6342465687250..8182444d811d7 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-cfn-with-action-role.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-cfn-with-action-role.ts @@ -5,6 +5,7 @@ import * as cdk from 'aws-cdk-lib'; import * as cpactions from 'aws-cdk-lib/aws-codepipeline-actions'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-codepipeline:defaultPipelineTypeToV2': false, '@aws-cdk/pipelines:reduceStageRoleTrustScope': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-cfn.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-cfn.ts index 496cbedf8d0c6..d4de1cd9f5a62 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-cfn.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-cfn.ts @@ -5,6 +5,7 @@ import * as cdk from 'aws-cdk-lib'; import * as cpactions from 'aws-cdk-lib/aws-codepipeline-actions'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-codepipeline:defaultPipelineTypeToV2': false, '@aws-cdk/pipelines:reduceStageRoleTrustScope': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-code-build-batch.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-code-build-batch.ts index d1897f4561fd9..f7e09bd5e7777 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-code-build-batch.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-code-build-batch.ts @@ -6,6 +6,7 @@ import * as cdk from 'aws-cdk-lib'; import * as cpactions from 'aws-cdk-lib/aws-codepipeline-actions'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-codepipeline:defaultPipelineTypeToV2': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-code-build-multiple-inputs-outputs.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-code-build-multiple-inputs-outputs.ts index cd2b2d3404a39..e9334e83d744f 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-code-build-multiple-inputs-outputs.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-code-build-multiple-inputs-outputs.ts @@ -6,6 +6,7 @@ import * as cdk from 'aws-cdk-lib'; import * as cpactions from 'aws-cdk-lib/aws-codepipeline-actions'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-codepipeline:defaultPipelineTypeToV2': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-code-commit-build.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-code-commit-build.ts index 4976e01e238b4..ace53bd1b6820 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-code-commit-build.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-code-commit-build.ts @@ -7,6 +7,7 @@ import * as cpactions from 'aws-cdk-lib/aws-codepipeline-actions'; /* eslint-disable @stylistic/quote-props */ const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-codepipeline:defaultPipelineTypeToV2': false, '@aws-cdk/pipelines:reduceStageRoleTrustScope': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-code-commit-custom-event.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-code-commit-custom-event.ts index 6355bee04d87c..6077a1f722131 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-code-commit-custom-event.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-code-commit-custom-event.ts @@ -15,7 +15,7 @@ const defaultFeatureFlag = { [PIPELINE_REDUCE_STAGE_ROLE_TRUST_SCOPE]: false, '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }; -const app = new cdk.App({ postCliContext: defaultFeatureFlag }); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: defaultFeatureFlag }); const stack = new cdk.Stack(app, 'aws-cdk-codepipeline-codecommit-custom-event'); const branch = 'test-branch'; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-code-commit-main.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-code-commit-main.ts index 5a42c9b2c781f..9fae742a41d5a 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-code-commit-main.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-code-commit-main.ts @@ -10,7 +10,7 @@ const defaultFeatureFlag = { [CODEPIPELINE_DEFAULT_PIPELINE_TYPE_TO_V2]: false, [PIPELINE_REDUCE_STAGE_ROLE_TRUST_SCOPE]: false, }; -const app = new cdk.App({ postCliContext: defaultFeatureFlag }); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: defaultFeatureFlag }); const stack = new cdk.Stack(app, 'aws-cdk-codepipeline-codecommit-main'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-code-commit.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-code-commit.ts index 8cb20ee2c28d3..edb34c54a0c4c 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-code-commit.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-code-commit.ts @@ -9,7 +9,7 @@ const defaultFeatureFlag = { [CODEPIPELINE_DEFAULT_PIPELINE_TYPE_TO_V2]: false, [PIPELINE_REDUCE_STAGE_ROLE_TRUST_SCOPE]: false, }; -const app = new cdk.App({ postCliContext: defaultFeatureFlag }); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: defaultFeatureFlag }); const stack = new cdk.Stack(app, 'aws-cdk-codepipeline-codecommit'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-code-deploy-ecs.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-code-deploy-ecs.ts index 7e47958e40f0e..4651222cf93c4 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-code-deploy-ecs.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-code-deploy-ecs.ts @@ -5,6 +5,7 @@ import * as cdk from 'aws-cdk-lib'; import * as cpactions from 'aws-cdk-lib/aws-codepipeline-actions'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-codepipeline:defaultPipelineTypeToV2': false, '@aws-cdk/pipelines:reduceStageRoleTrustScope': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-code-deploy.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-code-deploy.ts index d855bc3e0fa72..81b01bff57a17 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-code-deploy.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-code-deploy.ts @@ -5,6 +5,7 @@ import * as cdk from 'aws-cdk-lib'; import * as cpactions from 'aws-cdk-lib/aws-codepipeline-actions'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-codepipeline:defaultPipelineTypeToV2': false, '@aws-cdk/pipelines:reduceStageRoleTrustScope': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-commands.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-commands.ts index f038d4f67fa4e..2931645ab4729 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-commands.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-commands.ts @@ -9,6 +9,7 @@ import * as path from 'path'; import { BucketDeployment, Source } from 'aws-cdk-lib/aws-s3-deployment'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, '@aws-cdk/pipelines:reduceStageRoleTrustScope': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-ec2-deploy-ssm-managed.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-ec2-deploy-ssm-managed.ts index 7a2bf8da257f4..16a88bd7fefcd 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-ec2-deploy-ssm-managed.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-ec2-deploy-ssm-managed.ts @@ -9,7 +9,7 @@ import * as cpactions from 'aws-cdk-lib/aws-codepipeline-actions'; import { ExpectedResult, IntegTest } from '@aws-cdk/integ-tests-alpha'; import * as path from 'path'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-codepipeline-ec2-deploy-ssm-managed-node'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-ec2-deploy.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-ec2-deploy.ts index f7a51a5247f96..191154b46785a 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-ec2-deploy.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-ec2-deploy.ts @@ -9,7 +9,7 @@ import * as cpactions from 'aws-cdk-lib/aws-codepipeline-actions'; import { ExpectedResult, IntegTest } from '@aws-cdk/integ-tests-alpha'; import * as path from 'path'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-codepipeline-ec2-deploy'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-ecr-build-and-publish-private.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-ecr-build-and-publish-private.ts index 680598f277e0b..0915a4822feef 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-ecr-build-and-publish-private.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-ecr-build-and-publish-private.ts @@ -15,7 +15,7 @@ import { ExpectedResult, IntegTest, Match } from '@aws-cdk/integ-tests-alpha'; * 6. After running the integ test, replace the value of `CONNECTION_ARN`, `REPO_OWNER`, and `REPO_NAME` written in the file generated in CloudAssembly (integ.THIS_FILE.js.snapshot/*) with the string `MOCK` */ -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'codepipeline-ecr-build-and-publish-private'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-ecr-build-and-publish-public.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-ecr-build-and-publish-public.ts index ade982ef6cc2c..a3c7dd482d830 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-ecr-build-and-publish-public.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-ecr-build-and-publish-public.ts @@ -15,7 +15,7 @@ import { ExpectedResult, IntegTest, Match } from '@aws-cdk/integ-tests-alpha'; * 6. After running the integ test, replace the value of `CONNECTION_ARN`, `REPO_OWNER`, and `REPO_NAME` written in the file generated in CloudAssembly (integ.THIS_FILE.js.snapshot/*) with the string `MOCK` */ -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'codepipeline-ecr-build-and-publish-public'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-ecr-image-scan-action.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-ecr-image-scan-action.ts index dc69abd5bdf7f..7c8e9aa9fe8ca 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-ecr-image-scan-action.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-ecr-image-scan-action.ts @@ -8,6 +8,7 @@ import * as path from 'path'; import { BucketDeployment, Source } from 'aws-cdk-lib/aws-s3-deployment'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, '@aws-cdk/pipelines:reduceStageRoleTrustScope': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-ecr-source.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-ecr-source.ts index fe8c7eadf02ef..eeb90b11f6fc2 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-ecr-source.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-ecr-source.ts @@ -25,6 +25,7 @@ import * as cpactions from 'aws-cdk-lib/aws-codepipeline-actions'; */ const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-codepipeline:defaultPipelineTypeToV2': false, '@aws-cdk/pipelines:reduceStageRoleTrustScope': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-ecs-deploy.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-ecs-deploy.ts index 6cec70ba76f70..e53acbfdd0c00 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-ecs-deploy.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-ecs-deploy.ts @@ -10,6 +10,7 @@ import * as cpactions from 'aws-cdk-lib/aws-codepipeline-actions'; /* eslint-disable @stylistic/quote-props */ const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-codepipeline:defaultPipelineTypeToV2': false, '@aws-cdk/aws-ecs:removeDefaultDeploymentAlarm': true, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-ecs-separate-source.lit.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-ecs-separate-source.lit.ts index 9bd4d4cd430b0..35c1a177eee46 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-ecs-separate-source.lit.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-ecs-separate-source.lit.ts @@ -209,7 +209,7 @@ export class PipelineStack extends cdk.Stack { } } -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); // the CodePipeline Stack needs to be created first const pipelineStack = new PipelineStack(app, 'aws-cdk-pipeline-ecs-separate-sources'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-elastic-beanstalk-deploy.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-elastic-beanstalk-deploy.ts index 631c16dcb202b..150b27484adb2 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-elastic-beanstalk-deploy.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-elastic-beanstalk-deploy.ts @@ -23,6 +23,7 @@ import { SOLUTION_STACK_NAME } from '../../utils/aws-elasticbeanstalk'; */ const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, '@aws-cdk/aws-codepipeline:defaultPipelineTypeToV2': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-events.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-events.ts index 0982fcd52945b..0a460df9838a1 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-events.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-events.ts @@ -10,6 +10,7 @@ import * as cdk from 'aws-cdk-lib'; import * as cpactions from 'aws-cdk-lib/aws-codepipeline-actions'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-codepipeline:defaultPipelineTypeToV2': false, '@aws-cdk/pipelines:reduceStageRoleTrustScope': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-invoke-action.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-invoke-action.ts index 8be5df594f1e8..139d5523ef35e 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-invoke-action.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-invoke-action.ts @@ -7,6 +7,7 @@ import * as cloudtrail from 'aws-cdk-lib/aws-cloudtrail'; import { ExpectedResult, IntegTest } from '@aws-cdk/integ-tests-alpha'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-codepipeline:defaultPipelineTypeToV2': true, '@aws-cdk/aws-lambda:createNewPoliciesWithAddToRolePolicy': true, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-jenkins.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-jenkins.ts index c7d43ddaac353..623f44fcdbf21 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-jenkins.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-jenkins.ts @@ -4,6 +4,7 @@ import * as cdk from 'aws-cdk-lib'; import * as cpactions from 'aws-cdk-lib/aws-codepipeline-actions'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-codepipeline:defaultPipelineTypeToV2': false, '@aws-cdk/pipelines:reduceStageRoleTrustScope': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-manual-approval.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-manual-approval.ts index e4dbb2301cfb1..2d61fa7bd9e16 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-manual-approval.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-manual-approval.ts @@ -4,6 +4,7 @@ import * as cdk from 'aws-cdk-lib'; import * as cpactions from 'aws-cdk-lib/aws-codepipeline-actions'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-codepipeline:defaultPipelineTypeToV2': false, '@aws-cdk/pipelines:reduceStageRoleTrustScope': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-s3-deploy.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-s3-deploy.ts index ec4f037fa7be7..a83284a0a4fa1 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-s3-deploy.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-s3-deploy.ts @@ -7,6 +7,7 @@ import { IntegTest, ExpectedResult, Match } from '@aws-cdk/integ-tests-alpha'; import * as cpactions from 'aws-cdk-lib/aws-codepipeline-actions'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-codepipeline:defaultPipelineTypeToV2': false, '@aws-cdk/pipelines:reduceStageRoleTrustScope': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-source-code-scan-action.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-source-code-scan-action.ts index 6d34466db9281..28039286ec1e1 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-source-code-scan-action.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-source-code-scan-action.ts @@ -15,6 +15,7 @@ import { ExpectedResult, IntegTest, Match } from '@aws-cdk/integ-tests-alpha'; */ const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/pipelines:reduceStageRoleTrustScope': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-stepfunctions.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-stepfunctions.ts index b123633f03e3c..4c952919c663f 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-stepfunctions.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-stepfunctions.ts @@ -5,6 +5,7 @@ import * as cdk from 'aws-cdk-lib'; import * as cpactions from 'aws-cdk-lib/aws-codepipeline-actions'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-codepipeline:defaultPipelineTypeToV2': false, '@aws-cdk/pipelines:reduceStageRoleTrustScope': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-type-v2-by-default.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-type-v2-by-default.ts index b436b2b7ae587..217e80f2962f3 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-type-v2-by-default.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-type-v2-by-default.ts @@ -6,6 +6,7 @@ import { CODEPIPELINE_DEFAULT_PIPELINE_TYPE_TO_V2 } from 'aws-cdk-lib/cx-api'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, treeMetadata: false, postCliContext: { '@aws-cdk/pipelines:reduceStageRoleTrustScope': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-type-v2.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-type-v2.ts index a58e6379e1dd1..46263ec7952f4 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-type-v2.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-type-v2.ts @@ -5,6 +5,7 @@ import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import * as cpactions from 'aws-cdk-lib/aws-codepipeline-actions'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, treeMetadata: false, postCliContext: { '@aws-cdk/pipelines:reduceStageRoleTrustScope': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-use-pipeline-role-for-actions.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-use-pipeline-role-for-actions.ts index f95752f8c5cba..7ab4689c9950d 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-use-pipeline-role-for-actions.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-use-pipeline-role-for-actions.ts @@ -5,6 +5,7 @@ import * as cpactions from 'aws-cdk-lib/aws-codepipeline-actions'; import { ExpectedResult, IntegTest } from '@aws-cdk/integ-tests-alpha'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/pipelines:reduceStageRoleTrustScope': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-with-codestarnotifications.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-with-codestarnotifications.ts index 125c10f01ba68..6ff5364ebfd4a 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-with-codestarnotifications.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-with-codestarnotifications.ts @@ -6,6 +6,7 @@ import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import * as cpactions from 'aws-cdk-lib/aws-codepipeline-actions'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, treeMetadata: false, postCliContext: { '@aws-cdk/pipelines:reduceStageRoleTrustScope': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-with-pipeline-triggers.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-with-pipeline-triggers.ts index bbfa9ea622866..a712555f0bcdb 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-with-pipeline-triggers.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-with-pipeline-triggers.ts @@ -5,6 +5,7 @@ import * as cpactions from 'aws-cdk-lib/aws-codepipeline-actions'; import { ExpectedResult, IntegTest } from '@aws-cdk/integ-tests-alpha'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, treeMetadata: false, postCliContext: { '@aws-cdk/pipelines:reduceStageRoleTrustScope': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-with-pipeline-variables.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-with-pipeline-variables.ts index 1bef60b0f8294..f7a0a00822c73 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-with-pipeline-variables.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-with-pipeline-variables.ts @@ -6,6 +6,7 @@ import { IntegTest, ExpectedResult, Match } from '@aws-cdk/integ-tests-alpha'; import * as cpactions from 'aws-cdk-lib/aws-codepipeline-actions'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, treeMetadata: false, postCliContext: { '@aws-cdk/pipelines:reduceStageRoleTrustScope': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-with-replication.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-with-replication.ts index c1a3d6d59606c..15d31f3a39e62 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-with-replication.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-with-replication.ts @@ -7,6 +7,7 @@ import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import { S3SourceAction, CodeBuildAction } from 'aws-cdk-lib/aws-codepipeline-actions'; const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, treeMetadata: false, postCliContext: { '@aws-cdk/aws-codepipeline:defaultPipelineTypeToV2': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-with-stage-conditions.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-with-stage-conditions.ts index cfde5686803c3..3ac72d983df14 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-with-stage-conditions.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-with-stage-conditions.ts @@ -9,6 +9,7 @@ import { ExpectedResult, IntegTest } from '@aws-cdk/integ-tests-alpha'; import { STANDARD_NODEJS_RUNTIME } from '../../config'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, '@aws-cdk/aws-codepipeline:defaultPipelineTypeToV2': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/s3/integ.source-bucket-events-cross-stack-same-env.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/s3/integ.source-bucket-events-cross-stack-same-env.ts index 0f64de0494aba..d18acdb045548 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/s3/integ.source-bucket-events-cross-stack-same-env.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/s3/integ.source-bucket-events-cross-stack-same-env.ts @@ -8,6 +8,7 @@ import * as integ from '@aws-cdk/integ-tests-alpha'; import * as cpactions from 'aws-cdk-lib/aws-codepipeline-actions'; const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-codepipeline:defaultPipelineTypeToV2': false, '@aws-cdk/pipelines:reduceStageRoleTrustScope': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito-identitypool/test/integ.identitypool.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cognito-identitypool/test/integ.identitypool.ts index dadc3d1babfa8..e194fdd52172d 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito-identitypool/test/integ.identitypool.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cognito-identitypool/test/integ.identitypool.ts @@ -4,7 +4,7 @@ import { Effect, PolicyStatement } from 'aws-cdk-lib/aws-iam'; import { UserPool, UserPoolIdentityProviderGoogle, UserPoolIdentityProviderAmazon, ProviderAttribute, UserPoolClient } from 'aws-cdk-lib/aws-cognito'; import { IdentityPool, IdentityPoolProviderUrl, UserPoolAuthenticationProvider } from 'aws-cdk-lib/aws-cognito-identitypool'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'integ-idp'); const userPool = new UserPool(stack, 'Pool'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-client-analytics.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-client-analytics.ts index 14c06a8bb4aec..adfde871b8e13 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-client-analytics.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-client-analytics.ts @@ -70,7 +70,7 @@ class TestStack2 extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const testCase = new TestStack(app, 'IntegUserPoolClientAnalytics'); const testCase2 = new TestStack2(app, 'IntegUserPoolClientAnalytics2'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-client-default-redirect-uri.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-client-default-redirect-uri.ts index 0c5f5f0df7680..1f427bddb6eb8 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-client-default-redirect-uri.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-client-default-redirect-uri.ts @@ -2,7 +2,7 @@ import { App, RemovalPolicy, Stack } from 'aws-cdk-lib'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import { UserPool } from 'aws-cdk-lib/aws-cognito'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'integ-user-pool-client-default-redirect-uri'); const userpool = new UserPool(stack, 'myuserpool', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-client-enable-propagate-additional-data.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-client-enable-propagate-additional-data.ts index fc6f0a7224d40..a54f0c481229a 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-client-enable-propagate-additional-data.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-client-enable-propagate-additional-data.ts @@ -17,7 +17,7 @@ class TestStack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const testCase = new TestStack(app, 'integ-user-pool-client-enable-propagate-additional-data'); new IntegTest(app, 'integ-user-pool-client-enable-propagate-additional-data-test', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-client-explicit-props.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-client-explicit-props.ts index 733ff3367f2ba..67e1c0a6fc27e 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-client-explicit-props.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-client-explicit-props.ts @@ -3,6 +3,7 @@ import { App, Duration, RemovalPolicy, Stack } from 'aws-cdk-lib'; import { ClientAttributes, OAuthScope, StringAttribute, UserPool } from 'aws-cdk-lib/aws-cognito'; const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-client-secret.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-client-secret.ts index 8fc3d19d7286f..06416d7d9d197 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-client-secret.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-client-secret.ts @@ -50,6 +50,7 @@ class TestStackSecretLogged extends Stack { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-custom-sender.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-custom-sender.ts index 5429bb330c791..44f3575314d6c 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-custom-sender.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-custom-sender.ts @@ -10,6 +10,7 @@ import { STANDARD_NODEJS_RUNTIME } from '../../config'; * * Verify the CustomEmailSender lambda was called via logged message in CloudWatch. */ const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-domain-cfdist.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-domain-cfdist.ts index bbdc218a82340..a66093f45bc31 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-domain-cfdist.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-domain-cfdist.ts @@ -7,6 +7,7 @@ import { UserPool } from 'aws-cdk-lib/aws-cognito'; */ const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-domain-managed-login.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-domain-managed-login.ts index c1d1305920ffb..894bb7fee700d 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-domain-managed-login.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-domain-managed-login.ts @@ -2,7 +2,7 @@ import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import { App, CfnOutput, RemovalPolicy, Stack } from 'aws-cdk-lib'; import * as cognito from 'aws-cdk-lib/aws-cognito'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'integ-user-pool-domain-managed-login'); const userpool = new cognito.UserPool(stack, 'UserPool', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-domain-signinurl.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-domain-signinurl.ts index 4c1ce1a2240ce..c0575c99aa7b3 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-domain-signinurl.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-domain-signinurl.ts @@ -7,7 +7,7 @@ import { UserPool } from 'aws-cdk-lib/aws-cognito'; * * It didn't work if it returns 302 or 400. */ -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'integ-user-pool-domain-signinurl'); const userpool = new UserPool(stack, 'UserPool', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-explicit-props.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-explicit-props.ts index 755bd1a616213..bc8bd63836d02 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-explicit-props.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-explicit-props.ts @@ -5,6 +5,7 @@ import { AdvancedSecurityMode, BooleanAttribute, DateTimeAttribute, FeaturePlan, import { STANDARD_NODEJS_RUNTIME } from '../../config'; const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-feature-plans.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-feature-plans.ts index 62504d12a8447..fe29d008752e1 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-feature-plans.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-feature-plans.ts @@ -2,7 +2,7 @@ import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import { App, RemovalPolicy, Stack } from 'aws-cdk-lib'; import { UserPool, FeaturePlan } from 'aws-cdk-lib/aws-cognito'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'integ-user-pool-feature-plans'); new UserPool(stack, 'userpool-lite-plan', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-group.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-group.ts index e60c9d4e5997b..6f89a3d67533b 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-group.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-group.ts @@ -27,7 +27,7 @@ class TestStack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new TestStack(app, 'user-pool-group-stack'); new IntegTest(app, 'integ-user-pool-group', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-idp.amazon.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-idp.amazon.ts index 72b8bdb149c74..1e7a58afa5744 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-idp.amazon.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-idp.amazon.ts @@ -7,7 +7,7 @@ import { ProviderAttribute, UserPool, UserPoolIdentityProviderAmazon } from 'aws * * Visit the URL provided by stack output 'SignInLink' in a browser, and verify the 'Login with Amazon' link shows up. * * If you plug in valid 'Login with Amazon' credentials, the federated log in should work. */ -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'integ-user-pool-idp-amazon'); const userpool = new UserPool(stack, 'pool', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-idp.apple.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-idp.apple.ts index f499bbcfe06a7..3651128285a49 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-idp.apple.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-idp.apple.ts @@ -6,7 +6,7 @@ import { ProviderAttribute, UserPool, UserPoolIdentityProviderApple } from 'aws- * * Visit the URL provided by stack output 'SignInLink' in a browser, and verify the 'Sign In With Apple' link shows up. * * If you plug in valid 'Sign In With Apple' credentials, the federated log in should work. */ -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'integ-user-pool-idp-apple'); const userpool = new UserPool(stack, 'pool', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-idp.google.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-idp.google.ts index 02c3f2a15e625..56df63bec1327 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-idp.google.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-idp.google.ts @@ -9,7 +9,7 @@ import { ProviderAttribute, UserPool, UserPoolIdentityProviderGoogle } from 'aws * * If you plug in valid 'Google' credentials, the federated log in should work. */ -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'integ-user-pool-idp-google'); const userpool = new UserPool(stack, 'pool', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-idp.oidc.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-idp.oidc.ts index 81ff8582bdf7f..6217cbbaa8e1c 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-idp.oidc.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-idp.oidc.ts @@ -5,7 +5,7 @@ import { ProviderAttribute, UserPool, UserPoolIdentityProviderOidc } from 'aws-c * Stack verification steps * * Visit the URL provided by stack output 'SignInLink' in a browser, and verify the 'cdk' sign in link shows up. */ -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'integ-user-pool-idp-google'); const userpool = new UserPool(stack, 'pool', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-idp.saml.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-idp.saml.ts index 263192afad332..5d97a1c7b6232 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-idp.saml.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-idp.saml.ts @@ -50,7 +50,7 @@ class TestStack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const testCase = new TestStack(app, 'integ-user-pool-identity-provider-saml-stack'); new IntegTest(app, 'integ-user-pool-identity-provider-saml-test', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-link-custom-placeholder.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-link-custom-placeholder.ts index 65e04962e0437..65d37a75cafc6 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-link-custom-placeholder.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-link-custom-placeholder.ts @@ -2,7 +2,7 @@ import { App, CfnOutput, RemovalPolicy, Stack } from 'aws-cdk-lib'; import { UserPool, VerificationEmailStyle } from 'aws-cdk-lib/aws-cognito'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'integ-user-pool-link-custom-placeholder'); const userpool = new UserPool(stack, 'myuserpool', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-mfa-email.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-mfa-email.ts index 711b233460281..96054f56b9b0b 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-mfa-email.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-mfa-email.ts @@ -8,7 +8,7 @@ import { AdvancedSecurityMode, FeaturePlan, Mfa, UserPool, UserPoolEmail } from const domainName = process.env.CDK_INTEG_DOMAIN_NAME ?? process.env.DOMAIN_NAME; if (!domainName) throw new Error('For this test you must provide your own DomainName as an env var "DOMAIN_NAME".'); -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'integ-user-email-mfa'); const userpool = new UserPool(stack, 'myuserpool', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-password-history-size.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-password-history-size.ts index 6cd338da99e9a..51fa6d234d7ac 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-password-history-size.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-password-history-size.ts @@ -2,7 +2,7 @@ import { App, Stack } from 'aws-cdk-lib'; import { UserPool } from 'aws-cdk-lib/aws-cognito'; import * as integ from '@aws-cdk/integ-tests-alpha'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'integ-user-pool-password-history-size'); new UserPool(stack, 'Pool', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-passwordless.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-passwordless.ts index 581a9ed0e2527..a3a9f3d61deea 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-passwordless.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-passwordless.ts @@ -2,7 +2,7 @@ import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import { App, CfnOutput, RemovalPolicy, Stack } from 'aws-cdk-lib'; import { FeaturePlan, PasskeyUserVerification, UserPool } from 'aws-cdk-lib/aws-cognito'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'integ-user-pool-passwordless'); const userpool = new UserPool(stack, 'myuserpool', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-pre-token-generation-v2.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-pre-token-generation-v2.ts index 43797a5bec59c..cf1fcef31c4f4 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-pre-token-generation-v2.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-pre-token-generation-v2.ts @@ -5,6 +5,7 @@ import { STANDARD_NODEJS_RUNTIME } from '../../config'; import * as integ from '@aws-cdk/integ-tests-alpha'; const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-pre-token-generation.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-pre-token-generation.ts index 8300643ae0f8e..3457892b7e1f8 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-pre-token-generation.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-pre-token-generation.ts @@ -5,6 +5,7 @@ import { STANDARD_NODEJS_RUNTIME } from '../../config'; import * as integ from '@aws-cdk/integ-tests-alpha'; const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-resource-server.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-resource-server.ts index 2944da3d77620..a206a5c320ef4 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-resource-server.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-resource-server.ts @@ -1,7 +1,7 @@ import { App, CfnOutput, RemovalPolicy, Stack } from 'aws-cdk-lib'; import { OAuthScope, ResourceServerScope, UserPool } from 'aws-cdk-lib/aws-cognito'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'integ-user-pool-resource-server'); /* diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-ses-email.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-ses-email.ts index a147077e52375..531d6db6ed01b 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-ses-email.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-ses-email.ts @@ -2,7 +2,7 @@ import { App, CfnOutput, RemovalPolicy, Stack } from 'aws-cdk-lib'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import { UserPool, UserPoolEmail } from 'aws-cdk-lib/aws-cognito'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'integ-user-ses-email'); const userpool = new UserPool(stack, 'myuserpool', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-signup-code.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-signup-code.ts index e5c03cdec9f46..de439ce7f9bb1 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-signup-code.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-signup-code.ts @@ -11,7 +11,7 @@ import { UserPool, UserPoolClient, VerificationEmailStyle } from 'aws-cdk-lib/aw * * An SMS with the message 'integ-test: Account verification code is ' should be received. */ -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'integ-user-pool-signup-code'); const userpool = new UserPool(stack, 'myuserpool', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-signup-link.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-signup-link.ts index 2e0ae15215c61..aabc01f73086e 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-signup-link.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-signup-link.ts @@ -11,7 +11,7 @@ import { UserPool, UserPoolClient, VerificationEmailStyle } from 'aws-cdk-lib/aw * * An SMS with the message 'integ-test: Account verification code is ' should be received. */ -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'integ-user-pool-signup-link'); const userpool = new UserPool(stack, 'myuserpool', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-threat-protection.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-threat-protection.ts index 49887162b8b4d..661e7fa6083c5 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-threat-protection.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-threat-protection.ts @@ -2,7 +2,7 @@ import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import { App, RemovalPolicy, Stack } from 'aws-cdk-lib'; import { UserPool, FeaturePlan, StandardThreatProtectionMode, CustomThreatProtectionMode } from 'aws-cdk-lib/aws-cognito'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'integ-user-pool-threat-protection'); new UserPool(stack, 'userpool-standard-threat-protection', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool.ts index f2f28986acb3a..60c7da5a62292 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool.ts @@ -1,7 +1,7 @@ import { App, CfnOutput, RemovalPolicy, Stack } from 'aws-cdk-lib'; import { UserPool } from 'aws-cdk-lib/aws-cognito'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'integ-user-pool'); const userpool = new UserPool(stack, 'myuserpool', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-config/test/integ.custompolicy.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-config/test/integ.custompolicy.ts index 980e642c29c1c..36fe63002e19d 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-config/test/integ.custompolicy.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-config/test/integ.custompolicy.ts @@ -4,7 +4,7 @@ import * as integ from '@aws-cdk/integ-tests-alpha'; import * as config from 'aws-cdk-lib/aws-config'; import { ConfigPrerequisites } from './config-test-helpers'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-config-custompolicy'); const prerequisites = new ConfigPrerequisites(stack, 'ConfigPrerequisites', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-config/test/integ.rule-evaluation-mode.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-config/test/integ.rule-evaluation-mode.ts index 99f266b3648e9..cc4697a9e67fc 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-config/test/integ.rule-evaluation-mode.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-config/test/integ.rule-evaluation-mode.ts @@ -6,6 +6,7 @@ import { STANDARD_NODEJS_RUNTIME } from '../../config'; import { ConfigPrerequisites } from './config-test-helpers'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-config/test/integ.rule.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-config/test/integ.rule.ts index ca043edd05692..9fd3d7c52f524 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-config/test/integ.rule.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-config/test/integ.rule.ts @@ -8,6 +8,7 @@ import { STANDARD_NODEJS_RUNTIME } from '../../config'; import { ConfigPrerequisites } from './config-test-helpers'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-config/test/integ.scoped-rule.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-config/test/integ.scoped-rule.ts index 0a61a867d9bbb..22cf2126fe4c4 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-config/test/integ.scoped-rule.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-config/test/integ.scoped-rule.ts @@ -5,6 +5,7 @@ import * as config from 'aws-cdk-lib/aws-config'; import { STANDARD_NODEJS_RUNTIME } from '../../config'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-docdb/test/integ.cluster-copy-tags-to-snapshot.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-docdb/test/integ.cluster-copy-tags-to-snapshot.ts index beecefb923e41..9130c97b4ee9b 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-docdb/test/integ.cluster-copy-tags-to-snapshot.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-docdb/test/integ.cluster-copy-tags-to-snapshot.ts @@ -4,7 +4,7 @@ import * as integ from '@aws-cdk/integ-tests-alpha'; import { DatabaseCluster } from 'aws-cdk-lib/aws-docdb'; import { DOCDB_ENGINE_VERSION } from './docdb-integ-test-constraints'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-docdb-integ'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-docdb/test/integ.cluster-instance-ca-certificate.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-docdb/test/integ.cluster-instance-ca-certificate.ts index b364d79831cb0..5d2b35ba8ae3d 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-docdb/test/integ.cluster-instance-ca-certificate.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-docdb/test/integ.cluster-instance-ca-certificate.ts @@ -3,7 +3,7 @@ import { App, Stack, RemovalPolicy, SecretValue } from 'aws-cdk-lib'; import * as integ from '@aws-cdk/integ-tests-alpha'; import { CaCertificate, DatabaseCluster } from 'aws-cdk-lib/aws-docdb'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'cdk-integ-docdb-cluster-instance-ca-certificate'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-docdb/test/integ.cluster-removal-policy-snapshot.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-docdb/test/integ.cluster-removal-policy-snapshot.ts index 72120a18a25cc..fe67cee7c434a 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-docdb/test/integ.cluster-removal-policy-snapshot.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-docdb/test/integ.cluster-removal-policy-snapshot.ts @@ -50,7 +50,7 @@ class TestStack extends cdk.Stack { } } -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new TestStack(app, 'aws-cdk-docdb-removal-policy-snapshot-stack'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-docdb/test/integ.cluster-rotation.lit.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-docdb/test/integ.cluster-rotation.lit.ts index c2a951f907d19..27b5e340fee8d 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-docdb/test/integ.cluster-rotation.lit.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-docdb/test/integ.cluster-rotation.lit.ts @@ -10,7 +10,7 @@ import * as docdb from 'aws-cdk-lib/aws-docdb'; * "arn:aws:serverlessrepo:us-east-1:297356227824:applications/SecretsManagerMongoDBRotationSingleUser" */ -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-docdb-cluster-rotation'); const vpc = new ec2.Vpc(stack, 'VPC', { restrictDefaultSecurityGroup: false }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-docdb/test/integ.cluster-serverless.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-docdb/test/integ.cluster-serverless.ts index 050a7875d7c5b..d5214d96e1221 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-docdb/test/integ.cluster-serverless.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-docdb/test/integ.cluster-serverless.ts @@ -26,7 +26,7 @@ class TestStack extends cdk.Stack { } } -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new TestStack(app, 'aws-cdk-docdb-cluster-serverless'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-docdb/test/integ.cluster-storage-type.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-docdb/test/integ.cluster-storage-type.ts index 5f94b868a2353..c12bd684a9afe 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-docdb/test/integ.cluster-storage-type.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-docdb/test/integ.cluster-storage-type.ts @@ -3,7 +3,7 @@ import { App, Stack, RemovalPolicy, SecretValue } from 'aws-cdk-lib'; import * as integ from '@aws-cdk/integ-tests-alpha'; import { DatabaseCluster, StorageType } from 'aws-cdk-lib/aws-docdb'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'StorageTypeClusterTestStack'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-docdb/test/integ.cluster.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-docdb/test/integ.cluster.ts index 89292f116d28e..56d3a5195ba0a 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-docdb/test/integ.cluster.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-docdb/test/integ.cluster.ts @@ -50,7 +50,7 @@ class TestStack extends cdk.Stack { } } -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); new IntegTest(app, 'DocdbClusterInteg', { testCases: [new TestStack(app, 'aws-cdk-docdb-integ')], diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.autoscaling.lit.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.autoscaling.lit.ts index 6b1fb00702761..ac1ac52c27722 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.autoscaling.lit.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.autoscaling.lit.ts @@ -2,7 +2,7 @@ import * as appscaling from 'aws-cdk-lib/aws-applicationautoscaling'; import * as cdk from 'aws-cdk-lib'; import * as dynamodb from 'aws-cdk-lib/aws-dynamodb'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-dynamodb'); const table = new dynamodb.Table(stack, 'Table', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb-v2.cci.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb-v2.cci.ts index 4d0d7d4022d14..f29cec6c8a565 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb-v2.cci.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb-v2.cci.ts @@ -4,7 +4,7 @@ import type { Construct } from 'constructs'; import * as dynamodb from 'aws-cdk-lib/aws-dynamodb'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); class TestStack extends Stack { constructor(scope: Construct, id: string, props?: StackProps) { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb-v2.cross-account-replica-imported.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb-v2.cross-account-replica-imported.ts index d4dee93b94f14..89cfb87e74a0f 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb-v2.cross-account-replica-imported.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb-v2.cross-account-replica-imported.ts @@ -30,7 +30,7 @@ import * as dynamodb from 'aws-cdk-lib/aws-dynamodb'; const account = process.env.CDK_INTEG_ACCOUNT || '111111111111'; const multiAccount = process.env.CDK_INTEG_MULTI_ACCOUNT || '222222222222'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const replicaStack = new Stack(app, 'ReplicaStack', { env: { region: 'ca-central-1', account: multiAccount }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb-v2.cross-account-replica.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb-v2.cross-account-replica.ts index c2d3fa30dd8ce..69d1d494bb531 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb-v2.cross-account-replica.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb-v2.cross-account-replica.ts @@ -32,7 +32,7 @@ import * as dynamodb from 'aws-cdk-lib/aws-dynamodb'; const account = process.env.CDK_INTEG_ACCOUNT || '111111111111'; const multiAccount = process.env.CDK_INTEG_MULTI_ACCOUNT || '222222222222'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); // Source table in Account A const sourceStack = new Stack(app, 'MultiAccountSourceStackV2', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb-v2.max-request-units.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb-v2.max-request-units.ts index 288e827928a53..c9ab99e4a5378 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb-v2.max-request-units.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb-v2.max-request-units.ts @@ -34,7 +34,7 @@ class TestStack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); new IntegTest(app, 'aws-cdk-global-table-integ-v2', { testCases: [new TestStack(app, 'aws-cdk-global-table-v2', { env: { region: 'eu-west-1' } })], regions: ['eu-west-1'], diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb-v2.ondemand.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb-v2.ondemand.ts index 0dd4bdfebde7d..5f995a63f6ff2 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb-v2.ondemand.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb-v2.ondemand.ts @@ -52,7 +52,7 @@ class TestStack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); new IntegTest(app, 'aws-cdk-global-table-ondemand-integ', { // Global tables with replicas require a region-aware stack testCases: [new TestStack(app, 'aws-cdk-global-table-ondemand', { env: { region: 'us-east-1' } })], diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb-v2.pitr.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb-v2.pitr.ts index 81f7089767fe6..60712926639aa 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb-v2.pitr.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb-v2.pitr.ts @@ -4,7 +4,7 @@ import type { Construct } from 'constructs'; import * as dynamodb from 'aws-cdk-lib/aws-dynamodb'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); class TestStack extends Stack { constructor(scope: Construct, id: string, props?: StackProps) { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb-v2.policy.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb-v2.policy.ts index 4e2bb44bbb298..3a96294322907 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb-v2.policy.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb-v2.policy.ts @@ -6,6 +6,7 @@ import * as iam from 'aws-cdk-lib/aws-iam'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-dynamodb:resourcePolicyPerReplica': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb-v2.warm-throughput.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb-v2.warm-throughput.ts index 9c8cf1d891c43..2e7108fcf7aa0 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb-v2.warm-throughput.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb-v2.warm-throughput.ts @@ -41,7 +41,7 @@ export class TestStack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new TestStack(app, 'warm-throughput-stack-v2', { env: { region: 'eu-west-1' } }); new IntegTest(app, 'warm-throughput-integ-test-v2', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.add-to-resource-policy.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.add-to-resource-policy.ts index c7f59ee511a8d..ecb2a70af291a 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.add-to-resource-policy.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.add-to-resource-policy.ts @@ -88,7 +88,7 @@ export class TestStack extends Stack { } // Test Setup -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new TestStack(app, 'add-to-resource-policy-test-stack'); // Integration Test Configuration diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.alarm-metrics.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.alarm-metrics.ts index 5a5f557806676..c7a66558efacc 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.alarm-metrics.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.alarm-metrics.ts @@ -33,7 +33,7 @@ export class TestStack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new TestStack(app, 'alarm-metrics'); new IntegTest(app, 'alarm-metrics-integ', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.cci.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.cci.ts index 8009d97a620c5..cc52c4d941732 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.cci.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.cci.ts @@ -4,7 +4,7 @@ import type { Construct } from 'constructs'; import * as dynamodb from 'aws-cdk-lib/aws-dynamodb'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); class TestStack extends Stack { constructor(scope: Construct, id: string, props?: StackProps) { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.compound.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.compound.ts index cb69f65beb092..f990175bba253 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.compound.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.compound.ts @@ -2,7 +2,7 @@ import { App, RemovalPolicy, Stack } from 'aws-cdk-lib'; import { AttributeType, ProjectionType, Table } from 'aws-cdk-lib/aws-dynamodb'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'aws-cdk-dynamodb-compound-keys'); const table = new Table(stack, 'Table', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.contirubtor-insights-for-gsi.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.contirubtor-insights-for-gsi.ts index eb830b64af856..9d026895b7261 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.contirubtor-insights-for-gsi.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.contirubtor-insights-for-gsi.ts @@ -15,7 +15,7 @@ const GSI_TEST_CASE_1 = 'GSI-ContributorInsightsEnabled'; const GSI_TEST_CASE_2 = 'GSI-ContributorInsightsDisabled'; const GSI_PARTITION_KEY: Attribute = { name: 'gsiHashKey', type: AttributeType.STRING }; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, STACK_NAME); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.deletion-protection.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.deletion-protection.ts index ab2d832776398..64ffb096e9d43 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.deletion-protection.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.deletion-protection.ts @@ -17,7 +17,7 @@ export class TestStack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new TestStack(app, 'deletion-protection-stack'); const integ = new IntegTest(app, 'deletion-protection-integ-test', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.kinesis-stream.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.kinesis-stream.ts index 8fb9cfdd4a94f..bf809f9b38c5c 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.kinesis-stream.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.kinesis-stream.ts @@ -2,7 +2,7 @@ import * as kinesis from 'aws-cdk-lib/aws-kinesis'; import * as cdk from 'aws-cdk-lib'; import * as dynamodb from 'aws-cdk-lib/aws-dynamodb'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-dynamodb-kinesis-stream'); const stream = new kinesis.Stream(stack, 'Stream'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.mixed-key-gsi.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.mixed-key-gsi.ts index 393f92edac8b4..6683f7f9d7ef4 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.mixed-key-gsi.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.mixed-key-gsi.ts @@ -8,7 +8,7 @@ import { App, RemovalPolicy, Stack } from 'aws-cdk-lib'; import { AttributeType, ProjectionType, Table } from 'aws-cdk-lib/aws-dynamodb'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'aws-cdk-dynamodb-gsi'); const table = new Table(stack, 'Table', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.ondemand.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.ondemand.ts index 275d2290a42a9..45d764e0aeb20 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.ondemand.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.ondemand.ts @@ -37,7 +37,7 @@ for (let i = 0; i < 10; i++) { // 'K' to 'T' LSI_NON_KEY.push(String.fromCharCode(75 + i)); } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, STACK_NAME); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.pitr.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.pitr.ts index 0fc06612366e3..c84647176916b 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.pitr.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.pitr.ts @@ -4,7 +4,7 @@ import type { Construct } from 'constructs'; import * as dynamodb from 'aws-cdk-lib/aws-dynamodb'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); class TestStack extends Stack { constructor(scope: Construct, id: string, props?: StackProps) { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.policy.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.policy.ts index e0079e58c137b..ec4d079d77223 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.policy.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.policy.ts @@ -63,7 +63,7 @@ export class TestStack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new TestStack(app, 'resource-policy-stack', {}); new IntegTest(app, 'resource-policy-integ-test', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.sse.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.sse.ts index 9d4578178ef97..df857053e42ba 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.sse.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.sse.ts @@ -39,7 +39,7 @@ for (let i = 0; i < 10; i++) { // 'K' to 'T' LSI_NON_KEY.push(String.fromCharCode(75 + i)); } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, STACK_NAME); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.ts index be83965dbd190..16ed1fb59c777 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.ts @@ -40,7 +40,7 @@ for (let i = 0; i < 10; i++) { // 'K' to 'T' LSI_NON_KEY.push(String.fromCharCode(75 + i)); } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, STACK_NAME); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.warm-throughput.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.warm-throughput.ts index 3ae2eafb9beeb..764772286a1ba 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.warm-throughput.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.warm-throughput.ts @@ -33,7 +33,7 @@ export class TestStack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new TestStack(app, 'warm-throughput-stack', {}); new IntegTest(app, 'warm-throughput-integ-test', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.global-replicas-provisioned.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.global-replicas-provisioned.ts index aa24a0bccd9dc..737820c40cfd4 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.global-replicas-provisioned.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.global-replicas-provisioned.ts @@ -4,6 +4,7 @@ import * as cdk from 'aws-cdk-lib'; import * as dynamodb from 'aws-cdk-lib/aws-dynamodb'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, '@aws-cdk/aws-lambda:createNewPoliciesWithAddToRolePolicy': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.global.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.global.ts index a4e57bd7445a1..9088a63cb003f 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.global.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.global.ts @@ -33,6 +33,7 @@ class TestStack extends Stack { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, '@aws-cdk/aws-lambda:createNewPoliciesWithAddToRolePolicy': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.import-source.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.import-source.ts index 5cc04824ac813..fa74f6a9de709 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.import-source.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.import-source.ts @@ -87,6 +87,7 @@ class DynamoStack extends Stack { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.table-skip-replica-deletion.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.table-skip-replica-deletion.ts index ddfd698c91f45..59a6e94b47787 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.table-skip-replica-deletion.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.table-skip-replica-deletion.ts @@ -26,6 +26,7 @@ class TestStack extends Stack { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, '@aws-cdk/aws-dynamodb:retainTableReplica': true, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.table-v2-global.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.table-v2-global.ts index 9995a28a7eb78..58aafdc7673bd 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.table-v2-global.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.table-v2-global.ts @@ -79,7 +79,7 @@ class TestStack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); Tags.of(app).add('stage', 'IntegTest'); new IntegTest(app, 'aws-cdk-global-table-integ', { // Global tables with replicas require a region-aware stack diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.table-v2-mrsc.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.table-v2-mrsc.ts index 649e838e564cf..327748127dffe 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.table-v2-mrsc.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.table-v2-mrsc.ts @@ -24,7 +24,7 @@ class TestStack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); new IntegTest(app, 'aws-cdk-global-table-integ', { testCases: [new TestStack(app, 'aws-cdk-global-table-mrsc', { env: { region: 'us-east-1' } })], regions: ['us-east-1'], diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.table-v2-replica.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.table-v2-replica.ts index 26eb7c1278b0d..596e9bf1296d6 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.table-v2-replica.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.table-v2-replica.ts @@ -36,6 +36,7 @@ class TestStack extends Stack { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.table-v2.compound.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.table-v2.compound.ts index af60d5b966692..b1fbdd758ee26 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.table-v2.compound.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.table-v2.compound.ts @@ -2,7 +2,7 @@ import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import { App, RemovalPolicy, Stack } from 'aws-cdk-lib'; import { AttributeType, ProjectionType, TableV2 } from 'aws-cdk-lib/aws-dynamodb'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'aws-cdk-dynamodb-v2-compound-keys'); const table = new TableV2(stack, 'Table', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.table-with-customized-role.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.table-with-customized-role.ts index f85233a48c62f..e58d406eda6d6 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.table-with-customized-role.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.table-with-customized-role.ts @@ -62,7 +62,7 @@ class TestStack2 extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new TestStack(app, 'cdk-table-with-customized-role', {}); const stack2 = new TestStack2(app, 'cdk-table-with-customized-role2', {}); new IntegTest(app, 'cdk-dynamodb-customized-role-integ', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.bastion-host-arm-support.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.bastion-host-arm-support.ts index 6961cd8985f23..80443d0f820aa 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.bastion-host-arm-support.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.bastion-host-arm-support.ts @@ -7,7 +7,7 @@ import * as cdk from 'aws-cdk-lib'; import * as ec2 from 'aws-cdk-lib/aws-ec2'; import { EC2_RESTRICT_DEFAULT_SECURITY_GROUP } from 'aws-cdk-lib/cx-api'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); class TestStack extends cdk.Stack { constructor(scope: cdk.App, id: string, props?: cdk.StackProps) { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.bastion-host-disable-al2023-feature-flag.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.bastion-host-disable-al2023-feature-flag.ts index d91b0333a393a..4dc89c0a5c4fe 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.bastion-host-disable-al2023-feature-flag.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.bastion-host-disable-al2023-feature-flag.ts @@ -9,7 +9,7 @@ import * as ec2 from 'aws-cdk-lib/aws-ec2'; import { BASTION_HOST_USE_AMAZON_LINUX_2023_BY_DEFAULT } from 'aws-cdk-lib/cx-api'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); class TestStack extends cdk.Stack { constructor(scope: cdk.App, id: string, props?: cdk.StackProps) { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.bastion-host-userdatacausesreplacement.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.bastion-host-userdatacausesreplacement.ts index 012ad46b9fb3e..f5135a8de361c 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.bastion-host-userdatacausesreplacement.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.bastion-host-userdatacausesreplacement.ts @@ -3,7 +3,7 @@ import * as ec2 from 'aws-cdk-lib/aws-ec2'; import { EC2_RESTRICT_DEFAULT_SECURITY_GROUP } from 'aws-cdk-lib/cx-api'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); class TestStack extends cdk.Stack { constructor(scope: cdk.App, id: string, props?: cdk.StackProps) { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.bastion-host.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.bastion-host.ts index 3b3c25aaef8da..acf0412e4e141 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.bastion-host.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.bastion-host.ts @@ -3,7 +3,7 @@ import * as cdk from 'aws-cdk-lib'; import * as ec2 from 'aws-cdk-lib/aws-ec2'; import { EC2_RESTRICT_DEFAULT_SECURITY_GROUP } from 'aws-cdk-lib/cx-api'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); class TestStack extends cdk.Stack { constructor(scope: cdk.App, id: string, props?: cdk.StackProps) { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.client-vpn-endpoint-client-route-enforcement.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.client-vpn-endpoint-client-route-enforcement.ts index 06ea82ab3f3e0..2486c946fe900 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.client-vpn-endpoint-client-route-enforcement.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.client-vpn-endpoint-client-route-enforcement.ts @@ -57,7 +57,7 @@ class TestStack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); new IntegTest(app, 'client-vpn-endpoint-integ', { testCases: [ new TestStack(app, 'client-vpn-endpoint-stack', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.client-vpn-endpoint-disconnect-on-session-timeout.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.client-vpn-endpoint-disconnect-on-session-timeout.ts index d4de53d408f31..73a48f2aa1205 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.client-vpn-endpoint-disconnect-on-session-timeout.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.client-vpn-endpoint-disconnect-on-session-timeout.ts @@ -55,7 +55,7 @@ class TestStack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); new IntegTest(app, 'client-vpn-endpoint-integ', { testCases: [ new TestStack(app, 'client-vpn-endpoint-stack', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.client-vpn-endpoint.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.client-vpn-endpoint.ts index 1870c8546b2a8..7406fcb121d65 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.client-vpn-endpoint.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.client-vpn-endpoint.ts @@ -68,6 +68,6 @@ class ImportCertificates extends Construct { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); new TestStack(app, 'cdk-ec2-client-vpn-endpoint'); app.synth(); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.core-cross-stack-string-list-references.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.core-cross-stack-string-list-references.ts index 4b14e7a714864..8899da84e201c 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.core-cross-stack-string-list-references.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.core-cross-stack-string-list-references.ts @@ -8,6 +8,7 @@ import { EC2_RESTRICT_DEFAULT_SECURITY_GROUP } from 'aws-cdk-lib/cx-api'; // GIVEN const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, treeMetadata: false, }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.enable-sum-timeout-instance-init.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.enable-sum-timeout-instance-init.ts index b65d883c49672..2aa41e8ebd96e 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.enable-sum-timeout-instance-init.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.enable-sum-timeout-instance-init.ts @@ -7,6 +7,7 @@ import * as integ from '@aws-cdk/integ-tests-alpha'; import { EC2_RESTRICT_DEFAULT_SECURITY_GROUP } from 'aws-cdk-lib/cx-api'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-ec2:ec2SumTImeoutEnabled': true, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.graviton3.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.graviton3.ts index 4c832430c97ca..6ee8f3ba36a8b 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.graviton3.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.graviton3.ts @@ -4,7 +4,7 @@ import * as cdk from 'aws-cdk-lib'; import * as ec2 from 'aws-cdk-lib/aws-ec2'; import { EC2_RESTRICT_DEFAULT_SECURITY_GROUP } from 'aws-cdk-lib/cx-api'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); class TestStack extends cdk.Stack { constructor(scope: cdk.App, id: string, props?: cdk.StackProps) { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.import-default-vpc.lit.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.import-default-vpc.lit.ts index 670b2489a5974..af7bda128ee02 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.import-default-vpc.lit.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.import-default-vpc.lit.ts @@ -2,7 +2,7 @@ import * as cdk from 'aws-cdk-lib'; import * as ec2 from 'aws-cdk-lib/aws-ec2'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); // we associate this stack with an explicit environment since this is required by the // environmental context provider used in `fromLookup`. CDK_INTEG_XXX are set diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.instance-credit.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.instance-credit.ts index aa1e1f586f124..cb5f0acf82c97 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.instance-credit.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.instance-credit.ts @@ -2,7 +2,7 @@ import * as cdk from 'aws-cdk-lib'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import * as ec2 from 'aws-cdk-lib/aws-ec2'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); class TestStack extends cdk.Stack { constructor(scope: cdk.App, id: string, props?: cdk.StackProps) { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.instance-disable-api-termination.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.instance-disable-api-termination.ts index acf2573380b88..d5418ca89e53a 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.instance-disable-api-termination.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.instance-disable-api-termination.ts @@ -2,7 +2,7 @@ import * as cdk from 'aws-cdk-lib'; import { IntegTest, ExpectedResult } from '@aws-cdk/integ-tests-alpha'; import * as ec2 from 'aws-cdk-lib/aws-ec2'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-ec2-disable-api-termination'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.instance-ebs-optimized.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.instance-ebs-optimized.ts index ef735b4259c57..f2d6dc78bc842 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.instance-ebs-optimized.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.instance-ebs-optimized.ts @@ -2,7 +2,7 @@ import * as cdk from 'aws-cdk-lib'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import * as ec2 from 'aws-cdk-lib/aws-ec2'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); class TestStack extends cdk.Stack { constructor(scope: cdk.App, id: string, props?: cdk.StackProps) { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.instance-iam-profile.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.instance-iam-profile.ts index 3a0531e7e2b30..973d1e21558bc 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.instance-iam-profile.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.instance-iam-profile.ts @@ -3,7 +3,7 @@ import { ExpectedResult, IntegTest } from '@aws-cdk/integ-tests-alpha'; import * as ec2 from 'aws-cdk-lib/aws-ec2'; import { InstanceProfile, Role, ServicePrincipal } from 'aws-cdk-lib/aws-iam'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'instance-iam-profile'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.instance-init-multiple.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.instance-init-multiple.ts index 981c2587759bd..8c9081e2cdfbb 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.instance-init-multiple.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.instance-init-multiple.ts @@ -9,7 +9,7 @@ const tmpDir = fs.mkdtempSync('/tmp/cfn-init-test'); fs.writeFileSync(path.resolve(tmpDir, 'testConfigFile'), 'Hello World!\n'); fs.writeFileSync(path.resolve(tmpDir, 'testConfigFile2'), 'Hello World2!\n'); -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); class TestStack extends cdk.Stack { constructor(scope: cdk.App, id: string, props?: cdk.StackProps) { super(scope, id, props); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.instance-init.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.instance-init.ts index b3dde02591055..9ce574f7e5399 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.instance-init.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.instance-init.ts @@ -7,6 +7,7 @@ import * as integ from '@aws-cdk/integ-tests-alpha'; import { EC2_RESTRICT_DEFAULT_SECURITY_GROUP } from 'aws-cdk-lib/cx-api'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-ec2:ec2SumTImeoutEnabled': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.instance-ipv6-address-count.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.instance-ipv6-address-count.ts index 617db592e4832..9909f4226c124 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.instance-ipv6-address-count.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.instance-ipv6-address-count.ts @@ -2,7 +2,7 @@ import * as cdk from 'aws-cdk-lib'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import * as ec2 from 'aws-cdk-lib/aws-ec2'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); class TestStack extends cdk.Stack { constructor(scope: cdk.App, id: string, props?: cdk.StackProps) { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.instance-metadata-options.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.instance-metadata-options.ts index 09f3379b7b336..3b5a69e7d290e 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.instance-metadata-options.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.instance-metadata-options.ts @@ -2,7 +2,7 @@ import * as cdk from 'aws-cdk-lib'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import * as ec2 from 'aws-cdk-lib/aws-ec2'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); class TestStack extends cdk.Stack { constructor(scope: cdk.App, id: string, props?: cdk.StackProps) { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.instance-multipart-userdata.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.instance-multipart-userdata.ts index 25dd486f0a4a6..94d9a6afb0cae 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.instance-multipart-userdata.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.instance-multipart-userdata.ts @@ -3,7 +3,7 @@ import { PolicyStatement } from 'aws-cdk-lib/aws-iam'; import * as cdk from 'aws-cdk-lib'; import * as ec2 from 'aws-cdk-lib/aws-ec2'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); class TestStack extends cdk.Stack { constructor(scope: cdk.App, id: string, props?: cdk.StackProps) { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.instance-nitro-enclaves-hibernation.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.instance-nitro-enclaves-hibernation.ts index 56299f54efd3f..d2ccd2531fa05 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.instance-nitro-enclaves-hibernation.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.instance-nitro-enclaves-hibernation.ts @@ -2,7 +2,7 @@ import * as cdk from 'aws-cdk-lib'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import * as ec2 from 'aws-cdk-lib/aws-ec2'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); class TestStack extends cdk.Stack { constructor(scope: cdk.App, id: string, props?: cdk.StackProps) { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.instance-placement-group.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.instance-placement-group.ts index 7ad41fdcbcad5..39b8c1e1346d8 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.instance-placement-group.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.instance-placement-group.ts @@ -6,7 +6,7 @@ import { } from 'aws-cdk-lib/aws-ec2'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'ec2-instance-placementgroup-stack'); // create a placementGroup diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.instance-public-and-privateip.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.instance-public-and-privateip.ts index ce8bc6189b08c..391f19c3ee790 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.instance-public-and-privateip.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.instance-public-and-privateip.ts @@ -3,7 +3,7 @@ import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import * as ec2 from 'aws-cdk-lib/aws-ec2'; import { EC2_RESTRICT_DEFAULT_SECURITY_GROUP } from 'aws-cdk-lib/cx-api'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); class TestStack extends cdk.Stack { constructor(scope: cdk.App, id: string, props?: cdk.StackProps) { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.instance-public.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.instance-public.ts index 63b910e6e4fbd..6c6c922ab5ae7 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.instance-public.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.instance-public.ts @@ -4,7 +4,7 @@ import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import * as ec2 from 'aws-cdk-lib/aws-ec2'; import { EC2_RESTRICT_DEFAULT_SECURITY_GROUP } from 'aws-cdk-lib/cx-api'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); class TestStack extends cdk.Stack { constructor(scope: cdk.App, id: string, props?: cdk.StackProps) { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.instance.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.instance.ts index 58d823afa6cec..49ec73d16be32 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.instance.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.instance.ts @@ -4,7 +4,7 @@ import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import * as ec2 from 'aws-cdk-lib/aws-ec2'; import { EC2_RESTRICT_DEFAULT_SECURITY_GROUP } from 'aws-cdk-lib/cx-api'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); class TestStack extends cdk.Stack { constructor(scope: cdk.App, id: string, props?: cdk.StackProps) { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.key-pair.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.key-pair.ts index fbc6553308cd5..89ca588bbc030 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.key-pair.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.key-pair.ts @@ -2,7 +2,7 @@ import * as cdk from 'aws-cdk-lib'; import * as integ from '@aws-cdk/integ-tests-alpha'; import * as ec2 from 'aws-cdk-lib/aws-ec2'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-ec2-key-pair-1'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.launch-template.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.launch-template.ts index 0a42c7d9f6ed5..3b913b8e7c5a2 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.launch-template.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.launch-template.ts @@ -2,7 +2,7 @@ import * as cdk from 'aws-cdk-lib'; import * as integ from '@aws-cdk/integ-tests-alpha'; import * as ec2 from 'aws-cdk-lib/aws-ec2'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-ec2-lt-metadata-1'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.machine-image-cached.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.machine-image-cached.ts index 5e4a9db574780..67389a43376c3 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.machine-image-cached.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.machine-image-cached.ts @@ -44,7 +44,7 @@ export class TestCase extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new TestCase(app, 'cdk-ec2-machine-image-cached', { env }); new IntegTest(app, 'integ-ec2-machine-image-cached', { testCases: [stack], diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.machine-image.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.machine-image.ts index 8e468f1f3aac2..c42e3eac1ccda 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.machine-image.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.machine-image.ts @@ -65,7 +65,7 @@ export class TestCase extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); new IntegTest(app, 'integ-test', { testCases: [new TestCase(app, 'integ-ec2-machine-image-test')], enableLookups: true, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.nat-gateway-provider.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.nat-gateway-provider.ts index 1a7d968791d0a..b6a64be6704cd 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.nat-gateway-provider.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.nat-gateway-provider.ts @@ -25,7 +25,7 @@ class NatGatewayStack extends cdk.Stack { } } -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const testCase = new NatGatewayStack(app, 'aws-cdk-vpc-nat-gateway-provider'); new IntegTest(app, 'integ-test', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.nat-instance-credit.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.nat-instance-credit.ts index 3d3364a90ed9d..acbe90d0ea238 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.nat-instance-credit.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.nat-instance-credit.ts @@ -19,7 +19,7 @@ class NatInstanceStack extends cdk.Stack { } } -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const testCase = new NatInstanceStack(app, 'aws-cdk-vpc-nat-instance-credit', {}); new IntegTest(app, 'integ-test', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.nat-instances-v2-arm.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.nat-instances-v2-arm.ts index 1fbc0e2579d32..32bcbfe82d599 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.nat-instances-v2-arm.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.nat-instances-v2-arm.ts @@ -43,7 +43,7 @@ class NatInstanceStack extends cdk.Stack { } } -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new NatInstanceStack(app, 'aws-cdk-vpc-nat-instances-v2-arm'); const integ = new IntegTest(app, 'nat-instance-v2-arm-integ-test', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.nat-instances-v2-custom.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.nat-instances-v2-custom.ts index 1ae702884cd31..eb068601706f2 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.nat-instances-v2-custom.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.nat-instances-v2-custom.ts @@ -68,7 +68,7 @@ class NatInstanceStack extends cdk.Stack { } } -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new NatInstanceStack(app, 'aws-cdk-vpc-nat-instance-v2-custom'); const integ = new IntegTest(app, 'nat-instance-v2-custom-integ-test', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.nat-instances-v2.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.nat-instances-v2.ts index 3497020df54f0..fdf7722e9a4d4 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.nat-instances-v2.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.nat-instances-v2.ts @@ -43,7 +43,7 @@ class NatInstanceStack extends cdk.Stack { } } -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new NatInstanceStack(app, 'aws-cdk-vpc-nat-instances-v2'); const integ = new IntegTest(app, 'nat-instance-v2-integ-test', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.nat-instances-with-public-ip.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.nat-instances-with-public-ip.ts index 5071a6e57a709..2d0ee11df6bbd 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.nat-instances-with-public-ip.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.nat-instances-with-public-ip.ts @@ -28,7 +28,7 @@ class NatInstanceStack extends cdk.Stack { } } -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new NatInstanceStack(app, 'aws-cdk-vpc-nat-instances-v2-with-public-ip'); new IntegTest(app, 'nat-instance-v2-with-public-ip-integ-test', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.nat-instances.lit.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.nat-instances.lit.ts index a5561d4456314..e3aad9488f2b7 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.nat-instances.lit.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.nat-instances.lit.ts @@ -27,7 +27,7 @@ class NatInstanceStack extends cdk.Stack { } } -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const testCase = new NatInstanceStack(app, 'aws-cdk-vpc-nat-instances', { env: { account: process.env.CDK_INTEG_ACCOUNT || process.env.CDK_DEFAULT_ACCOUNT, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.placement-group.js b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.placement-group.js index 27107f49e1a9f..09714ed129d3f 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.placement-group.js +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.placement-group.js @@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); const aws_cdk_lib_1 = require("aws-cdk-lib"); const integ = require("@aws-cdk/integ-tests-alpha"); const ec2 = require("aws-cdk-lib/aws-ec2"); -const app = new aws_cdk_lib_1.App(); +const app = new aws_cdk_lib_1.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new aws_cdk_lib_1.Stack(app, 'stack'); new ec2.PlacementGroup(stack, 'placementGroupNoProps'); new ec2.PlacementGroup(stack, 'PlacementGroupOnlyPartition', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.placement-group.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.placement-group.ts index 36ee172486870..fb47e5ebdf85d 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.placement-group.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.placement-group.ts @@ -2,7 +2,7 @@ import { App, Stack } from 'aws-cdk-lib'; import * as integ from '@aws-cdk/integ-tests-alpha'; import * as ec2 from 'aws-cdk-lib/aws-ec2'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'stack'); new ec2.PlacementGroup(stack, 'placementGroupNoProps'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.ports.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.ports.ts index c5d88fab3209c..69cf2bd1ad4e0 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.ports.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.ports.ts @@ -3,7 +3,7 @@ import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import * as ec2 from 'aws-cdk-lib/aws-ec2'; import { EC2_RESTRICT_DEFAULT_SECURITY_GROUP } from 'aws-cdk-lib/cx-api'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); class TestStack extends cdk.Stack { constructor(scope: cdk.App, id: string, props?: cdk.StackProps) { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.prefix-list-lookup.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.prefix-list-lookup.ts index c46cd21d56e7a..e0b8bb6c6a00f 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.prefix-list-lookup.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.prefix-list-lookup.ts @@ -2,7 +2,7 @@ import * as cdk from 'aws-cdk-lib/core'; import * as integ from '@aws-cdk/integ-tests-alpha'; import { PrefixList } from 'aws-cdk-lib/aws-ec2'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'prefixlist-from-lookup', { env: { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.prefix-list.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.prefix-list.ts index 2ae720e0f011d..17d7d34f4facc 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.prefix-list.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.prefix-list.ts @@ -25,7 +25,7 @@ export class TestCase extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); new IntegTest(app, 'integ-test', { testCases: [new TestCase(app, 'integ-ec2-prefix-list-test')], }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.reserved-private-subnet.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.reserved-private-subnet.ts index 66062afb12333..fcdb10d92955f 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.reserved-private-subnet.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.reserved-private-subnet.ts @@ -11,7 +11,7 @@ import * as ec2 from 'aws-cdk-lib/aws-ec2'; * -- aws ec2 describe-nat-gateways returns { "natGateways": []} */ -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); class VpcReservedPrivateSubnetStack extends cdk.Stack { constructor(scope: cdk.App, id: string, props?: cdk.StackProps) { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.reserved-public-subnet.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.reserved-public-subnet.ts index 8e2085d756de6..465ef6125eac2 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.reserved-public-subnet.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.reserved-public-subnet.ts @@ -2,7 +2,7 @@ import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import * as cdk from 'aws-cdk-lib'; import * as ec2 from 'aws-cdk-lib/aws-ec2'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); class VpcReservedPublicSubnetStack extends cdk.Stack { constructor(scope: cdk.App, id: string, props?: cdk.StackProps) { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.share-vpcs.lit.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.share-vpcs.lit.ts index 0ad26ed3d93d6..66b5a36201a52 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.share-vpcs.lit.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.share-vpcs.lit.ts @@ -4,7 +4,7 @@ import { Construct } from 'constructs'; import * as ec2 from 'aws-cdk-lib/aws-ec2'; import { EC2_RESTRICT_DEFAULT_SECURITY_GROUP } from 'aws-cdk-lib/cx-api'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); interface ConstructThatTakesAVpcProps { vpc: ec2.IVpc; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.userdata.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.userdata.ts index 433cd66d83378..91fff148f8fec 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.userdata.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.userdata.ts @@ -3,7 +3,7 @@ import * as cdk from 'aws-cdk-lib'; import * as ec2 from 'aws-cdk-lib/aws-ec2'; import { EC2_RESTRICT_DEFAULT_SECURITY_GROUP } from 'aws-cdk-lib/cx-api'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'integ-userdata'); stack.node.setContext(EC2_RESTRICT_DEFAULT_SECURITY_GROUP, false); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.volume-initialization-rate.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.volume-initialization-rate.ts index 4045f2acf9051..2b075cc585968 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.volume-initialization-rate.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.volume-initialization-rate.ts @@ -3,7 +3,7 @@ import * as integ from '@aws-cdk/integ-tests-alpha'; import * as ec2 from 'aws-cdk-lib/aws-ec2'; import { SnapshotProvider } from './snapshot-provider'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'volume-initialization-rate-stack'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.volume.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.volume.ts index 4282db6cd3575..72b71b16c0ddc 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.volume.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.volume.ts @@ -3,7 +3,7 @@ import * as integ from '@aws-cdk/integ-tests-alpha'; import * as ec2 from 'aws-cdk-lib/aws-ec2'; import { EC2_RESTRICT_DEFAULT_SECURITY_GROUP } from 'aws-cdk-lib/cx-api'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-ec2-volume-1'); stack.node.setContext(EC2_RESTRICT_DEFAULT_SECURITY_GROUP, false); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-azs.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-azs.ts index 79ed9e34f1cd5..3e00c58e9747c 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-azs.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-azs.ts @@ -2,7 +2,7 @@ import * as cdk from 'aws-cdk-lib'; import * as ec2 from 'aws-cdk-lib/aws-ec2'; import { EC2_RESTRICT_DEFAULT_SECURITY_GROUP } from 'aws-cdk-lib/cx-api'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-ec2-vpc-azs'); stack.node.setContext(EC2_RESTRICT_DEFAULT_SECURITY_GROUP, false); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-dual-stack-ec2.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-dual-stack-ec2.ts index ff22d28233635..976f6e6af4596 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-dual-stack-ec2.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-dual-stack-ec2.ts @@ -8,7 +8,7 @@ import * as ec2 from 'aws-cdk-lib/aws-ec2'; import type { Construct } from 'constructs'; import * as path from 'path'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); class EC2DualStack extends cdk.Stack { public readonly instancePublicIp: string; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-dual-stack.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-dual-stack.ts index 0f1b34e3ab907..191cb17beb8ec 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-dual-stack.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-dual-stack.ts @@ -2,7 +2,7 @@ import { App, Stack } from 'aws-cdk-lib/core'; import * as ec2 from 'aws-cdk-lib/aws-ec2'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'DualStackVpc'); const natProvider = ec2.NatProvider.gateway(); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-egress-only-igw-feature-flag.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-egress-only-igw-feature-flag.ts index 6e1d18ca92ab4..d8eec2843a5aa 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-egress-only-igw-feature-flag.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-egress-only-igw-feature-flag.ts @@ -14,7 +14,7 @@ import * as ec2 from 'aws-cdk-lib/aws-ec2'; * Each stack creates a VPC with a public subnet. */ -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); class VpcEgressOnlyIGWFeatureFlagEnabledStack extends cdk.Stack { constructor(scope: cdk.App, id: string, props?: cdk.StackProps) { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-endpoint-eusc.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-endpoint-eusc.ts index 39df480db3828..a740b3176045e 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-endpoint-eusc.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-endpoint-eusc.ts @@ -29,7 +29,7 @@ class EuscVpcEndpointStack extends cdk.Stack { } } -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const testCase = new EuscVpcEndpointStack(app, 'aws-cdk-ec2-vpc-endpoint-eusc', { env: { region: 'eusc-de-east-1' }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-endpoint-service.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-endpoint-service.ts index 745d0a528f649..ae6d15fc52527 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-endpoint-service.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-endpoint-service.ts @@ -3,7 +3,7 @@ import * as ec2 from 'aws-cdk-lib/aws-ec2'; import * as elbv2 from 'aws-cdk-lib/aws-elasticloadbalancingv2'; import * as integ from '@aws-cdk/integ-tests-alpha'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); class TestStack extends cdk.Stack { constructor(scope:cdk.App, id: string, props?: cdk.StackProps) { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-endpoint.lit.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-endpoint.lit.ts index 49035924b30e0..9709b39ef1121 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-endpoint.lit.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-endpoint.lit.ts @@ -4,7 +4,7 @@ import * as ec2 from 'aws-cdk-lib/aws-ec2'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import { EC2_RESTRICT_DEFAULT_SECURITY_GROUP } from 'aws-cdk-lib/cx-api'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); class VpcEndpointStack extends cdk.Stack { constructor(scope: cdk.App, id: string, props?: cdk.StackProps) { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-filter-subnets.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-filter-subnets.ts index 9285cbf10cd0d..104048bb62285 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-filter-subnets.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-filter-subnets.ts @@ -4,7 +4,7 @@ import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import * as ec2 from 'aws-cdk-lib/aws-ec2'; import { EC2_RESTRICT_DEFAULT_SECURITY_GROUP } from 'aws-cdk-lib/cx-api'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); class TestStack extends Stack { constructor(scope: App, id: string, props?: StackProps) { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-flow-logs-customformat.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-flow-logs-customformat.ts index 438b2ec673d10..0b9922554239d 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-flow-logs-customformat.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-flow-logs-customformat.ts @@ -6,7 +6,7 @@ import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import { FlowLog, FlowLogDestination, FlowLogResourceType, Vpc, LogFormat } from 'aws-cdk-lib/aws-ec2'; import { EC2_RESTRICT_DEFAULT_SECURITY_GROUP } from 'aws-cdk-lib/cx-api'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); class TestStack extends Stack { constructor(scope: App, id: string, props?: StackProps) { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-flow-logs-firehose.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-flow-logs-firehose.ts index 2b0b53e0ac591..84579ac46cb7b 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-flow-logs-firehose.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-flow-logs-firehose.ts @@ -5,7 +5,7 @@ import { FlowLog, FlowLogDestination, FlowLogResourceType, Vpc } from 'aws-cdk-l import * as firehose from 'aws-cdk-lib/aws-kinesisfirehose'; import * as s3 from 'aws-cdk-lib/aws-s3'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); class TestStack extends Stack { constructor(scope: App, id: string, props?: StackProps) { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-flow-logs-from-transit-gateway.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-flow-logs-from-transit-gateway.ts index 9dd945480930c..f834d47e59529 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-flow-logs-from-transit-gateway.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-flow-logs-from-transit-gateway.ts @@ -4,7 +4,7 @@ import { FlowLog, FlowLogResourceType, Vpc } from 'aws-cdk-lib/aws-ec2'; import * as cdk from 'aws-cdk-lib'; import * as ec2 from 'aws-cdk-lib/aws-ec2'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-ec2-flow-logs'); const vpc = new Vpc(stack, 'VPC'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-flow-logs-interval.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-flow-logs-interval.ts index 99fe5714ab842..ca4e695ad48c7 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-flow-logs-interval.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-flow-logs-interval.ts @@ -6,7 +6,7 @@ import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import { FlowLog, FlowLogDestination, FlowLogResourceType, Vpc, FlowLogMaxAggregationInterval } from 'aws-cdk-lib/aws-ec2'; import { EC2_RESTRICT_DEFAULT_SECURITY_GROUP } from 'aws-cdk-lib/cx-api'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); class TestStack extends Stack { constructor(scope: App, id: string, props?: StackProps) { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-flow-logs.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-flow-logs.ts index b580f97b3a428..1448d81d5cea3 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-flow-logs.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-flow-logs.ts @@ -7,7 +7,7 @@ import { IntegTest, ExpectedResult } from '@aws-cdk/integ-tests-alpha'; import { FlowLog, FlowLogDestination, FlowLogResourceType, Vpc, Instance, InstanceType, InstanceClass, InstanceSize, MachineImage, AmazonLinuxGeneration } from 'aws-cdk-lib/aws-ec2'; import { EC2_RESTRICT_DEFAULT_SECURITY_GROUP } from 'aws-cdk-lib/cx-api'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); class FeatureFlagStack extends Stack { public readonly bucketArn: string; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-gateway.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-gateway.ts index 7243717071ce3..d5aad1f686557 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-gateway.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-gateway.ts @@ -2,7 +2,7 @@ import * as cdk from 'aws-cdk-lib'; import * as ec2 from 'aws-cdk-lib/aws-ec2'; import { EC2_RESTRICT_DEFAULT_SECURITY_GROUP } from 'aws-cdk-lib/cx-api'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-ec2-vpc-gateway'); stack.node.setContext(EC2_RESTRICT_DEFAULT_SECURITY_GROUP, false); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-global-endpoint.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-global-endpoint.ts index d47c81343ecd9..cdd3e50433516 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-global-endpoint.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-global-endpoint.ts @@ -53,7 +53,7 @@ class Test extends cdk.Stack { } } -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const testCase = new Test(app, 'test-globalvpcendpoint'); new IntegTest(app, 'globalvpcendpoint', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-ipam.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-ipam.ts index 712387b9652fa..fe3e1da2000bd 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-ipam.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-ipam.ts @@ -4,7 +4,7 @@ import type { CfnVPC } from 'aws-cdk-lib/aws-ec2'; import { IpAddresses, CfnIPAM, CfnIPAMPool, SubnetType, Vpc } from 'aws-cdk-lib/aws-ec2'; import { EC2_RESTRICT_DEFAULT_SECURITY_GROUP } from 'aws-cdk-lib/cx-api'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-ec2-ipam-vpc'); stack.node.setContext(EC2_RESTRICT_DEFAULT_SECURITY_GROUP, false); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-ipv6.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-ipv6.ts index 6cfcde15ca843..d7f65f28c818b 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-ipv6.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-ipv6.ts @@ -2,7 +2,7 @@ import { App, Stack } from 'aws-cdk-lib/core'; import * as ec2 from 'aws-cdk-lib/aws-ec2'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'Ipv6Vpc'); const natProvider = ec2.NatProvider.gateway(); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-lookup.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-lookup.ts index c48c28c253a60..b71f09b223d4d 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-lookup.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-lookup.ts @@ -3,7 +3,7 @@ import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import * as ec2 from 'aws-cdk-lib/aws-ec2'; import { EC2_RESTRICT_DEFAULT_SECURITY_GROUP } from 'aws-cdk-lib/cx-api'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'StackUnderTest', { env: { account: process.env.AWS_ACCOUNT_ID ?? process.env.CDK_DEFAULT_ACCOUNT ?? '123456789012', diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-networkacl.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-networkacl.ts index c44c1198b4ec3..c4f87ebe3c56a 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-networkacl.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-networkacl.ts @@ -2,7 +2,7 @@ import * as cdk from 'aws-cdk-lib'; import * as ec2 from 'aws-cdk-lib/aws-ec2'; import { EC2_RESTRICT_DEFAULT_SECURITY_GROUP } from 'aws-cdk-lib/cx-api'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-ec2-vpc'); stack.node.setContext(EC2_RESTRICT_DEFAULT_SECURITY_GROUP, false); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-no-default-igw.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-no-default-igw.ts index d20d0c638c153..cadf479610409 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-no-default-igw.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-no-default-igw.ts @@ -2,7 +2,7 @@ import * as cdk from 'aws-cdk-lib'; import * as integ from '@aws-cdk/integ-tests-alpha'; import * as ec2 from 'aws-cdk-lib/aws-ec2'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-vpc-no-default-igw'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-reserved-azs.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-reserved-azs.ts index 41e05985acdb9..b8a4c7a68e63e 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-reserved-azs.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-reserved-azs.ts @@ -3,7 +3,7 @@ import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import * as ec2 from 'aws-cdk-lib/aws-ec2'; import { EC2_RESTRICT_DEFAULT_SECURITY_GROUP } from 'aws-cdk-lib/cx-api'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'integtest-vpc-reserved-azs'); stack.node.setContext(EC2_RESTRICT_DEFAULT_SECURITY_GROUP, false); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-restrict-default-sg.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-restrict-default-sg.ts index 9df553e8532f0..1ee72b4dd4831 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-restrict-default-sg.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-restrict-default-sg.ts @@ -2,7 +2,7 @@ import { ExpectedResult, IntegTest, Match } from '@aws-cdk/integ-tests-alpha'; import { Stack, App } from 'aws-cdk-lib'; import { Vpc } from 'aws-cdk-lib/aws-ec2'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'integ-restrict-default-sg'); const vpc = new Vpc(stack, 'Vpc', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc.ts index ae56cac882430..4d2f322217821 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc.ts @@ -2,7 +2,7 @@ import * as cdk from 'aws-cdk-lib'; import * as ec2 from 'aws-cdk-lib/aws-ec2'; import { EC2_RESTRICT_DEFAULT_SECURITY_GROUP } from 'aws-cdk-lib/cx-api'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-ec2-vpc'); stack.node.setContext(EC2_RESTRICT_DEFAULT_SECURITY_GROUP, false); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpn-pre-shared-key-token.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpn-pre-shared-key-token.ts index f98d4ca7adf35..5694d35571def 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpn-pre-shared-key-token.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpn-pre-shared-key-token.ts @@ -2,7 +2,7 @@ import * as cdk from 'aws-cdk-lib'; import * as ec2 from 'aws-cdk-lib/aws-ec2'; import { EC2_RESTRICT_DEFAULT_SECURITY_GROUP } from 'aws-cdk-lib/cx-api'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-ec2-vpn'); stack.node.setContext(EC2_RESTRICT_DEFAULT_SECURITY_GROUP, false); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpn-two-tunnels.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpn-two-tunnels.ts index df130c2fa6d4c..a8744680bbbf6 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpn-two-tunnels.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpn-two-tunnels.ts @@ -4,7 +4,7 @@ import * as integ from '@aws-cdk/integ-tests-alpha'; import { SecretValue } from 'aws-cdk-lib/core'; import { EC2_RESTRICT_DEFAULT_SECURITY_GROUP } from 'aws-cdk-lib/cx-api'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-ec2-vpn-two-tunnels'); stack.node.setContext(EC2_RESTRICT_DEFAULT_SECURITY_GROUP, false); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpn.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpn.ts index bf8e968707661..eb50ff860f419 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpn.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpn.ts @@ -2,7 +2,7 @@ import * as cdk from 'aws-cdk-lib'; import * as ec2 from 'aws-cdk-lib/aws-ec2'; import { EC2_RESTRICT_DEFAULT_SECURITY_GROUP } from 'aws-cdk-lib/cx-api'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-ec2-vpn'); stack.node.setContext(EC2_RESTRICT_DEFAULT_SECURITY_GROUP, false); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecr-assets/test/integ.assets-docker-build-context.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecr-assets/test/integ.assets-docker-build-context.ts index 4a2cc6c2a0c5a..252f80fd911cd 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecr-assets/test/integ.assets-docker-build-context.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecr-assets/test/integ.assets-docker-build-context.ts @@ -4,7 +4,7 @@ import * as cdk from 'aws-cdk-lib'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import * as assets from 'aws-cdk-lib/aws-ecr-assets'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'integ-assets-docker-build-context'); const asset = new assets.DockerImageAsset(stack, 'DockerImageWithBuildContext', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecr-assets/test/integ.assets-docker.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecr-assets/test/integ.assets-docker.ts index 333ae85c8c69d..5f6a625e1ebb9 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecr-assets/test/integ.assets-docker.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecr-assets/test/integ.assets-docker.ts @@ -3,7 +3,7 @@ import * as iam from 'aws-cdk-lib/aws-iam'; import * as cdk from 'aws-cdk-lib'; import * as assets from 'aws-cdk-lib/aws-ecr-assets'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'integ-assets-docker'); const asset = new assets.DockerImageAsset(stack, 'DockerImage', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecr-assets/test/integ.assets-tarball.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecr-assets/test/integ.assets-tarball.ts index 9eeb0d38675f6..afb55e5d50d6f 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecr-assets/test/integ.assets-tarball.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecr-assets/test/integ.assets-tarball.ts @@ -4,7 +4,7 @@ import * as cdk from 'aws-cdk-lib'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import * as assets from 'aws-cdk-lib/aws-ecr-assets'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'integ-assets-tarball'); const asset = new assets.TarballImageAsset(stack, 'DockerImage', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecr-assets/test/integ.nested-stacks-docker.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecr-assets/test/integ.nested-stacks-docker.ts index 991b1f3327d57..c34145035834d 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecr-assets/test/integ.nested-stacks-docker.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecr-assets/test/integ.nested-stacks-docker.ts @@ -28,6 +28,6 @@ class TheParentStack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); new TheParentStack(app, 'nested-stacks-docker'); app.synth(); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecr/test/integ.basic.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecr/test/integ.basic.ts index 80a5161e5b015..bd9ebe0a0e76a 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecr/test/integ.basic.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecr/test/integ.basic.ts @@ -6,6 +6,7 @@ import * as lambda from 'aws-cdk-lib/aws-lambda'; import { LambdaFunction } from 'aws-cdk-lib/aws-events-targets'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecr/test/integ.grant.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecr/test/integ.grant.ts index 6687b230c3fb8..3cdb8d5c75876 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecr/test/integ.grant.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecr/test/integ.grant.ts @@ -3,7 +3,7 @@ import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import * as ecr from 'aws-cdk-lib/aws-ecr'; import * as iam from 'aws-cdk-lib/aws-iam'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-ecr-integ-stack'); const repo = new ecr.Repository(stack, 'Repo'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecr/test/integ.imagescan.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecr/test/integ.imagescan.ts index 28b27c7883052..c489de97b0c1b 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecr/test/integ.imagescan.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecr/test/integ.imagescan.ts @@ -2,7 +2,7 @@ import * as cdk from 'aws-cdk-lib'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import * as ecr from 'aws-cdk-lib/aws-ecr'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-ecr-integ-stack'); const repo = new ecr.Repository(stack, 'Repo', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecr/test/integ.repository-auto-delete-images-mixin.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecr/test/integ.repository-auto-delete-images-mixin.ts index 46c6af9b432a1..ab1aa1b976c6c 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecr/test/integ.repository-auto-delete-images-mixin.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecr/test/integ.repository-auto-delete-images-mixin.ts @@ -2,7 +2,7 @@ import * as cdk from 'aws-cdk-lib'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import * as ecr from 'aws-cdk-lib/aws-ecr'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-ecr-auto-delete-images-mixin-stack'); const repo = new ecr.CfnRepository(stack, 'Repo', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecr/test/integ.repository-auto-delete-images.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecr/test/integ.repository-auto-delete-images.ts index 931dff54de1d0..461e2d470a668 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecr/test/integ.repository-auto-delete-images.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecr/test/integ.repository-auto-delete-images.ts @@ -2,7 +2,7 @@ import * as cdk from 'aws-cdk-lib'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import * as ecr from 'aws-cdk-lib/aws-ecr'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-ecr-integ-stack'); const repo = new ecr.Repository(stack, 'Repo', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecr/test/integ.repository-lookup.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecr/test/integ.repository-lookup.ts index c716cfc195e8f..153cd063c8042 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecr/test/integ.repository-lookup.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecr/test/integ.repository-lookup.ts @@ -5,6 +5,7 @@ import * as ecr from 'aws-cdk-lib/aws-ecr'; import * as lambda from 'aws-cdk-lib/aws-lambda'; const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecr/test/integ.tag-mutability-exclusion.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecr/test/integ.tag-mutability-exclusion.ts index 83034aa01e25f..25ecfdc48ed9b 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecr/test/integ.tag-mutability-exclusion.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecr/test/integ.tag-mutability-exclusion.ts @@ -2,7 +2,7 @@ import * as cdk from 'aws-cdk-lib'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import * as ecr from 'aws-cdk-lib/aws-ecr'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-ecr-tag-mutability-exclusion-stack'); new ecr.Repository(stack, 'ImmutableRepoWithExclusions', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/ec2/integ.alb-ecs-service-command-entry-point.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/ec2/integ.alb-ecs-service-command-entry-point.ts index d3fd072adbc82..9b65d550c6ef5 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/ec2/integ.alb-ecs-service-command-entry-point.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/ec2/integ.alb-ecs-service-command-entry-point.ts @@ -6,6 +6,7 @@ import * as integ from '@aws-cdk/integ-tests-alpha'; import * as ecsPatterns from 'aws-cdk-lib/aws-ecs-patterns'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-ecs:removeDefaultDeploymentAlarm': true, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/ec2/integ.application-load-balanced-ecs-service.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/ec2/integ.application-load-balanced-ecs-service.ts index f2631c29a94fb..438707a21b9c2 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/ec2/integ.application-load-balanced-ecs-service.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/ec2/integ.application-load-balanced-ecs-service.ts @@ -8,6 +8,7 @@ import { ApplicationLoadBalancedEc2Service } from 'aws-cdk-lib/aws-ecs-patterns' import * as elbv2 from 'aws-cdk-lib/aws-elasticloadbalancingv2'; const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { }, }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/ec2/integ.healthchecks-multiple-application-load-balanced-ecs-service.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/ec2/integ.healthchecks-multiple-application-load-balanced-ecs-service.ts index 3b78470797411..9cba3ff65256d 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/ec2/integ.healthchecks-multiple-application-load-balanced-ecs-service.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/ec2/integ.healthchecks-multiple-application-load-balanced-ecs-service.ts @@ -9,6 +9,7 @@ import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import { ApplicationMultipleTargetGroupsEc2Service } from 'aws-cdk-lib/aws-ecs-patterns'; const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { }, }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/ec2/integ.healthchecks-multiple-network-load-balanced-ecs-service.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/ec2/integ.healthchecks-multiple-network-load-balanced-ecs-service.ts index 375808f7102bb..0ffec36bb11f8 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/ec2/integ.healthchecks-multiple-network-load-balanced-ecs-service.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/ec2/integ.healthchecks-multiple-network-load-balanced-ecs-service.ts @@ -7,6 +7,7 @@ import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import { NetworkMultipleTargetGroupsEc2Service } from 'aws-cdk-lib/aws-ecs-patterns'; const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { }, }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/ec2/integ.multiple-application-load-balanced-ecs-service-idle-timeout.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/ec2/integ.multiple-application-load-balanced-ecs-service-idle-timeout.ts index 18bb831d5e73d..bbf027ceb5e84 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/ec2/integ.multiple-application-load-balanced-ecs-service-idle-timeout.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/ec2/integ.multiple-application-load-balanced-ecs-service-idle-timeout.ts @@ -10,6 +10,7 @@ import { ApplicationMultipleTargetGroupsEc2Service } from 'aws-cdk-lib/aws-ecs-p import { AUTOSCALING_GENERATE_LAUNCH_TEMPLATE } from 'aws-cdk-lib/cx-api'; const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, '@aws-cdk/aws-ecs:removeDefaultDeploymentAlarm': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/ec2/integ.multiple-application-load-balanced-ecs-service.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/ec2/integ.multiple-application-load-balanced-ecs-service.ts index b3f03951c4c6c..cba37c7cd5dfe 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/ec2/integ.multiple-application-load-balanced-ecs-service.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/ec2/integ.multiple-application-load-balanced-ecs-service.ts @@ -7,6 +7,7 @@ import { ApplicationMultipleTargetGroupsEc2Service } from 'aws-cdk-lib/aws-ecs-p import { REDUCE_EC2_FARGATE_CLOUDWATCH_PERMISSIONS } from 'aws-cdk-lib/cx-api'; const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, [REDUCE_EC2_FARGATE_CLOUDWATCH_PERMISSIONS]: false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/ec2/integ.network-load-balanced-ecs-service.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/ec2/integ.network-load-balanced-ecs-service.ts index cd6cb5ac23013..6683ed9c6b6cd 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/ec2/integ.network-load-balanced-ecs-service.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/ec2/integ.network-load-balanced-ecs-service.ts @@ -8,6 +8,7 @@ import { NetworkLoadBalancedEc2Service } from 'aws-cdk-lib/aws-ecs-patterns'; import { IpAddressType } from 'aws-cdk-lib/aws-elasticloadbalancingv2'; const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { }, }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/ec2/integ.scheduled-ecs-task.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/ec2/integ.scheduled-ecs-task.ts index 2909b47100c30..2dda7473151f9 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/ec2/integ.scheduled-ecs-task.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/ec2/integ.scheduled-ecs-task.ts @@ -6,6 +6,7 @@ import * as integ from '@aws-cdk/integ-tests-alpha'; import { ScheduledEc2Task } from 'aws-cdk-lib/aws-ecs-patterns'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, '@aws-cdk/aws-lambda:createNewPoliciesWithAddToRolePolicy': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/ec2/integ.tls-network-load-balanced-ecs-service.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/ec2/integ.tls-network-load-balanced-ecs-service.ts index 7e31edb4aa12f..3879e238d9123 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/ec2/integ.tls-network-load-balanced-ecs-service.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/ec2/integ.tls-network-load-balanced-ecs-service.ts @@ -12,6 +12,7 @@ const certArn = process.env.CDK_INTEG_CERT_ARN || process.env.CERT_ARN; if (!certArn) throw new Error('For this test you must provide your own Certificate as an env var "CERT_ARN". See framework-integ/README.md for details.'); const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, '@aws-cdk/aws-lambda:createNewPoliciesWithAddToRolePolicy': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.alb-fargate-service-command-entry-point.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.alb-fargate-service-command-entry-point.ts index 72eba5604fb9f..7706d7649662f 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.alb-fargate-service-command-entry-point.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.alb-fargate-service-command-entry-point.ts @@ -4,7 +4,7 @@ import * as cdk from 'aws-cdk-lib'; import * as integ from '@aws-cdk/integ-tests-alpha'; import * as ecsPatterns from 'aws-cdk-lib/aws-ecs-patterns'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack( app, 'aws-ecs-integ-lb-fargate-cmd-entrypoint-test', diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.alb-fargate-service-custom-storage.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.alb-fargate-service-custom-storage.ts index b857fe8ba88df..5bab536920488 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.alb-fargate-service-custom-storage.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.alb-fargate-service-custom-storage.ts @@ -5,6 +5,7 @@ import { ApplicationLoadBalancedFargateService } from 'aws-cdk-lib/aws-ecs-patte import { ContainerImage } from 'aws-cdk-lib/aws-ecs'; const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-ecs:removeDefaultDeploymentAlarm': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.alb-fargate-service-health-check.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.alb-fargate-service-health-check.ts index 9d48f977bc341..f46aa03e04a90 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.alb-fargate-service-health-check.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.alb-fargate-service-health-check.ts @@ -5,6 +5,7 @@ import { ApplicationLoadBalancedFargateService } from 'aws-cdk-lib/aws-ecs-patte import { ContainerImage } from 'aws-cdk-lib/aws-ecs'; const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-ecs:removeDefaultDeploymentAlarm': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.alb-fargate-service-https.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.alb-fargate-service-https.ts index b707476962b53..9719e4a66fb97 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.alb-fargate-service-https.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.alb-fargate-service-https.ts @@ -7,6 +7,7 @@ import * as integ from '@aws-cdk/integ-tests-alpha'; import { ApplicationLoadBalancedFargateService } from 'aws-cdk-lib/aws-ecs-patterns'; const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-ecs:reduceEc2FargateCloudWatchPermissions': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.alb-fargate-service-idle-timeout.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.alb-fargate-service-idle-timeout.ts index c187807447ba4..252f137170221 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.alb-fargate-service-idle-timeout.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.alb-fargate-service-idle-timeout.ts @@ -6,6 +6,7 @@ import * as integ from '@aws-cdk/integ-tests-alpha'; import { ApplicationLoadBalancedFargateService } from 'aws-cdk-lib/aws-ecs-patterns'; const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-ecs:removeDefaultDeploymentAlarm': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.alb-fargate-service-ipv6.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.alb-fargate-service-ipv6.ts index eb40679d00672..04115c96e56c1 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.alb-fargate-service-ipv6.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.alb-fargate-service-ipv6.ts @@ -5,7 +5,7 @@ import { App, Duration, Stack } from 'aws-cdk-lib'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import { ApplicationLoadBalancedFargateService } from 'aws-cdk-lib/aws-ecs-patterns'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'aws-ecs-integ-alb-fg-ipv6'); const vpc = new ec2.Vpc(stack, 'Vpc', { maxAzs: 2, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.alb-fargate-service-public-private-switch.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.alb-fargate-service-public-private-switch.ts index 447accfa87db9..0190ba1bc77eb 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.alb-fargate-service-public-private-switch.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.alb-fargate-service-public-private-switch.ts @@ -6,6 +6,7 @@ import * as ecsPatterns from 'aws-cdk-lib/aws-ecs-patterns'; import { ECS_PATTERNS_UNIQUE_TARGET_GROUP_ID } from 'aws-cdk-lib/cx-api'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { [ECS_PATTERNS_UNIQUE_TARGET_GROUP_ID]: true, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.alb-fargate-service-smart-defaults.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.alb-fargate-service-smart-defaults.ts index d33618f4b951d..778a5189ffe1e 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.alb-fargate-service-smart-defaults.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.alb-fargate-service-smart-defaults.ts @@ -33,6 +33,7 @@ import * as integ from '@aws-cdk/integ-tests-alpha'; import { ApplicationLoadBalancedFargateService } from 'aws-cdk-lib/aws-ecs-patterns'; const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { // Enable the feature flag for this test '@aws-cdk/aws-ecs-patterns:secGroupsDisablesImplicitOpenListener': true, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.asset-image.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.asset-image.ts index 0e2e24d72509e..c9bb7452e3fd4 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.asset-image.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.asset-image.ts @@ -5,7 +5,7 @@ import * as cdk from 'aws-cdk-lib'; import * as integ from '@aws-cdk/integ-tests-alpha'; import * as ecsPatterns from 'aws-cdk-lib/aws-ecs-patterns'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-ecs-integ-fargate-image'); const vpc = new ec2.Vpc(stack, 'Vpc', { maxAzs: 2, restrictDefaultSecurityGroup: false }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.circuit-breaker-load-balanced-fargate-service.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.circuit-breaker-load-balanced-fargate-service.ts index a3e14490697a9..b8511ed1b8fda 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.circuit-breaker-load-balanced-fargate-service.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.circuit-breaker-load-balanced-fargate-service.ts @@ -5,7 +5,7 @@ import * as cxapi from 'aws-cdk-lib/cx-api'; import * as integ from '@aws-cdk/integ-tests-alpha'; import { ApplicationLoadBalancedFargateService } from 'aws-cdk-lib/aws-ecs-patterns'; -const app = new App({ postCliContext: { [cxapi.ECS_DISABLE_EXPLICIT_DEPLOYMENT_CONTROLLER_FOR_CIRCUIT_BREAKER]: false } }); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { [cxapi.ECS_DISABLE_EXPLICIT_DEPLOYMENT_CONTROLLER_FOR_CIRCUIT_BREAKER]: false } }); const stack = new Stack(app, 'aws-ecs-integ-circuit-breaker'); const vpc = new Vpc(stack, 'Vpc', { maxAzs: 2, restrictDefaultSecurityGroup: false }); const cluster = new Cluster(stack, 'Cluster', { vpc }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.circuit-breaker-no-deployment-controller-fargate-service.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.circuit-breaker-no-deployment-controller-fargate-service.ts index 5d0df982d80cd..fb701558b391f 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.circuit-breaker-no-deployment-controller-fargate-service.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.circuit-breaker-no-deployment-controller-fargate-service.ts @@ -4,7 +4,7 @@ import { App, Stack } from 'aws-cdk-lib'; import * as integ from '@aws-cdk/integ-tests-alpha'; import { ApplicationLoadBalancedFargateService } from 'aws-cdk-lib/aws-ecs-patterns'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'aws-ecs-integ-circuit-breaker-no-dc'); const vpc = new Vpc(stack, 'Vpc', { maxAzs: 2, restrictDefaultSecurityGroup: false }); const cluster = new Cluster(stack, 'Cluster', { vpc }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.circuit-breaker-queue-processing-fargate-service.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.circuit-breaker-queue-processing-fargate-service.ts index abd445767ab17..9bf14cd2dd7c2 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.circuit-breaker-queue-processing-fargate-service.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.circuit-breaker-queue-processing-fargate-service.ts @@ -6,7 +6,7 @@ import * as cxapi from 'aws-cdk-lib/cx-api'; import * as integ from '@aws-cdk/integ-tests-alpha'; import { QueueProcessingFargateService } from 'aws-cdk-lib/aws-ecs-patterns'; -const app = new App({ postCliContext: { [cxapi.ECS_DISABLE_EXPLICIT_DEPLOYMENT_CONTROLLER_FOR_CIRCUIT_BREAKER]: false } }); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { [cxapi.ECS_DISABLE_EXPLICIT_DEPLOYMENT_CONTROLLER_FOR_CIRCUIT_BREAKER]: false } }); const stack = new Stack(app, 'aws-ecs-patterns-queue'); const vpc = new ec2.Vpc(stack, 'VPC', { restrictDefaultSecurityGroup: false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.container-cpu-memory.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.container-cpu-memory.ts index 251ff86d24752..b6cc93a6c11d4 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.container-cpu-memory.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.container-cpu-memory.ts @@ -4,7 +4,7 @@ import { App, Stack } from 'aws-cdk-lib'; import * as integ from '@aws-cdk/integ-tests-alpha'; import { ApplicationLoadBalancedFargateService } from 'aws-cdk-lib/aws-ecs-patterns'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'aws-ecs-integ-container-cpu-memory'); const vpc = new Vpc(stack, 'Vpc', { maxAzs: 2, restrictDefaultSecurityGroup: false }); const cluster = new Cluster(stack, 'Cluster', { vpc }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.executionrole.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.executionrole.ts index fd4137f4ea319..48cbd11711d4b 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.executionrole.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.executionrole.ts @@ -5,7 +5,7 @@ import * as cdk from 'aws-cdk-lib'; import * as integ from '@aws-cdk/integ-tests-alpha'; import * as ecsPatterns from 'aws-cdk-lib/aws-ecs-patterns'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-ecs-integ-fargate-execrole'); const vpc = new ec2.Vpc(stack, 'Vpc', { maxAzs: 2, restrictDefaultSecurityGroup: false }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.healthchecks-multiple-application-load-balanced-fargate-service.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.healthchecks-multiple-application-load-balanced-fargate-service.ts index c411bbc8b4ee9..28ea284d9d4da 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.healthchecks-multiple-application-load-balanced-fargate-service.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.healthchecks-multiple-application-load-balanced-fargate-service.ts @@ -6,7 +6,7 @@ import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import { ApplicationMultipleTargetGroupsFargateService } from 'aws-cdk-lib/aws-ecs-patterns'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'aws-ecs-integ-fargate-multi-alb-health'); const vpc = new Vpc(stack, 'Vpc', { maxAzs: 2, restrictDefaultSecurityGroup: false }); const cluster = new Cluster(stack, 'Cluster', { vpc }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.healthchecks-multiple-network-load-balanced-fargate-service.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.healthchecks-multiple-network-load-balanced-fargate-service.ts index 4bab83097bcb1..6a756120c3f68 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.healthchecks-multiple-network-load-balanced-fargate-service.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.healthchecks-multiple-network-load-balanced-fargate-service.ts @@ -4,7 +4,7 @@ import { App, Stack } from 'aws-cdk-lib'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import { NetworkMultipleTargetGroupsFargateService } from 'aws-cdk-lib/aws-ecs-patterns'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'aws-ecs-integ-multi-nlb-healthchecks'); const vpc = new Vpc(stack, 'Vpc', { maxAzs: 2, restrictDefaultSecurityGroup: false }); const cluster = new Cluster(stack, 'Cluster', { vpc }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.l3-autocreate.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.l3-autocreate.ts index 7161414dde24d..cfb81502915d0 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.l3-autocreate.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.l3-autocreate.ts @@ -4,7 +4,7 @@ import * as integ from '@aws-cdk/integ-tests-alpha'; import * as ecsPatterns from 'aws-cdk-lib/aws-ecs-patterns'; import { EC2_RESTRICT_DEFAULT_SECURITY_GROUP } from 'aws-cdk-lib/cx-api'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-ecs-integ-l3-autocreate'); stack.node.setContext(EC2_RESTRICT_DEFAULT_SECURITY_GROUP, false); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.l3-capacity-provider-strategies.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.l3-capacity-provider-strategies.ts index 47c9411d7bc5a..1a63a244b2f1f 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.l3-capacity-provider-strategies.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.l3-capacity-provider-strategies.ts @@ -4,7 +4,7 @@ import * as cdk from 'aws-cdk-lib'; import * as integ from '@aws-cdk/integ-tests-alpha'; import * as ecsPatterns from 'aws-cdk-lib/aws-ecs-patterns'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-ecs-integ-lb-fargate'); // Create VPC and cluster diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.l3-vpconly.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.l3-vpconly.ts index c66dabece01ca..65550cdf6c63f 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.l3-vpconly.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.l3-vpconly.ts @@ -4,7 +4,7 @@ import * as cdk from 'aws-cdk-lib'; import * as integ from '@aws-cdk/integ-tests-alpha'; import * as ecsPatterns from 'aws-cdk-lib/aws-ecs-patterns'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-ecs-integ-l3-vpconly'); // Create VPC only diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.l3.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.l3.ts index 2100e8ed1d315..6b9e2c7db6b18 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.l3.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.l3.ts @@ -4,7 +4,7 @@ import * as cdk from 'aws-cdk-lib'; import * as integ from '@aws-cdk/integ-tests-alpha'; import * as ecsPatterns from 'aws-cdk-lib/aws-ecs-patterns'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-ecs-integ-lb-fargate'); // Create VPC and cluster diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.multiple-network-load-balanced-fargate-service.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.multiple-network-load-balanced-fargate-service.ts index 8e79c8bc9c2b9..94195c986a07d 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.multiple-network-load-balanced-fargate-service.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.multiple-network-load-balanced-fargate-service.ts @@ -4,7 +4,7 @@ import { App, Stack } from 'aws-cdk-lib'; import * as integ from '@aws-cdk/integ-tests-alpha'; import { NetworkMultipleTargetGroupsFargateService } from 'aws-cdk-lib/aws-ecs-patterns'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'aws-ecs-integ-fargate-multi-nlb-health'); const vpc = new Vpc(stack, 'Vpc', { maxAzs: 2, restrictDefaultSecurityGroup: false }); const cluster = new Cluster(stack, 'Cluster', { vpc }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.network-load-balanced-fargate-service-custom-health.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.network-load-balanced-fargate-service-custom-health.ts index a4ad77c175172..22f9adc4e2736 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.network-load-balanced-fargate-service-custom-health.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.network-load-balanced-fargate-service-custom-health.ts @@ -4,7 +4,7 @@ import { App, Stack } from 'aws-cdk-lib'; import * as integ from '@aws-cdk/integ-tests-alpha'; import { NetworkMultipleTargetGroupsFargateService } from 'aws-cdk-lib/aws-ecs-patterns'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); // Stack with custom health percentage settings const CustomHealthStack = new Stack(app, 'aws-ecs-integ-fargate-health-percentage'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.nlb-ipv6.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.nlb-ipv6.ts index 09dccc9da2a0a..e7d61c1f79a4e 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.nlb-ipv6.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.nlb-ipv6.ts @@ -5,7 +5,7 @@ import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import * as ecsPatterns from 'aws-cdk-lib/aws-ecs-patterns'; import * as elbv2 from 'aws-cdk-lib/aws-elasticloadbalancingv2'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'NlbIpv6Stack'); const vpc = new ec2.Vpc(stack, 'Vpc', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.nlb-sg.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.nlb-sg.ts index 5b5f3a4d38534..3462111c57ec3 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.nlb-sg.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.nlb-sg.ts @@ -5,6 +5,7 @@ import * as integ from '@aws-cdk/integ-tests-alpha'; import * as ecsPatterns from 'aws-cdk-lib/aws-ecs-patterns'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-ecs:removeDefaultDeploymentAlarm': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.queue-processing-fargate-service-custom-cpu-scaling.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.queue-processing-fargate-service-custom-cpu-scaling.ts index 68540cb26dbe3..a1e1f54532a5a 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.queue-processing-fargate-service-custom-cpu-scaling.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.queue-processing-fargate-service-custom-cpu-scaling.ts @@ -6,6 +6,7 @@ import * as integ from '@aws-cdk/integ-tests-alpha'; import { QueueProcessingFargateService } from 'aws-cdk-lib/aws-ecs-patterns'; const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-ecs:removeDefaultDeploymentAlarm': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.queue-processing-fargate-service-grace-period.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.queue-processing-fargate-service-grace-period.ts index b83a70fd0b0a3..f5ee4fdcb30b5 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.queue-processing-fargate-service-grace-period.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.queue-processing-fargate-service-grace-period.ts @@ -5,7 +5,7 @@ import { App, Duration, Stack } from 'aws-cdk-lib'; import * as integ from '@aws-cdk/integ-tests-alpha'; import { QueueProcessingFargateService } from 'aws-cdk-lib/aws-ecs-patterns'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'aws-ecs-patterns-queue-grace-period'); const vpc = new ec2.Vpc(stack, 'VPC', { restrictDefaultSecurityGroup: false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.queue-processing-fargate-service-health-check.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.queue-processing-fargate-service-health-check.ts index 97744699767cf..346b0ae9a6e16 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.queue-processing-fargate-service-health-check.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.queue-processing-fargate-service-health-check.ts @@ -6,6 +6,7 @@ import * as integ from '@aws-cdk/integ-tests-alpha'; import { QueueProcessingFargateService } from 'aws-cdk-lib/aws-ecs-patterns'; const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-ecs:removeDefaultDeploymentAlarm': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.queue-processing-fargate-service-isolated.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.queue-processing-fargate-service-isolated.ts index 0b51fe3f9325d..3ec9ecf0147fc 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.queue-processing-fargate-service-isolated.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.queue-processing-fargate-service-isolated.ts @@ -5,7 +5,7 @@ import { App, Stack } from 'aws-cdk-lib'; import * as integ from '@aws-cdk/integ-tests-alpha'; import { QueueProcessingFargateService } from 'aws-cdk-lib/aws-ecs-patterns'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'aws-ecs-patterns-queue-isolated'); const vpc = new ec2.Vpc(stack, 'VPC', { restrictDefaultSecurityGroup: false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.queue-processing-fargate-service-no-cpu-scaling.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.queue-processing-fargate-service-no-cpu-scaling.ts index 93c2e20880c88..ac4ba1b165e23 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.queue-processing-fargate-service-no-cpu-scaling.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.queue-processing-fargate-service-no-cpu-scaling.ts @@ -6,6 +6,7 @@ import * as integ from '@aws-cdk/integ-tests-alpha'; import { QueueProcessingFargateService } from 'aws-cdk-lib/aws-ecs-patterns'; const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-ecs:removeDefaultDeploymentAlarm': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.queue-processing-fargate-service-task-definition-with-cooldown.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.queue-processing-fargate-service-task-definition-with-cooldown.ts index 3ae539693a297..08727fb27f157 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.queue-processing-fargate-service-task-definition-with-cooldown.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.queue-processing-fargate-service-task-definition-with-cooldown.ts @@ -6,6 +6,7 @@ import * as integ from '@aws-cdk/integ-tests-alpha'; import { QueueProcessingFargateService } from 'aws-cdk-lib/aws-ecs-patterns'; const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-ecs:removeDefaultDeploymentAlarm': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.queue-processing-fargate-service-task-definition.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.queue-processing-fargate-service-task-definition.ts index f27e36a13c35b..dc23c40fb2ce9 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.queue-processing-fargate-service-task-definition.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.queue-processing-fargate-service-task-definition.ts @@ -6,6 +6,7 @@ import * as integ from '@aws-cdk/integ-tests-alpha'; import { QueueProcessingFargateService } from 'aws-cdk-lib/aws-ecs-patterns'; const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-ecs:removeDefaultDeploymentAlarm': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.queue-processing-fargate-service.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.queue-processing-fargate-service.ts index ce1d87b9b68f1..568d13dac7bb2 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.queue-processing-fargate-service.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.queue-processing-fargate-service.ts @@ -5,7 +5,7 @@ import { App, Stack } from 'aws-cdk-lib'; import * as integ from '@aws-cdk/integ-tests-alpha'; import { QueueProcessingFargateService } from 'aws-cdk-lib/aws-ecs-patterns'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'aws-ecs-patterns-queue'); const vpc = new ec2.Vpc(stack, 'VPC', { restrictDefaultSecurityGroup: false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.runtime-platform-application-load-balanced-fargate-service.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.runtime-platform-application-load-balanced-fargate-service.ts index e152f61d55d16..783fbbb7b005b 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.runtime-platform-application-load-balanced-fargate-service.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.runtime-platform-application-load-balanced-fargate-service.ts @@ -7,7 +7,7 @@ import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import { ScheduledFargateTask } from 'aws-cdk-lib/aws-ecs-patterns'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-ecs-runtime-integ'); const vpc = new ec2.Vpc(stack, 'Vpc', { maxAzs: 1, restrictDefaultSecurityGroup: false }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.scheduled-fargate-task.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.scheduled-fargate-task.ts index af8c11eb8b593..d33fc8cb0895b 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.scheduled-fargate-task.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.scheduled-fargate-task.ts @@ -6,7 +6,7 @@ import * as cdk from 'aws-cdk-lib'; import * as integ from '@aws-cdk/integ-tests-alpha'; import { ScheduledFargateTask } from 'aws-cdk-lib/aws-ecs-patterns'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); class EventStack extends cdk.Stack { constructor(scope: cdk.App, id: string) { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.special-listener.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.special-listener.ts index 0955f7afbf535..622ef7c4f9fe4 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.special-listener.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.special-listener.ts @@ -4,7 +4,7 @@ import * as cdk from 'aws-cdk-lib'; import * as integ from '@aws-cdk/integ-tests-alpha'; import * as ecsPatterns from 'aws-cdk-lib/aws-ecs-patterns'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-ecs-integ-fargate-special-listener'); const vpc = new ec2.Vpc(stack, 'Vpc', { maxAzs: 2, restrictDefaultSecurityGroup: false }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.tls-network-load-balanced-fargate-service.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.tls-network-load-balanced-fargate-service.ts index aa12903f2bfba..a8b274e8d9b2a 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.tls-network-load-balanced-fargate-service.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.tls-network-load-balanced-fargate-service.ts @@ -11,7 +11,7 @@ import { Certificate } from 'aws-cdk-lib/aws-certificatemanager'; const certArn = process.env.CDK_INTEG_CERT_ARN || process.env.CERT_ARN; if (!certArn) throw new Error('For this test you must provide your own Certificate as an env var "CERT_ARN". See framework-integ/README.md for details.'); -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'tls-network-load-balanced-fargate-service'); const vpc = new Vpc(stack, 'Vpc', { maxAzs: 2 }); const cluster = new Cluster(stack, 'Cluster', { vpc }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/base/integ.blue-green-deployment-strategy.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/base/integ.blue-green-deployment-strategy.ts index c9888ee7d1c00..ff5381d007a76 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/base/integ.blue-green-deployment-strategy.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/base/integ.blue-green-deployment-strategy.ts @@ -5,7 +5,7 @@ import * as cdk from 'aws-cdk-lib'; import * as ecs from 'aws-cdk-lib/aws-ecs'; import * as integ from '@aws-cdk/integ-tests-alpha'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-ecs-blue-green-deployment'); // Create VPC and Cluster diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/base/integ.canary-deployment-strategy.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/base/integ.canary-deployment-strategy.ts index 60963627a64eb..7267e15d36fa3 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/base/integ.canary-deployment-strategy.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/base/integ.canary-deployment-strategy.ts @@ -4,7 +4,7 @@ import * as cdk from 'aws-cdk-lib'; import * as ecs from 'aws-cdk-lib/aws-ecs'; import * as integ from '@aws-cdk/integ-tests-alpha'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-ecs-canary-deployment'); const vpc = new ec2.Vpc(stack, 'Vpc', { maxAzs: 2, restrictDefaultSecurityGroup: false }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/base/integ.linear-deployment-strategy.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/base/integ.linear-deployment-strategy.ts index d968e46d2f0ab..c7c1109481472 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/base/integ.linear-deployment-strategy.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/base/integ.linear-deployment-strategy.ts @@ -4,7 +4,7 @@ import * as cdk from 'aws-cdk-lib'; import * as ecs from 'aws-cdk-lib/aws-ecs'; import * as integ from '@aws-cdk/integ-tests-alpha'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-ecs-linear-deployment'); const vpc = new ec2.Vpc(stack, 'Vpc', { maxAzs: 2, restrictDefaultSecurityGroup: false }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/base/integ.task-definition-add-interactive-container.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/base/integ.task-definition-add-interactive-container.ts index 5372bc8ed7195..f38a4dbe4e322 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/base/integ.task-definition-add-interactive-container.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/base/integ.task-definition-add-interactive-container.ts @@ -2,7 +2,7 @@ import * as cdk from 'aws-cdk-lib'; import * as ecs from 'aws-cdk-lib/aws-ecs'; import * as integ from '@aws-cdk/integ-tests-alpha'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-ecs-integ'); const taskDefinition = new ecs.FargateTaskDefinition(stack, 'TaskDefinition', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/base/integ.task-definition-container-restart-policy.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/base/integ.task-definition-container-restart-policy.ts index 752b557b7ed8b..a16e100720db4 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/base/integ.task-definition-container-restart-policy.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/base/integ.task-definition-container-restart-policy.ts @@ -2,7 +2,7 @@ import * as cdk from 'aws-cdk-lib'; import * as ecs from 'aws-cdk-lib/aws-ecs'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-ecs-task-definition-container-restart-policy'); const taskDefinition = new ecs.FargateTaskDefinition(stack, 'TaskDef', {}); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/base/integ.task-definition-container-version-consistency.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/base/integ.task-definition-container-version-consistency.ts index 341d8ca132e76..cb7e39b50df63 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/base/integ.task-definition-container-version-consistency.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/base/integ.task-definition-container-version-consistency.ts @@ -2,7 +2,7 @@ import * as cdk from 'aws-cdk-lib'; import * as ecs from 'aws-cdk-lib/aws-ecs'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-ecs-task-definition-container-version-consistency'); const taskDefinition = new ecs.FargateTaskDefinition(stack, 'TaskDef', {}); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.app-mesh-proxy-config.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.app-mesh-proxy-config.ts index 378e2b116e606..7c1cf13904f76 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.app-mesh-proxy-config.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.app-mesh-proxy-config.ts @@ -3,6 +3,7 @@ import * as cdk from 'aws-cdk-lib'; import * as ecs from 'aws-cdk-lib/aws-ecs'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, '@aws-cdk/aws-lambda:createNewPoliciesWithAddToRolePolicy': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.availability-zone-rebalancing.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.availability-zone-rebalancing.ts index c7b753d203347..6c3e0e6c8166f 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.availability-zone-rebalancing.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.availability-zone-rebalancing.ts @@ -4,6 +4,7 @@ import * as ecs from 'aws-cdk-lib/aws-ecs'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, '@aws-cdk/aws-lambda:createNewPoliciesWithAddToRolePolicy': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.bottlerocket.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.bottlerocket.ts index d7d4d46d7fb21..6a7ccc55fbf0e 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.bottlerocket.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.bottlerocket.ts @@ -3,6 +3,7 @@ import * as cdk from 'aws-cdk-lib'; import * as ecs from 'aws-cdk-lib/aws-ecs'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, '@aws-cdk/aws-lambda:createNewPoliciesWithAddToRolePolicy': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.capacity-provider-managed-draining.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.capacity-provider-managed-draining.ts index 1f7fff205d7ee..0fc71f05a79b8 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.capacity-provider-managed-draining.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.capacity-provider-managed-draining.ts @@ -5,6 +5,7 @@ import * as ecs from 'aws-cdk-lib/aws-ecs'; import * as integ from '@aws-cdk/integ-tests-alpha'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-ecs:removeDefaultDeploymentAlarm': true, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.capacity-provider.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.capacity-provider.ts index b9e468013e989..2ec704631e91c 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.capacity-provider.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.capacity-provider.ts @@ -5,6 +5,7 @@ import * as ecs from 'aws-cdk-lib/aws-ecs'; import * as integ from '@aws-cdk/integ-tests-alpha'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, '@aws-cdk/aws-lambda:createNewPoliciesWithAddToRolePolicy': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.clb-host-nw.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.clb-host-nw.ts index 520748a441125..fc04f0a322868 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.clb-host-nw.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.clb-host-nw.ts @@ -5,6 +5,7 @@ import * as ecs from 'aws-cdk-lib/aws-ecs'; import type { CfnResource } from 'aws-cdk-lib'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, '@aws-cdk/aws-lambda:createNewPoliciesWithAddToRolePolicy': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.cloudmap-container-port.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.cloudmap-container-port.ts index 7e13dd4d5cbc5..5b95591bf2c42 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.cloudmap-container-port.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.cloudmap-container-port.ts @@ -5,6 +5,7 @@ import * as ecs from 'aws-cdk-lib/aws-ecs'; import type { CfnResource } from 'aws-cdk-lib'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, '@aws-cdk/aws-lambda:createNewPoliciesWithAddToRolePolicy': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.default-capacity-provider.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.default-capacity-provider.ts index 8b0b44e73a639..93bec30c51c49 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.default-capacity-provider.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.default-capacity-provider.ts @@ -5,6 +5,7 @@ import * as integ from '@aws-cdk/integ-tests-alpha'; import * as ecs from 'aws-cdk-lib/aws-ecs'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, '@aws-cdk/aws-lambda:createNewPoliciesWithAddToRolePolicy': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.deployment-alarms.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.deployment-alarms.ts index 7581bbe0b837a..b6bc261d4339f 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.deployment-alarms.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.deployment-alarms.ts @@ -6,6 +6,7 @@ import * as integ from '@aws-cdk/integ-tests-alpha'; import * as ecs from 'aws-cdk-lib/aws-ecs'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, '@aws-cdk/aws-lambda:createNewPoliciesWithAddToRolePolicy': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.enable-execute-command.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.enable-execute-command.ts index 6398e68f12945..341dd417f8b99 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.enable-execute-command.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.enable-execute-command.ts @@ -7,6 +7,7 @@ import * as integ from '@aws-cdk/integ-tests-alpha'; import * as ecs from 'aws-cdk-lib/aws-ecs'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, '@aws-cdk/aws-ecs:reduceEc2FargateCloudWatchPermissions': true, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.environment-file.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.environment-file.ts index a72b8779017e8..c8c7d12af0397 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.environment-file.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.environment-file.ts @@ -8,6 +8,7 @@ import * as ecs from 'aws-cdk-lib/aws-ecs'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, '@aws-cdk/aws-lambda:createNewPoliciesWithAddToRolePolicy': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.exec-command.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.exec-command.ts index a67c3575c974f..fa3d5d7ddfeda 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.exec-command.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.exec-command.ts @@ -6,6 +6,7 @@ import * as cdk from 'aws-cdk-lib'; import * as ecs from 'aws-cdk-lib/aws-ecs'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, '@aws-cdk/aws-lambda:createNewPoliciesWithAddToRolePolicy': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.firelens-s3-config.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.firelens-s3-config.ts index ef090cbaa602a..aff511a87d0c4 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.firelens-s3-config.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.firelens-s3-config.ts @@ -6,6 +6,7 @@ import * as ecs from 'aws-cdk-lib/aws-ecs'; import type { CfnResource } from 'aws-cdk-lib'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, '@aws-cdk/aws-lambda:createNewPoliciesWithAddToRolePolicy': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.graviton-bottlerocket.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.graviton-bottlerocket.ts index 74da3d8c1a1d8..d33becc8e3b9e 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.graviton-bottlerocket.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.graviton-bottlerocket.ts @@ -3,6 +3,7 @@ import * as cdk from 'aws-cdk-lib'; import * as ecs from 'aws-cdk-lib/aws-ecs'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, '@aws-cdk/aws-lambda:createNewPoliciesWithAddToRolePolicy': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.graviton.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.graviton.ts index b87b977aa434c..8ee9ccda8f80b 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.graviton.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.graviton.ts @@ -3,6 +3,7 @@ import * as cdk from 'aws-cdk-lib'; import * as ecs from 'aws-cdk-lib/aws-ecs'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, '@aws-cdk/aws-lambda:createNewPoliciesWithAddToRolePolicy': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.lb-awsvpc-nw.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.lb-awsvpc-nw.ts index c0b6d3edb7550..2f42f1a18aee0 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.lb-awsvpc-nw.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.lb-awsvpc-nw.ts @@ -5,6 +5,7 @@ import * as ecs from 'aws-cdk-lib/aws-ecs'; import type { CfnResource } from 'aws-cdk-lib'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, '@aws-cdk/aws-lambda:createNewPoliciesWithAddToRolePolicy': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.lb-bridge-nw.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.lb-bridge-nw.ts index ed245e2132807..858332bb1391d 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.lb-bridge-nw.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.lb-bridge-nw.ts @@ -6,6 +6,7 @@ import * as ecs from 'aws-cdk-lib/aws-ecs'; import type { CfnResource } from 'aws-cdk-lib'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, '@aws-cdk/aws-lambda:createNewPoliciesWithAddToRolePolicy': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.placement-constraint-default-empty.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.placement-constraint-default-empty.ts index acb3ff55cfeb9..1c5fcb6c57220 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.placement-constraint-default-empty.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.placement-constraint-default-empty.ts @@ -5,6 +5,7 @@ import * as ecs from 'aws-cdk-lib/aws-ecs'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, '@aws-cdk/aws-lambda:createNewPoliciesWithAddToRolePolicy': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.placement-strategies.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.placement-strategies.ts index 0e277f1b717a8..25b988f7a4c4d 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.placement-strategies.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.placement-strategies.ts @@ -5,6 +5,7 @@ import * as ecs from 'aws-cdk-lib/aws-ecs'; import * as integ from '@aws-cdk/integ-tests-alpha'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, '@aws-cdk/aws-lambda:createNewPoliciesWithAddToRolePolicy': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.pseudo-terminal.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.pseudo-terminal.ts index 69fd2f1993fa9..cfc83a2c17637 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.pseudo-terminal.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.pseudo-terminal.ts @@ -4,6 +4,7 @@ import * as integ from '@aws-cdk/integ-tests-alpha'; import * as ecs from 'aws-cdk-lib/aws-ecs'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, '@aws-cdk/aws-lambda:createNewPoliciesWithAddToRolePolicy': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.sd-awsvpc-nw.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.sd-awsvpc-nw.ts index d2805aaa32e7c..7bae3e42fc9ca 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.sd-awsvpc-nw.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.sd-awsvpc-nw.ts @@ -3,6 +3,7 @@ import * as cdk from 'aws-cdk-lib'; import * as ecs from 'aws-cdk-lib/aws-ecs'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, '@aws-cdk/aws-lambda:createNewPoliciesWithAddToRolePolicy': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.sd-bridge-nw.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.sd-bridge-nw.ts index 75851bda657c5..d771f5d244380 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.sd-bridge-nw.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.sd-bridge-nw.ts @@ -3,6 +3,7 @@ import * as cdk from 'aws-cdk-lib'; import * as ecs from 'aws-cdk-lib/aws-ecs'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, '@aws-cdk/aws-lambda:createNewPoliciesWithAddToRolePolicy': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.secret-json-field.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.secret-json-field.ts index 85fd426b47c6f..d3b37c840bad7 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.secret-json-field.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.secret-json-field.ts @@ -3,7 +3,7 @@ import * as cdk from 'aws-cdk-lib'; import * as integ from '@aws-cdk/integ-tests-alpha'; import * as ecs from 'aws-cdk-lib/aws-ecs'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-ecs-integ-secret-json-field'); const secret = new secretsmanager.Secret(stack, 'Secret', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.spot-drain.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.spot-drain.ts index ee617d3d800dc..d83022cd77f03 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.spot-drain.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.spot-drain.ts @@ -3,6 +3,7 @@ import * as cdk from 'aws-cdk-lib'; import * as ecs from 'aws-cdk-lib/aws-ecs'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, '@aws-cdk/aws-lambda:createNewPoliciesWithAddToRolePolicy': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.swap-parameters.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.swap-parameters.ts index b7499d1be1bfa..8b2026896b4c6 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.swap-parameters.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.swap-parameters.ts @@ -5,6 +5,7 @@ import * as ecs from 'aws-cdk-lib/aws-ecs'; import { LinuxParameters } from 'aws-cdk-lib/aws-ecs'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, '@aws-cdk/aws-lambda:createNewPoliciesWithAddToRolePolicy': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.task-definition-container-ulimits.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.task-definition-container-ulimits.ts index 1fd9fc039c71a..affbc66e0aa34 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.task-definition-container-ulimits.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.task-definition-container-ulimits.ts @@ -2,7 +2,7 @@ import * as cdk from 'aws-cdk-lib'; import * as ecs from 'aws-cdk-lib/aws-ecs'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-ecs-task-definition-container-ulimits'); const taskDefinition = new ecs.Ec2TaskDefinition(stack, 'TaskDef', {}); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.task-definition-placement-constraints.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.task-definition-placement-constraints.ts index 84c4639ac29b3..7d071489667b2 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.task-definition-placement-constraints.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.task-definition-placement-constraints.ts @@ -4,6 +4,7 @@ import * as ec2 from 'aws-cdk-lib/aws-ec2'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, '@aws-cdk/aws-lambda:createNewPoliciesWithAddToRolePolicy': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.task-definition-without-container-level-memory.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.task-definition-without-container-level-memory.ts index e6e281e203262..805c81dd00cf8 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.task-definition-without-container-level-memory.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.task-definition-without-container-level-memory.ts @@ -2,7 +2,7 @@ import * as cdk from 'aws-cdk-lib'; import * as ecs from 'aws-cdk-lib/aws-ecs'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-ecs-task-definition-without-container-level-memory'); const taskDefinition = new ecs.TaskDefinition(stack, 'TaskDef', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/external/integ.daemon-service.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/external/integ.daemon-service.ts index 615dccb0d7ada..54ce644d6a10f 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/external/integ.daemon-service.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/external/integ.daemon-service.ts @@ -3,7 +3,7 @@ import * as ecs from 'aws-cdk-lib/aws-ecs'; import * as ec2 from 'aws-cdk-lib/aws-ec2'; import { ExpectedResult, IntegTest } from '@aws-cdk/integ-tests-alpha'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'ecs-external-service-daemon'); const vpc = new ec2.Vpc(stack, 'Vpc', { maxAzs: 2 }); const cluster = new ecs.Cluster(stack, 'EcsCluster', { vpc }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.add-docker-label.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.add-docker-label.ts index db219fecbab2e..d565b03c93c2a 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.add-docker-label.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.add-docker-label.ts @@ -4,6 +4,7 @@ import * as ecs from 'aws-cdk-lib/aws-ecs'; import * as integ from '@aws-cdk/integ-tests-alpha'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-ecs:removeDefaultDeploymentAlarm': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.add-environment-variable.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.add-environment-variable.ts index 0409eaf2131b8..96b26936fa09e 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.add-environment-variable.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.add-environment-variable.ts @@ -2,7 +2,7 @@ import * as ec2 from 'aws-cdk-lib/aws-ec2'; import * as cdk from 'aws-cdk-lib'; import * as ecs from 'aws-cdk-lib/aws-ecs'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-ecs-integ'); const vpc = new ec2.Vpc(stack, 'Vpc', { maxAzs: 2, restrictDefaultSecurityGroup: false }); const cluster = new ecs.Cluster(stack, 'FargateCluster', { vpc }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.availability-zone-rebalancing.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.availability-zone-rebalancing.ts index d3dadded9d11e..ec5bb0a7d6796 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.availability-zone-rebalancing.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.availability-zone-rebalancing.ts @@ -3,7 +3,7 @@ import * as cdk from 'aws-cdk-lib'; import * as ecs from 'aws-cdk-lib/aws-ecs'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-ecs-integ-availability-zone-rebalancing'); const vpc = new ec2.Vpc(stack, 'Vpc', { maxAzs: 2, restrictDefaultSecurityGroup: false }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.awslogs-driver.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.awslogs-driver.ts index a27330fa4d7b8..bc81516c4d371 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.awslogs-driver.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.awslogs-driver.ts @@ -5,6 +5,7 @@ import { IntegTest, ExpectedResult } from '@aws-cdk/integ-tests-alpha'; import * as logs from 'aws-cdk-lib/aws-logs'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-ecs:removeDefaultDeploymentAlarm': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.capacity-providers.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.capacity-providers.ts index aa46ff2a645b8..7208bfccfe672 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.capacity-providers.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.capacity-providers.ts @@ -3,7 +3,7 @@ import * as cdk from 'aws-cdk-lib'; import * as ecs from 'aws-cdk-lib/aws-ecs'; import * as integ from '@aws-cdk/integ-tests-alpha'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-ecs-integ-capacity-provider'); const vpc = new ec2.Vpc(stack, 'Vpc', { maxAzs: 2, restrictDefaultSecurityGroup: false }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.container-port-range.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.container-port-range.ts index 02bf3832a0fa5..2a8f7c6c3105b 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.container-port-range.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.container-port-range.ts @@ -25,7 +25,7 @@ class EcsContainerPortRangeStack extends cdk.Stack { } } -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new EcsContainerPortRangeStack(app, 'aws-ecs-container-port-range'); new integ.IntegTest(app, 'EcsContainerPortRange', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.custom-task-revision.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.custom-task-revision.ts index 20050d553efca..763cc83b84663 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.custom-task-revision.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.custom-task-revision.ts @@ -3,7 +3,7 @@ import * as cdk from 'aws-cdk-lib'; import * as ecs from 'aws-cdk-lib/aws-ecs'; import * as integ from '@aws-cdk/integ-tests-alpha'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-ecs-integ-custom-task-revision'); const vpc = new ec2.Vpc(stack, 'Vpc', { maxAzs: 2, restrictDefaultSecurityGroup: false }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.disable-circuit-breaker.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.disable-circuit-breaker.ts index eb4e1043eca76..2ed4bb9059fcc 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.disable-circuit-breaker.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.disable-circuit-breaker.ts @@ -4,6 +4,7 @@ import * as ecs from 'aws-cdk-lib/aws-ecs'; import * as integ from '@aws-cdk/integ-tests-alpha'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-ecs:removeDefaultDeploymentAlarm': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.ebs-taskattach.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.ebs-taskattach.ts index 7c76b1d4699dc..dc09edea5461d 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.ebs-taskattach.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.ebs-taskattach.ts @@ -69,6 +69,7 @@ class TestStack extends cdk.Stack { } const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-ecs:removeDefaultDeploymentAlarm': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.ebs-volume-initialization-rate.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.ebs-volume-initialization-rate.ts index a9d972972eb07..925fc6fce2dab 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.ebs-volume-initialization-rate.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.ebs-volume-initialization-rate.ts @@ -73,7 +73,7 @@ class TestStack extends cdk.Stack { } } -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new TestStack(app, 'integ-aws-ecs-ebs-volume-initialization-rate'); new integ.IntegTest(app, 'EBSVolumeInitializationRate', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.enable-execute-command.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.enable-execute-command.ts index 20059770d01e3..ec5356ee7cd22 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.enable-execute-command.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.enable-execute-command.ts @@ -7,6 +7,7 @@ import * as integ from '@aws-cdk/integ-tests-alpha'; import * as ecs from 'aws-cdk-lib/aws-ecs'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-ecs:reduceEc2FargateCloudWatchPermissions': true, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.exec-command.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.exec-command.ts index e5e4473f861e2..92f53808373e1 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.exec-command.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.exec-command.ts @@ -7,7 +7,7 @@ import { Duration } from 'aws-cdk-lib'; import * as integ from '@aws-cdk/integ-tests-alpha'; import * as ecs from 'aws-cdk-lib/aws-ecs'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-ecs-integ-exec-command'); const vpc = new ec2.Vpc(stack, 'Vpc', { maxAzs: 2, restrictDefaultSecurityGroup: false }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.external-deploy-controller.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.external-deploy-controller.ts index 2c9049ccf3da9..518d140e9b0a1 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.external-deploy-controller.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.external-deploy-controller.ts @@ -3,7 +3,7 @@ import * as cdk from 'aws-cdk-lib'; import * as ecs from 'aws-cdk-lib/aws-ecs'; import * as integ from '@aws-cdk/integ-tests-alpha'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-ecs-integ'); const vpc = new ec2.Vpc(stack, 'Vpc', { maxAzs: 2, restrictDefaultSecurityGroup: false }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.fargate-with-efs.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.fargate-with-efs.ts index 4d2d7d2e9a4c5..804c15e000c69 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.fargate-with-efs.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.fargate-with-efs.ts @@ -30,7 +30,7 @@ class FargateWithEfsStack extends cdk.Stack { } } -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new FargateWithEfsStack(app, 'aws-ecs-fargate-efs'); new integ.IntegTest(app, 'aws-ecs-fargate-test', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.firelens-cloudwatch.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.firelens-cloudwatch.ts index 347b66f152b28..05b10e50bfaa2 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.firelens-cloudwatch.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.firelens-cloudwatch.ts @@ -2,7 +2,7 @@ import * as ec2 from 'aws-cdk-lib/aws-ec2'; import * as cdk from 'aws-cdk-lib'; import * as ecs from 'aws-cdk-lib/aws-ecs'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-ecs-integ'); const vpc = new ec2.Vpc(stack, 'Vpc', { maxAzs: 2, restrictDefaultSecurityGroup: false }); const cluster = new ecs.Cluster(stack, 'FargateCluster', { vpc }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.lb-awsvpc-nw.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.lb-awsvpc-nw.ts index 266b8bc413f2e..d12413ea379bc 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.lb-awsvpc-nw.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.lb-awsvpc-nw.ts @@ -3,7 +3,7 @@ import * as elbv2 from 'aws-cdk-lib/aws-elasticloadbalancingv2'; import * as cdk from 'aws-cdk-lib'; import * as ecs from 'aws-cdk-lib/aws-ecs'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-ecs-integ'); const vpc = new ec2.Vpc(stack, 'Vpc', { maxAzs: 2, restrictDefaultSecurityGroup: false }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.nlb-awsvpc-nw.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.nlb-awsvpc-nw.ts index 27042262fe8b0..3b0e9f56babaa 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.nlb-awsvpc-nw.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.nlb-awsvpc-nw.ts @@ -4,7 +4,7 @@ import * as cdk from 'aws-cdk-lib'; import * as ecs from 'aws-cdk-lib/aws-ecs'; import * as integ from '@aws-cdk/integ-tests-alpha'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-ecs-integ'); const vpc = new ec2.Vpc(stack, 'Vpc', { maxAzs: 2, restrictDefaultSecurityGroup: false }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.pseudo-terminal.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.pseudo-terminal.ts index b1538d5dea3d1..160de58638a98 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.pseudo-terminal.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.pseudo-terminal.ts @@ -3,7 +3,7 @@ import * as cdk from 'aws-cdk-lib'; import * as integ from '@aws-cdk/integ-tests-alpha'; import * as ecs from 'aws-cdk-lib/aws-ecs'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'integ-pseudo-terminal'); // Create a cluster diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.runtime.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.runtime.ts index 385ca2e8cdcd2..3aedb836201e5 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.runtime.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.runtime.ts @@ -2,7 +2,7 @@ import * as ec2 from 'aws-cdk-lib/aws-ec2'; import * as cdk from 'aws-cdk-lib'; import * as ecs from 'aws-cdk-lib/aws-ecs'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-ecs-integ-runtime'); const vpc = new ec2.Vpc(stack, 'Vpc', { maxAzs: 2, restrictDefaultSecurityGroup: false }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.secret.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.secret.ts index f52f6c27f151b..b47c5b5db33c6 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.secret.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.secret.ts @@ -3,7 +3,7 @@ import * as cdk from 'aws-cdk-lib'; import * as integ from '@aws-cdk/integ-tests-alpha'; import * as ecs from 'aws-cdk-lib/aws-ecs'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-ecs-integ-secret'); const secret = new secretsmanager.Secret(stack, 'Secret', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.service-connect.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.service-connect.ts index d346158710e3e..da6d392664a49 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.service-connect.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.service-connect.ts @@ -80,6 +80,7 @@ class ServiceConnect extends cdk.Stack { } const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-ecs:removeDefaultDeploymentAlarm': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/integ.cluster-amazonlinux2-neuron-ami.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/integ.cluster-amazonlinux2-neuron-ami.ts index 5265135a8fc1b..a4308e87e0617 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/integ.cluster-amazonlinux2-neuron-ami.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/integ.cluster-amazonlinux2-neuron-ami.ts @@ -5,6 +5,7 @@ import * as ecs from 'aws-cdk-lib/aws-ecs'; import * as integ from '@aws-cdk/integ-tests-alpha'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, '@aws-cdk/aws-lambda:createNewPoliciesWithAddToRolePolicy': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/integ.cluster-bottlerocket-nvidia-ami.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/integ.cluster-bottlerocket-nvidia-ami.ts index 977adbae83d7a..e9482535c9960 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/integ.cluster-bottlerocket-nvidia-ami.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/integ.cluster-bottlerocket-nvidia-ami.ts @@ -4,6 +4,7 @@ import * as ecs from 'aws-cdk-lib/aws-ecs'; import * as integ from '@aws-cdk/integ-tests-alpha'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, '@aws-cdk/aws-lambda:createNewPoliciesWithAddToRolePolicy': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/integ.cluster-encrypt-ephemeral-storage.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/integ.cluster-encrypt-ephemeral-storage.ts index b255d2249b3d3..5035433be0b2c 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/integ.cluster-encrypt-ephemeral-storage.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/integ.cluster-encrypt-ephemeral-storage.ts @@ -4,7 +4,7 @@ import * as kms from 'aws-cdk-lib/aws-kms'; import * as ec2 from 'aws-cdk-lib/aws-ec2'; import * as integ from '@aws-cdk/integ-tests-alpha'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-ecs-ephemeral-integ'); const vpc = new ec2.Vpc(stack, 'Vpc', { maxAzs: 2, restrictDefaultSecurityGroup: false }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/integ.cluster-encrypt-storage.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/integ.cluster-encrypt-storage.ts index f0ed87139838c..d178072bca96b 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/integ.cluster-encrypt-storage.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/integ.cluster-encrypt-storage.ts @@ -4,7 +4,7 @@ import * as kms from 'aws-cdk-lib/aws-kms'; import * as ec2 from 'aws-cdk-lib/aws-ec2'; import { ExpectedResult, IntegTest } from '@aws-cdk/integ-tests-alpha'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'aws-ecs-encrypt-storage'); const vpc = new ec2.Vpc(stack, 'Vpc', { maxAzs: 2, restrictDefaultSecurityGroup: false }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/integ.cluster-enhanced-container-insights.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/integ.cluster-enhanced-container-insights.ts index 7b4a60978c344..6f65f933cd0ff 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/integ.cluster-enhanced-container-insights.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/integ.cluster-enhanced-container-insights.ts @@ -3,7 +3,7 @@ import * as ecs from 'aws-cdk-lib/aws-ecs'; import * as ec2 from 'aws-cdk-lib/aws-ec2'; import * as integ from '@aws-cdk/integ-tests-alpha'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'integ-ecs-enhanced-container-insights'); const vpc = new ec2.Vpc(stack, 'Vpc', { maxAzs: 2, restrictDefaultSecurityGroup: false }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/integ.cluster-grant-task-protection.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/integ.cluster-grant-task-protection.ts index d76a2200f3a39..bb76715940fb0 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/integ.cluster-grant-task-protection.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/integ.cluster-grant-task-protection.ts @@ -4,7 +4,7 @@ import * as ecs from 'aws-cdk-lib/aws-ecs'; import * as iam from 'aws-cdk-lib/aws-iam'; import * as integ from '@aws-cdk/integ-tests-alpha'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-ecs-integ'); const vpc = new ec2.Vpc(stack, 'Vpc', { maxAzs: 2, restrictDefaultSecurityGroup: false }); const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/integ.cluster-imported.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/integ.cluster-imported.ts index 55392babd2684..ff0d623505bbd 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/integ.cluster-imported.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/integ.cluster-imported.ts @@ -5,6 +5,7 @@ import * as ecs from 'aws-cdk-lib/aws-ecs'; import * as integ from '@aws-cdk/integ-tests-alpha'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, '@aws-cdk/aws-lambda:createNewPoliciesWithAddToRolePolicy': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/integ.cluster-settings-mixin.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/integ.cluster-settings-mixin.ts index 8c025c2fb6ce8..e05304ea1be15 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/integ.cluster-settings-mixin.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/integ.cluster-settings-mixin.ts @@ -3,7 +3,7 @@ import * as ec2 from 'aws-cdk-lib/aws-ec2'; import * as ecs from 'aws-cdk-lib/aws-ecs'; import * as integ from '@aws-cdk/integ-tests-alpha'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'EcsClusterSettingsMixinTest'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/integ.cluster-windows-server-ami.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/integ.cluster-windows-server-ami.ts index 109b1a88834b3..21d1736c23d53 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/integ.cluster-windows-server-ami.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/integ.cluster-windows-server-ami.ts @@ -6,6 +6,7 @@ import * as ecs from 'aws-cdk-lib/aws-ecs'; import * as integ from '@aws-cdk/integ-tests-alpha'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, '@aws-cdk/aws-lambda:createNewPoliciesWithAddToRolePolicy': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/integ.cluster.amazonlinux2023-ami.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/integ.cluster.amazonlinux2023-ami.ts index c91b925e08e70..38b7650832caa 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/integ.cluster.amazonlinux2023-ami.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/integ.cluster.amazonlinux2023-ami.ts @@ -6,6 +6,7 @@ import * as integ from '@aws-cdk/integ-tests-alpha'; import * as iam from 'aws-cdk-lib/aws-iam'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, '@aws-cdk/aws-lambda:createNewPoliciesWithAddToRolePolicy': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/integ.managedinstances-capacity-provider-default-roles.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/integ.managedinstances-capacity-provider-default-roles.ts index 5ab091f6e7370..d85af49ceefa6 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/integ.managedinstances-capacity-provider-default-roles.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/integ.managedinstances-capacity-provider-default-roles.ts @@ -4,6 +4,7 @@ import * as ecs from 'aws-cdk-lib/aws-ecs'; import * as integ from '@aws-cdk/integ-tests-alpha'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-ecs:removeDefaultDeploymentAlarm': true, '@aws-cdk/aws-ecs:enableImdsBlockingDeprecatedFeature': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/integ.managedinstances-capacity-provider.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/integ.managedinstances-capacity-provider.ts index ecf7901d12894..efd70e4c94415 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/integ.managedinstances-capacity-provider.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/integ.managedinstances-capacity-provider.ts @@ -4,6 +4,7 @@ import * as ecs from 'aws-cdk-lib/aws-ecs'; import * as integ from '@aws-cdk/integ-tests-alpha'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-ecs:removeDefaultDeploymentAlarm': true, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/integ.managedinstances-no-default-capacity-provider.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/integ.managedinstances-no-default-capacity-provider.ts index ab6a58e383ee6..6e730a9b10cf1 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/integ.managedinstances-no-default-capacity-provider.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/integ.managedinstances-no-default-capacity-provider.ts @@ -4,6 +4,7 @@ import * as ecs from 'aws-cdk-lib/aws-ecs'; import * as integ from '@aws-cdk/integ-tests-alpha'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-ecs:removeDefaultDeploymentAlarm': true, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/integ.task-definition-container-credentialspecs.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/integ.task-definition-container-credentialspecs.ts index 3480417986654..d4199108858b6 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/integ.task-definition-container-credentialspecs.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/integ.task-definition-container-credentialspecs.ts @@ -5,7 +5,7 @@ import * as s3 from 'aws-cdk-lib/aws-s3'; import * as ssm from 'aws-cdk-lib/aws-ssm'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-ecs-task-definition-container-credentialspecs'); const bucket = new s3.Bucket(stack, 'bucket', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/integ.task-definition-enable-fault-injection.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/integ.task-definition-enable-fault-injection.ts index 2eb3338db7262..27e4d607e7659 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/integ.task-definition-enable-fault-injection.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/integ.task-definition-enable-fault-injection.ts @@ -2,7 +2,7 @@ import * as cdk from 'aws-cdk-lib'; import * as ecs from 'aws-cdk-lib/aws-ecs'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-ecs-task-definition-enable-fault-injection'); const ec2TaskDefinition = new ecs.Ec2TaskDefinition(stack, 'Ec2TaskDefinition', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/log-drivers/integ.fluentd-driver.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/log-drivers/integ.fluentd-driver.ts index ef253a5a4f298..6c00b0b86c48f 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/log-drivers/integ.fluentd-driver.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/log-drivers/integ.fluentd-driver.ts @@ -6,6 +6,7 @@ import * as integ from '@aws-cdk/integ-tests-alpha'; import * as iam from 'aws-cdk-lib/aws-iam'; const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/log-drivers/integ.none-log-driver.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/log-drivers/integ.none-log-driver.ts index b2203ad8a47a4..85edcb3da9458 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/log-drivers/integ.none-log-driver.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/log-drivers/integ.none-log-driver.ts @@ -3,6 +3,7 @@ import * as ecs from 'aws-cdk-lib/aws-ecs'; import * as integ from '@aws-cdk/integ-tests-alpha'; const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-efs/test/integ.efs-filesystem-one-zone.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-efs/test/integ.efs-filesystem-one-zone.ts index 050ff60bdfee6..861d7f4d7fabd 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-efs/test/integ.efs-filesystem-one-zone.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-efs/test/integ.efs-filesystem-one-zone.ts @@ -3,7 +3,7 @@ import * as cdk from 'aws-cdk-lib'; import { FileSystem } from 'aws-cdk-lib/aws-efs'; import * as integ from '@aws-cdk/integ-tests-alpha'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'test-efs-one-zone-integ'); const vpc = new ec2.Vpc(stack, 'Vpc'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-efs/test/integ.efs-filesystem-policy.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-efs/test/integ.efs-filesystem-policy.ts index a8a6493a4ff65..e5f724e1e5df3 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-efs/test/integ.efs-filesystem-policy.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-efs/test/integ.efs-filesystem-policy.ts @@ -5,7 +5,7 @@ import * as cdk from 'aws-cdk-lib'; import * as integ from '@aws-cdk/integ-tests-alpha'; import { AccessPoint, FileSystem } from 'aws-cdk-lib/aws-efs'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'test-efs-integ'); const vpc = new ec2.Vpc(stack, 'Vpc', { maxAzs: 3, natGateways: 1, restrictDefaultSecurityGroup: false }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-efs/test/integ.efs-filesystem-protection.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-efs/test/integ.efs-filesystem-protection.ts index 9bae435e6a62e..12e78fa82a801 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-efs/test/integ.efs-filesystem-protection.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-efs/test/integ.efs-filesystem-protection.ts @@ -3,7 +3,7 @@ import * as cdk from 'aws-cdk-lib'; import { FileSystem, ReplicationOverwriteProtection } from 'aws-cdk-lib/aws-efs'; import * as integ from '@aws-cdk/integ-tests-alpha'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'test-efs-protection-integ'); const vpc = new ec2.Vpc(stack, 'Vpc', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-efs/test/integ.efs-filesystem-replication.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-efs/test/integ.efs-filesystem-replication.ts index 8329f1bc1c695..f0c708f03e574 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-efs/test/integ.efs-filesystem-replication.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-efs/test/integ.efs-filesystem-replication.ts @@ -4,7 +4,7 @@ import * as efs from 'aws-cdk-lib/aws-efs'; import * as kms from 'aws-cdk-lib/aws-kms'; import * as integ from '@aws-cdk/integ-tests-alpha'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'efsReplication'); const vpc = new ec2.Vpc(stack, 'Vpc', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-efs/test/integ.efs-from-imported-subnet.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-efs/test/integ.efs-from-imported-subnet.ts index 4abb26a62fb26..bbf29b36eaf78 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-efs/test/integ.efs-from-imported-subnet.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-efs/test/integ.efs-from-imported-subnet.ts @@ -3,7 +3,7 @@ import { App, RemovalPolicy, Stack } from 'aws-cdk-lib'; import { FileSystem } from 'aws-cdk-lib/aws-efs'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'efs-from-imported-subnet'); const vpc = new ec2.Vpc(stack, 'Vpc', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-efs/test/integ.efs-transition.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-efs/test/integ.efs-transition.ts index 16a7a83960394..6c15827813f53 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-efs/test/integ.efs-transition.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-efs/test/integ.efs-transition.ts @@ -3,7 +3,7 @@ import * as cdk from 'aws-cdk-lib'; import { FileSystem, LifecyclePolicy, OutOfInfrequentAccessPolicy, ThroughputMode } from 'aws-cdk-lib/aws-efs'; import * as integ from '@aws-cdk/integ-tests-alpha'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'test-efs-transition-integ'); const vpc = new ec2.Vpc(stack, 'Vpc', { maxAzs: 3, natGateways: 1, restrictDefaultSecurityGroup: false }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-efs/test/integ.efs.permission.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-efs/test/integ.efs.permission.ts index 51fdbd986df66..0a6a76f0c9d4c 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-efs/test/integ.efs.permission.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-efs/test/integ.efs.permission.ts @@ -3,7 +3,7 @@ import * as cdk from 'aws-cdk-lib'; import { FileSystem } from 'aws-cdk-lib/aws-efs'; import * as integ from '@aws-cdk/integ-tests-alpha'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'test-efs-permission-integ'); const vpc = new ec2.Vpc(stack, 'Vpc'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-efs/test/integ.efs.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-efs/test/integ.efs.ts index 4bf6436d8b6f9..bf5e37757fae8 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-efs/test/integ.efs.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-efs/test/integ.efs.ts @@ -4,7 +4,7 @@ import { FileSystem } from 'aws-cdk-lib/aws-efs'; import * as integ from '@aws-cdk/integ-tests-alpha'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'test-efs-integ'); const vpc = new ec2.Vpc(stack, 'Vpc', { maxAzs: 3, natGateways: 1, restrictDefaultSecurityGroup: false }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-eks-v2/test/integ.alb-controller.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-eks-v2/test/integ.alb-controller.ts index e29ce92425238..dbe80f3648c76 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-eks-v2/test/integ.alb-controller.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-eks-v2/test/integ.alb-controller.ts @@ -75,6 +75,7 @@ class EksClusterAlbControllerStack extends Stack { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { [IAM_OIDC_REJECT_UNAUTHORIZED_CONNECTIONS]: false, [EKS_USE_NATIVE_OIDC_PROVIDER]: false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-eks-v2/test/integ.eks-addon.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-eks-v2/test/integ.eks-addon.ts index 167b9d52bd9dd..b1df71ea2ae13 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-eks-v2/test/integ.eks-addon.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-eks-v2/test/integ.eks-addon.ts @@ -29,6 +29,7 @@ class EksClusterStack extends Stack { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:createNewPoliciesWithAddToRolePolicy': true, '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-eks-v2/test/integ.eks-al2023-nodegroup.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-eks-v2/test/integ.eks-al2023-nodegroup.ts index cb1a3568ca967..43e01683f698b 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-eks-v2/test/integ.eks-al2023-nodegroup.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-eks-v2/test/integ.eks-al2023-nodegroup.ts @@ -51,6 +51,7 @@ class EksClusterStack extends Stack { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:createNewPoliciesWithAddToRolePolicy': true, '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-eks-v2/test/integ.eks-auto.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-eks-v2/test/integ.eks-auto.ts index dd9e6b6d1d0e7..33dc3e5b2e59b 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-eks-v2/test/integ.eks-auto.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-eks-v2/test/integ.eks-auto.ts @@ -72,6 +72,7 @@ export class EksAutoModeNodePoolsStack extends Stack { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:createNewPoliciesWithAddToRolePolicy': true, '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-eks-v2/test/integ.eks-cluster-imported.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-eks-v2/test/integ.eks-cluster-imported.ts index bf24e15333dd2..04e589c9cf1b8 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-eks-v2/test/integ.eks-cluster-imported.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-eks-v2/test/integ.eks-cluster-imported.ts @@ -219,6 +219,7 @@ class EksClusterStack extends Stack { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { [IAM_OIDC_REJECT_UNAUTHORIZED_CONNECTIONS]: false, [EKS_USE_NATIVE_OIDC_PROVIDER]: false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-eks-v2/test/integ.eks-cluster-native-oidc.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-eks-v2/test/integ.eks-cluster-native-oidc.ts index d18bc7227e668..64c6d4ba60ebc 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-eks-v2/test/integ.eks-cluster-native-oidc.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-eks-v2/test/integ.eks-cluster-native-oidc.ts @@ -36,6 +36,7 @@ class EksClusterNativeOidcStack extends Stack { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { [EKS_USE_NATIVE_OIDC_PROVIDER]: true, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-eks-v2/test/integ.eks-cluster-private-endpoint.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-eks-v2/test/integ.eks-cluster-private-endpoint.ts index 5a3c45daf09e5..d1aaa8d62d1ee 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-eks-v2/test/integ.eks-cluster-private-endpoint.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-eks-v2/test/integ.eks-cluster-private-endpoint.ts @@ -36,6 +36,7 @@ class EksClusterStack extends Stack { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:createNewPoliciesWithAddToRolePolicy': true, '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-eks-v2/test/integ.eks-cluster-removal-policy.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-eks-v2/test/integ.eks-cluster-removal-policy.ts index cd394e24aaa13..f06562a2c1893 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-eks-v2/test/integ.eks-cluster-removal-policy.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-eks-v2/test/integ.eks-cluster-removal-policy.ts @@ -131,6 +131,7 @@ class EksClusterRemovalPolicyStack extends Stack { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { [EKS_USE_NATIVE_OIDC_PROVIDER]: false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-eks-v2/test/integ.eks-cluster.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-eks-v2/test/integ.eks-cluster.ts index 9ca20344ff897..b7ec5a05d81eb 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-eks-v2/test/integ.eks-cluster.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-eks-v2/test/integ.eks-cluster.ts @@ -357,6 +357,7 @@ const supportedRegions = [ ]; const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { [IAM_OIDC_REJECT_UNAUTHORIZED_CONNECTIONS]: false, [EKS_USE_NATIVE_OIDC_PROVIDER]: false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-eks-v2/test/integ.eks-grant-access-with-type.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-eks-v2/test/integ.eks-grant-access-with-type.ts index 10e00908613a6..852bd785eb651 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-eks-v2/test/integ.eks-grant-access-with-type.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-eks-v2/test/integ.eks-grant-access-with-type.ts @@ -89,6 +89,7 @@ class EksGrantAccessWithType extends Stack { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:createNewPoliciesWithAddToRolePolicy': true, '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-eks-v2/test/integ.eks-helm-asset.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-eks-v2/test/integ.eks-helm-asset.ts index 5d82b633e220a..3041664fa131b 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-eks-v2/test/integ.eks-helm-asset.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-eks-v2/test/integ.eks-helm-asset.ts @@ -130,6 +130,7 @@ class EksClusterStack extends Stack { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { [EKS_USE_NATIVE_OIDC_PROVIDER]: false, '@aws-cdk/aws-lambda:createNewPoliciesWithAddToRolePolicy': true, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-eks-v2/test/integ.eks-hybrid-nodes.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-eks-v2/test/integ.eks-hybrid-nodes.ts index 157900ad6608d..236e15a454221 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-eks-v2/test/integ.eks-hybrid-nodes.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-eks-v2/test/integ.eks-hybrid-nodes.ts @@ -33,6 +33,7 @@ class EksHybridNodesStack extends Stack { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, '@aws-cdk/aws-lambda:createNewPoliciesWithAddToRolePolicy': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-eks-v2/test/integ.eks-inference-nodegroup.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-eks-v2/test/integ.eks-inference-nodegroup.ts index 28374ea38bb44..11bc7cfe581dc 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-eks-v2/test/integ.eks-inference-nodegroup.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-eks-v2/test/integ.eks-inference-nodegroup.ts @@ -36,6 +36,7 @@ class EksClusterInferenceStack extends Stack { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { [IAM_OIDC_REJECT_UNAUTHORIZED_CONNECTIONS]: false, [EKS_USE_NATIVE_OIDC_PROVIDER]: false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-eks-v2/test/integ.eks-oidc-provider.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-eks-v2/test/integ.eks-oidc-provider.ts index 81984068125dc..9101ede4335e4 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-eks-v2/test/integ.eks-oidc-provider.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-eks-v2/test/integ.eks-oidc-provider.ts @@ -4,6 +4,7 @@ import { IAM_OIDC_REJECT_UNAUTHORIZED_CONNECTIONS } from 'aws-cdk-lib/cx-api'; import * as eks from 'aws-cdk-lib/aws-eks-v2'; const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { [IAM_OIDC_REJECT_UNAUTHORIZED_CONNECTIONS]: false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-eks-v2/test/integ.eks-standard-access-entry.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-eks-v2/test/integ.eks-standard-access-entry.ts index e01e4dda1c1fd..8bd6d7046eb26 100755 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-eks-v2/test/integ.eks-standard-access-entry.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-eks-v2/test/integ.eks-standard-access-entry.ts @@ -43,6 +43,7 @@ class EksStandardAccessEntry extends Stack { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:createNewPoliciesWithAddToRolePolicy': true, '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-eks-v2/test/integ.eks-subnet-updates.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-eks-v2/test/integ.eks-subnet-updates.ts index 032eb1fca2951..5223e15eebc43 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-eks-v2/test/integ.eks-subnet-updates.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-eks-v2/test/integ.eks-subnet-updates.ts @@ -24,6 +24,7 @@ class EksClusterStack extends Stack { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:createNewPoliciesWithAddToRolePolicy': true, '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-eks-v2/test/integ.eks-windows-ng.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-eks-v2/test/integ.eks-windows-ng.ts index 7757a39d03d95..cce965e2501f1 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-eks-v2/test/integ.eks-windows-ng.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-eks-v2/test/integ.eks-windows-ng.ts @@ -44,6 +44,7 @@ class EksClusterStack extends Stack { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:createNewPoliciesWithAddToRolePolicy': true, '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-eks-v2/test/integ.fargate-cluster.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-eks-v2/test/integ.fargate-cluster.ts index 05d26e0edc792..aa00441165660 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-eks-v2/test/integ.fargate-cluster.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-eks-v2/test/integ.fargate-cluster.ts @@ -25,6 +25,7 @@ class EksFargateClusterStack extends Stack { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:createNewPoliciesWithAddToRolePolicy': true, '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-eks-v2/test/integ.helm-chart-logging.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-eks-v2/test/integ.helm-chart-logging.ts index 4343a50f7a0b8..f3c060b7e7cf4 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-eks-v2/test/integ.helm-chart-logging.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-eks-v2/test/integ.helm-chart-logging.ts @@ -44,7 +44,7 @@ class HelmChartLoggingV2Stack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new HelmChartLoggingV2Stack(app, 'aws-cdk-eks-v2-alpha-helm-logging-test'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.alb-controller-authapi.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.alb-controller-authapi.ts index eb35d29833317..da801090dcb8a 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.alb-controller-authapi.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.alb-controller-authapi.ts @@ -31,6 +31,7 @@ class EksClusterStack extends Stack { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, [IAM_OIDC_REJECT_UNAUTHORIZED_CONNECTIONS]: false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.alb-controller.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.alb-controller.ts index 4024fd033fb86..1d192158bdd79 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.alb-controller.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.alb-controller.ts @@ -72,6 +72,7 @@ class EksClusterAlbControllerStack extends Stack { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, [IAM_OIDC_REJECT_UNAUTHORIZED_CONNECTIONS]: false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.custom-addons.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.custom-addons.ts index 42e86b54ae161..a4477f2fc2fa7 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.custom-addons.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.custom-addons.ts @@ -5,6 +5,7 @@ import { getClusterVersionConfig } from './integ-tests-kubernetes-version'; import * as eks from 'aws-cdk-lib/aws-eks'; const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-addon.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-addon.ts index 82752f0a1916a..c15ba9e3a04ac 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-addon.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-addon.ts @@ -26,6 +26,7 @@ class EksClusterStack extends Stack { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, '@aws-cdk/aws-lambda:createNewPoliciesWithAddToRolePolicy': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-al2023-nodegroup.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-al2023-nodegroup.ts index f701e7e21a0f6..67d8da1717b77 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-al2023-nodegroup.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-al2023-nodegroup.ts @@ -54,6 +54,7 @@ class EksClusterStack extends Stack { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, '@aws-cdk/aws-lambda:createNewPoliciesWithAddToRolePolicy': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-bottlerocket-ng.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-bottlerocket-ng.ts index a51cd8645fa77..0aec6d8899c54 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-bottlerocket-ng.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-bottlerocket-ng.ts @@ -41,6 +41,7 @@ class EksClusterStack extends Stack { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, '@aws-cdk/aws-lambda:createNewPoliciesWithAddToRolePolicy': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-cluster-handlers-vpc.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-cluster-handlers-vpc.ts index 6ca5d9cc7c959..9f591d8a2538f 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-cluster-handlers-vpc.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-cluster-handlers-vpc.ts @@ -18,6 +18,7 @@ class EksAllHandlersInVpcStack extends Stack { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, '@aws-cdk/aws-lambda:createNewPoliciesWithAddToRolePolicy': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-cluster-imported.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-cluster-imported.ts index a8439083baacc..2ad738219080f 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-cluster-imported.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-cluster-imported.ts @@ -215,6 +215,7 @@ class EksClusterStack extends Stack { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, [IAM_OIDC_REJECT_UNAUTHORIZED_CONNECTIONS]: false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-cluster-ipv6.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-cluster-ipv6.ts index 0b78e39f30e04..693502f3248cd 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-cluster-ipv6.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-cluster-ipv6.ts @@ -354,6 +354,7 @@ const supportedRegions = [ ]; const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, [IAM_OIDC_REJECT_UNAUTHORIZED_CONNECTIONS]: false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-cluster-native-oidc.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-cluster-native-oidc.ts index 10c1597d9bbe1..0b7fa4874be71 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-cluster-native-oidc.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-cluster-native-oidc.ts @@ -33,6 +33,7 @@ class EksClusterNativeOidcStack extends Stack { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { [EKS_USE_NATIVE_OIDC_PROVIDER]: true, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-cluster-private-endpoint.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-cluster-private-endpoint.ts index 5b86d2a7f92a7..4088176533cbb 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-cluster-private-endpoint.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-cluster-private-endpoint.ts @@ -47,6 +47,7 @@ class EksClusterStack extends Stack { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, '@aws-cdk/aws-lambda:createNewPoliciesWithAddToRolePolicy': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-cluster-removal-policy.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-cluster-removal-policy.ts index 51ab6b87ae596..0d21e17c95314 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-cluster-removal-policy.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-cluster-removal-policy.ts @@ -129,6 +129,7 @@ class EksClusterRemovalPolicyStack extends Stack { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { [EKS_USE_NATIVE_OIDC_PROVIDER]: false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-cluster-tags.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-cluster-tags.ts index dd60a5431ab1e..23c002eceebe3 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-cluster-tags.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-cluster-tags.ts @@ -24,6 +24,7 @@ class EksClusterTagsStack extends Stack { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, '@aws-cdk/aws-lambda:createNewPoliciesWithAddToRolePolicy': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-cluster.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-cluster.ts index 12e01373e39dc..29af68fd849d9 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-cluster.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-cluster.ts @@ -347,6 +347,7 @@ const supportedRegions = [ ]; const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, [IAM_OIDC_REJECT_UNAUTHORIZED_CONNECTIONS]: false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-default-capacity.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-default-capacity.ts index 81671dffc62b1..40c798d814c31 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-default-capacity.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-default-capacity.ts @@ -28,7 +28,7 @@ class EksDefaultCapacityStack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new EksDefaultCapacityStack(app, 'aws-cdk-eks-default-capacity-test'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-grant-access-with-type.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-grant-access-with-type.ts index 66325eb359949..034e75cba33be 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-grant-access-with-type.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-grant-access-with-type.ts @@ -108,6 +108,7 @@ class EksGrantAccessWithType extends Stack { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:createNewPoliciesWithAddToRolePolicy': true, '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-helm-asset.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-helm-asset.ts index 513c12a51dfbd..8d3e4e7966dad 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-helm-asset.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-helm-asset.ts @@ -156,6 +156,7 @@ class EksClusterStack extends Stack { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, [EKS_USE_NATIVE_OIDC_PROVIDER]: false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-hybrid-nodes.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-hybrid-nodes.ts index 587785dea2777..c39bce42c0e83 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-hybrid-nodes.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-hybrid-nodes.ts @@ -36,6 +36,7 @@ class EksHybridNodesStack extends Stack { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, '@aws-cdk/aws-lambda:createNewPoliciesWithAddToRolePolicy': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-inference-nodegroup.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-inference-nodegroup.ts index 5e402c72e8b0b..30a2e23056b99 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-inference-nodegroup.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-inference-nodegroup.ts @@ -40,6 +40,7 @@ class EksClusterInferenceStack extends Stack { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, [IAM_OIDC_REJECT_UNAUTHORIZED_CONNECTIONS]: false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-inference.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-inference.ts index acbd3f2db6913..46bc1086ab48e 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-inference.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-inference.ts @@ -38,6 +38,7 @@ class EksClusterInferenceStack extends Stack { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, [IAM_OIDC_REJECT_UNAUTHORIZED_CONNECTIONS]: false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-oidc-provider.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-oidc-provider.ts index a71ca246136ff..864cad98d1201 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-oidc-provider.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-oidc-provider.ts @@ -5,6 +5,7 @@ import { IAM_OIDC_REJECT_UNAUTHORIZED_CONNECTIONS } from 'aws-cdk-lib/cx-api'; import { getClusterVersionConfig } from './integ-tests-kubernetes-version'; const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { [IAM_OIDC_REJECT_UNAUTHORIZED_CONNECTIONS]: false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-pod-identities.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-pod-identities.ts index 1e95b0e53ec03..0029a5367e96a 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-pod-identities.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-pod-identities.ts @@ -67,6 +67,7 @@ class EksClusterStack extends Stack { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, '@aws-cdk/aws-lambda:createNewPoliciesWithAddToRolePolicy': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-service-account-sdk-call.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-service-account-sdk-call.ts index 25a4c80de058b..79b81bcc35d3a 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-service-account-sdk-call.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-service-account-sdk-call.ts @@ -12,6 +12,7 @@ import { getClusterVersionConfig } from './integ-tests-kubernetes-version'; import { EKS_USE_NATIVE_OIDC_PROVIDER, IAM_OIDC_REJECT_UNAUTHORIZED_CONNECTIONS } from 'aws-cdk-lib/cx-api'; const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, [IAM_OIDC_REJECT_UNAUTHORIZED_CONNECTIONS]: false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-standard-access-entry.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-standard-access-entry.ts index d6f58fabd8f3e..12a6796926243 100755 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-standard-access-entry.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-standard-access-entry.ts @@ -40,6 +40,7 @@ class EksStandardAccessEntry extends Stack { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, '@aws-cdk/aws-lambda:createNewPoliciesWithAddToRolePolicy': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-subnet-updates.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-subnet-updates.ts index 63cfced3e6c13..de69dcccb4ed6 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-subnet-updates.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-subnet-updates.ts @@ -20,6 +20,7 @@ class EksClusterStack extends Stack { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, '@aws-cdk/aws-lambda:createNewPoliciesWithAddToRolePolicy': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-windows-ng.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-windows-ng.ts index 1b81b88754ed5..e3e988d628d42 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-windows-ng.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-windows-ng.ts @@ -49,6 +49,7 @@ class EksClusterStack extends Stack { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, '@aws-cdk/aws-lambda:createNewPoliciesWithAddToRolePolicy': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.fargate-cluster.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.fargate-cluster.ts index f55649514aa9d..4d55b63fb7d0a 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.fargate-cluster.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.fargate-cluster.ts @@ -30,6 +30,7 @@ class EksFargateClusterStack extends Stack { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, '@aws-cdk/aws-lambda:createNewPoliciesWithAddToRolePolicy': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.helm-chart-logging.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.helm-chart-logging.ts index fc2552c38bb74..f6ab1ca374f23 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.helm-chart-logging.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.helm-chart-logging.ts @@ -47,7 +47,7 @@ class HelmChartLoggingStack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new HelmChartLoggingStack(app, 'aws-cdk-eks-helm-logging-test'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.nodegroup-repair-config.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.nodegroup-repair-config.ts index a91df0323d2dc..c7f83c0957c65 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.nodegroup-repair-config.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.nodegroup-repair-config.ts @@ -7,6 +7,7 @@ import * as eks from 'aws-cdk-lib/aws-eks'; import { NodegroupAmiType } from 'aws-cdk-lib/aws-eks'; const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancing/test/integ.elb.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancing/test/integ.elb.ts index fe7b82a4dfd4e..1c563b1d43d6f 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancing/test/integ.elb.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancing/test/integ.elb.ts @@ -3,7 +3,7 @@ import * as ec2 from 'aws-cdk-lib/aws-ec2'; import * as cdk from 'aws-cdk-lib'; import * as elb from 'aws-cdk-lib/aws-elasticloadbalancing'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-elb-integ'); const vpc = new ec2.Vpc(stack, 'VPC', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancing/test/integ.instanceTarget.elb.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancing/test/integ.instanceTarget.elb.ts index 4d3dacaede343..b71dd673785bc 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancing/test/integ.instanceTarget.elb.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancing/test/integ.instanceTarget.elb.ts @@ -6,7 +6,7 @@ import * as cdk from 'aws-cdk-lib'; import * as integ from '@aws-cdk/integ-tests-alpha'; import * as elb from 'aws-cdk-lib/aws-elasticloadbalancing'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-elb-instance-target-integ'); const vpc = new ec2.Vpc(stack, 'VPC', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2-actions/test/integ.cognito.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2-actions/test/integ.cognito.ts index 170c87f612854..1c212b4c95094 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2-actions/test/integ.cognito.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2-actions/test/integ.cognito.ts @@ -184,6 +184,7 @@ const domainName = process.env.CDK_INTEG_DOMAIN_NAME ?? process.env.DOMAIN_NAME; if (!domainName) throw new Error('For this test you must provide your own DomainName as an env var "DOMAIN_NAME". See framework-integ/README.md for details.'); const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2-targets/test/integ.alb-listner-target.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2-targets/test/integ.alb-listner-target.ts index 2cb9ef800da3a..e2354e555f573 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2-targets/test/integ.alb-listner-target.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2-targets/test/integ.alb-listner-target.ts @@ -6,7 +6,7 @@ import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import * as targets from 'aws-cdk-lib/aws-elasticloadbalancingv2-targets'; // WHEN -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); // GIVEN class ALBListenerStack extends cdk.Stack { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2-targets/test/integ.alb-target.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2-targets/test/integ.alb-target.ts index fe2f98ed9b69e..d611f1f44a0cd 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2-targets/test/integ.alb-target.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2-targets/test/integ.alb-target.ts @@ -46,6 +46,6 @@ class TestStack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); new TestStack(app, 'TestStack'); app.synth(); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2-targets/test/integ.lambda-target.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2-targets/test/integ.lambda-target.ts index de55dc59d2182..99e325148d50d 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2-targets/test/integ.lambda-target.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2-targets/test/integ.lambda-target.ts @@ -42,6 +42,7 @@ def handler(event, context): } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb-lambda-multi-value-headers.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb-lambda-multi-value-headers.ts index b3e7067b0f8a6..3e894215c0184 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb-lambda-multi-value-headers.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb-lambda-multi-value-headers.ts @@ -7,6 +7,7 @@ import * as targets from 'aws-cdk-lib/aws-elasticloadbalancingv2-targets'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb-mtls.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb-mtls.ts index 98fbc2de3fa3f..379303be59a69 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb-mtls.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb-mtls.ts @@ -157,6 +157,7 @@ const domainName = process.env.CDK_INTEG_DOMAIN_NAME ?? process.env.DOMAIN_NAME; if (!domainName) throw new Error('For this test you must provide your own DomainName as an env var "DOMAIN_NAME". See framework-integ/README.md for details.'); const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb-target-group-attributes.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb-target-group-attributes.ts index 1b0fe5af3ab3c..53c4c1db773f4 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb-target-group-attributes.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb-target-group-attributes.ts @@ -1,7 +1,7 @@ import { ExpectedResult, IntegTest, Match } from '@aws-cdk/integ-tests-alpha'; import { Stack, aws_ec2 as ec2, aws_elasticloadbalancingv2 as elbv2, App } from 'aws-cdk-lib'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'alb-target-group-attributes'); const vpc = new ec2.Vpc(stack, 'Stack'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb-target-group-cross-zone.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb-target-group-cross-zone.ts index e60663054f147..4ed69307a8360 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb-target-group-cross-zone.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb-target-group-cross-zone.ts @@ -17,7 +17,7 @@ class TargetGroupCrossZoneStack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new TargetGroupCrossZoneStack(app, 'alb-target-group-cross-zone-stack'); new IntegTest(app, 'alb-target-group-cross-zone-test-stack', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb-target-group-ip-address-type.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb-target-group-ip-address-type.ts index c8c99bc419a48..58694fb0e2c48 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb-target-group-ip-address-type.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb-target-group-ip-address-type.ts @@ -32,7 +32,7 @@ class TestStack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new TestStack(app, 'AlbTargetGroupIpAddressTypeTestStack'); new IntegTest(app, 'AlbTargetGroupIpAddressTypeTestInteg', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.attributes.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.attributes.ts index d9cb8ee087231..112756c4151f0 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.attributes.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.attributes.ts @@ -4,7 +4,7 @@ import * as cdk from 'aws-cdk-lib'; import * as integ from '@aws-cdk/integ-tests-alpha'; import * as elbv2 from 'aws-cdk-lib/aws-elasticloadbalancingv2'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-elbv2-integ'); const vpc = new ec2.Vpc(stack, 'VPC', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.dualstack-without-public-ipv4.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.dualstack-without-public-ipv4.ts index d963320417924..e870cbc85a5c5 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.dualstack-without-public-ipv4.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.dualstack-without-public-ipv4.ts @@ -22,7 +22,7 @@ const valueOrDie = (value: T | undefined, err: Error): C => * ALB attaches a listener with dualstack that defaults IPv4/IPv6 ingress rule. * */ -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-elbv2-integ-dualstack-without-public-ipv4'); const vpc = new ec2.Vpc(stack, 'VPC', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.dualstack.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.dualstack.ts index 6242791f4a43f..ebffa470d851e 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.dualstack.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.dualstack.ts @@ -20,7 +20,7 @@ const valueOrDie = (value: T | undefined, err: Error): C => * ALB attaches a listener with dualstack that defaults IPv4/IPv6 ingress rule. * */ -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-elbv2-integ'); const vpc = new ec2.Vpc(stack, 'VPC', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.extended.log.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.extended.log.ts index 8ccc011fd801c..1f7e08ecf1624 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.extended.log.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.extended.log.ts @@ -31,7 +31,7 @@ class ExtendedLB extends elbv2.ApplicationLoadBalancer { } } -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-elbv2-integ', { env: { region: 'us-west-2' } }); stack.node.setContext(EC2_RESTRICT_DEFAULT_SECURITY_GROUP, false); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.log.imported-bucket.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.log.imported-bucket.ts index cd79500605179..3878b3ed09b0c 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.log.imported-bucket.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.log.imported-bucket.ts @@ -6,7 +6,7 @@ import * as elbv2 from 'aws-cdk-lib/aws-elasticloadbalancingv2'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import { EC2_RESTRICT_DEFAULT_SECURITY_GROUP } from 'aws-cdk-lib/cx-api'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-alb-log-imported-bucket-integ', { env: { region: 'us-west-2' } }); stack.node.setContext(EC2_RESTRICT_DEFAULT_SECURITY_GROUP, false); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.log.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.log.ts index 69a96e98340f6..3c4780a91cbbf 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.log.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.log.ts @@ -6,7 +6,7 @@ import * as elbv2 from 'aws-cdk-lib/aws-elasticloadbalancingv2'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import { EC2_RESTRICT_DEFAULT_SECURITY_GROUP } from 'aws-cdk-lib/cx-api'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-elbv2-integ', { env: { region: 'us-west-2' } }); stack.node.setContext(EC2_RESTRICT_DEFAULT_SECURITY_GROUP, false); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.minimum-capacity-unit.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.minimum-capacity-unit.ts index 9eff667975843..a2b5bcd56168d 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.minimum-capacity-unit.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.minimum-capacity-unit.ts @@ -29,7 +29,7 @@ class TestStack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); new IntegTest(app, 'MinimumCapacityUnitAlbInteg', { testCases: [ new TestStack(app, 'MinimumCapacityUnitAlbStack'), diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.oidc.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.oidc.ts index 69ef552c81bda..6889816ec2184 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.oidc.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.oidc.ts @@ -171,6 +171,7 @@ const domainName = process.env.CDK_INTEG_DOMAIN_NAME ?? process.env.DOMAIN_NAME; if (!domainName) throw new Error('For this test you must provide your own DomainName as an env var "DOMAIN_NAME". See framework-integ/README.md for details.'); const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.ts index 5a02b26222393..95cd40c36c905 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.ts @@ -3,7 +3,7 @@ import * as ec2 from 'aws-cdk-lib/aws-ec2'; import * as cdk from 'aws-cdk-lib'; import * as elbv2 from 'aws-cdk-lib/aws-elasticloadbalancingv2'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-elbv2-integ'); const vpc = new ec2.Vpc(stack, 'VPC', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.two-target-groups.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.two-target-groups.ts index 66f85482860c6..5de33d1d49027 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.two-target-groups.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.two-target-groups.ts @@ -24,7 +24,7 @@ class AddTwoTargetGroupsAtOnce extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); new IntegTest(app, 'issue-24805', { testCases: [ new AddTwoTargetGroupsAtOnce(app, 'Basic'), diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.weighte-random-algorithm.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.weighte-random-algorithm.ts index 612190e1b7bd1..6ad2d357b528a 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.weighte-random-algorithm.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.weighte-random-algorithm.ts @@ -31,7 +31,7 @@ class WeightRandomAlgorithmStack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new WeightRandomAlgorithmStack(app, 'alb-weight-rando-algorithm-test-stack'); new IntegTest(app, 'alb-weight-rando-algorithm-test-integ', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb2.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb2.ts index 403b39858abaf..07e7384115cbd 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb2.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb2.ts @@ -3,7 +3,7 @@ import * as ec2 from 'aws-cdk-lib/aws-ec2'; import * as cdk from 'aws-cdk-lib'; import * as elbv2 from 'aws-cdk-lib/aws-elasticloadbalancingv2'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-elbv2-integ'); const vpc = new ec2.Vpc(stack, 'VPC', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.connection-termination.nlb.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.connection-termination.nlb.ts index d8a3332e5e308..cf90f66c0ac80 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.connection-termination.nlb.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.connection-termination.nlb.ts @@ -5,7 +5,7 @@ import { Duration } from 'aws-cdk-lib'; import * as integ from '@aws-cdk/integ-tests-alpha'; import * as elbv2 from 'aws-cdk-lib/aws-elasticloadbalancingv2'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-elbv2-integ'); const vpc = new ec2.Vpc(stack, 'VPC', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.crosszone.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.crosszone.ts index 49cf2a99ac701..358d1cc006eef 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.crosszone.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.crosszone.ts @@ -4,7 +4,7 @@ import * as cdk from 'aws-cdk-lib'; import * as elbv2 from 'aws-cdk-lib/aws-elasticloadbalancingv2'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-elbv2-integ'); const vpc = new ec2.Vpc(stack, 'VPC', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb-enable-prefix-for-ipv6-nat.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb-enable-prefix-for-ipv6-nat.ts index f33dcb18f61b5..de8fb4f693741 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb-enable-prefix-for-ipv6-nat.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb-enable-prefix-for-ipv6-nat.ts @@ -3,7 +3,7 @@ import * as cdk from 'aws-cdk-lib'; import * as integ from '@aws-cdk/integ-tests-alpha'; import * as elbv2 from 'aws-cdk-lib/aws-elasticloadbalancingv2'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'NlbEnablePrefixForIpv6NatStack'); const vpc = new ec2.Vpc(stack, 'Vpc', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb-listener-tcp-idle-timeout.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb-listener-tcp-idle-timeout.ts index f038ad2cde8f3..1a6f96794ff6c 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb-listener-tcp-idle-timeout.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb-listener-tcp-idle-timeout.ts @@ -3,7 +3,7 @@ import * as cdk from 'aws-cdk-lib'; import * as integ from '@aws-cdk/integ-tests-alpha'; import * as elbv2 from 'aws-cdk-lib/aws-elasticloadbalancingv2'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'nlb-tcp-idle-timeout'); const vpc = new ec2.Vpc(stack, 'VPC', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb-subnet-mapping.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb-subnet-mapping.ts index 70e7b7ee73943..f114bc499443a 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb-subnet-mapping.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb-subnet-mapping.ts @@ -3,7 +3,7 @@ import * as cdk from 'aws-cdk-lib'; import * as integ from '@aws-cdk/integ-tests-alpha'; import * as elbv2 from 'aws-cdk-lib/aws-elasticloadbalancingv2'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'NlbSubnetMappingStack'); const dualstackVpc = new ec2.Vpc(stack, 'DualStackVpc', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb-target-group-attributes.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb-target-group-attributes.ts index 57276aa69fbf1..e3b3f78a6e2b0 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb-target-group-attributes.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb-target-group-attributes.ts @@ -1,7 +1,7 @@ import { ExpectedResult, IntegTest, Match } from '@aws-cdk/integ-tests-alpha'; import { Stack, aws_ec2 as ec2, aws_elasticloadbalancingv2 as elbv2, App } from 'aws-cdk-lib'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'nlb-target-group-attributes'); const vpc = new ec2.Vpc(stack, 'Stack'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb-target-group-cross-zone.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb-target-group-cross-zone.ts index 0ece020050184..aa197fbb06d04 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb-target-group-cross-zone.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb-target-group-cross-zone.ts @@ -17,7 +17,7 @@ class TargetGroupCrossZoneStack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new TargetGroupCrossZoneStack(app, 'nlb-target-group-cross-zone-stack'); new IntegTest(app, 'nlb-target-group-cross-zone-test-stack', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb-target-group-ip-address-type.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb-target-group-ip-address-type.ts index fd49799cd0d73..b4aa3f1436c0c 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb-target-group-ip-address-type.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb-target-group-ip-address-type.ts @@ -32,7 +32,7 @@ class TestStack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new TestStack(app, 'NlbTargetGroupIpAddressTypeTestStack'); new IntegTest(app, 'NlbTargetGroupIpAddressTypeTestInteg', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb.attributes.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb.attributes.ts index 5a5b0ec8a972a..1e0a3297fdc6a 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb.attributes.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb.attributes.ts @@ -3,7 +3,7 @@ import * as integ from '@aws-cdk/integ-tests-alpha'; import * as elbv2 from 'aws-cdk-lib/aws-elasticloadbalancingv2'; import { App, Stack } from 'aws-cdk-lib'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'aws-cdk-nlb-attributes-integ'); const vpc = new ec2.Vpc(stack, 'VPC', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb.dualstack.internal.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb.dualstack.internal.ts index cbb5ebe76d77c..9bf7ddca00a29 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb.dualstack.internal.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb.dualstack.internal.ts @@ -3,7 +3,7 @@ import * as cdk from 'aws-cdk-lib'; import * as integ from '@aws-cdk/integ-tests-alpha'; import * as elbv2 from 'aws-cdk-lib/aws-elasticloadbalancingv2'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-nlb-dualstack-internal'); const vpc = new ec2.Vpc(stack, 'VPC', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb.dualstack.internet-facing.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb.dualstack.internet-facing.ts index c345d85e00c24..d3f378a3d38c4 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb.dualstack.internet-facing.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb.dualstack.internet-facing.ts @@ -10,7 +10,7 @@ const valueOrDie = (value: T | undefined, err: Error): C => return value as C; }; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-nlb-dualstack-internet-facing'); const vpc = new ec2.Vpc(stack, 'VPC', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb.enforce-sg-inbound-rules.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb.enforce-sg-inbound-rules.ts index fea5f2866179d..561ce52230340 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb.enforce-sg-inbound-rules.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb.enforce-sg-inbound-rules.ts @@ -3,7 +3,7 @@ import * as cdk from 'aws-cdk-lib'; import * as elbv2 from 'aws-cdk-lib/aws-elasticloadbalancingv2'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-elbv2-integ-enforce-sg-inbound-rules'); const vpc = new ec2.Vpc(stack, 'VPC', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb.minimum-capacity-unit.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb.minimum-capacity-unit.ts index dab79817de4b8..c593a0de13387 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb.minimum-capacity-unit.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb.minimum-capacity-unit.ts @@ -31,7 +31,7 @@ class TestStack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); new IntegTest(app, 'MinimumCapacityUnitNlbInteg', { testCases: [ new TestStack(app, 'MinimumCapacityUnitNlbStack'), diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb.security-group.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb.security-group.ts index 41a5ed04c2949..1af04f2a38aa8 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb.security-group.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb.security-group.ts @@ -34,6 +34,7 @@ class TestStack extends Stack { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-elasticloadbalancingv2:networkLoadBalancerWithSecurityGroupByDefault': true, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb.ts index 40f8ac3152060..397203ffc00d3 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb.ts @@ -4,7 +4,7 @@ import * as integ from '@aws-cdk/integ-tests-alpha'; import * as elbv2 from 'aws-cdk-lib/aws-elasticloadbalancingv2'; import * as targets from 'aws-cdk-lib/aws-elasticloadbalancingv2-targets'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-elbv2-integ'); const vpc = new ec2.Vpc(stack, 'VPC', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.vpc-endpoint-service.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.vpc-endpoint-service.ts index 915acf2680fdf..aba05d993eecf 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.vpc-endpoint-service.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.vpc-endpoint-service.ts @@ -3,7 +3,7 @@ import { ArnPrincipal } from 'aws-cdk-lib/aws-iam'; import * as cdk from 'aws-cdk-lib'; import * as elbv2 from 'aws-cdk-lib/aws-elasticloadbalancingv2'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); class VpcEndpointServiceStack extends cdk.Stack { constructor(scope: cdk.App, id: string, props?: cdk.StackProps) { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch-vpc.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch-vpc.ts index e9662d077df6c..f11561e6a6ff8 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch-vpc.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch-vpc.ts @@ -34,7 +34,7 @@ class TestStack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const testCase = new TestStack(app, 'cdk-integ-elasticsearch-vpc'); new integ.IntegTest(app, 'cdk-integ-elasticsearch-vpc-test', { testCases: [testCase], diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.advancedsecurity.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.advancedsecurity.ts index 64913e4bd54f6..75b93d6895c1a 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.advancedsecurity.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.advancedsecurity.ts @@ -25,6 +25,6 @@ class TestStack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); new TestStack(app, 'cdk-integ-elasticsearch-advancedsecurity'); app.synth(); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.custom-kms-key.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.custom-kms-key.ts index 1d162a9a3ce14..151482c3f3d26 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.custom-kms-key.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.custom-kms-key.ts @@ -45,6 +45,7 @@ class TestStack extends Stack { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.ts index 17a321e8bb1f0..71c9ada71d148 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.ts @@ -47,6 +47,7 @@ class TestStack extends Stack { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.ultrawarm.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.ultrawarm.ts index d61b534bf5fae..d19c7e80dab9f 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.ultrawarm.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.ultrawarm.ts @@ -18,6 +18,6 @@ class TestStack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); new TestStack(app, 'cdk-integ-elasticsearch-ultrawarm'); app.synth(); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.unsignedbasicauth.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.unsignedbasicauth.ts index 7cdf68dfa3c8a..23f48abfa415b 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.unsignedbasicauth.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.unsignedbasicauth.ts @@ -17,6 +17,7 @@ class TestStack extends Stack { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/api-destination/integ.api-destination.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/api-destination/integ.api-destination.ts index 0e65b37fbdff1..6bc49d1653d6b 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/api-destination/integ.api-destination.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/api-destination/integ.api-destination.ts @@ -4,7 +4,7 @@ import * as events from 'aws-cdk-lib/aws-events'; import * as targets from 'aws-cdk-lib/aws-events-targets'; import * as secretsmanager from 'aws-cdk-lib/aws-secretsmanager'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-events-targets-api-destination-integ'); const secret = new secretsmanager.Secret(stack, 'MySecret', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/api-gateway/integ.api-gateway.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/api-gateway/integ.api-gateway.ts index 1916761d483de..0f7eff8b4cd72 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/api-gateway/integ.api-gateway.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/api-gateway/integ.api-gateway.ts @@ -4,7 +4,7 @@ import * as api from 'aws-cdk-lib/aws-apigateway'; import * as cdk from 'aws-cdk-lib'; import { IntegTest, ExpectedResult } from '@aws-cdk/integ-tests-alpha'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-events-targets-api-gateway-integ'); const specRestApi = new api.SpecRestApi(stack, 'MySpecRestApi', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/api-gatewayv2/integ.api-gatewayv2.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/api-gatewayv2/integ.api-gatewayv2.ts index 824d68745a68b..a114eb54d84c3 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/api-gatewayv2/integ.api-gatewayv2.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/api-gatewayv2/integ.api-gatewayv2.ts @@ -4,7 +4,7 @@ import * as apigwv2 from 'aws-cdk-lib/aws-apigatewayv2'; import { App, Duration, Stack } from 'aws-cdk-lib'; import { IntegTest, ExpectedResult } from '@aws-cdk/integ-tests-alpha'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'aws-events-targets-api-gatewayv2-integ'); const httpApi = new apigwv2.HttpApi(stack, 'HttpApi'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/appsync/integ.appsync-events.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/appsync/integ.appsync-events.ts index 4bfef726fe2d9..ad7e68078f45a 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/appsync/integ.appsync-events.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/appsync/integ.appsync-events.ts @@ -6,7 +6,7 @@ import * as targets from 'aws-cdk-lib/aws-events-targets'; import * as path from 'path'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); class AwsAppSyncEvent extends cdk.Stack { constructor(scope: cdk.App, id: string, props?: cdk.StackProps) { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/aws-api/integ.aws-api.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/aws-api/integ.aws-api.ts index 35d8bd7d441b5..2c909e513f005 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/aws-api/integ.aws-api.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/aws-api/integ.aws-api.ts @@ -6,6 +6,7 @@ import { StringParameter } from 'aws-cdk-lib/aws-ssm'; import { Key } from 'aws-cdk-lib/aws-kms'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, '@aws-cdk/aws-lambda:createNewPoliciesWithAddToRolePolicy': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/batch/integ.job-definition-events.js b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/batch/integ.job-definition-events.js index 24b3fb445ae05..e43a2660a805a 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/batch/integ.job-definition-events.js +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/batch/integ.job-definition-events.js @@ -6,7 +6,7 @@ const events = require("aws-cdk-lib/aws-events"); const sqs = require("aws-cdk-lib/aws-sqs"); const cdk = require("aws-cdk-lib"); const targets = require("aws-cdk-lib/aws-events-targets"); -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'batch-events'); const queue = new batch.JobQueue(stack, 'MyQueue', { computeEnvironments: [ diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/batch/integ.job-definition-events.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/batch/integ.job-definition-events.ts index 0f5a1c509337a..2ccd2b927b552 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/batch/integ.job-definition-events.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/batch/integ.job-definition-events.ts @@ -5,7 +5,7 @@ import * as sqs from 'aws-cdk-lib/aws-sqs'; import * as cdk from 'aws-cdk-lib'; import * as targets from 'aws-cdk-lib/aws-events-targets'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'batch-events'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/codebuild/integ.project-events.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/codebuild/integ.project-events.ts index fd3ff0a03cd39..e3768185bac2a 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/codebuild/integ.project-events.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/codebuild/integ.project-events.ts @@ -8,7 +8,7 @@ import * as sqs from 'aws-cdk-lib/aws-sqs'; import * as cdk from 'aws-cdk-lib'; import * as targets from 'aws-cdk-lib/aws-events-targets'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-codebuild-events'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/codepipeline/integ.pipeline-event-target.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/codepipeline/integ.pipeline-event-target.ts index 9f0d17ccd416f..e760622a5239c 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/codepipeline/integ.pipeline-event-target.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/codepipeline/integ.pipeline-event-target.ts @@ -32,6 +32,7 @@ class MockAction implements codepipeline.IAction { } const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-codepipeline:defaultPipelineTypeToV2': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/ecs/integ.ecs-imported-task-def.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/ecs/integ.ecs-imported-task-def.ts index e57373f07a9f6..7addf5e92c4bc 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/ecs/integ.ecs-imported-task-def.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/ecs/integ.ecs-imported-task-def.ts @@ -5,7 +5,7 @@ import { Rule, Schedule } from 'aws-cdk-lib/aws-events'; import { EcsTask } from 'aws-cdk-lib/aws-events-targets'; import { Role, ServicePrincipal } from 'aws-cdk-lib/aws-iam'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'IntegEcsImportedTaskDefStack'); const cluster = new Cluster(stack, 'Cluster'); const taskDefFamily = 'TaskDefinitionA'; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/ecs/integ.event-ec2-task.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/ecs/integ.event-ec2-task.ts index 87c49f437cc11..c689cca90e1e3 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/ecs/integ.event-ec2-task.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/ecs/integ.event-ec2-task.ts @@ -8,6 +8,7 @@ import * as integ from '@aws-cdk/integ-tests-alpha'; import * as targets from 'aws-cdk-lib/aws-events-targets'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, '@aws-cdk/aws-lambda:createNewPoliciesWithAddToRolePolicy': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/ecs/integ.event-fargate-task.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/ecs/integ.event-fargate-task.ts index 15cdc9fa36a0b..9c0268bdd122f 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/ecs/integ.event-fargate-task.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/ecs/integ.event-fargate-task.ts @@ -7,7 +7,7 @@ import * as cdk from 'aws-cdk-lib'; import * as integ from '@aws-cdk/integ-tests-alpha'; import * as targets from 'aws-cdk-lib/aws-events-targets'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-ecs-integ-fargate'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/event-bus/integ.event-bus.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/event-bus/integ.event-bus.ts index e097bdeb0ac87..5fdd711507efa 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/event-bus/integ.event-bus.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/event-bus/integ.event-bus.ts @@ -3,7 +3,7 @@ import * as sqs from 'aws-cdk-lib/aws-sqs'; import * as cdk from 'aws-cdk-lib'; import * as targets from 'aws-cdk-lib/aws-events-targets'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); class EventSourceStack extends cdk.Stack { constructor(scope: cdk.App, id: string, props?: cdk.StackProps) { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/firehose/integ.firehose-delivery-stream.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/firehose/integ.firehose-delivery-stream.ts index 0db31a57000e2..f4669169df1f2 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/firehose/integ.firehose-delivery-stream.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/firehose/integ.firehose-delivery-stream.ts @@ -8,7 +8,7 @@ import { IntegTest, ExpectedResult, AwsApiCall } from '@aws-cdk/integ-tests-alph // --------------------------------- // Define a rule that triggers a put to a Firehose delivery stream every 1min. -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-firehose-event-target'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/kinesis/integ.kinesis-stream-customer-key.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/kinesis/integ.kinesis-stream-customer-key.ts index 4b4bd9c688415..0acf236e77d45 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/kinesis/integ.kinesis-stream-customer-key.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/kinesis/integ.kinesis-stream-customer-key.ts @@ -7,7 +7,7 @@ import { IntegTest } from '@aws-cdk/integ-tests-alpha'; // --------------------------------- // Define a rule that triggers a put to a Kinesis stream encrypted by a customer-managed KMS key every 1min. -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-kinesis-event-target'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/kinesis/integ.kinesis-stream-dead-letter-queue.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/kinesis/integ.kinesis-stream-dead-letter-queue.ts index a285776fef133..dfde8d5f606e8 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/kinesis/integ.kinesis-stream-dead-letter-queue.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/kinesis/integ.kinesis-stream-dead-letter-queue.ts @@ -5,7 +5,7 @@ import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import * as cdk from 'aws-cdk-lib'; import * as targets from 'aws-cdk-lib/aws-events-targets'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-kinesis-event-target-dlq'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/kinesis/integ.kinesis-stream.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/kinesis/integ.kinesis-stream.ts index 641d6f44bfdea..2a7a866dc50e9 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/kinesis/integ.kinesis-stream.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/kinesis/integ.kinesis-stream.ts @@ -6,7 +6,7 @@ import * as targets from 'aws-cdk-lib/aws-events-targets'; // --------------------------------- // Define a rule that triggers a put to a Kinesis stream every 1min. -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-kinesis-event-target'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/lambda/integ.events.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/lambda/integ.events.ts index 01dbf70d1c5de..733549f993f3b 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/lambda/integ.events.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/lambda/integ.events.ts @@ -6,6 +6,7 @@ import * as targets from 'aws-cdk-lib/aws-events-targets'; import { STANDARD_NODEJS_RUNTIME } from '../../../config'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/logs/integ.log-group-from-object-v2.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/logs/integ.log-group-from-object-v2.ts index b18bbd7163a64..4e34db4065dad 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/logs/integ.log-group-from-object-v2.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/logs/integ.log-group-from-object-v2.ts @@ -5,6 +5,7 @@ import * as events from 'aws-cdk-lib/aws-events'; import * as targets from 'aws-cdk-lib/aws-events-targets'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, '@aws-cdk/custom-resources:logApiResponseDataPropertyTrueDefault': true, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/logs/integ.log-group.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/logs/integ.log-group.ts index a8acc22dac1cb..3f09057cbf32f 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/logs/integ.log-group.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/logs/integ.log-group.ts @@ -7,6 +7,7 @@ import * as targets from 'aws-cdk-lib/aws-events-targets'; import { LogGroupTargetInput } from 'aws-cdk-lib/aws-events-targets'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, '@aws-cdk/aws-lambda:createNewPoliciesWithAddToRolePolicy': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/redshift-query/integ.redshift-query.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/redshift-query/integ.redshift-query.ts index 8f583c3f7a286..74e8c23d2c61a 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/redshift-query/integ.redshift-query.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/redshift-query/integ.redshift-query.ts @@ -6,7 +6,7 @@ import * as targets from 'aws-cdk-lib/aws-events-targets'; import * as redshiftserverless from 'aws-cdk-lib/aws-redshiftserverless'; import * as secretsmanager from 'aws-cdk-lib/aws-secretsmanager'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'redshift-query-events'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/sns/integ.sns-event-rule-target-custom-role.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/sns/integ.sns-event-rule-target-custom-role.ts index 5543cad1d97d3..65c5a20b5df32 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/sns/integ.sns-event-rule-target-custom-role.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/sns/integ.sns-event-rule-target-custom-role.ts @@ -12,7 +12,7 @@ import { IntegTest } from '@aws-cdk/integ-tests-alpha'; // Connect the topic with a queue. This means that the queue should have // a message sent to it every minute. A custom role is attached to the target. -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-sns-event-target'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/sns/integ.sns-event-rule-target-role-enabled.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/sns/integ.sns-event-rule-target-role-enabled.ts index 394c369be436c..62d3fafa0585f 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/sns/integ.sns-event-rule-target-role-enabled.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/sns/integ.sns-event-rule-target-role-enabled.ts @@ -11,7 +11,7 @@ import { IntegTest } from '@aws-cdk/integ-tests-alpha'; // Connect the topic with a queue. This means that the queue should have // a message sent to it every minute. A custom role is attached to the target. -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-sns-event-target'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/sns/integ.sns-event-rule-target.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/sns/integ.sns-event-rule-target.ts index f7222edb2bc30..6813437e58565 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/sns/integ.sns-event-rule-target.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/sns/integ.sns-event-rule-target.ts @@ -10,7 +10,7 @@ import * as targets from 'aws-cdk-lib/aws-events-targets'; // Connect the topic with a queue. This means that the queue should have // a message sent to it every minute. -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-sns-event-target'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/sqs/integ.sqs-event-rule-target.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/sqs/integ.sqs-event-rule-target.ts index ff31d4440c444..4003a6ee34365 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/sqs/integ.sqs-event-rule-target.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/sqs/integ.sqs-event-rule-target.ts @@ -10,7 +10,7 @@ import { IntegTest } from '@aws-cdk/integ-tests-alpha'; // Connect the topic with a queue. This means that the queue should have // a message sent to it every minute. -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-sqs-event-target'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-events/test/integ.api-destination.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-events/test/integ.api-destination.ts index 0b89e66ebf396..c75166c5682c7 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-events/test/integ.api-destination.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-events/test/integ.api-destination.ts @@ -3,7 +3,7 @@ import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import * as events from 'aws-cdk-lib/aws-events'; import * as secretsmanager from 'aws-cdk-lib/aws-secretsmanager'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'events-api-destination-stack'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-events/test/integ.archive-customer-managed-key.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-events/test/integ.archive-customer-managed-key.ts index 5dac53fe7546f..b3e5ff1f37a10 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-events/test/integ.archive-customer-managed-key.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-events/test/integ.archive-customer-managed-key.ts @@ -3,7 +3,7 @@ import { App, RemovalPolicy, Stack } from 'aws-cdk-lib'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import { Archive, EventBus } from 'aws-cdk-lib/aws-events'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'archive-customer-managed-key'); const kmsKey = new kms.Key(stack, 'KmsKey', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-events/test/integ.archive.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-events/test/integ.archive.ts index 056727c7b4306..cddc74bdda48b 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-events/test/integ.archive.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-events/test/integ.archive.ts @@ -3,7 +3,7 @@ import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import type { CfnArchive } from 'aws-cdk-lib/aws-events'; import { Archive, EventBus } from 'aws-cdk-lib/aws-events'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'IntegStack'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-events/test/integ.connection.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-events/test/integ.connection.ts index 60c84a1018d34..7ff09bfd83f61 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-events/test/integ.connection.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-events/test/integ.connection.ts @@ -3,7 +3,7 @@ import type { AssertionsProvider } from '@aws-cdk/integ-tests-alpha'; import { ExpectedResult, IntegTest } from '@aws-cdk/integ-tests-alpha'; import { Authorization, Connection, HttpParameter } from 'aws-cdk-lib/aws-events'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'IntegConnectionStack'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-events/test/integ.cross-account-rule.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-events/test/integ.cross-account-rule.ts index 6f9405b07eea8..37524744ca311 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-events/test/integ.cross-account-rule.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-events/test/integ.cross-account-rule.ts @@ -11,7 +11,7 @@ import { Rule } from 'aws-cdk-lib/aws-events'; * a support stack. */ -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const account = process.env.CDK_INTEG_ACCOUNT || process.env.CDK_DEFAULT_ACCOUNT; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-events/test/integ.eventbus-cross-account-grants.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-events/test/integ.eventbus-cross-account-grants.ts index e9c2b09a984f4..8991741b895be 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-events/test/integ.eventbus-cross-account-grants.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-events/test/integ.eventbus-cross-account-grants.ts @@ -5,6 +5,7 @@ import { EventBus } from 'aws-cdk-lib/aws-events'; import { AccountPrincipal } from 'aws-cdk-lib/aws-iam'; const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-events/test/integ.eventbus-customer-managed-key.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-events/test/integ.eventbus-customer-managed-key.ts index fc2e9883ec221..fcb5b05eed754 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-events/test/integ.eventbus-customer-managed-key.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-events/test/integ.eventbus-customer-managed-key.ts @@ -3,7 +3,7 @@ import { App, RemovalPolicy, Stack } from 'aws-cdk-lib'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import { EventBus } from 'aws-cdk-lib/aws-events'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'eventbue-customer-managed-key'); const kmsKey =new kms.Key(stack, 'KmsKey', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-events/test/integ.eventbus-grants.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-events/test/integ.eventbus-grants.ts index 4a5f0e57e3244..8f9cbcfa1e688 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-events/test/integ.eventbus-grants.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-events/test/integ.eventbus-grants.ts @@ -10,6 +10,7 @@ import { STANDARD_NODEJS_RUNTIME } from '../../config'; // Create a single app for both stacks const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-events/test/integ.eventbus.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-events/test/integ.eventbus.ts index 19ba678b19bd4..f9b4b488b59c8 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-events/test/integ.eventbus.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-events/test/integ.eventbus.ts @@ -4,7 +4,7 @@ import { App, Stack } from 'aws-cdk-lib'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import { EventBus, IncludeDetail, Level } from 'aws-cdk-lib/aws-events'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'Stack'); const dlq = new sqs.Queue(stack, 'DLQ'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-events/test/integ.rule.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-events/test/integ.rule.ts index 972ae8cce5120..a3fc19094d4ee 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-events/test/integ.rule.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-events/test/integ.rule.ts @@ -3,7 +3,7 @@ import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import { Rule, Match } from 'aws-cdk-lib/aws-events'; import * as iam from 'aws-cdk-lib/aws-iam'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'RuleStack'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-fsx/test/integ.lustre-file-system-automatic-backup.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-fsx/test/integ.lustre-file-system-automatic-backup.ts index 125117fbb6320..3be7fc3f4b12d 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-fsx/test/integ.lustre-file-system-automatic-backup.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-fsx/test/integ.lustre-file-system-automatic-backup.ts @@ -3,7 +3,7 @@ import { App, Duration, RemovalPolicy, Stack } from 'aws-cdk-lib'; import * as integ from '@aws-cdk/integ-tests-alpha'; import { LustreDeploymentType, LustreFileSystem, DailyAutomaticBackupStartTime } from 'aws-cdk-lib/aws-fsx'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'AwsCdkFsxLustreAutomaticBackup'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-fsx/test/integ.lustre-file-system-file-system-type-version.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-fsx/test/integ.lustre-file-system-file-system-type-version.ts index 8da09e4781551..0006689491257 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-fsx/test/integ.lustre-file-system-file-system-type-version.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-fsx/test/integ.lustre-file-system-file-system-type-version.ts @@ -3,7 +3,7 @@ import { App, RemovalPolicy, Stack } from 'aws-cdk-lib'; import { LustreDeploymentType, LustreFileSystem, LustreDataCompressionType, FileSystemTypeVersion } from 'aws-cdk-lib/aws-fsx'; import * as integ from '@aws-cdk/integ-tests-alpha'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'FsxLustreFileSystemTypeVersionStack'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-fsx/test/integ.lustre-file-system-maintenance-time.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-fsx/test/integ.lustre-file-system-maintenance-time.ts index efc5c53d78e8e..dcb2c91d1ae58 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-fsx/test/integ.lustre-file-system-maintenance-time.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-fsx/test/integ.lustre-file-system-maintenance-time.ts @@ -3,7 +3,7 @@ import { App, RemovalPolicy, Stack } from 'aws-cdk-lib'; import { LustreDeploymentType, LustreFileSystem, LustreDataCompressionType, LustreMaintenanceTime, Weekday } from 'aws-cdk-lib/aws-fsx'; import * as integ from '@aws-cdk/integ-tests-alpha'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'AwsCdkFsxLustreMaintenanceTime'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-fsx/test/integ.lustre-file-system-storage-type.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-fsx/test/integ.lustre-file-system-storage-type.ts index 73cb8dc44253b..a63730366e4e6 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-fsx/test/integ.lustre-file-system-storage-type.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-fsx/test/integ.lustre-file-system-storage-type.ts @@ -12,7 +12,7 @@ import { App, RemovalPolicy, Stack } from 'aws-cdk-lib'; import { LustreDeploymentType, LustreFileSystem, LustreDataCompressionType, StorageType, DriveCacheType } from 'aws-cdk-lib/aws-fsx'; import * as integ from '@aws-cdk/integ-tests-alpha'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'FsxLustreStorageTypeStack'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-fsx/test/integ.lustre-file-system-with-s3.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-fsx/test/integ.lustre-file-system-with-s3.ts index fc0f79c4123a4..1e9ce95710249 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-fsx/test/integ.lustre-file-system-with-s3.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-fsx/test/integ.lustre-file-system-with-s3.ts @@ -4,7 +4,7 @@ import { App, RemovalPolicy, Stack } from 'aws-cdk-lib'; import * as integ from '@aws-cdk/integ-tests-alpha'; import * as fsx from 'aws-cdk-lib/aws-fsx'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'AwsCdkFsxLustre'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-fsx/test/integ.lustre-file-system.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-fsx/test/integ.lustre-file-system.ts index 2895fb9b85f63..bad9133182276 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-fsx/test/integ.lustre-file-system.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-fsx/test/integ.lustre-file-system.ts @@ -2,7 +2,7 @@ import { AmazonLinuxGeneration, AmazonLinuxImage, Instance, InstanceClass, Insta import { App, RemovalPolicy, Stack } from 'aws-cdk-lib'; import { LustreDeploymentType, LustreFileSystem, LustreDataCompressionType } from 'aws-cdk-lib/aws-fsx'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'AwsCdkFsxLustre'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-globalaccelerator-endpoints/test/integ.globalaccelerator.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-globalaccelerator-endpoints/test/integ.globalaccelerator.ts index 0416f0aacbd01..6ad0c2ae923b3 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-globalaccelerator-endpoints/test/integ.globalaccelerator.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-globalaccelerator-endpoints/test/integ.globalaccelerator.ts @@ -57,6 +57,7 @@ class GaStack extends Stack { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-globalaccelerator/test/integ.globalaccelerator-endpoints.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-globalaccelerator/test/integ.globalaccelerator-endpoints.ts index aa9e79d902a7d..d592481605d4d 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-globalaccelerator/test/integ.globalaccelerator-endpoints.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-globalaccelerator/test/integ.globalaccelerator-endpoints.ts @@ -6,6 +6,7 @@ import { ApplicationLoadBalancer } from 'aws-cdk-lib/aws-elasticloadbalancingv2' import { ApplicationLoadBalancerEndpoint } from 'aws-cdk-lib/aws-globalaccelerator-endpoints'; const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-globalaccelerator/test/integ.globalaccelerator-ip-address-type.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-globalaccelerator/test/integ.globalaccelerator-ip-address-type.ts index 9047c1ec945af..eae0fe7afe48a 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-globalaccelerator/test/integ.globalaccelerator-ip-address-type.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-globalaccelerator/test/integ.globalaccelerator-ip-address-type.ts @@ -2,7 +2,7 @@ import { App, Stack } from 'aws-cdk-lib'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import * as ga from 'aws-cdk-lib/aws-globalaccelerator'; -const app = new App({}); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'global-accelerator-ip-address-type'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-globalaccelerator/test/integ.globalaccelerator-unique-name.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-globalaccelerator/test/integ.globalaccelerator-unique-name.ts index a668c0fd497df..a1b8827d2119f 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-globalaccelerator/test/integ.globalaccelerator-unique-name.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-globalaccelerator/test/integ.globalaccelerator-unique-name.ts @@ -3,7 +3,7 @@ import { App, Stack } from 'aws-cdk-lib'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import * as ga from 'aws-cdk-lib/aws-globalaccelerator'; -const app = new App({}); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'global-accelerator-unique-name'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.access-key.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.access-key.ts index 7e2e34c11db0e..752ecd05c3d57 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.access-key.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.access-key.ts @@ -2,7 +2,7 @@ import { App, CfnOutput, Stack } from 'aws-cdk-lib'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import { AccessKey, User } from 'aws-cdk-lib/aws-iam'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'integ-iam-access-key-1'); const user = new User(stack, 'TestUser'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.composite-principal.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.composite-principal.ts index 98a2ae84a19bb..063e3176848ae 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.composite-principal.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.composite-principal.ts @@ -15,7 +15,7 @@ class TestStack extends cdk.Stack { } } -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); new IntegTest(app, 'iam-integ-composite-principal-test', { testCases: [new TestStack(app, 'iam-integ-composite-principal')], diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.condition-with-ref.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.condition-with-ref.ts index cf944f5063eef..679c17a7c25c9 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.condition-with-ref.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.condition-with-ref.ts @@ -23,7 +23,7 @@ class MyStack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); new IntegTest(app, 'iam-test-condition-with-ref', { testCases: [new MyStack(app, 'test-condition-with-ref')], diffAssets: true, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.custom-permissions-boundary-aspect.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.custom-permissions-boundary-aspect.ts index 8bc6f197fa80c..cd21b2e2aee38 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.custom-permissions-boundary-aspect.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.custom-permissions-boundary-aspect.ts @@ -19,6 +19,7 @@ class CustomAspect implements IAspect { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { // Force the intended behavior, from before we found this bug '@aws-cdk/core:aspectPrioritiesMutating': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.customize-role.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.customize-role.ts index 13f36822fdb6f..b4d1ca22295e3 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.customize-role.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.customize-role.ts @@ -2,7 +2,7 @@ import { App, Fn, Stack } from 'aws-cdk-lib'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import { Group, PolicyStatement, Role, ServicePrincipal } from 'aws-cdk-lib/aws-iam'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'integ-customize-role'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.customize-roles-restapi.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.customize-roles-restapi.ts index aba7fb4bd223c..c9c23d98bae4c 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.customize-roles-restapi.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.customize-roles-restapi.ts @@ -3,7 +3,7 @@ import { App, Stack, RemovalPolicy } from 'aws-cdk-lib'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import { RestApi } from 'aws-cdk-lib/aws-apigateway'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'integ-customize-roles-restapi'); Role.customizeRoles(stack, { usePrecreatedRoles: { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.emr-service-principal-cn-partition.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.emr-service-principal-cn-partition.ts index cec19c6a4bfe1..d1556dce83ead 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.emr-service-principal-cn-partition.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.emr-service-principal-cn-partition.ts @@ -76,7 +76,7 @@ class EmrServicePrincipalTestStack extends cdk.Stack { const region = 'cn-north-1'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const testingStack = new EmrServicePrincipalTestStack(app, 'EmrServicePrincipalTestingStack', { env: { region: region, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.group.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.group.ts index 006e6b505a5bb..b777effef69e8 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.group.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.group.ts @@ -4,7 +4,7 @@ import { App, Stack } from 'aws-cdk-lib'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import { Group } from 'aws-cdk-lib/aws-iam'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'integ-iam-role-1'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.imported-role.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.imported-role.ts index f8352a7d110b4..4ef688d907f84 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.imported-role.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.imported-role.ts @@ -6,7 +6,8 @@ import { import * as integ from '@aws-cdk/integ-tests-alpha'; import { ManagedPolicy, PolicyStatement, Role, ServicePrincipal } from 'aws-cdk-lib/aws-iam'; -const app = new App({ context: { [IAM_IMPORTED_ROLE_STACK_SAFE_DEFAULT_POLICY_NAME]: true, [ECS_REMOVE_DEFAULT_DEPLOYMENT_ALARM]: false } }); +const app = new App({ context: { + '@aws-cdk/core:disableGitSource': true, [IAM_IMPORTED_ROLE_STACK_SAFE_DEFAULT_POLICY_NAME]: true, [ECS_REMOVE_DEFAULT_DEPLOYMENT_ALARM]: false } }); const roleStack = new Stack(app, 'integ-iam-imported-role-role-stack'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.instance-profile.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.instance-profile.ts index 5d5f9bff23ca3..85db3c40516c2 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.instance-profile.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.instance-profile.ts @@ -2,7 +2,7 @@ import { App, Stack, CfnOutput } from 'aws-cdk-lib'; import { InstanceProfile, Role, ServicePrincipal } from 'aws-cdk-lib/aws-iam'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'aws-cdk-iam-instance-profile'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.managed-policy.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.managed-policy.ts index afbb553b6650d..f14266c8100ab 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.managed-policy.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.managed-policy.ts @@ -3,7 +3,7 @@ import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import { AccountRootPrincipal, Grant, ManagedPolicy, PolicyStatement, Role, User } from 'aws-cdk-lib/aws-iam'; import * as lambda from 'aws-cdk-lib/aws-lambda'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'aws-cdk-iam-managed-policy'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.oidc-provider-native.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.oidc-provider-native.ts index f5f758a9901ff..5849cc6b50036 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.oidc-provider-native.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.oidc-provider-native.ts @@ -2,7 +2,7 @@ import { App, Stack, CfnOutput } from 'aws-cdk-lib'; import { IntegTest, ExpectedResult } from '@aws-cdk/integ-tests-alpha'; import * as iam from 'aws-cdk-lib/aws-iam'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'oidc-provider-native-integ-stack'); const provider = new iam.OidcProviderNative(stack, 'Provider', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.oidc-provider-reject-unauthorized-connection.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.oidc-provider-reject-unauthorized-connection.ts index acc0f7edc8f46..1133705ed26b1 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.oidc-provider-reject-unauthorized-connection.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.oidc-provider-reject-unauthorized-connection.ts @@ -4,6 +4,7 @@ import * as iam from 'aws-cdk-lib/aws-iam'; import * as cxapi from 'aws-cdk-lib/cx-api'; const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { [cxapi.IAM_OIDC_REJECT_UNAUTHORIZED_CONNECTIONS]: true, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.oidc-provider.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.oidc-provider.ts index 3508dc835e75d..3d245c4c77770 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.oidc-provider.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.oidc-provider.ts @@ -4,6 +4,7 @@ import * as iam from 'aws-cdk-lib/aws-iam'; import * as cxapi from 'aws-cdk-lib/cx-api'; const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { [cxapi.IAM_OIDC_REJECT_UNAUTHORIZED_CONNECTIONS]: false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.permissions-boundary.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.permissions-boundary.ts index 531c29d629fb1..a0f8c550a71a7 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.permissions-boundary.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.permissions-boundary.ts @@ -2,7 +2,7 @@ import { App, Stack, PermissionsBoundary } from 'aws-cdk-lib'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import { Role, ServicePrincipal, ManagedPolicy, PolicyStatement } from 'aws-cdk-lib/aws-iam'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const supportStack = new Stack(app, 'integ-permissions-boundary-support'); new ManagedPolicy(supportStack, 'PB', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.policy.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.policy.ts index 93a6ec819788e..3aa0fa1f73297 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.policy.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.policy.ts @@ -3,7 +3,7 @@ import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import { AccountRootPrincipal, Grant, Policy, PolicyStatement, Role, User } from 'aws-cdk-lib/aws-iam'; import * as lambda from 'aws-cdk-lib/aws-lambda'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'aws-cdk-iam-policy'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.principal-with-conditions-and-tags.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.principal-with-conditions-and-tags.ts index b1cac63253881..928279257d351 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.principal-with-conditions-and-tags.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.principal-with-conditions-and-tags.ts @@ -2,7 +2,7 @@ import { App, Stack } from 'aws-cdk-lib'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import * as iam from 'aws-cdk-lib/aws-iam'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'integ-principal-with-conditions-and-tags'); const basePrincipal = new iam.AnyPrincipal() diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.principal-with-conditions.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.principal-with-conditions.ts index 517cfbd2a2645..2123d4e23e07b 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.principal-with-conditions.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.principal-with-conditions.ts @@ -2,7 +2,7 @@ import { App, Stack } from 'aws-cdk-lib'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import * as iam from 'aws-cdk-lib/aws-iam'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'integ-principal-with-conditions'); const basePrincipal = new iam.AnyPrincipal(); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.role-from-lookup.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.role-from-lookup.ts index 3c2e3663fd15a..be00b454dc8cf 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.role-from-lookup.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.role-from-lookup.ts @@ -4,7 +4,7 @@ import { Policy, PolicyStatement, Role } from 'aws-cdk-lib/aws-iam'; const roleName = 'MyLookupTestRole'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'LookupRoleStack', { env: { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.role.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.role.ts index 28b54ac51d47b..41531998ed2a4 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.role.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.role.ts @@ -2,7 +2,7 @@ import { App, Stack } from 'aws-cdk-lib'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import { AccountRootPrincipal, OrganizationPrincipal, Policy, PolicyStatement, Role, ServicePrincipal } from 'aws-cdk-lib/aws-iam'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'integ-iam-role-1'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.saml-provider.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.saml-provider.ts index 980f45458e486..90e81d05caaad 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.saml-provider.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.saml-provider.ts @@ -20,7 +20,7 @@ class TestStack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); new IntegTest(app, 'saml-provider-test', { testCases: [new TestStack(app, 'cdk-saml-provider')], diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.user-import.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.user-import.ts index db774b4fb726a..30d33ee55d7b5 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.user-import.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.user-import.ts @@ -5,7 +5,7 @@ import { } from 'aws-cdk-lib'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'dummy-stack'); const userArn = 'arn:aws:iam::123456789012:user/OthersExternalIamUser'; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.user.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.user.ts index 505141a26ec40..d4018c62f3dd8 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.user.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.user.ts @@ -2,7 +2,7 @@ import { App, CfnOutput, SecretValue, Stack } from 'aws-cdk-lib'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import { User } from 'aws-cdk-lib/aws-iam'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'aws-cdk-iam-user'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.users-and-groups.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.users-and-groups.ts index 46a9ad5c660a1..07e0827b7a4e2 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.users-and-groups.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.users-and-groups.ts @@ -2,7 +2,7 @@ import { App, Stack } from 'aws-cdk-lib'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import { Group, Policy, PolicyStatement, User } from 'aws-cdk-lib/aws-iam'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'integ-iam-role-1'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-kinesis/test/integ.cross-account-stream-consumption.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-kinesis/test/integ.cross-account-stream-consumption.ts index c3772cae8928a..69218b589cd57 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-kinesis/test/integ.cross-account-stream-consumption.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-kinesis/test/integ.cross-account-stream-consumption.ts @@ -7,7 +7,7 @@ const account = process.env.CDK_INTEG_ACCOUNT || '123456789012'; const crossAccount = process.env.CDK_INTEG_CROSS_ACCOUNT || '234567890123'; const region = process.env.CDK_INTEG_REGION || process.env.CDK_DEFAULT_REGION; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'StreamResourcesStack', { env: { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-kinesis/test/integ.resource-policy.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-kinesis/test/integ.resource-policy.ts index 0d2d651fecdb9..31a767d0e8932 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-kinesis/test/integ.resource-policy.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-kinesis/test/integ.resource-policy.ts @@ -3,7 +3,7 @@ import { Stream, StreamConsumer } from 'aws-cdk-lib/aws-kinesis'; import { AccountPrincipal, PolicyStatement } from 'aws-cdk-lib/aws-iam'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'kinesis-resource-policy'); const stream = new Stream(stack, 'MyStream'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-kinesis/test/integ.stream-consumer.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-kinesis/test/integ.stream-consumer.ts index e716ca06e7320..ea42fb84a7269 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-kinesis/test/integ.stream-consumer.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-kinesis/test/integ.stream-consumer.ts @@ -3,7 +3,7 @@ import { Stream, StreamConsumer } from 'aws-cdk-lib/aws-kinesis'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import { Role, AccountRootPrincipal } from 'aws-cdk-lib/aws-iam'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'kinesis-stream-consumer'); const stream = new Stream(stack, 'Stream'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-kinesis/test/integ.stream-dashboard.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-kinesis/test/integ.stream-dashboard.ts index a9e1b47912ef0..bee1a300fc0c7 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-kinesis/test/integ.stream-dashboard.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-kinesis/test/integ.stream-dashboard.ts @@ -2,7 +2,7 @@ import * as cloudwatch from 'aws-cdk-lib/aws-cloudwatch'; import { App, Stack } from 'aws-cdk-lib'; import { Stream } from 'aws-cdk-lib/aws-kinesis'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'integ-kinesis-stream-dashboard'); const stream = new Stream(stack, 'myStream'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-kinesis/test/integ.stream-shard-level-monitoring.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-kinesis/test/integ.stream-shard-level-monitoring.ts index 58fc9e5bbdcdd..fda35bfe78f24 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-kinesis/test/integ.stream-shard-level-monitoring.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-kinesis/test/integ.stream-shard-level-monitoring.ts @@ -2,7 +2,7 @@ import { App, Stack, RemovalPolicies } from 'aws-cdk-lib'; import * as kinesis from 'aws-cdk-lib/aws-kinesis'; import { ExpectedResult, IntegTest } from '@aws-cdk/integ-tests-alpha'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'kinesis-stream-shard-level-monitoring-stack'); const explicitStream = new kinesis.Stream(stack, 'ExplicitStream', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-kinesis/test/integ.stream.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-kinesis/test/integ.stream.ts index 9fd7f18a90356..c645f80fbed96 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-kinesis/test/integ.stream.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-kinesis/test/integ.stream.ts @@ -2,7 +2,7 @@ import * as iam from 'aws-cdk-lib/aws-iam'; import { App, Stack } from 'aws-cdk-lib'; import { Stream } from 'aws-cdk-lib/aws-kinesis'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'integ-kinesis-stream'); const role = new iam.Role(stack, 'UserRole', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-kinesisfirehose/test/integ.cloudwatch-logs-processors.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-kinesisfirehose/test/integ.cloudwatch-logs-processors.ts index 2809c51a3ff36..56bfc49859730 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-kinesisfirehose/test/integ.cloudwatch-logs-processors.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-kinesisfirehose/test/integ.cloudwatch-logs-processors.ts @@ -6,7 +6,7 @@ import * as s3 from 'aws-cdk-lib/aws-s3'; import * as cdk from 'aws-cdk-lib'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'firehose-delivery-stream-cloudwatch-logs-processors'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-kinesisfirehose/test/integ.delivery-stream.source-stream.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-kinesisfirehose/test/integ.delivery-stream.source-stream.ts index 3fbbdd4cbf2c0..927849812cb50 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-kinesisfirehose/test/integ.delivery-stream.source-stream.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-kinesisfirehose/test/integ.delivery-stream.source-stream.ts @@ -7,7 +7,7 @@ import type * as constructs from 'constructs'; import * as firehose from 'aws-cdk-lib/aws-kinesisfirehose'; import { AwsApiCall, ExpectedResult, IntegTest } from '@aws-cdk/integ-tests-alpha'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-firehose-delivery-stream-source-stream'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-kinesisfirehose/test/integ.delivery-stream.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-kinesisfirehose/test/integ.delivery-stream.ts index 515f8231ad0ff..b8492eac7d749 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-kinesisfirehose/test/integ.delivery-stream.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-kinesisfirehose/test/integ.delivery-stream.ts @@ -7,7 +7,7 @@ import * as cdk from 'aws-cdk-lib'; import type * as constructs from 'constructs'; import * as firehose from 'aws-cdk-lib/aws-kinesisfirehose'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-firehose-delivery-stream'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-kinesisfirehose/test/integ.dynamic-partitioning-with-inline-parsing.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-kinesisfirehose/test/integ.dynamic-partitioning-with-inline-parsing.ts index 75b241bed9343..1d4a4c655f6b5 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-kinesisfirehose/test/integ.dynamic-partitioning-with-inline-parsing.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-kinesisfirehose/test/integ.dynamic-partitioning-with-inline-parsing.ts @@ -3,7 +3,7 @@ import * as cdk from 'aws-cdk-lib'; import * as firehose from 'aws-cdk-lib/aws-kinesisfirehose'; import * as s3 from 'aws-cdk-lib/aws-s3'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-firehose-dynamic-partitioning-inline'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-kinesisfirehose/test/integ.dynamic-partitioning-with-lambda.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-kinesisfirehose/test/integ.dynamic-partitioning-with-lambda.ts index e8c59deb31050..9844eaf7492c8 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-kinesisfirehose/test/integ.dynamic-partitioning-with-lambda.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-kinesisfirehose/test/integ.dynamic-partitioning-with-lambda.ts @@ -5,7 +5,7 @@ import * as lambda from 'aws-cdk-lib/aws-lambda'; import * as s3 from 'aws-cdk-lib/aws-s3'; import { STANDARD_NODEJS_RUNTIME } from '../../config'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-firehose-dynamic-partitioning-lambda'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-kinesisfirehose/test/integ.kinesis-stream-events-target.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-kinesisfirehose/test/integ.kinesis-stream-events-target.ts index 9cea04e071ea0..4e6ccd88d8f4c 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-kinesisfirehose/test/integ.kinesis-stream-events-target.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-kinesisfirehose/test/integ.kinesis-stream-events-target.ts @@ -8,7 +8,7 @@ import type * as constructs from 'constructs'; import * as firehose from 'aws-cdk-lib/aws-kinesisfirehose'; import { AwsApiCall, ExpectedResult, IntegTest } from '@aws-cdk/integ-tests-alpha'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-firehose-delivery-stream-events-target'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-kinesisfirehose/test/integ.record-format-conversion-schema.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-kinesisfirehose/test/integ.record-format-conversion-schema.ts index 3d303b22d882d..7949e85caa624 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-kinesisfirehose/test/integ.record-format-conversion-schema.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-kinesisfirehose/test/integ.record-format-conversion-schema.ts @@ -5,7 +5,7 @@ import * as cdk from 'aws-cdk-lib'; import * as integ from '@aws-cdk/integ-tests-alpha'; import type { Construct } from 'constructs'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const SCHEMA_COLUMNS = [ { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-kinesisfirehose/test/integ.record-format-conversion.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-kinesisfirehose/test/integ.record-format-conversion.ts index d2c291d6ac6c2..935d74f810060 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-kinesisfirehose/test/integ.record-format-conversion.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-kinesisfirehose/test/integ.record-format-conversion.ts @@ -5,7 +5,7 @@ import * as cdk from 'aws-cdk-lib'; import * as integ from '@aws-cdk/integ-tests-alpha'; import type { Construct } from 'constructs'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const SCHEMA_COLUMNS = [ { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-kinesisfirehose/test/integ.s3-bucket.lit.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-kinesisfirehose/test/integ.s3-bucket.lit.ts index 1c1641bcc5a34..0a255dfa23575 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-kinesisfirehose/test/integ.s3-bucket.lit.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-kinesisfirehose/test/integ.s3-bucket.lit.ts @@ -9,6 +9,7 @@ import * as cdk from 'aws-cdk-lib'; import { AwsApiCall, ExpectedResult, IntegTest } from '@aws-cdk/integ-tests-alpha'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-kms/test/integ.alias-from-alias-name.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-kms/test/integ.alias-from-alias-name.ts index 5bd1ba720b9d6..b795cf452e03b 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-kms/test/integ.alias-from-alias-name.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-kms/test/integ.alias-from-alias-name.ts @@ -5,7 +5,8 @@ import { ServicePrincipal, Role } from 'aws-cdk-lib/aws-iam'; import * as cxapi from 'aws-cdk-lib/cx-api'; const app = new App({ - context: { [cxapi.KMS_APPLY_IMPORTED_ALIAS_PERMISSIONS_TO_PRINCIPAL]: true }, + context: { + '@aws-cdk/core:disableGitSource': true, [cxapi.KMS_APPLY_IMPORTED_ALIAS_PERMISSIONS_TO_PRINCIPAL]: true }, }); const stack = new Stack(app, 'aws-cdk-kms'); const alias = Alias.fromAliasName(stack, 'alias', 'alias/MyKey'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-kms/test/integ.key-alias.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-kms/test/integ.key-alias.ts index d8109cee5a76e..33126d9be7c63 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-kms/test/integ.key-alias.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-kms/test/integ.key-alias.ts @@ -11,7 +11,7 @@ class TestStack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new TestStack(app); new IntegTest(app, 'kms-key-alias-tokenized', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-kms/test/integ.key-from-lookup-dummy.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-kms/test/integ.key-from-lookup-dummy.ts index dfa90c95fe79f..1b61fb31f0a49 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-kms/test/integ.key-from-lookup-dummy.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-kms/test/integ.key-from-lookup-dummy.ts @@ -2,7 +2,7 @@ import * as cdk from 'aws-cdk-lib/core'; import * as integ from '@aws-cdk/integ-tests-alpha'; import { Key } from 'aws-cdk-lib/aws-kms'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'key-from-lookup-dummy', { env: { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-kms/test/integ.key-grants.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-kms/test/integ.key-grants.ts index 32d7e1fc8e430..4a01d2d11815e 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-kms/test/integ.key-grants.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-kms/test/integ.key-grants.ts @@ -3,7 +3,7 @@ import { App, RemovalPolicy, Stack } from 'aws-cdk-lib'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import { Key } from 'aws-cdk-lib/aws-kms'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'aws-cdk-kms-grants'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-kms/test/integ.key-hmac.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-kms/test/integ.key-hmac.ts index 69fd18ba9d49e..bb897e68aaaca 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-kms/test/integ.key-hmac.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-kms/test/integ.key-hmac.ts @@ -3,7 +3,7 @@ import { App, RemovalPolicy, Stack } from 'aws-cdk-lib'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import { Key, KeySpec, KeyUsage } from 'aws-cdk-lib/aws-kms'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'aws-cdk-kms-hmac'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-kms/test/integ.key-key-agreement.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-kms/test/integ.key-key-agreement.ts index fb0fab0b967ca..630730f045204 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-kms/test/integ.key-key-agreement.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-kms/test/integ.key-key-agreement.ts @@ -2,7 +2,7 @@ import { App, RemovalPolicy, Stack } from 'aws-cdk-lib'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import { Key, KeySpec, KeyUsage } from 'aws-cdk-lib/aws-kms'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'aws-cdk-kms-key-agreement'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-kms/test/integ.key-multi-region.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-kms/test/integ.key-multi-region.ts index 996c11faa2b87..a9cf227d916db 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-kms/test/integ.key-multi-region.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-kms/test/integ.key-multi-region.ts @@ -11,7 +11,7 @@ class KmsKeyMultiRegionStack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new KmsKeyMultiRegionStack(app); new IntegTest(app, 'kms-key-multi-region', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-kms/test/integ.key-rotation.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-kms/test/integ.key-rotation.ts index c7f4472b19af6..5da968bcaa137 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-kms/test/integ.key-rotation.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-kms/test/integ.key-rotation.ts @@ -12,7 +12,7 @@ class TestStack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new TestStack(app); new IntegTest(app, 'kms-key-rotation', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-kms/test/integ.key-sharing.lit.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-kms/test/integ.key-sharing.lit.ts index 1078be60e0a96..d0aa18dd69694 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-kms/test/integ.key-sharing.lit.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-kms/test/integ.key-sharing.lit.ts @@ -2,7 +2,7 @@ import * as cdk from 'aws-cdk-lib'; import * as kms from 'aws-cdk-lib/aws-kms'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); /// !show diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-kms/test/integ.key.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-kms/test/integ.key.ts index 05ae34fe1edd7..a00c336170e5d 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-kms/test/integ.key.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-kms/test/integ.key.ts @@ -2,7 +2,7 @@ import * as iam from 'aws-cdk-lib/aws-iam'; import { App, RemovalPolicy, Stack } from 'aws-cdk-lib'; import { Key, KeySpec, KeyUsage } from 'aws-cdk-lib/aws-kms'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'aws-cdk-kms-1'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-destinations/test/integ.destinations.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-destinations/test/integ.destinations.ts index d0497312669a4..af24b02d30b2d 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-destinations/test/integ.destinations.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-destinations/test/integ.destinations.ts @@ -86,6 +86,7 @@ class TestStack extends Stack { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-destinations/test/integ.lambda-chain.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-destinations/test/integ.lambda-chain.ts index 0c0e8e2d88559..d4f5d057f3ee2 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-destinations/test/integ.lambda-chain.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-destinations/test/integ.lambda-chain.ts @@ -58,6 +58,7 @@ class TestStack extends Stack { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.dynamodb-with-boolean-filter.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.dynamodb-with-boolean-filter.ts index 1c9abafc25df9..3141a6c9bd03d 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.dynamodb-with-boolean-filter.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.dynamodb-with-boolean-filter.ts @@ -6,6 +6,7 @@ import { TestFunction } from './test-function'; import { DynamoEventSource } from 'aws-cdk-lib/aws-lambda-event-sources'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.dynamodb-with-filter-criteria.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.dynamodb-with-filter-criteria.ts index 00280bc99789f..2daf761fad556 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.dynamodb-with-filter-criteria.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.dynamodb-with-filter-criteria.ts @@ -7,6 +7,7 @@ import { DynamoEventSource } from 'aws-cdk-lib/aws-lambda-event-sources'; import { Key } from 'aws-cdk-lib/aws-kms'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.dynamodb-with-metrics-config.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.dynamodb-with-metrics-config.ts index 60406e3b8cfa1..8c1beb2293cdc 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.dynamodb-with-metrics-config.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.dynamodb-with-metrics-config.ts @@ -6,6 +6,7 @@ import { TestFunction } from './test-function'; import { DynamoEventSource } from 'aws-cdk-lib/aws-lambda-event-sources'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.dynamodb.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.dynamodb.ts index 7200fd5db88c4..17e312400ff89 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.dynamodb.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.dynamodb.ts @@ -30,6 +30,7 @@ class DynamoEventSourceTest extends cdk.Stack { } const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.kafka-dlq.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.kafka-dlq.ts index de33f55d2338d..4a29e73e42d8c 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.kafka-dlq.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.kafka-dlq.ts @@ -75,6 +75,7 @@ zp2mwJn2NYB7AZ7+imp0azDZb+8YG2aUCiyqb6PnnA== } const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.kafka-observability.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.kafka-observability.ts index 3679ce216f71d..c345e49f65edc 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.kafka-observability.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.kafka-observability.ts @@ -73,6 +73,7 @@ class KafkaObservabilityTest extends cdk.Stack { } const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.kafka-poller-group-name.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.kafka-poller-group-name.ts index 68e55528ab9b8..48b18cb98b132 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.kafka-poller-group-name.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.kafka-poller-group-name.ts @@ -64,6 +64,7 @@ zp2mwJn2NYB7AZ7+imp0azDZb+8YG2aUCiyqb6PnnA== } const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.kafka-schema-registry.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.kafka-schema-registry.ts index 3f3821dfdbd9e..3bf324d6643bf 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.kafka-schema-registry.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.kafka-schema-registry.ts @@ -172,6 +172,7 @@ export class SmkConfluentSchemaRegistryStack extends Stack { // Create the app and stacks const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:createNewPoliciesWithAddToRolePolicy': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.kafka-selfmanaged-error-handling.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.kafka-selfmanaged-error-handling.ts index ca3538587cdd1..5855a915c8270 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.kafka-selfmanaged-error-handling.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.kafka-selfmanaged-error-handling.ts @@ -69,6 +69,7 @@ zp2mwJn2NYB7AZ7+imp0azDZb+8YG2aUCiyqb6PnnA== } const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.kafka-selfmanaged.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.kafka-selfmanaged.ts index dda71e6a771bb..8e1d70435777b 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.kafka-selfmanaged.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.kafka-selfmanaged.ts @@ -130,6 +130,7 @@ zp2mwJn2NYB7AZ7+imp0azDZb+8YG2aUCiyqb6PnnA== } const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.kinesis-at-timestamp.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.kinesis-at-timestamp.ts index d022a721cd02d..5ceaa5f4b529b 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.kinesis-at-timestamp.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.kinesis-at-timestamp.ts @@ -6,6 +6,7 @@ import { TestFunction } from './test-function'; import { KinesisEventSource } from 'aws-cdk-lib/aws-lambda-event-sources'; const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.kinesis-stream-consumer.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.kinesis-stream-consumer.ts index 5a37226eef0bf..619793ba5c663 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.kinesis-stream-consumer.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.kinesis-stream-consumer.ts @@ -7,6 +7,7 @@ import { App, Stack } from 'aws-cdk-lib'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.kinesis-with-metrics-config.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.kinesis-with-metrics-config.ts index 425b571850a57..eca44af72eaa9 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.kinesis-with-metrics-config.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.kinesis-with-metrics-config.ts @@ -6,6 +6,7 @@ import { TestFunction } from './test-function'; import { KinesisEventSource } from 'aws-cdk-lib/aws-lambda-event-sources'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.kinesis.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.kinesis.ts index 5271e952efa76..9a89fdccf282b 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.kinesis.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.kinesis.ts @@ -22,6 +22,7 @@ class KinesisEventSourceTest extends cdk.Stack { } const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.kinesiswithdlq.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.kinesiswithdlq.ts index 78602c4a29042..72dfb5a20869e 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.kinesiswithdlq.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.kinesiswithdlq.ts @@ -43,6 +43,7 @@ class KinesisWithDLQTest extends Stack { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.s3-onfailuire-destination.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.s3-onfailuire-destination.ts index 51fbe4891570f..6734e395544ce 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.s3-onfailuire-destination.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.s3-onfailuire-destination.ts @@ -125,6 +125,7 @@ class DynamoWithS3OnFailureDestinationStack extends Stack { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.s3.imported-bucket.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.s3.imported-bucket.ts index 4d812618696d4..34f9bfa51d318 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.s3.imported-bucket.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.s3.imported-bucket.ts @@ -5,6 +5,7 @@ import { TestFunction } from './test-function'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.s3.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.s3.ts index 4075d834a1558..fa2bac7dd4173 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.s3.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.s3.ts @@ -22,6 +22,7 @@ class S3EventSourceTest extends cdk.Stack { } const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, '@aws-cdk/aws-s3:keepNotificationInImportedBucket': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.sns.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.sns.ts index e9661b9aa4b95..cdeb6d22b4793 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.sns.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.sns.ts @@ -15,6 +15,7 @@ class SqsEventSourceTest extends cdk.Stack { } const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.sqs-max-concurrency.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.sqs-max-concurrency.ts index 77508204cc50e..c626cfafa3ba4 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.sqs-max-concurrency.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.sqs-max-concurrency.ts @@ -19,6 +19,7 @@ class SqsEventSourceTest extends cdk.Stack { } const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.sqs-null-filter.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.sqs-null-filter.ts index 309a9862a441d..0a60bac421fea 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.sqs-null-filter.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.sqs-null-filter.ts @@ -6,6 +6,7 @@ import { TestFunction } from './test-function'; import { SqsEventSource } from 'aws-cdk-lib/aws-lambda-event-sources'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.sqs-with-filter-criteria.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.sqs-with-filter-criteria.ts index 2471381badbe3..8effdc24677db 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.sqs-with-filter-criteria.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.sqs-with-filter-criteria.ts @@ -7,6 +7,7 @@ import { SqsEventSource } from 'aws-cdk-lib/aws-lambda-event-sources'; import { Key } from 'aws-cdk-lib/aws-kms'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.sqs-with-metrics-config.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.sqs-with-metrics-config.ts index ccf59deb520d3..cf15c2b065104 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.sqs-with-metrics-config.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.sqs-with-metrics-config.ts @@ -6,6 +6,7 @@ import * as integ from '@aws-cdk/integ-tests-alpha'; import { SqsEventSource } from 'aws-cdk-lib/aws-lambda-event-sources'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.sqs.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.sqs.ts index 94d22c5d09dab..a56abfd7a33c5 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.sqs.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.sqs.ts @@ -20,6 +20,7 @@ class SqsEventSourceTest extends cdk.Stack { } const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.bundling-user.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.bundling-user.ts index b002c5ae29af4..a482d728206e2 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.bundling-user.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.bundling-user.ts @@ -5,6 +5,7 @@ import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import { STANDARD_NODEJS_RUNTIME } from '../../config'; const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.compilations.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.compilations.ts index fe2bb49966260..76a4f2c405fcd 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.compilations.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.compilations.ts @@ -35,6 +35,7 @@ class TestStack extends Stack { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.dependencies-bun-lock.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.dependencies-bun-lock.ts index d827625ea92c4..e9a35f8f3f08b 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.dependencies-bun-lock.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.dependencies-bun-lock.ts @@ -5,6 +5,7 @@ import { ExpectedResult, IntegTest } from '@aws-cdk/integ-tests-alpha'; import * as lambda from 'aws-cdk-lib/aws-lambda-nodejs'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.dependencies-bun.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.dependencies-bun.ts index 9b59e18180051..a40d76fd8400c 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.dependencies-bun.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.dependencies-bun.ts @@ -5,6 +5,7 @@ import { ExpectedResult, IntegTest } from '@aws-cdk/integ-tests-alpha'; import * as lambda from 'aws-cdk-lib/aws-lambda-nodejs'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.dependencies-pnpm.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.dependencies-pnpm.ts index 786d2c04e70bb..88c01728a6226 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.dependencies-pnpm.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.dependencies-pnpm.ts @@ -5,6 +5,7 @@ import { ExpectedResult, IntegTest } from '@aws-cdk/integ-tests-alpha'; import * as lambda from 'aws-cdk-lib/aws-lambda-nodejs'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.dependencies.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.dependencies.ts index 5a405d4d7b9b3..804d85b63df2d 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.dependencies.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.dependencies.ts @@ -65,6 +65,7 @@ class SdkV3BundledStack extends Stack { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.esbuildArgs.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.esbuildArgs.ts index cb39edf5b412e..ac1ad6952772f 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.esbuildArgs.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.esbuildArgs.ts @@ -27,6 +27,7 @@ class TestStack extends Stack { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.esm.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.esm.ts index 7341745aee8f1..549dd1519825c 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.esm.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.esm.ts @@ -19,6 +19,7 @@ class TestStack extends Stack { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.function-exclude-smithy-models.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.function-exclude-smithy-models.ts index 3b89c5be1fc64..e1f31905c1049 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.function-exclude-smithy-models.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.function-exclude-smithy-models.ts @@ -22,6 +22,7 @@ class TestStack extends Stack { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, [LAMBDA_NODEJS_SDK_V3_EXCLUDE_SMITHY_PACKAGES]: true, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.function.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.function.ts index 92e53d1dbdf1a..1eb6bf2956942 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.function.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.function.ts @@ -108,6 +108,7 @@ class TestStack extends Stack { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.ts index a7cd923a03a66..1aa08895b319e 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.ts @@ -26,6 +26,7 @@ class TestStack extends Stack { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.modules.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.modules.ts index 8b4e2654d3a44..1b68759897677 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.modules.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.modules.ts @@ -39,6 +39,7 @@ class JavaScriptCommonJsStack extends Stack { const app = new App({ context: { + '@aws-cdk/core:disableGitSource': true, [LAMBDA_NODEJS_USE_LATEST_RUNTIME]: true, '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.nodejs.build.images.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.nodejs.build.images.ts index 84055ef4870e6..1be35258b0009 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.nodejs.build.images.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.nodejs.build.images.ts @@ -34,6 +34,7 @@ class TestStack extends Stack { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.specifycode.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.specifycode.ts index 65dec6594bb1a..a959b76543860 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.specifycode.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.specifycode.ts @@ -32,6 +32,7 @@ class TestStack extends Stack { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.assets.file.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.assets.file.ts index 257747fcd6f46..142e6015baf92 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.assets.file.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.assets.file.ts @@ -17,6 +17,7 @@ class TestStack extends cdk.Stack { } const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.assets.lit.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.assets.lit.ts index 6ee740ee1774a..07e15ead46aa7 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.assets.lit.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.assets.lit.ts @@ -17,6 +17,7 @@ class TestStack extends cdk.Stack { } const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.autoscaling.lit.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.autoscaling.lit.ts index c9737d901fafb..4d7f6a3bb5df0 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.autoscaling.lit.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.autoscaling.lit.ts @@ -56,6 +56,7 @@ class TestStack extends cdk.Stack { } const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.binary-payload.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.binary-payload.ts index 568637b9a7fc6..56c66aea2006b 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.binary-payload.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.binary-payload.ts @@ -3,6 +3,7 @@ import { ExpectedResult, IntegTest } from '@aws-cdk/integ-tests-alpha'; import { Code, Function, Runtime } from 'aws-cdk-lib/aws-lambda'; const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.bundling.docker-opts.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.bundling.docker-opts.ts index 787bd2d7cecee..1264b3eaf554b 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.bundling.docker-opts.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.bundling.docker-opts.ts @@ -41,6 +41,7 @@ class TestStack extends Stack { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.bundling.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.bundling.ts index 6e618a3dec17b..47840bfc6668e 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.bundling.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.bundling.ts @@ -40,6 +40,7 @@ class TestStack extends Stack { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.capacity-provider-all-fields.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.capacity-provider-all-fields.ts index 3b319912dc133..2292eb434639d 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.capacity-provider-all-fields.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.capacity-provider-all-fields.ts @@ -4,7 +4,7 @@ import * as lambda from 'aws-cdk-lib/aws-lambda'; import * as cdk from 'aws-cdk-lib/core'; import * as integ from '@aws-cdk/integ-tests-alpha'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'CapacityProviderAllFieldsStack'); const vpc = new ec2.Vpc(stack, 'Vpc', { maxAzs: 2 }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.capacity-provider-defaults.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.capacity-provider-defaults.ts index 68b07cadfae2a..bd31f64b5a471 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.capacity-provider-defaults.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.capacity-provider-defaults.ts @@ -3,7 +3,7 @@ import * as lambda from 'aws-cdk-lib/aws-lambda'; import * as cdk from 'aws-cdk-lib/core'; import * as integ from '@aws-cdk/integ-tests-alpha'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'CapacityProviderDefaultsStack'); const vpc = new ec2.Vpc(stack, 'Vpc', { maxAzs: 2 }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.current-version.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.current-version.ts index 58cea2f16f36f..85579a7263fcd 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.current-version.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.current-version.ts @@ -22,6 +22,7 @@ class TestStack extends Stack { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.durable-config.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.durable-config.ts index 09f5714c11a5d..b3dbcadd02499 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.durable-config.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.durable-config.ts @@ -2,7 +2,7 @@ import * as lambda from 'aws-cdk-lib/aws-lambda'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import { App, Stack, Duration } from 'aws-cdk-lib'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'aws-cdk-lambda-durable-config'); new lambda.Function(stack, 'DurableFunction', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.function-capacity-provider-all-fields.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.function-capacity-provider-all-fields.ts index b5e7f1deb9a52..c0ae435527066 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.function-capacity-provider-all-fields.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.function-capacity-provider-all-fields.ts @@ -4,6 +4,7 @@ import * as cdk from 'aws-cdk-lib/core'; import * as integ from '@aws-cdk/integ-tests-alpha'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.function-capacity-provider-minimal.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.function-capacity-provider-minimal.ts index b0fab446b6552..54a6e915baf32 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.function-capacity-provider-minimal.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.function-capacity-provider-minimal.ts @@ -4,6 +4,7 @@ import * as cdk from 'aws-cdk-lib/core'; import * as integ from '@aws-cdk/integ-tests-alpha'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.function-url.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.function-url.ts index 3ce793553dada..5c18c9bd4f159 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.function-url.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.function-url.ts @@ -73,6 +73,7 @@ class TestStack extends Stack { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda-adot.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda-adot.ts index 75336825633e8..09ab2033c595a 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda-adot.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda-adot.ts @@ -19,6 +19,7 @@ import { import { STANDARD_NODEJS_RUNTIME } from '../../config'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, '@aws-cdk/aws-lambda:createNewPoliciesWithAddToRolePolicy': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda-allow-all-ipv6-outbound.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda-allow-all-ipv6-outbound.ts index 6d3399ce417b8..51a156c5af2d5 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda-allow-all-ipv6-outbound.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda-allow-all-ipv6-outbound.ts @@ -4,6 +4,7 @@ import * as lambda from 'aws-cdk-lib/aws-lambda'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda-circular-test.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda-circular-test.ts index ada101fe405a2..88f477f104556 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda-circular-test.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda-circular-test.ts @@ -6,6 +6,7 @@ import { UserPool } from 'aws-cdk-lib/aws-cognito'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, '@aws-cdk/aws-lambda:createNewPoliciesWithAddToRolePolicy': true, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda-customize-roles.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda-customize-roles.ts index 818333cbf90cd..3cd830adcd045 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda-customize-roles.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda-customize-roles.ts @@ -6,6 +6,7 @@ import * as lambda from 'aws-cdk-lib/aws-lambda'; import { STANDARD_NODEJS_RUNTIME } from '../../config'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda-insights-mapping.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda-insights-mapping.ts index 92f0d045afdf3..d8af8961cdc9e 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda-insights-mapping.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda-insights-mapping.ts @@ -3,6 +3,7 @@ import * as lambda from 'aws-cdk-lib/aws-lambda'; import { STANDARD_NODEJS_RUNTIME } from '../../config'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda-policy-with-token-resolution.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda-policy-with-token-resolution.ts index e177cc4659e28..84d0cc82418c9 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda-policy-with-token-resolution.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda-policy-with-token-resolution.ts @@ -4,6 +4,7 @@ import * as iam from 'aws-cdk-lib/aws-iam'; import * as integ from '@aws-cdk/integ-tests-alpha'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda-profiling.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda-profiling.ts index 1127d0560ed45..373447fe8a2d6 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda-profiling.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda-profiling.ts @@ -6,6 +6,7 @@ import { App, Stack } from 'aws-cdk-lib'; import { Runtime, InlineCode, Function } from 'aws-cdk-lib/aws-lambda'; const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda-recursive-loop.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda-recursive-loop.ts index 25d91135edf5b..b37ff0fc33db2 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda-recursive-loop.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda-recursive-loop.ts @@ -4,6 +4,7 @@ import { InlineCode, Runtime } from 'aws-cdk-lib/aws-lambda'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda-snapstart.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda-snapstart.ts index bd682c6ed4e84..b6e06d5a43f91 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda-snapstart.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda-snapstart.ts @@ -4,6 +4,7 @@ import * as path from 'path'; import { Code, Function, Runtime, SnapStartConf } from 'aws-cdk-lib/aws-lambda'; const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda-sourceKMSKeyArn.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda-sourceKMSKeyArn.ts index bfec1ade2453d..97c2d5559a095 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda-sourceKMSKeyArn.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda-sourceKMSKeyArn.ts @@ -11,6 +11,7 @@ import * as s3deploy from 'aws-cdk-lib/aws-s3-deployment'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda-version-arn.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda-version-arn.ts index 82970b5a3af93..75348b6dbbe94 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda-version-arn.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda-version-arn.ts @@ -3,6 +3,7 @@ import * as integ from '@aws-cdk/integ-tests-alpha'; import * as lambda from 'aws-cdk-lib/aws-lambda'; const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda.docker-arm64.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda.docker-arm64.ts index 87a5951d2353b..d2ca868484115 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda.docker-arm64.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda.docker-arm64.ts @@ -4,6 +4,7 @@ import * as integ from '@aws-cdk/integ-tests-alpha'; import { Architecture, DockerImageCode, DockerImageFunction } from 'aws-cdk-lib/aws-lambda'; const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda.docker.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda.docker.ts index c4498d1a9c3f4..56c1c4fd5da64 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda.docker.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda.docker.ts @@ -16,6 +16,7 @@ class TestStack extends Stack { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda.filesystem.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda.filesystem.ts index 751aea2a941fe..b206a528032ad 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda.filesystem.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda.filesystem.ts @@ -149,6 +149,7 @@ class LambdaStack extends cdk.Stack { } const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda.loggroup-tag-inherit.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda.loggroup-tag-inherit.ts index 58cbf54a29a06..1e5de26a5a15d 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda.loggroup-tag-inherit.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda.loggroup-tag-inherit.ts @@ -4,6 +4,7 @@ import { Tags } from 'aws-cdk-lib'; import { IntegTest, ExpectedResult } from '@aws-cdk/integ-tests-alpha'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:createNewPoliciesWithAddToRolePolicy': false, '@aws-cdk/aws-lambda:useCdkManagedLogGroup': true, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda.prov.concurrent.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda.prov.concurrent.ts index bd5e2406962f4..ec9c49758a2c8 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda.prov.concurrent.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda.prov.concurrent.ts @@ -5,6 +5,7 @@ import * as lambda from 'aws-cdk-lib/aws-lambda'; import { STANDARD_NODEJS_RUNTIME } from '../../config'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, '@aws-cdk/aws-lambda:createNewPoliciesWithAddToRolePolicy': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda.ts index 8bb80d5610d75..0e570bb73d57e 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda.ts @@ -6,6 +6,7 @@ import * as path from 'path'; import { STANDARD_NODEJS_RUNTIME } from '../../config'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, '@aws-cdk/aws-lambda:createNewPoliciesWithAddToRolePolicy': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda_with_dualStack_vpc.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda_with_dualStack_vpc.ts index 6ad93fb5f51e4..d7a5dd2336a93 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda_with_dualStack_vpc.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda_with_dualStack_vpc.ts @@ -4,6 +4,7 @@ import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import * as lambda from 'aws-cdk-lib/aws-lambda'; const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.layer-version.lit.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.layer-version.lit.ts index 7a12df10656f1..7b1eaf5e7644c 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.layer-version.lit.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.layer-version.lit.ts @@ -4,6 +4,7 @@ import * as lambda from 'aws-cdk-lib/aws-lambda'; import { STANDARD_NODEJS_RUNTIME } from '../../config'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.log-retention.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.log-retention.ts index fd392de409bb9..f23f0cac586ba 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.log-retention.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.log-retention.ts @@ -5,6 +5,7 @@ import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import { STANDARD_NODEJS_RUNTIME } from '../../config'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.logging-config.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.logging-config.ts index f5760fcc700a4..93de793f87250 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.logging-config.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.logging-config.ts @@ -4,6 +4,7 @@ import * as integ from '@aws-cdk/integ-tests-alpha'; import { Function, InlineCode, Runtime, LogFormat, LoggingFormat, SystemLogLevel, ApplicationLogLevel } from 'aws-cdk-lib/aws-lambda'; const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.multi-tenancy.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.multi-tenancy.ts index e582e2d6f6bbe..8ac4c80a4dd30 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.multi-tenancy.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.multi-tenancy.ts @@ -4,6 +4,7 @@ import { Function, InlineCode, TenancyConfig } from 'aws-cdk-lib/aws-lambda'; import { STANDARD_NODEJS_RUNTIME } from '../../config'; const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.params-and-secrets.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.params-and-secrets.ts index 109fdf6810095..4e456b29d58bb 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.params-and-secrets.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.params-and-secrets.ts @@ -17,6 +17,7 @@ import { } from 'aws-cdk-lib/aws-lambda'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.permissions.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.permissions.ts index 443b79f316909..1c8b0f1168907 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.permissions.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.permissions.ts @@ -4,6 +4,7 @@ import * as lambda from 'aws-cdk-lib/aws-lambda'; import { STANDARD_NODEJS_RUNTIME } from '../../config'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.ruby.file.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.ruby.file.ts index 4a39082d136e2..9b8cb7edb3ff0 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.ruby.file.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.ruby.file.ts @@ -50,6 +50,7 @@ class Ruby34Stack extends cdk.Stack { } const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.runtime-management.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.runtime-management.ts index 0c474e3841bc3..a14d973ed4024 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.runtime-management.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.runtime-management.ts @@ -3,6 +3,7 @@ import * as integ from '@aws-cdk/integ-tests-alpha'; import { Function, InlineCode, Runtime, RuntimeManagementMode } from 'aws-cdk-lib/aws-lambda'; const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.runtime.fromasset.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.runtime.fromasset.ts index d9e0a85b6c019..3f8a4429640b2 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.runtime.fromasset.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.runtime.fromasset.ts @@ -4,6 +4,7 @@ import * as path from 'path'; import * as integ from '@aws-cdk/integ-tests-alpha'; const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.runtime.inlinecode.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.runtime.inlinecode.ts index 184070d1abfeb..720be6c637327 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.runtime.inlinecode.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.runtime.inlinecode.ts @@ -13,6 +13,7 @@ import * as integ from '@aws-cdk/integ-tests-alpha'; // If successful, the output will contain "success" const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.runtimes.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.runtimes.ts index 79a71fb0909a5..b5764bb3435d0 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.runtimes.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.runtimes.ts @@ -4,6 +4,7 @@ import { Code, Function, Runtime } from 'aws-cdk-lib/aws-lambda'; import * as path from 'path'; const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.version-scaling-config-all-fields.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.version-scaling-config-all-fields.ts index 20ccfc5779e5c..e4b1a1e66d2f4 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.version-scaling-config-all-fields.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.version-scaling-config-all-fields.ts @@ -4,6 +4,7 @@ import * as cdk from 'aws-cdk-lib/core'; import * as integ from '@aws-cdk/integ-tests-alpha'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.vpc-lambda.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.vpc-lambda.ts index 8e275e856c938..6246da5fce416 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.vpc-lambda.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.vpc-lambda.ts @@ -3,6 +3,7 @@ import * as cdk from 'aws-cdk-lib'; import * as lambda from 'aws-cdk-lib/aws-lambda'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-logs-destinations/test/integ.firehose.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-logs-destinations/test/integ.firehose.ts index 92aec414e78f7..99a6aff436caf 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-logs-destinations/test/integ.firehose.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-logs-destinations/test/integ.firehose.ts @@ -29,7 +29,7 @@ class FirehoseEnv extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new FirehoseEnv(app, 'firehose-logsubscription-integ'); // If the proper dependency is not set, then the deployment fails with: diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-logs-destinations/test/integ.kinesis.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-logs-destinations/test/integ.kinesis.ts index 728d35342715f..b206121f99654 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-logs-destinations/test/integ.kinesis.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-logs-destinations/test/integ.kinesis.ts @@ -21,7 +21,7 @@ class KinesisEnv extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new KinesisEnv(app, 'kinesis-logsubscription-integ'); // If the proper dependency is not set, then the deployment fails with: diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-logs-destinations/test/integ.lambda.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-logs-destinations/test/integ.lambda.ts index 4e7d984c7e3f2..c8b4e75c8c772 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-logs-destinations/test/integ.lambda.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-logs-destinations/test/integ.lambda.ts @@ -51,6 +51,7 @@ class LambdaStack extends Stack { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.expose-metric.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.expose-metric.ts index 57d725388df44..6c29542226678 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.expose-metric.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.expose-metric.ts @@ -38,7 +38,7 @@ class ExposeMetricIntegStack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new ExposeMetricIntegStack(app, 'aws-cdk-expose-metric-integ'); new IntegTest(app, 'LambdaTest', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.log-group-metrics.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.log-group-metrics.ts index 65a0a3e949336..e4bde68cb5e72 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.log-group-metrics.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.log-group-metrics.ts @@ -2,7 +2,7 @@ import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import { App, RemovalPolicy, Stack } from 'aws-cdk-lib'; import { LogGroup } from 'aws-cdk-lib/aws-logs'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'aws-cdk-log-group-metrics'); const logGroup = new LogGroup(stack, 'MyLogGroup', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.log-group.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.log-group.ts index fef215784dc92..c2e3a332188b8 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.log-group.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.log-group.ts @@ -31,6 +31,6 @@ class LogGroupIntegStack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new LogGroupIntegStack(app, 'aws-cdk-log-group-integ'); new IntegTest(app, 'LogGroupInteg', { testCases: [stack] }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.log-resource-policy-any-principal.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.log-resource-policy-any-principal.ts index 6ca360e2d7450..c79ccf67a92fd 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.log-resource-policy-any-principal.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.log-resource-policy-any-principal.ts @@ -17,7 +17,7 @@ class LogGroupIntegStack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new LogGroupIntegStack(app, 'aws-cdk-log-group-resource-policy-any-integ'); new IntegTest(app, 'LogGroupResourcePolicyAnyPrincialInteg', { testCases: [stack] }); app.synth(); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.log-retention-retries.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.log-retention-retries.ts index 3721dac46558b..52886f7cade7b 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.log-retention-retries.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.log-retention-retries.ts @@ -18,7 +18,7 @@ class LogRetentionRetriesStack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const numberOfStacks = 3; const stacks = [...Array(numberOfStacks).keys()].map((i) => new LogRetentionRetriesStack(app, 'aws-cdk-log-retention-integ-retries' + i)); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.log-retention.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.log-retention.ts index 8c7e6a95b6a7c..c8e78989cf393 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.log-retention.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.log-retention.ts @@ -21,7 +21,7 @@ class LogRetentionIntegStack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new LogRetentionIntegStack(app, 'aws-cdk-log-retention-integ'); new IntegTest(app, 'LogRetentionInteg', { testCases: [stack], diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.loggroup-deletionprotection.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.loggroup-deletionprotection.ts index 9b3a945460b11..3d161d39356a3 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.loggroup-deletionprotection.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.loggroup-deletionprotection.ts @@ -2,7 +2,7 @@ import { App, Stack } from 'aws-cdk-lib'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import { LogGroup } from 'aws-cdk-lib/aws-logs'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'aws-cdk-loggroup-grantreads-integ'); new LogGroup(stack, 'LogGroup', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.loggroup-grantread.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.loggroup-grantread.ts index aebdda81dd5f4..464d440670e79 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.loggroup-grantread.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.loggroup-grantread.ts @@ -3,7 +3,7 @@ import { App, Stack } from 'aws-cdk-lib'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import { LogGroup } from 'aws-cdk-lib/aws-logs'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'aws-cdk-loggroup-grantreads-integ'); const logGroup = new LogGroup(stack, 'LogGroup'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.loggroup-transformer.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.loggroup-transformer.ts index 4b60dd5aa2891..489fa7be81629 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.loggroup-transformer.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.loggroup-transformer.ts @@ -31,7 +31,7 @@ class TransformerIntegStack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const testCase = new TransformerIntegStack(app, 'aws-cdk-transformer-integ'); new IntegTest(app, 'transformer-create', { testCases: [testCase], diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.loggroupclass.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.loggroupclass.ts index c76cdf5ead1f6..fda93b40832fb 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.loggroupclass.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.loggroupclass.ts @@ -3,7 +3,7 @@ import { App, Stack } from 'aws-cdk-lib'; import { ExpectedResult, IntegTest } from '@aws-cdk/integ-tests-alpha'; import { LogGroup, LogGroupClass } from 'aws-cdk-lib/aws-logs'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'log-group-class'); const integTest = new IntegTest(app, 'LogGroupClassIntegTest', { testCases: [stack] }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.metricfilter-apply-on-transformed-logs.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.metricfilter-apply-on-transformed-logs.ts index 3bfba2b9e1d5f..489c61d6fad38 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.metricfilter-apply-on-transformed-logs.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.metricfilter-apply-on-transformed-logs.ts @@ -21,7 +21,7 @@ class TestStack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const testCase = new TestStack(app, 'aws-cdk-metricfilter-apply-on-transformed-logs-integ'); new IntegTest(app, 'metricfilter-apply-on-transformed-logs', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.metricfilter-dimensions.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.metricfilter-dimensions.ts index 3f9b04b299ff7..fe1d705a6ed48 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.metricfilter-dimensions.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.metricfilter-dimensions.ts @@ -24,7 +24,7 @@ class TestStack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const testCase = new TestStack(app, 'aws-cdk-metricfilter-dimensions-integ'); new IntegTest(app, 'metricfilter-dimensions', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.metricfilter-unit.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.metricfilter-unit.ts index 81eaed322438b..b43471ffc50a5 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.metricfilter-unit.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.metricfilter-unit.ts @@ -26,7 +26,7 @@ class TestStack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const testCase = new TestStack(app, 'aws-cdk-metricfilter-unit-integ'); new IntegTest(app, 'metricfilter-unit', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.metricfilter.lit.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.metricfilter.lit.ts index 45e5c76597bcd..9b7e480c4eaee 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.metricfilter.lit.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.metricfilter.lit.ts @@ -26,6 +26,6 @@ class MetricFilterIntegStack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); new MetricFilterIntegStack(app, 'aws-cdk-metricfilter-integ'); app.synth(); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.save-logs-insights-query-definition.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.save-logs-insights-query-definition.ts index 345d0be682dee..d67e64fd4c855 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.save-logs-insights-query-definition.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.save-logs-insights-query-definition.ts @@ -53,7 +53,7 @@ class LogsInsightsQueryDefinitionIntegStack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new LogsInsightsQueryDefinitionIntegStack(app, 'aws-cdk-logs-insights-querydefinition-integ'); new IntegTest(app, 'LogsInsightsQueryDefinitionIntegTest', { testCases: [stack], diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.subscriptionfilter-distribution.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.subscriptionfilter-distribution.ts index f31d2750107fc..5f3fe911a1924 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.subscriptionfilter-distribution.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.subscriptionfilter-distribution.ts @@ -21,7 +21,7 @@ class SubscriptionFilterDistributionIntegStack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const testCase = new SubscriptionFilterDistributionIntegStack(app, 'aws-cdk-subscriptionfilter-distribution-integ'); new IntegTest(app, 'integ-test', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.subscriptionfilter.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.subscriptionfilter.ts index 6bad89b80a2e8..9994c2961fdc7 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.subscriptionfilter.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.subscriptionfilter.ts @@ -26,6 +26,7 @@ class SubscriptionFilterIntegStack extends Stack { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.transformer.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.transformer.ts index 17540b7bf3300..98150346845d0 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.transformer.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.transformer.ts @@ -21,7 +21,7 @@ class TransformerIntegStack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const testCase = new TransformerIntegStack(app, 'aws-cdk-transformer-integ'); new IntegTest(app, 'transformer-create', { testCases: [testCase], diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.advancedsecurity-with-saml.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.advancedsecurity-with-saml.ts index 0c1f0542e634a..38501fc6e1eb4 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.advancedsecurity-with-saml.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.advancedsecurity-with-saml.ts @@ -4,7 +4,7 @@ import * as cdk from 'aws-cdk-lib'; import * as opensearch from 'aws-cdk-lib/aws-opensearchservice'; import * as integ from '@aws-cdk/integ-tests-alpha'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'cdk-opensearch-advancedsecurity-with-saml'); const user = new iam.User(stack, 'User'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.advancedsecurity.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.advancedsecurity.ts index 415e27e3b83ca..2158ede348f3d 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.advancedsecurity.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.advancedsecurity.ts @@ -28,6 +28,6 @@ class TestStack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); new TestStack(app, 'cdk-integ-opensearch-advancedsecurity'); app.synth(); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.cognitodashboardsauth.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.cognitodashboardsauth.ts index 9d18efbfd6d36..39709b1ab87de 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.cognitodashboardsauth.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.cognitodashboardsauth.ts @@ -47,7 +47,7 @@ class TestStack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new TestStack(app, 'cdk-integ-opensearch-cognitodashboardsauth'); new IntegTest(app, 'CognitoAuthForOpenSearchDashboards', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.coldstorage.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.coldstorage.ts index 5c7b461b614fa..209654fc419e0 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.coldstorage.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.coldstorage.ts @@ -21,7 +21,7 @@ class TestStack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new TestStack(app, 'cdk-integ-opensearch-coldstorage'); new IntegTest(app, 'OpenSearchColdStorageInteg', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.custom-kms-key.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.custom-kms-key.ts index 5298a11a4a685..3622f76692fdd 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.custom-kms-key.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.custom-kms-key.ts @@ -40,6 +40,7 @@ class TestStack extends Stack { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.disable-logging.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.disable-logging.ts index 60170b89797c8..3938ec73257ea 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.disable-logging.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.disable-logging.ts @@ -25,6 +25,6 @@ class TestStack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); new TestStack(app, 'cdk-integ-opensearch-with-logging-disabled'); app.synth(); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.ebs.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.ebs.ts index 5f9ab04125d2e..52c5ea2163f35 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.ebs.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.ebs.ts @@ -29,7 +29,7 @@ class TestStack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new TestStack(app, 'cdk-integ-opensearch-instance-store'); // These instance types (i4g, i4i, r7gd, r8gd) are not available in all regions. diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.gp3.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.gp3.ts index 0e05af1d0c92c..112c06c075ad8 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.gp3.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.gp3.ts @@ -41,7 +41,7 @@ class TestStack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new TestStack(app, 'cdk-integ-opensearch-gp3'); new IntegTest(app, 'Integ', { testCases: [stack] }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.https.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.https.ts index a0e3b858da818..957fcefcd9178 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.https.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.https.ts @@ -34,7 +34,7 @@ class TestStack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new TestStack(app, 'cdk-integ-opensearch-https'); const integ = new IntegTest(app, 'integ-openseach-https', { testCases: [stack] }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.ip-address-type.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.ip-address-type.ts index 00c54d551fc4d..7fac0c83d7ec0 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.ip-address-type.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.ip-address-type.ts @@ -28,7 +28,7 @@ class TestStack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new TestStack(app, 'cdk-integ-opensearch-ip-address-type'); new IntegTest(app, 'OpenSearchIpAddressTypeInteg', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.min.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.min.ts index 99840e94af018..ee2167da36c00 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.min.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.min.ts @@ -31,7 +31,7 @@ class TestStack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new TestStack(app, 'cdk-integ-opensearch-min'); new IntegTest(app, 'integ-openseach-min', { testCases: [stack] }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.multiaz-with-standby.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.multiaz-with-standby.ts index f3f2679930f77..8c5305898b71d 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.multiaz-with-standby.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.multiaz-with-standby.ts @@ -3,7 +3,7 @@ import { EbsDeviceVolumeType } from 'aws-cdk-lib/aws-ec2'; import * as opensearch from 'aws-cdk-lib/aws-opensearchservice'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'cdk-integ-opensearch-multiaz-with-standby'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.nodeoptions.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.nodeoptions.ts index c83ede9d82383..e1ce5dca3f048 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.nodeoptions.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.nodeoptions.ts @@ -41,7 +41,7 @@ class TestStack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new TestStack(app, 'cdk-integ-os-nodeoptions'); new IntegTest(app, 'OpenSearchNodeOptionsInteg', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.s3vector-engine.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.s3vector-engine.ts index b2505a7a13f1e..fca0f8127d450 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.s3vector-engine.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.s3vector-engine.ts @@ -33,7 +33,7 @@ class TestStack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new TestStack(app, 'cdk-integ-opensearch-s3vector-engine'); const integ = new IntegTest(app, 'OpenSearchS3VectorEngineInteg', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.ts index 51ebf126cea31..6108f09c601d9 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.ts @@ -57,6 +57,7 @@ class TestStack extends Stack { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.ultrawarm.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.ultrawarm.ts index 6e1b6955befc2..dbb27ef750127 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.ultrawarm.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.ultrawarm.ts @@ -19,6 +19,6 @@ class TestStack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); new TestStack(app, 'cdk-integ-opensearch-ultrawarm'); app.synth(); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.unsignedbasicauth.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.unsignedbasicauth.ts index 6ef6b634f1216..f7907f4e35879 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.unsignedbasicauth.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.unsignedbasicauth.ts @@ -20,6 +20,7 @@ class TestStack extends Stack { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.vpc.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.vpc.ts index cb8e8d6b7deca..3e9201913275d 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.vpc.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.vpc.ts @@ -27,7 +27,7 @@ class TestStack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const testCase = new TestStack(app, 'cdk-integ-opensearch-vpc'); new integ.IntegTest(app, 'cdk-integ-opensearch-vpc-test', { testCases: [testCase], diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.without-logs-resource-policy.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.without-logs-resource-policy.ts index 2b59c0f9f2fcf..38b2e496aa4f6 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.without-logs-resource-policy.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.without-logs-resource-policy.ts @@ -51,7 +51,7 @@ class TestStack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const logGroupStack = new LogsResourcePolicy(app, 'cdkinteg-logs-resource-policy'); const testStack = new TestStack(app, 'cdkinteg-opensearch-without-logs-resource-policy', { logGroup: logGroupStack.logGroup, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-applyimmediately.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-applyimmediately.ts index c2e424a771bbd..4b536e918870f 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-applyimmediately.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-applyimmediately.ts @@ -5,7 +5,7 @@ import { IntegTestBaseStack } from './integ-test-base-stack'; import * as rds from 'aws-cdk-lib/aws-rds'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new IntegTestBaseStack(app, 'cluster-applyimmediately-integ'); const vpc = new ec2.Vpc(stack, 'VPC', { maxAzs: 2, natGateways: 0, restrictDefaultSecurityGroup: false }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-availability-zone.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-availability-zone.ts index 8adfab3d9a114..81e665d98ed3f 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-availability-zone.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-availability-zone.ts @@ -5,7 +5,7 @@ import { IntegTestBaseStack } from './integ-test-base-stack'; import * as rds from 'aws-cdk-lib/aws-rds'; import { IntegTest, ExpectedResult } from '@aws-cdk/integ-tests-alpha'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new IntegTestBaseStack(app, 'aws-cdk-rds-cluster-availability-zone'); const vpc = new ec2.Vpc(stack, 'VPC', { maxAzs: 2, restrictDefaultSecurityGroup: false }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-cloudwatch-logs-exports.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-cloudwatch-logs-exports.ts index 505079c8876b0..d03da3d808b4d 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-cloudwatch-logs-exports.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-cloudwatch-logs-exports.ts @@ -5,7 +5,7 @@ import * as rds from 'aws-cdk-lib/aws-rds'; import { ExpectedResult, IntegTest } from '@aws-cdk/integ-tests-alpha'; import { IntegTestBaseStack } from './integ-test-base-stack'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new IntegTestBaseStack(app, 'CloudWatchLogsExportsStack'); const vpc = new ec2.Vpc(stack, 'VPC', { maxAzs: 2, restrictDefaultSecurityGroup: false }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-data-api.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-data-api.ts index aa52e32149004..cadfe560d43b0 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-data-api.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-data-api.ts @@ -8,6 +8,7 @@ import * as rds from 'aws-cdk-lib/aws-rds'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-database-insights.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-database-insights.ts index 821bb5d6bcd60..3aa51e3c4a952 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-database-insights.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-database-insights.ts @@ -5,7 +5,7 @@ import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import { ClusterInstance, DatabaseCluster, DatabaseClusterEngine, DatabaseInsightsMode, PerformanceInsightRetention } from 'aws-cdk-lib/aws-rds'; import { IntegTestBaseStack } from './integ-test-base-stack'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new IntegTestBaseStack(app, 'aws-cdk-rds-cluster-database-insights'); const vpc = new Vpc(stack, 'VPC', { maxAzs: 2, restrictDefaultSecurityGroup: false }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-dual.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-dual.ts index 928e6a7dc0352..3cfc11aaf10b7 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-dual.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-dual.ts @@ -5,7 +5,7 @@ import { IntegTestBaseStack } from './integ-test-base-stack'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import * as rds from 'aws-cdk-lib/aws-rds'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new IntegTestBaseStack(app, 'aws-cdk-rds-cluster-dual-integ'); const vpc = new ec2.Vpc(stack, 'VPC', { maxAzs: 2, natGateways: 0, restrictDefaultSecurityGroup: false }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-enable-local-write-forwarding.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-enable-local-write-forwarding.ts index 8457ce0dcb783..dcf820aaee0a2 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-enable-local-write-forwarding.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-enable-local-write-forwarding.ts @@ -5,7 +5,7 @@ import * as integ from '@aws-cdk/integ-tests-alpha'; import * as ec2 from 'aws-cdk-lib/aws-ec2'; import * as rds from 'aws-cdk-lib/aws-rds'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new IntegTestBaseStack(app, 'EnableLocalWriteForwardingClusterStack'); const vpc = new ec2.Vpc(stack, 'VPC'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-engine-lifecycle-support.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-engine-lifecycle-support.ts index 8420db87e51b9..86d5da2d79042 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-engine-lifecycle-support.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-engine-lifecycle-support.ts @@ -24,7 +24,7 @@ class TestStack extends IntegTestBaseStack { } } -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new TestStack(app, 'RdsClusterEngineLifecycleSupportStack'); new IntegTest(app, 'RdsClusterEngineLifecycleSupportInteg', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-enhanced-monitoring.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-enhanced-monitoring.ts index 0ec92c9f7454f..34cf45e853844 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-enhanced-monitoring.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-enhanced-monitoring.ts @@ -5,7 +5,7 @@ import { IntegTestBaseStack } from './integ-test-base-stack'; import * as rds from 'aws-cdk-lib/aws-rds'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new IntegTestBaseStack(app, 'aws-cdk-rds-cluster-enhanced-monitoring'); const vpc = new ec2.Vpc(stack, 'VPC', { maxAzs: 2, restrictDefaultSecurityGroup: false }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-instance-ca-certificate.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-instance-ca-certificate.ts index 9dece66af55cd..3d7c4b16192ac 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-instance-ca-certificate.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-instance-ca-certificate.ts @@ -5,7 +5,7 @@ import { IntegTestBaseStack } from './integ-test-base-stack'; import { CaCertificate, ClusterInstance, Credentials, DatabaseCluster, DatabaseClusterEngine } from 'aws-cdk-lib/aws-rds'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new IntegTestBaseStack(app, 'cdk-rds-cluster-instance-ca-certificate-integ'); const vpc = new ec2.Vpc(stack, 'VPC', { maxAzs: 2, restrictDefaultSecurityGroup: false }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-instance-id.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-instance-id.ts index 86480312e4333..93c56aab3b9fc 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-instance-id.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-instance-id.ts @@ -5,7 +5,7 @@ import * as ec2 from 'aws-cdk-lib/aws-ec2'; import * as rds from 'aws-cdk-lib/aws-rds'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new IntegTestBaseStack(app, 'Default'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-io.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-io.ts index 4b7291a184a1c..92eceacfc3f1d 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-io.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-io.ts @@ -6,7 +6,7 @@ import { IntegTestBaseStack } from './integ-test-base-stack'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import { Credentials, DatabaseCluster, DatabaseClusterEngine, DBClusterStorageType, ClusterInstance } from 'aws-cdk-lib/aws-rds'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new IntegTestBaseStack(app, 'aws-cdk-rds-io-integ'); const vpc = new ec2.Vpc(stack, 'VPC', { maxAzs: 2, restrictDefaultSecurityGroup: false }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-kerberos.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-kerberos.ts index f7964a45defe8..2ce075bcf48a4 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-kerberos.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-kerberos.ts @@ -7,7 +7,7 @@ import * as rds from 'aws-cdk-lib/aws-rds'; import * as iam from 'aws-cdk-lib/aws-iam'; import * as ds from 'aws-cdk-lib/aws-directoryservice'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new IntegTestBaseStack(app, 'cluster-kerberos'); const vpc = new ec2.Vpc(stack, 'VPC'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-limitless.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-limitless.ts index e55f32c051e6b..dcc552989241e 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-limitless.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-limitless.ts @@ -27,7 +27,7 @@ class TestStack extends IntegTestBaseStack { } } -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new TestStack(app, 'LimitlessClusterStack'); new IntegTest(app, 'LimitlessClusterInteg', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-lookup.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-lookup.ts index a4a3f6076f886..25b57e8beb2d8 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-lookup.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-lookup.ts @@ -5,7 +5,7 @@ import * as iam from 'aws-cdk-lib/aws-iam'; import * as rds from 'aws-cdk-lib/aws-rds'; import { IntegTestBaseStack } from './integ-test-base-stack'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const clusterIdentifier = 'test-cluster-lookup'; const stackLookup = new IntegTestBaseStack(app, 'aws-cdk-rds-cluster-lookup', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-performance-insights.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-performance-insights.ts index 4f8e7c52976f6..8b1e57a17e09d 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-performance-insights.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-performance-insights.ts @@ -32,7 +32,7 @@ class TestStack extends IntegTestBaseStack { } } -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new TestStack(app, 'aws-cdk-rds-integ-cluster-performance-insights'); new IntegTest(app, 'integ-cluster-performance-insights', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-public-subnets.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-public-subnets.ts index 1c89539e7cd6c..59b5d661131bd 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-public-subnets.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-public-subnets.ts @@ -43,7 +43,7 @@ export class TestStack extends IntegTestBaseStack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new TestStack(app, 'integ-aurora-pub-sn-cluster'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-replication.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-replication.ts index 0a30ac4f32d22..842ec381ecd0a 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-replication.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-replication.ts @@ -7,7 +7,7 @@ import * as cr from 'aws-cdk-lib/custom-resources'; import * as iam from 'aws-cdk-lib/aws-iam'; import { IntegTestBaseStack } from './integ-test-base-stack'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new IntegTestBaseStack(app, 'cluster-replication'); const vpc = new ec2.Vpc(stack, 'VPC', { maxAzs: 2, restrictDefaultSecurityGroup: false }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-rotation.lit.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-rotation.lit.ts index 738a0388152ee..1c959486e0c5c 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-rotation.lit.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-rotation.lit.ts @@ -5,7 +5,7 @@ import { IntegTestBaseStack } from './integ-test-base-stack'; import * as rds from 'aws-cdk-lib/aws-rds'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new IntegTestBaseStack(app, 'aws-cdk-rds-cluster-rotation'); const vpc = new ec2.Vpc(stack, 'VPC', { restrictDefaultSecurityGroup: false }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-s3.mysql-8.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-s3.mysql-8.ts index 8ca8145959b3c..681287bec4615 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-s3.mysql-8.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-s3.mysql-8.ts @@ -6,7 +6,7 @@ import { IntegTestBaseStack } from './integ-test-base-stack'; import * as rds from 'aws-cdk-lib/aws-rds'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new IntegTestBaseStack(app, 'aws-cdk-rds-s3-mysql-8-integ'); const vpc = new ec2.Vpc(stack, 'VPC', { maxAzs: 2, restrictDefaultSecurityGroup: false }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-s3.mysql-engine-version.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-s3.mysql-engine-version.ts index 72b70f897c0b7..271643180ed7a 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-s3.mysql-engine-version.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-s3.mysql-engine-version.ts @@ -6,7 +6,7 @@ import * as rds from 'aws-cdk-lib/aws-rds'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import { INTEG_TEST_LATEST_AURORA_MYSQL } from './db-versions'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new IntegTestBaseStack(app, 'aws-cdk-rds-s3-mysql-engine-version-integ'); const vpc = new ec2.Vpc(stack, 'VPC', { maxAzs: 2, restrictDefaultSecurityGroup: false }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-s3.postgres.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-s3.postgres.ts index 0549fa4948f95..fbeaf4f50aa65 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-s3.postgres.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-s3.postgres.ts @@ -6,7 +6,7 @@ import { IntegTestBaseStack } from './integ-test-base-stack'; import * as rds from 'aws-cdk-lib/aws-rds'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); class PostgresS3TestStack extends IntegTestBaseStack { constructor(scope: cdk.App, id: string, props?: cdk.StackProps) { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-s3.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-s3.ts index 2540910d90131..6366f96956eea 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-s3.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-s3.ts @@ -7,7 +7,7 @@ import { IntegTestBaseStack } from './integ-test-base-stack'; import { ClusterInstance, Credentials, DatabaseCluster, DatabaseClusterEngine } from 'aws-cdk-lib/aws-rds'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new IntegTestBaseStack(app, 'aws-cdk-rds-s3-integ'); const vpc = new ec2.Vpc(stack, 'VPC', { maxAzs: 2, restrictDefaultSecurityGroup: false }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-serverless-v2-acu-0.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-serverless-v2-acu-0.ts index 27ae52e7c946c..cc11bca382e7d 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-serverless-v2-acu-0.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-serverless-v2-acu-0.ts @@ -22,7 +22,7 @@ export class TestStack extends IntegTestBaseStack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); new IntegTest(app, 'integ-test-acu', { testCases: [new TestStack(app, 'integ-aurora-serverlessv2-cluster-acu-0')], }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-serverless-v2-acu.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-serverless-v2-acu.ts index fd1a47f814b46..35dc769934668 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-serverless-v2-acu.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-serverless-v2-acu.ts @@ -22,7 +22,7 @@ export class TestStack extends IntegTestBaseStack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); new IntegTest(app, 'integ-test-acu', { testCases: [new TestStack(app, 'integ-aurora-serverlessv2-cluster-acu')], }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-serverless-v2-autopause.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-serverless-v2-autopause.ts index e87cd8f541498..9f9fa9fc911be 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-serverless-v2-autopause.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-serverless-v2-autopause.ts @@ -23,7 +23,7 @@ export class TestStack extends IntegTestBaseStack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); new IntegTest(app, 'integ-test-autopause', { testCases: [new TestStack(app, 'integ-aurora-serverlessv2-cluster-autopause')], }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-serverless-v2.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-serverless-v2.ts index 6e529c2f23853..09ad4f341de98 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-serverless-v2.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-serverless-v2.ts @@ -67,7 +67,7 @@ export class TestStack extends IntegTestBaseStack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); new IntegTest(app, 'integ-test', { testCases: [new TestStack(app, 'integ-aurora-serverlessv2-cluster')], }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-snapshot.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-snapshot.ts index 48e3bfd067ab3..d51ad8b7550e4 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-snapshot.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-snapshot.ts @@ -6,7 +6,7 @@ import * as rds from 'aws-cdk-lib/aws-rds'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import { ClusterSnapshoter } from './snapshoter'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new IntegTestBaseStack(app, 'aws-cdk-rds-cluster-snapshot'); const vpc = new ec2.Vpc(stack, 'VPC', { maxAzs: 2, restrictDefaultSecurityGroup: false }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-volume-iops-metric.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-volume-iops-metric.ts index b39787441056c..08fa19b6e3b1f 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-volume-iops-metric.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-volume-iops-metric.ts @@ -6,7 +6,7 @@ import * as cloudwatch from 'aws-cdk-lib/aws-cloudwatch'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import { ClusterInstance, DatabaseCluster, DatabaseClusterEngine } from 'aws-cdk-lib/aws-rds'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new IntegTestBaseStack(app, 'aws-cdk-rds-cluster-volume-iops-metric'); const vpc = new ec2.Vpc(stack, 'VPC', { maxAzs: 2, restrictDefaultSecurityGroup: false }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster.ts index 499ed0b47ff7e..4cc22420ce133 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster.ts @@ -88,7 +88,7 @@ class TestStack extends IntegTestBaseStack { } } -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new TestStack(app, 'aws-cdk-rds-integ'); new IntegTest(app, 'test-rds-cluster', { testCases: [stack], diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-applyimmediately.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-applyimmediately.ts index 60e3fce57a259..2112826904733 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-applyimmediately.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-applyimmediately.ts @@ -5,7 +5,7 @@ import { IntegTestBaseStack } from './integ-test-base-stack'; import * as rds from 'aws-cdk-lib/aws-rds'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new IntegTestBaseStack(app, 'instance-applyimmediately-integ'); const vpc = new ec2.Vpc(stack, 'VPC', { maxAzs: 2, natGateways: 0, restrictDefaultSecurityGroup: false }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-ca-certificate.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-ca-certificate.ts index fa9816917e7a6..58364ea6129ea 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-ca-certificate.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-ca-certificate.ts @@ -5,7 +5,7 @@ import { IntegTestBaseStack } from './integ-test-base-stack'; import { CaCertificate, DatabaseInstance, DatabaseInstanceEngine } from 'aws-cdk-lib/aws-rds'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new IntegTestBaseStack(app, 'aws-cdk-rds-instance-ca-certificate'); const vpc = new ec2.Vpc(stack, 'VPC', { maxAzs: 2, restrictDefaultSecurityGroup: false }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-create-grant.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-create-grant.ts index ddd440b14ea5d..030bd15c7afc1 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-create-grant.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-create-grant.ts @@ -6,7 +6,7 @@ import * as iam from 'aws-cdk-lib/aws-iam'; import * as rds from 'aws-cdk-lib/aws-rds'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new IntegTestBaseStack(app, 'aws-cdk-rds-instance-create-grant'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-database-insights.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-database-insights.ts index ccc71ee77f3f4..e82a7021d4569 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-database-insights.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-database-insights.ts @@ -31,7 +31,7 @@ class TestStack extends IntegTestBaseStack { } } -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new TestStack(app, 'aws-cdk-rds-integ-instance-database-insights'); new IntegTest(app, 'integ-instance-database-insights', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-dual.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-dual.ts index df6764c0bee22..7315ecc9c037c 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-dual.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-dual.ts @@ -5,7 +5,7 @@ import { IntegTestBaseStack } from './integ-test-base-stack'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import * as rds from 'aws-cdk-lib/aws-rds'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new IntegTestBaseStack(app, 'aws-cdk-rds-instance-dual-integ'); const vpc = new ec2.Vpc(stack, 'VPC', { maxAzs: 2, natGateways: 0, restrictDefaultSecurityGroup: false }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-engine-lifecycle-support.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-engine-lifecycle-support.ts index 51e8ec1636a82..d415b451b364b 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-engine-lifecycle-support.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-engine-lifecycle-support.ts @@ -7,6 +7,7 @@ import { InstanceSnapshoter } from './snapshoter'; import { IntegTestBaseStack } from './integ-test-base-stack'; const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:createNewPoliciesWithAddToRolePolicy': true, '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-from-generated-password.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-from-generated-password.ts index 71227b1d2ef15..c905dc02ecbbe 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-from-generated-password.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-from-generated-password.ts @@ -4,7 +4,7 @@ import * as cdk from 'aws-cdk-lib'; import { IntegTestBaseStack } from './integ-test-base-stack'; import * as rds from 'aws-cdk-lib/aws-rds'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); class DatabaseInstanceStack extends IntegTestBaseStack { constructor(scope: cdk.App, id: string, props?: cdk.StackProps) { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-gp3.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-gp3.ts index d0e967b1af4f5..db07d139855e9 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-gp3.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-gp3.ts @@ -22,7 +22,7 @@ class TestStack extends IntegTestBaseStack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); new integ.IntegTest(app, 'InstanceGp3Test', { testCases: [new TestStack(app, 'cdk-integ-rds-instance-gp3')], diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-io2.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-io2.ts index 458959ab58c1d..b00ab4695b3fa 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-io2.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-io2.ts @@ -5,7 +5,7 @@ import * as integ from '@aws-cdk/integ-tests-alpha'; import { DatabaseInstance, DatabaseInstanceEngine, StorageType } from 'aws-cdk-lib/aws-rds'; import { IntegTestBaseStack } from './integ-test-base-stack'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new IntegTestBaseStack(app, 'integRdsInstanceIo2'); const vpc = new Vpc(stack, 'Vpc', { natGateways: 0 }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-iops-metric.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-iops-metric.ts index 11b911c823c51..504d327686c0f 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-iops-metric.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-iops-metric.ts @@ -5,7 +5,7 @@ import { IntegTestBaseStack } from './integ-test-base-stack'; import * as rds from 'aws-cdk-lib/aws-rds'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new IntegTestBaseStack(app, 'aws-cdk-rds-instance-iops-metric'); const vpc = new ec2.Vpc(stack, 'VPC', { maxAzs: 2, restrictDefaultSecurityGroup: false }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-kerberos-without-domainRole.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-kerberos-without-domainRole.ts index ba75ba195a7ca..31e7fc7e79d07 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-kerberos-without-domainRole.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-kerberos-without-domainRole.ts @@ -6,7 +6,7 @@ import * as ec2 from 'aws-cdk-lib/aws-ec2'; import * as rds from 'aws-cdk-lib/aws-rds'; import * as ds from 'aws-cdk-lib/aws-directoryservice'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new IntegTestBaseStack(app, 'instance-kerberos-without-domainRole'); const vpc = new ec2.Vpc(stack, 'VPC'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-kerberos.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-kerberos.ts index 2e4cab6c32e1e..a536c1165796f 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-kerberos.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-kerberos.ts @@ -7,7 +7,7 @@ import * as rds from 'aws-cdk-lib/aws-rds'; import * as iam from 'aws-cdk-lib/aws-iam'; import * as ds from 'aws-cdk-lib/aws-directoryservice'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new IntegTestBaseStack(app, 'instance-kerberos'); const vpc = new ec2.Vpc(stack, 'VPC'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-lookup.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-lookup.ts index 3ffeafb5011cd..f6464acc270af 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-lookup.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-lookup.ts @@ -5,7 +5,7 @@ import * as iam from 'aws-cdk-lib/aws-iam'; import * as rds from 'aws-cdk-lib/aws-rds'; import { IntegTestBaseStack } from './integ-test-base-stack'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const instanceIdentifier = 'test-instance-lookup'; const stackLookup = new IntegTestBaseStack(app, 'aws-cdk-rds-instance-lookup', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-s3-postgres.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-s3-postgres.ts index 5a63a1553781e..4bc31429b2f00 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-s3-postgres.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-s3-postgres.ts @@ -6,7 +6,7 @@ import { IntegTestBaseStack } from './integ-test-base-stack'; import * as rds from 'aws-cdk-lib/aws-rds'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new IntegTestBaseStack(app, 'aws-cdk-rds-instance-s3-postgres-integ'); new rds.DatabaseInstance(stack, 'Instance', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-s3.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-s3.ts index 8aec1ca7c1c77..20841bf790e01 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-s3.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-s3.ts @@ -6,7 +6,7 @@ import { IntegTestBaseStack } from './integ-test-base-stack'; import { DatabaseInstance, DatabaseInstanceEngine, LicenseModel } from 'aws-cdk-lib/aws-rds'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new IntegTestBaseStack(app, 'aws-cdk-rds-instance-s3-integ'); const vpc = new ec2.Vpc(stack, 'VPC', { maxAzs: 2, restrictDefaultSecurityGroup: false }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-with-metric.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-with-metric.ts index d2d69ca20e06d..b9e455ded2ccf 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-with-metric.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-with-metric.ts @@ -6,7 +6,7 @@ import * as rds from 'aws-cdk-lib/aws-rds'; import * as logs from 'aws-cdk-lib/aws-logs'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new IntegTestBaseStack(app, 'aws-cdk-rds-instance-with-metric', { terminationProtection: false, }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-with-parameter-group.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-with-parameter-group.ts index 0a45c89a190d5..27b74459cfed5 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-with-parameter-group.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-with-parameter-group.ts @@ -5,7 +5,7 @@ import { IntegTestBaseStack } from './integ-test-base-stack'; import * as rds from 'aws-cdk-lib/aws-rds'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new IntegTestBaseStack(app, 'aws-cdk-rds-instance-with-rds-parameter-group', { terminationProtection: false, }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.option-group.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.option-group.ts index 1fe656b3bff65..d1e805135ff5d 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.option-group.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.option-group.ts @@ -33,7 +33,7 @@ class OptionGroupTestStack extends IntegTestBaseStack { } } -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new OptionGroupTestStack(app, 'aws-rds-option-group'); new IntegTest(app, 'OptionGroupTest', { testCases: [stack], diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.proxy-default-auth-scheme.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.proxy-default-auth-scheme.ts index 52bfff4088f3b..91edad54e4aa9 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.proxy-default-auth-scheme.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.proxy-default-auth-scheme.ts @@ -6,7 +6,7 @@ import { IntegTestBaseStack } from './integ-test-base-stack'; import * as integ from '@aws-cdk/integ-tests-alpha'; import * as rds from 'aws-cdk-lib/aws-rds'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new IntegTestBaseStack(app, 'aws-cdk-rds-proxy'); const vpc = new ec2.Vpc(stack, 'vpc', { maxAzs: 2, restrictDefaultSecurityGroup: false }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.proxy-endpoint.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.proxy-endpoint.ts index 85c4008550112..20880f7651eba 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.proxy-endpoint.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.proxy-endpoint.ts @@ -5,7 +5,7 @@ import { IntegTestBaseStack } from './integ-test-base-stack'; import * as rds from 'aws-cdk-lib/aws-rds'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new IntegTestBaseStack(app, 'aws-cdk-rds-proxy-endpoint'); const vpc = new ec2.Vpc(stack, 'VPC', { maxAzs: 2, restrictDefaultSecurityGroup: false }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.proxy-mariadb.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.proxy-mariadb.ts index 503c04264e826..8990806e3af06 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.proxy-mariadb.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.proxy-mariadb.ts @@ -6,7 +6,7 @@ import * as integ from '@aws-cdk/integ-tests-alpha'; import * as kms from 'aws-cdk-lib/aws-kms'; import * as rds from 'aws-cdk-lib/aws-rds'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new IntegTestBaseStack(app, 'aws-cdk-rds-proxy-mariadb'); const vpc = new ec2.Vpc(stack, 'vpc', { maxAzs: 2, restrictDefaultSecurityGroup: false }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.proxy-sql-server.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.proxy-sql-server.ts index 3da3c2c9989b5..30a28cde7b74b 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.proxy-sql-server.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.proxy-sql-server.ts @@ -7,7 +7,7 @@ import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import * as rds from 'aws-cdk-lib/aws-rds'; import { LicenseModel } from 'aws-cdk-lib/aws-rds'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new IntegTestBaseStack(app, 'aws-cdk-rds-proxy-sql-server', { terminationProtection: false, }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.proxy.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.proxy.ts index 466b22e98c453..08165d554a3f1 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.proxy.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.proxy.ts @@ -6,7 +6,7 @@ import * as kms from 'aws-cdk-lib/aws-kms'; import * as rds from 'aws-cdk-lib/aws-rds'; import { INTEG_TEST_LATEST_POSTGRES, INTEG_TEST_LATEST_AURORA_POSTGRES } from './db-versions'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new IntegTestBaseStack(app, 'aws-cdk-rds-proxy'); const vpc = new ec2.Vpc(stack, 'vpc', { maxAzs: 2, restrictDefaultSecurityGroup: false }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.read-replica-with-allocated-storage.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.read-replica-with-allocated-storage.ts index 68ca0d12b229b..2c8e1d00c0370 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.read-replica-with-allocated-storage.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.read-replica-with-allocated-storage.ts @@ -5,7 +5,7 @@ import { IntegTestBaseStack } from './integ-test-base-stack'; import * as integ from '@aws-cdk/integ-tests-alpha'; import * as rds from 'aws-cdk-lib/aws-rds'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new IntegTestBaseStack(app, 'cdk-rds-read-replica-with-allocated-storage'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.read-replica.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.read-replica.ts index 4630af94bbd85..af3c8730e4942 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.read-replica.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.read-replica.ts @@ -6,7 +6,7 @@ import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import { IntegTestBaseStack } from './integ-test-base-stack'; import { INTEG_TEST_LATEST_MYSQL, INTEG_TEST_LATEST_POSTGRES } from './db-versions'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new IntegTestBaseStack(app, 'cdk-rds-read-replica'); const vpc = new ec2.Vpc(stack, 'Vpc', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.rolling-instance-updates.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.rolling-instance-updates.ts index 78eabcef43cf5..1d17732556b61 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.rolling-instance-updates.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.rolling-instance-updates.ts @@ -33,7 +33,7 @@ class RollingInstanceUpdateTestStack extends IntegTestBaseStack { } // Beginning of the test suite -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); new integTests.IntegTest(app, 'InstanceUpdateBehaviorTests', { testCases: [ new RollingInstanceUpdateTestStack(app, 'BulkUpdate', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.serverless-cluster-secret-rotation-custom-names.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.serverless-cluster-secret-rotation-custom-names.ts index 809e706066d35..3a70da7a1de41 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.serverless-cluster-secret-rotation-custom-names.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.serverless-cluster-secret-rotation-custom-names.ts @@ -7,7 +7,7 @@ import { IntegTestBaseStack } from './integ-test-base-stack'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import { DatabaseSecret, DatabaseCluster, DatabaseClusterEngine, Credentials, ClusterInstance } from 'aws-cdk-lib/aws-rds'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new IntegTestBaseStack(app, 'aws-cdk-rds-integ-secret-rotation'); // Create VPC instead of looking up default VPC diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.standalone-parameter-group.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.standalone-parameter-group.ts index f6c35f9772f8b..9fe3dcb9c154c 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.standalone-parameter-group.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.standalone-parameter-group.ts @@ -3,7 +3,7 @@ import * as rds from 'aws-cdk-lib/aws-rds'; import { INTEG_TEST_LATEST_POSTGRES } from './db-versions'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-rds-standalone-parameter-group', { terminationProtection: false, }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-route53-patterns/test/integ.hosted-redirect-same-region.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-route53-patterns/test/integ.hosted-redirect-same-region.ts index 8f486cda1369e..219f4e95ba8fd 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-route53-patterns/test/integ.hosted-redirect-same-region.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-route53-patterns/test/integ.hosted-redirect-same-region.ts @@ -12,6 +12,7 @@ const domainName = process.env.CDK_INTEG_DOMAIN_NAME ?? process.env.DOMAIN_NAME; if (!domainName) throw new Error('For this test you must provide your own DomainName as an env var "DOMAIN_NAME". See framework-integ/README.md for details.'); const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { [ROUTE53_PATTERNS_USE_DISTRIBUTION]: true, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-route53-patterns/test/integ.hosted-redirect.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-route53-patterns/test/integ.hosted-redirect.ts index 469efdd364209..e4ab28c796257 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-route53-patterns/test/integ.hosted-redirect.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-route53-patterns/test/integ.hosted-redirect.ts @@ -12,6 +12,7 @@ const domainName = process.env.CDK_INTEG_DOMAIN_NAME ?? process.env.DOMAIN_NAME; if (!domainName) throw new Error('For this test you must provide your own DomainName as an env var "DOMAIN_NAME". See framework-integ/README.md for details.'); const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { [ROUTE53_PATTERNS_USE_DISTRIBUTION]: true, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-route53-targets/test/integ.alb-alias-target.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-route53-targets/test/integ.alb-alias-target.ts index c090553cab3f0..d592b95061007 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-route53-targets/test/integ.alb-alias-target.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-route53-targets/test/integ.alb-alias-target.ts @@ -5,7 +5,7 @@ import * as route53 from 'aws-cdk-lib/aws-route53'; import * as cdk from 'aws-cdk-lib'; import * as targets from 'aws-cdk-lib/aws-route53-targets'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-elbv2-integ'); const vpc = new ec2.Vpc(stack, 'VPC', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-route53-targets/test/integ.api-gateway-domain-name.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-route53-targets/test/integ.api-gateway-domain-name.ts index 11bf739138955..5e64bd29fba7a 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-route53-targets/test/integ.api-gateway-domain-name.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-route53-targets/test/integ.api-gateway-domain-name.ts @@ -63,6 +63,7 @@ class TestStack extends Stack { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-route53-targets/test/integ.appsync-target.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-route53-targets/test/integ.appsync-target.ts index 929158605b776..fe3b109daed21 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-route53-targets/test/integ.appsync-target.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-route53-targets/test/integ.appsync-target.ts @@ -50,7 +50,7 @@ if (!domainName) throw new Error('For this test you must provide your own Domain const hostedZoneId = process.env.CDK_INTEG_HOSTED_ZONE_ID ?? process.env.HOSTED_ZONE_ID; if (!hostedZoneId) throw new Error('For this test you must provide your own HostedZoneId as an env var "HOSTED_ZONE_ID". See framework-integ/README.md for details.'); -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const testCase = new TestStack(app, 'aws-cdk-appsync-alias-integ', { certificateArn, domainName, hostedZoneId }); new IntegTest(app, 'appsync-domain-name', { enableLookups: true, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-route53-targets/test/integ.bucket-website-target.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-route53-targets/test/integ.bucket-website-target.ts index 92bfe3d866f6b..38983c41a75ce 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-route53-targets/test/integ.bucket-website-target.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-route53-targets/test/integ.bucket-website-target.ts @@ -34,7 +34,7 @@ class TestStack extends cdk.Stack { } } -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const testCase = new TestStack(app, 'aws-cdk-s3-integ', { env: { region: 'us-east-1', diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-route53-targets/test/integ.classic-load-balancer-target.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-route53-targets/test/integ.classic-load-balancer-target.ts index a0e98c2152279..b8a66e310b4af 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-route53-targets/test/integ.classic-load-balancer-target.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-route53-targets/test/integ.classic-load-balancer-target.ts @@ -52,7 +52,7 @@ class TestStack extends cdk.Stack { } } -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const testCase = new TestStack(app, 'aws-cdk-route53-classic-load-balancer-integ'); new IntegTest(app, 'aws-cdk-route53-classic-load-balancer-integ-test', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-route53-targets/test/integ.cloudfront-alias-target.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-route53-targets/test/integ.cloudfront-alias-target.ts index 93bc4934eec8a..761ef99785182 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-route53-targets/test/integ.cloudfront-alias-target.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-route53-targets/test/integ.cloudfront-alias-target.ts @@ -5,7 +5,7 @@ import * as cdk from 'aws-cdk-lib'; import * as targets from 'aws-cdk-lib/aws-route53-targets'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-cloudfront'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-route53-targets/test/integ.elastic-beanstalk-environment-target.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-route53-targets/test/integ.elastic-beanstalk-environment-target.ts index efb64901bb024..5614b3c7d5e94 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-route53-targets/test/integ.elastic-beanstalk-environment-target.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-route53-targets/test/integ.elastic-beanstalk-environment-target.ts @@ -137,6 +137,7 @@ class TestStack extends cdk.Stack { } const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-route53-targets/test/integ.elastic-beanstalk-hostedzoneid.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-route53-targets/test/integ.elastic-beanstalk-hostedzoneid.ts index 90fd263334e03..a51b322deb734 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-route53-targets/test/integ.elastic-beanstalk-hostedzoneid.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-route53-targets/test/integ.elastic-beanstalk-hostedzoneid.ts @@ -10,6 +10,7 @@ import { RegionInfo } from 'aws-cdk-lib/region-info'; import { SOLUTION_STACK_NAME } from '../../utils/aws-elasticbeanstalk'; const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-route53-targets/test/integ.elastic-beanstalk-token-endpoint.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-route53-targets/test/integ.elastic-beanstalk-token-endpoint.ts index b4989624764bc..01e54186473b0 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-route53-targets/test/integ.elastic-beanstalk-token-endpoint.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-route53-targets/test/integ.elastic-beanstalk-token-endpoint.ts @@ -9,6 +9,7 @@ import * as custom from 'aws-cdk-lib/custom-resources'; import { SOLUTION_STACK_NAME } from '../../utils/aws-elasticbeanstalk'; const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-route53-targets/test/integ.globalaccelerator-alias-target.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-route53-targets/test/integ.globalaccelerator-alias-target.ts index 7b83ca9e7edc7..e6e6a035f1b93 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-route53-targets/test/integ.globalaccelerator-alias-target.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-route53-targets/test/integ.globalaccelerator-alias-target.ts @@ -4,7 +4,7 @@ import * as route53 from 'aws-cdk-lib/aws-route53'; import * as cdk from 'aws-cdk-lib'; import * as targets from 'aws-cdk-lib/aws-route53-targets'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-globalaccelerator-integ'); let accelerator = new globalaccelerator.Accelerator(stack, 'Accelerator', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-route53-targets/test/integ.interface-vpc-endpoint-target.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-route53-targets/test/integ.interface-vpc-endpoint-target.ts index b671d83ce4b72..04422f5e01ff9 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-route53-targets/test/integ.interface-vpc-endpoint-target.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-route53-targets/test/integ.interface-vpc-endpoint-target.ts @@ -3,7 +3,7 @@ import * as route53 from 'aws-cdk-lib/aws-route53'; import * as cdk from 'aws-cdk-lib'; import * as targets from 'aws-cdk-lib/aws-route53-targets'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-interface-vpc-endpoint', { env: { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-route53-targets/test/integ.route53-record.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-route53-targets/test/integ.route53-record.ts index c99e68c31a4ee..79fb936df3e52 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-route53-targets/test/integ.route53-record.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-route53-targets/test/integ.route53-record.ts @@ -25,6 +25,6 @@ class TestStack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); new TestStack(app, 'aws-cdk-r53-record-alias-target-integ'); app.synth(); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-route53-targets/test/integ.userpool-domain-alias-target.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-route53-targets/test/integ.userpool-domain-alias-target.ts index 187fd297c120d..a0d78e191a64d 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-route53-targets/test/integ.userpool-domain-alias-target.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-route53-targets/test/integ.userpool-domain-alias-target.ts @@ -26,7 +26,8 @@ class TestStack extends Stack { } const app = new App({ - context: { [USER_POOL_DOMAIN_NAME_METHOD_WITHOUT_CUSTOM_RESOURCE]: true }, + context: { + '@aws-cdk/core:disableGitSource': true, [USER_POOL_DOMAIN_NAME_METHOD_WITHOUT_CUSTOM_RESOURCE]: true }, }); const stack = new TestStack(app, 'userpool-domain-alias-target'); new IntegTest(app, 'userpool-domain-alias-target-integ', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.cidr-routing-config.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.cidr-routing-config.ts index 2819dcf0da605..22a79e9107568 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.cidr-routing-config.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.cidr-routing-config.ts @@ -53,7 +53,7 @@ class TestStack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new TestStack(app, 'CidrRoutingConfig'); new IntegTest(app, 'CidrRoutingConfigInteg', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.cross-account-zone-delegation.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.cross-account-zone-delegation.ts index 7b97183b027f5..f10d381eb738f 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.cross-account-zone-delegation.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.cross-account-zone-delegation.ts @@ -30,7 +30,7 @@ import { IntegTest } from '@aws-cdk/integ-tests-alpha'; * - `yarn integ aws-route53/test/integ.cross-account-zone-delegation.js --profiles cross-account` */ -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const account = process.env.CDK_INTEG_ACCOUNT || '123456789012'; // this account should NOT have af-south-1 enabled diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.delete-existing-record-set.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.delete-existing-record-set.ts index f7fe3cf51cc4f..819cb9a73148f 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.delete-existing-record-set.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.delete-existing-record-set.ts @@ -30,7 +30,7 @@ class TestStack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new TestStack(app, 'cdk-route53-integ-delete-existing-record-set'); new IntegTest(app, 'Rooute53DeleteExistingRecordSetInteg', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.dnssec.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.dnssec.ts index dfc73b8d72158..beb38e8db1a8f 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.dnssec.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.dnssec.ts @@ -3,7 +3,7 @@ import * as kms from 'aws-cdk-lib/aws-kms'; import * as route53 from 'aws-cdk-lib/aws-route53'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-route53-dnssec', { env: { region: 'us-east-1' }, }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.failover-record.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.failover-record.ts index 4b0c430b40c97..0e54a64d9dc8f 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.failover-record.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.failover-record.ts @@ -43,7 +43,7 @@ class TestStack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); new TestStack(app, 'failover-record'); app.synth(); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.health-check.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.health-check.ts index 9e61210e672dd..2a377ae3681f4 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.health-check.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.health-check.ts @@ -6,6 +6,7 @@ import * as route53recoverycontrol from 'aws-cdk-lib/aws-route53recoverycontrol' import { ExpectedResult, IntegTest } from '@aws-cdk/integ-tests-alpha'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.import-existing-record-as-target.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.import-existing-record-as-target.ts index 8531efc551f82..b1a2177cf8e2d 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.import-existing-record-as-target.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.import-existing-record-as-target.ts @@ -3,7 +3,7 @@ import * as cdk from 'aws-cdk-lib'; import { ARecord, PrivateHostedZone, RecordTarget } from 'aws-cdk-lib/aws-route53'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-route53-integ'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.latency-based-routing.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.latency-based-routing.ts index 24a21faa90053..0a1c87fc97f52 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.latency-based-routing.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.latency-based-routing.ts @@ -27,7 +27,7 @@ class TestStack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new TestStack(app, 'latency-based-routing'); new IntegTest(app, 'Route53LatencyBasedRoutingInteg', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.multi-value-answer-routing.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.multi-value-answer-routing.ts index decb10c1f8cb9..26243f4ca2829 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.multi-value-answer-routing.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.multi-value-answer-routing.ts @@ -21,7 +21,7 @@ class TestStack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new TestStack(app, 'multi-value-answer-routing'); new IntegTest(app, 'Route53MultiValueAnswerRoutingInteg', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.private-hosted-zone-from-attributes.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.private-hosted-zone-from-attributes.ts index 75460a46f6ed5..66e90c1133b56 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.private-hosted-zone-from-attributes.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.private-hosted-zone-from-attributes.ts @@ -4,7 +4,7 @@ import * as route53 from 'aws-cdk-lib/aws-route53'; import { PrivateHostedZone } from 'aws-cdk-lib/aws-route53'; import { ExpectedResult, IntegTest } from '@aws-cdk/integ-tests-alpha'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-route53-integ'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.record-weight-from-cfnparameter.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.record-weight-from-cfnparameter.ts index 0eacb45144f86..c3ff3cf5fabb7 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.record-weight-from-cfnparameter.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.record-weight-from-cfnparameter.ts @@ -36,7 +36,7 @@ class TestStack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new TestStack(app, 'record-weight-from-cfnparameter'); new IntegTest(app, 'Route53RecordWeightFromCfnParameterInteg', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.rename-cross-account-zone-delegation.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.rename-cross-account-zone-delegation.ts index 708ac670f229f..1349636f74393 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.rename-cross-account-zone-delegation.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.rename-cross-account-zone-delegation.ts @@ -8,7 +8,7 @@ interface ChildStacksProps extends cdk.StackProps { subZoneName: string; } -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const account = process.env.CDK_INTEG_ACCOUNT || '123456789012'; // this account should NOT have af-south-1 enabled @@ -58,7 +58,7 @@ class ChildStack extends cdk.Stack { } } -const oldApp = new cdk.App(); +const oldApp = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const oldParentStack = new ParentStack(oldApp, 'parent-stack', { env: { @@ -77,7 +77,7 @@ const oldChildStack = new ChildStack(oldApp, 'child-stack', { oldChildStack.addDependency(oldParentStack); -const newApp = new cdk.App(); +const newApp = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const newParentStack = new ParentStack(newApp, 'parent-stack', { env: { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.route53.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.route53.ts index 0316076844d58..05b1cf2a69946 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.route53.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.route53.ts @@ -2,7 +2,7 @@ import * as ec2 from 'aws-cdk-lib/aws-ec2'; import * as cdk from 'aws-cdk-lib'; import { Alpn, ARecord, CaaAmazonRecord, CnameRecord, Continent, GeoLocation, HttpsRecord, HttpsRecordValue, PrivateHostedZone, PublicHostedZone, RecordTarget, SvcbRecord, SvcbRecordValue, TxtRecord } from 'aws-cdk-lib/aws-route53'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-route53-integ'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.vpc-endpoint-service-domain-name.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.vpc-endpoint-service-domain-name.ts index 61e7db8fb8e21..2e6b825368131 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.vpc-endpoint-service-domain-name.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.vpc-endpoint-service-domain-name.ts @@ -31,6 +31,7 @@ class DummyEndpointLoadBalancer implements ec2.IVpcEndpointServiceLoadBalancer { } const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.weighted-record.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.weighted-record.ts index 33c92fb588229..554acc043d4c2 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.weighted-record.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.weighted-record.ts @@ -29,7 +29,7 @@ class TestStack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new TestStack(app, 'weighted-record'); new IntegTest(app, 'Route53WeightedRecordInteg', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.zone-delegation-iam-stack.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.zone-delegation-iam-stack.ts index 566d74db2785b..b9e33ea473e59 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.zone-delegation-iam-stack.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.zone-delegation-iam-stack.ts @@ -57,7 +57,7 @@ class ZoneDelegationIamStack extends cdk.Stack { } } -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new ZoneDelegationIamStack(app, 'ZoneDelegationStack'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-assets/test/integ.assets.bundling.docker-opts.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-assets/test/integ.assets.bundling.docker-opts.ts index 71c729d722c15..e1a95e8f84daa 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-assets/test/integ.assets.bundling.docker-opts.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-assets/test/integ.assets.bundling.docker-opts.ts @@ -3,7 +3,7 @@ import { App, DockerImage, Stack } from 'aws-cdk-lib'; import * as integ from '@aws-cdk/integ-tests-alpha'; import * as assets from 'aws-cdk-lib/aws-s3-assets'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'cdk-integ-assets-bundling-docker-opts'); new assets.Asset(stack, 'BundledAsset', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-assets/test/integ.assets.bundling.lit.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-assets/test/integ.assets.bundling.lit.ts index 55bf032f1f05b..439706d0eb398 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-assets/test/integ.assets.bundling.lit.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-assets/test/integ.assets.bundling.lit.ts @@ -28,6 +28,6 @@ class TestStack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); new TestStack(app, 'cdk-integ-assets-bundling'); app.synth(); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-assets/test/integ.assets.directory.lit.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-assets/test/integ.assets.directory.lit.ts index 4cc943b5f8550..13c23617ed402 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-assets/test/integ.assets.directory.lit.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-assets/test/integ.assets.directory.lit.ts @@ -18,6 +18,6 @@ class TestStack extends cdk.Stack { } } -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); new TestStack(app, 'aws-cdk-asset-test'); app.synth(); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-assets/test/integ.assets.file-bundling.lit.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-assets/test/integ.assets.file-bundling.lit.ts index 972acb35cd77f..b8c850f5e4f37 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-assets/test/integ.assets.file-bundling.lit.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-assets/test/integ.assets.file-bundling.lit.ts @@ -41,7 +41,7 @@ class TestStack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new TestStack(app, 'cdk-integ-assets-bundling'); new IntegTest(app, 'IntegTest', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-assets/test/integ.assets.file.lit.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-assets/test/integ.assets.file.lit.ts index f21a2905d2ddc..1cbdc9bd17ba1 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-assets/test/integ.assets.file.lit.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-assets/test/integ.assets.file.lit.ts @@ -18,6 +18,6 @@ class TestStack extends cdk.Stack { } } -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); new TestStack(app, 'aws-cdk-asset-file-test'); app.synth(); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-assets/test/integ.assets.permissions.lit.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-assets/test/integ.assets.permissions.lit.ts index 35ab962650cab..db56f4749fc25 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-assets/test/integ.assets.permissions.lit.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-assets/test/integ.assets.permissions.lit.ts @@ -18,6 +18,6 @@ class TestStack extends cdk.Stack { } } -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); new TestStack(app, 'aws-cdk-asset-refs'); app.synth(); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-assets/test/integ.assets.refs.lit.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-assets/test/integ.assets.refs.lit.ts index 381d222ab4d23..da495c3ba21e2 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-assets/test/integ.assets.refs.lit.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-assets/test/integ.assets.refs.lit.ts @@ -23,6 +23,6 @@ class TestStack extends cdk.Stack { } } -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); new TestStack(app, 'aws-cdk-asset-refs'); app.synth(); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-assets/test/integ.multi-assets.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-assets/test/integ.multi-assets.ts index ed217830d92ea..59261a83211c9 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-assets/test/integ.multi-assets.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-assets/test/integ.multi-assets.ts @@ -22,6 +22,6 @@ class TestStack extends cdk.Stack { } } -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); new TestStack(app, 'aws-cdk-multi-assets'); app.synth(); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-big-response.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-big-response.ts index a76833a867fce..d810962c15443 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-big-response.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-big-response.ts @@ -59,6 +59,7 @@ class TestBucketDeployment extends cdk.Stack { } const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-cloudfront.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-cloudfront.ts index ea785f41d8ff7..7eb80e73d5906 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-cloudfront.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-cloudfront.ts @@ -37,6 +37,7 @@ class TestBucketDeploymentCloudFront extends cdk.Stack { } const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, '@aws-cdk/aws-lambda:createNewPoliciesWithAddToRolePolicy': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-cross-nested-stack-source.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-cross-nested-stack-source.ts index b4a970d7f733c..f92b940bd8286 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-cross-nested-stack-source.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-cross-nested-stack-source.ts @@ -51,7 +51,7 @@ class MainStack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new MainStack(app, 'MainStack'); const integTest = new integ.IntegTest(app, 'integ-cross-nested-stack-source', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-cross-stack-source.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-cross-stack-source.ts index 3cca053b909cf..790ea91beb2a5 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-cross-stack-source.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-cross-stack-source.ts @@ -36,7 +36,7 @@ class Stack1 extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack2 = new Stack2(app, 'stack2'); const stack1 = new Stack1(app, 'stack1', { userPool: stack2.userPool }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-cross-stack-ssm-source.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-cross-stack-ssm-source.ts index 21efab843e34e..0090e5cbf9af0 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-cross-stack-ssm-source.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-cross-stack-ssm-source.ts @@ -89,7 +89,7 @@ export class MainStack extends cdk.Stack { } } -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new MainStack(app, 'integ-bucket-deployment-cross-stack-ssm'); new integ.IntegTest(app, 'integ-bucket-deployment-cross-stack-ssm-source', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-data.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-data.ts index f29d1f524c73a..8dd659dbba97c 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-data.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-data.ts @@ -88,6 +88,7 @@ class TestBucketDeploymentData extends Stack { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-deployed-bucket.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-deployed-bucket.ts index 03333cf07d242..4d5ffe462d2bc 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-deployed-bucket.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-deployed-bucket.ts @@ -35,6 +35,7 @@ class TestBucketDeployment extends cdk.Stack { } const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-large-file.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-large-file.ts index e242b9d5f7b76..24d43be349f37 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-large-file.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-large-file.ts @@ -18,6 +18,7 @@ import * as os from 'os'; * - Validates both escaped and unescaped JSON handling */ const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-loggroup.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-loggroup.ts index 62393ab570aa4..a02e19a69bdae 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-loggroup.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-loggroup.ts @@ -34,7 +34,7 @@ class TestBucketDeployment extends cdk.Stack { } } -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const testCase = new TestBucketDeployment(app, 'test-bucket-deployment-loggroup'); new integ.IntegTest(app, 'integ-test-bucket-deployment-loggroup', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-security-groups-efs.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-security-groups-efs.ts index c833db49b2425..72409d3681280 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-security-groups-efs.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-security-groups-efs.ts @@ -62,6 +62,7 @@ class TestBucketDeploymentSecurityGroupsEfs extends cdk.Stack { } const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-security-groups-empty.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-security-groups-empty.ts index 80c7e6acb6719..6570f6ba665d0 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-security-groups-empty.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-security-groups-empty.ts @@ -54,6 +54,7 @@ class TestBucketDeploymentEmptySecurityGroups extends cdk.Stack { } const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-security-groups-multiple.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-security-groups-multiple.ts index c17a5dd03988e..28d9ab5687a8a 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-security-groups-multiple.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-security-groups-multiple.ts @@ -74,6 +74,7 @@ class TestBucketDeploymentSecurityGroupsMultiple extends cdk.Stack { } const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-security-groups-single.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-security-groups-single.ts index 15975e2efb440..37d946ad3b42a 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-security-groups-single.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-security-groups-single.ts @@ -62,6 +62,7 @@ class TestBucketDeploymentSecurityGroupSingle extends cdk.Stack { } const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-signcontent.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-signcontent.ts index 90c1473bce178..395bcd2486f48 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-signcontent.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-signcontent.ts @@ -51,6 +51,7 @@ class TestBucketDeployment extends cdk.Stack { } const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-substitution-with-destination-key.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-substitution-with-destination-key.ts index 7dcb32aab4c58..11fb0b4389778 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-substitution-with-destination-key.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-substitution-with-destination-key.ts @@ -45,6 +45,7 @@ class TestBucketDeploymentSubstitutionWithDestinationKey extends cdk.Stack { } const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-substitution-with-role.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-substitution-with-role.ts index a61bae5a85b7d..e71256d859642 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-substitution-with-role.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-substitution-with-role.ts @@ -12,6 +12,7 @@ import type { Construct } from 'constructs'; * - Validates that role configuration works correctly with file substitution */ const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-substitution.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-substitution.ts index 1b56a56cf05eb..32b85eb58ba61 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-substitution.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-substitution.ts @@ -45,6 +45,7 @@ class TestBucketDeploymentSubstitution extends cdk.Stack { } const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-vpc-basic.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-vpc-basic.ts index 34430624cda81..cf9b2b3358158 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-vpc-basic.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-vpc-basic.ts @@ -50,6 +50,7 @@ class TestBucketDeploymentVpcBasic extends cdk.Stack { } const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-vpc-config.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-vpc-config.ts index c8ed5312dcd6c..6d3ae39098d0d 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-vpc-config.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-vpc-config.ts @@ -51,6 +51,7 @@ class TestBucketDeploymentVpcConfig extends cdk.Stack { } const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-vpc-custom-subnets.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-vpc-custom-subnets.ts index 0dac7a467839d..14a7c67e9e701 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-vpc-custom-subnets.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-vpc-custom-subnets.ts @@ -51,6 +51,7 @@ class TestBucketDeploymentVpcCustomSubnets extends cdk.Stack { } const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-vpc-efs.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-vpc-efs.ts index aa789489b8b25..ff76c70b07572 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-vpc-efs.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-vpc-efs.ts @@ -51,6 +51,7 @@ class TestBucketDeploymentVpcEfs extends cdk.Stack { } const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-vpc-security-groups.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-vpc-security-groups.ts index bcbcff518612c..8e7e858dd2921 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-vpc-security-groups.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-vpc-security-groups.ts @@ -57,6 +57,7 @@ class TestBucketDeploymentVpcSecurityGroups extends cdk.Stack { } const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-vpc-subnet-selection.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-vpc-subnet-selection.ts index 6206f11b01d26..e228fbb7b2410 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-vpc-subnet-selection.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-vpc-subnet-selection.ts @@ -55,6 +55,7 @@ class TestBucketDeploymentVpcSubnetSelection extends cdk.Stack { } const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment.ts index 9a286c8b6072f..46b307851569c 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment.ts @@ -99,6 +99,7 @@ class TestBucketDeployment extends cdk.Stack { } const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/integ.notifications.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/integ.notifications.ts index f0864fec25bdc..6eabdd6e70ed6 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/integ.notifications.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/integ.notifications.ts @@ -4,6 +4,7 @@ import * as cdk from 'aws-cdk-lib'; import * as s3n from 'aws-cdk-lib/aws-s3-notifications'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-s3:keepNotificationInImportedBucket': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/lambda/integ.bucket-notifications.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/lambda/integ.bucket-notifications.ts index 4f9227a96b841..f40f25e392eba 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/lambda/integ.bucket-notifications.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/lambda/integ.bucket-notifications.ts @@ -7,6 +7,7 @@ import * as constructs from 'constructs'; import * as integ from '@aws-cdk/integ-tests-alpha'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, '@aws-cdk/aws-s3:keepNotificationInImportedBucket': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/sns/integ.encrypted-sns-bucket-notifications.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/sns/integ.encrypted-sns-bucket-notifications.ts index 292f1f9a40b38..955df0acc887f 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/sns/integ.encrypted-sns-bucket-notifications.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/sns/integ.encrypted-sns-bucket-notifications.ts @@ -35,6 +35,7 @@ class MyStack extends cdk.Stack { } const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/s3-notifications:addS3TrustKeyPolicyForSnsSubscriptions': true, '@aws-cdk/aws-s3:keepNotificationInImportedBucket': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/sns/integ.sns-bucket-notifications.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/sns/integ.sns-bucket-notifications.ts index 3fd933409960e..5327801eb1d01 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/sns/integ.sns-bucket-notifications.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/sns/integ.sns-bucket-notifications.ts @@ -19,6 +19,7 @@ class MyStack extends cdk.Stack { } const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-s3:keepNotificationInImportedBucket': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/sqs/integ.bucket-notifications-sorting.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/sqs/integ.bucket-notifications-sorting.ts index 3235357c1df34..95a3bc8c124ae 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/sqs/integ.bucket-notifications-sorting.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/sqs/integ.bucket-notifications-sorting.ts @@ -38,6 +38,7 @@ class MyStack extends cdk.Stack { } const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-s3:keepNotificationInImportedBucket': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/sqs/integ.bucket-notifications-unmanaged.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/sqs/integ.bucket-notifications-unmanaged.ts index 163f00dc6bd50..06fcd9daf1fd0 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/sqs/integ.bucket-notifications-unmanaged.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/sqs/integ.bucket-notifications-unmanaged.ts @@ -5,7 +5,7 @@ import * as integ from '@aws-cdk/integ-tests-alpha'; import * as s3n from 'aws-cdk-lib/aws-s3-notifications'; import * as constructs from 'constructs'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'integ-sqs-bucket-notifications'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/sqs/integ.bucket-notifications.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/sqs/integ.bucket-notifications.ts index d4f78f24d28d3..19feed830abd5 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/sqs/integ.bucket-notifications.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/sqs/integ.bucket-notifications.ts @@ -5,6 +5,7 @@ import * as integ from '@aws-cdk/integ-tests-alpha'; import * as s3n from 'aws-cdk-lib/aws-s3-notifications'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-s3:keepNotificationInImportedBucket': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-acls.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-acls.ts index e9aa8fe26920d..c918fd442fdc5 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-acls.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-acls.ts @@ -3,7 +3,7 @@ import * as cdk from 'aws-cdk-lib'; import * as integ from '@aws-cdk/integ-tests-alpha'; import * as s3 from 'aws-cdk-lib/aws-s3'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); class TestCase extends cdk.Stack { constructor(scope: Construct, id: s3.BucketAccessControl, props?: cdk.StackProps) { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-auto-delete-objects-mixin.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-auto-delete-objects-mixin.ts index 1d235184821c1..4c488feba338d 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-auto-delete-objects-mixin.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-auto-delete-objects-mixin.ts @@ -61,7 +61,7 @@ class TestStack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); new IntegTest(app, 'cdk-integ-s3-bucket-auto-delete-objects-mixin', { testCases: [new TestStack(app, 'cdk-s3-bucket-auto-delete-objects-mixin')], diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-auto-delete-objects.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-auto-delete-objects.ts index 64a9eadfb5f10..6dd172d149ddd 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-auto-delete-objects.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-auto-delete-objects.ts @@ -60,6 +60,7 @@ class TestStack extends Stack { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-block-access.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-block-access.ts index 440ca830e27fa..9bbe1634b0c17 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-block-access.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-block-access.ts @@ -5,6 +5,7 @@ import { S3_PUBLIC_ACCESS_BLOCKED_BY_DEFAULT } from 'aws-cdk-lib/cx-api'; const app = new App({ context: { + '@aws-cdk/core:disableGitSource': true, [S3_PUBLIC_ACCESS_BLOCKED_BY_DEFAULT]: true, }, }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-cross-account-replication.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-cross-account-replication.ts index 6263c630efbb8..2d6483e035fa1 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-cross-account-replication.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-cross-account-replication.ts @@ -31,6 +31,7 @@ import { SET_UNIQUE_REPLICATION_ROLE_NAME } from 'aws-cdk-lib/cx-api'; * */ const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { [SET_UNIQUE_REPLICATION_ROLE_NAME]: false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-encryption.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-encryption.ts index c879e2e95dff8..b5411acafc5a5 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-encryption.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-encryption.ts @@ -2,7 +2,7 @@ import * as cdk from 'aws-cdk-lib/core'; import * as integ from '@aws-cdk/integ-tests-alpha'; import * as s3 from 'aws-cdk-lib/aws-s3'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-s3-bucket-encryption'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-grant-write.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-grant-write.ts index 8511caef8c466..bee9a377a5410 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-grant-write.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-grant-write.ts @@ -4,7 +4,7 @@ import * as cdk from 'aws-cdk-lib'; import * as integ from '@aws-cdk/integ-tests-alpha'; import * as s3 from 'aws-cdk-lib/aws-s3'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-s3'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-grantdelete-kms.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-grantdelete-kms.ts index 355958a4bba58..a65904666650a 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-grantdelete-kms.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-grantdelete-kms.ts @@ -5,7 +5,7 @@ import * as cdk from 'aws-cdk-lib'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import * as s3 from 'aws-cdk-lib/aws-s3'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-s3'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-import-server-access-logs.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-import-server-access-logs.ts index dc3d54903de19..51284616be9e0 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-import-server-access-logs.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-import-server-access-logs.ts @@ -6,7 +6,7 @@ import * as s3 from 'aws-cdk-lib/aws-s3'; // Reproduces the issues experienced in #23588 and #23547, both resulting from // not validating log delivery is applied correctly when the target bucket for // server access logs is in another account. -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const targetBucketStack = new cdk.Stack(app, 'aws-cdk-s3-access-logs-target'); const sourceBucketStack = new cdk.Stack(app, 'aws-cdk-s3-access-logs-delivery'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-intelligent-tiering.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-intelligent-tiering.ts index c056eb97266d8..fc70eebc8a4d1 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-intelligent-tiering.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-intelligent-tiering.ts @@ -2,7 +2,7 @@ import { App, Duration, Stack } from 'aws-cdk-lib'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import * as s3 from 'aws-cdk-lib/aws-s3'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'aws-cdk-s3'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-inventory.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-inventory.ts index 2ea67698171fc..6249f4699b377 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-inventory.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-inventory.ts @@ -3,7 +3,7 @@ import * as cdk from 'aws-cdk-lib'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import * as s3 from 'aws-cdk-lib/aws-s3'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-s3'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-legacy-naming.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-legacy-naming.ts index edf7e7cc6c2c2..a36698a41b518 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-legacy-naming.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-legacy-naming.ts @@ -4,7 +4,7 @@ import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import * as s3 from 'aws-cdk-lib/aws-s3'; import * as iam from 'aws-cdk-lib/aws-iam'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-s3-legacy-name-integ'); const legacyBucketFromName = s3.Bucket.fromBucketName(stack, 'LegacyBucketFromName', 'My_legacy_bucket1'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-minimum-tls-version.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-minimum-tls-version.ts index 7c61d16487053..f8397cac7a5b6 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-minimum-tls-version.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-minimum-tls-version.ts @@ -2,7 +2,7 @@ import * as cdk from 'aws-cdk-lib'; import * as integ from '@aws-cdk/integ-tests-alpha'; import * as s3 from 'aws-cdk-lib/aws-s3'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-s3-minimum-tls-version'); new s3.Bucket(stack, 'Bucket', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-object-lock.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-object-lock.ts index 9a7f5780c48b4..2981308612f59 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-object-lock.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-object-lock.ts @@ -3,7 +3,7 @@ import * as cdk from 'aws-cdk-lib'; import * as integ from '@aws-cdk/integ-tests-alpha'; import * as s3 from 'aws-cdk-lib/aws-s3'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-s3-bucket-object-lock'); new s3.Bucket(stack, 'ObjectLockBucket', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-replication-multiple-sources.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-replication-multiple-sources.ts index 2630afa176210..2b54400445cea 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-replication-multiple-sources.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-replication-multiple-sources.ts @@ -64,6 +64,7 @@ class TestStack extends Stack { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { [SET_UNIQUE_REPLICATION_ROLE_NAME]: true, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-replication-use-custom-role.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-replication-use-custom-role.ts index 7059bf1351b43..749408fb7ebb5 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-replication-use-custom-role.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-replication-use-custom-role.ts @@ -58,7 +58,7 @@ class TestStack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new TestStack(app, 'BucketReplicationTestStack'); const integ = new IntegTest(app, 'ReplicationInteg', { testCases: [stack], diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-replication.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-replication.ts index 8f30b6f7f1b8e..c5218c4534dea 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-replication.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-replication.ts @@ -68,6 +68,7 @@ class TestStack extends Stack { // Disabled SET_UNIQUE_REPLICATION_ROLE_NAME feature flag const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { [SET_UNIQUE_REPLICATION_ROLE_NAME]: false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-server-access-logs-sse-kms.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-server-access-logs-sse-kms.ts index a424c74c7e793..eb0d24fa8be80 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-server-access-logs-sse-kms.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-server-access-logs-sse-kms.ts @@ -3,7 +3,7 @@ import * as cdk from 'aws-cdk-lib'; import * as integ from '@aws-cdk/integ-tests-alpha'; import * as s3 from 'aws-cdk-lib/aws-s3'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-s3-server-access-logs-sse-kms'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-sharing.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-sharing.ts index d89d5ad164c3d..b09147c877970 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-sharing.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-sharing.ts @@ -3,7 +3,7 @@ import * as cdk from 'aws-cdk-lib'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import * as s3 from 'aws-cdk-lib/aws-s3'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); /** * Stack that defines the bucket diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket.domain-name.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket.domain-name.ts index 820ce53d5c7ec..b2765c0dd1d5b 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket.domain-name.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket.domain-name.ts @@ -18,7 +18,7 @@ class TestStack extends cdk.Stack { } } -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); new IntegTest(app, 'cdk-integ-bucket-domain-name', { testCases: [new TestStack(app, 'aws-cdk-domain-name')], diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket.inventory.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket.inventory.ts index 45c5e68bc3e6c..431dab5c70bf1 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket.inventory.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket.inventory.ts @@ -21,7 +21,7 @@ class TestStack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); new IntegTest(app, 'cdk-integ-bucket-inventory', { testCases: [new TestStack(app, 'aws-cdk-bucket-inventory')], diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket.notifications-scoped-permissions.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket.notifications-scoped-permissions.ts index 79ef9e6f234a2..d1943fdc9529a 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket.notifications-scoped-permissions.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket.notifications-scoped-permissions.ts @@ -7,7 +7,7 @@ import * as sqs from 'aws-cdk-lib/aws-sqs'; import * as s3n from 'aws-cdk-lib/aws-s3-notifications'; import { Match, Template } from 'aws-cdk-lib/assertions'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-s3-notifications-scoped-permissions'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket.notifications.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket.notifications.ts index 21628e986f035..c844ee196be6c 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket.notifications.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket.notifications.ts @@ -4,6 +4,7 @@ import * as integ from '@aws-cdk/integ-tests-alpha'; import * as s3 from 'aws-cdk-lib/aws-s3'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-s3:keepNotificationInImportedBucket': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket.server-access-logs.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket.server-access-logs.ts index 6aca1b8ac4f66..225bf9d688260 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket.server-access-logs.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket.server-access-logs.ts @@ -3,7 +3,7 @@ import * as cdk from 'aws-cdk-lib'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import * as s3 from 'aws-cdk-lib/aws-s3'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-s3-access-logs'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket.ts index 777a39f7b5f7c..5ee6d87134a67 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket.ts @@ -4,7 +4,7 @@ import * as cdk from 'aws-cdk-lib'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import * as s3 from 'aws-cdk-lib/aws-s3'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-s3'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket.url.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket.url.ts index 08139faeb6a6c..172bca67bdf3e 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket.url.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket.url.ts @@ -18,7 +18,7 @@ class TestStack extends cdk.Stack { } } -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); new IntegTest(app, 'cdk-integ-s3-urls', { testCases: [new TestStack(app, 'aws-cdk-s3-urls')], diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket.website-routing-rules.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket.website-routing-rules.ts index 4f0ffc8054b4f..3de4ac4f46f36 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket.website-routing-rules.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket.website-routing-rules.ts @@ -3,7 +3,7 @@ import * as cdk from 'aws-cdk-lib'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import * as s3 from 'aws-cdk-lib/aws-s3'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 's3-bucket-routing'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.lifecycle-expiration.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.lifecycle-expiration.ts index affdfb41813b3..a4ffe38426c89 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.lifecycle-expiration.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.lifecycle-expiration.ts @@ -2,7 +2,7 @@ import { App, Duration, Stack } from 'aws-cdk-lib'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import { Bucket } from 'aws-cdk-lib/aws-s3'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'aws-cdk-s3'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.lifecycle-transitions.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.lifecycle-transitions.ts index 56b80fd81d5ef..3c30f4a259ad9 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.lifecycle-transitions.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.lifecycle-transitions.ts @@ -2,7 +2,7 @@ import { App, Duration, RemovalPolicy, Stack } from 'aws-cdk-lib'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import { Bucket, StorageClass, TransitionDefaultMinimumObjectSize } from 'aws-cdk-lib/aws-s3'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 's3-lifecycle-transitions'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.lifecycle.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.lifecycle.ts index 2bb95e3e135a7..f3f16bdbb6e2a 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.lifecycle.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.lifecycle.ts @@ -2,7 +2,7 @@ import { App, RemovalPolicy, Stack } from 'aws-cdk-lib'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import { Bucket } from 'aws-cdk-lib/aws-s3'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'aws-cdk-s3'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-scheduler-targets/test/integ.codebuild-start-build.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-scheduler-targets/test/integ.codebuild-start-build.ts index 086174e932e4c..bbba166c30266 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-scheduler-targets/test/integ.codebuild-start-build.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-scheduler-targets/test/integ.codebuild-start-build.ts @@ -15,7 +15,7 @@ import { CodeBuildStartBuild } from 'aws-cdk-lib/aws-scheduler-targets'; * 2. The code build project updates the Parameter 'MyParameter' from value '🌧️' to '🌈': * 3. The code build project is invoked by the scheduler. */ -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-scheduler-targets-codebuild-start-build'); const payload = { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-scheduler-targets/test/integ.codepipeline-start-pipeline-execution.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-scheduler-targets/test/integ.codepipeline-start-pipeline-execution.ts index f18e24b574236..4e0a50d9e3702 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-scheduler-targets/test/integ.codepipeline-start-pipeline-execution.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-scheduler-targets/test/integ.codepipeline-start-pipeline-execution.ts @@ -18,6 +18,7 @@ import { CodePipelineStartPipelineExecution } from 'aws-cdk-lib/aws-scheduler-ta * 3. The pipeline is invoked by the scheduler every minute (but it needs only one successful execution to pass). */ const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, '@aws-cdk/aws-codepipeline:defaultPipelineTypeToV2': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-scheduler-targets/test/integ.ecs-run-task-ec2.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-scheduler-targets/test/integ.ecs-run-task-ec2.ts index 208523a152a5e..a4604ad05651a 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-scheduler-targets/test/integ.ecs-run-task-ec2.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-scheduler-targets/test/integ.ecs-run-task-ec2.ts @@ -19,6 +19,7 @@ import { EcsRunEc2Task } from 'aws-cdk-lib/aws-scheduler-targets'; * */ const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-scheduler-targets/test/integ.ecs-run-task-fargate.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-scheduler-targets/test/integ.ecs-run-task-fargate.ts index 737446de58f12..7e87addb332be 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-scheduler-targets/test/integ.ecs-run-task-fargate.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-scheduler-targets/test/integ.ecs-run-task-fargate.ts @@ -11,7 +11,7 @@ import { EcsRunFargateTask } from 'aws-cdk-lib/aws-scheduler-targets'; * The assertion checks that the cluster has tasks being run * */ -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-ecs-run-task-fargate-schedule'); const vpc = new ec2.Vpc(stack, 'Vpc', { maxAzs: 1, restrictDefaultSecurityGroup: false }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-scheduler-targets/test/integ.event-bridge-put-events.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-scheduler-targets/test/integ.event-bridge-put-events.ts index 16feb2d8b58c6..f97416b506ecd 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-scheduler-targets/test/integ.event-bridge-put-events.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-scheduler-targets/test/integ.event-bridge-put-events.ts @@ -15,7 +15,7 @@ import { EventBridgePutEvents } from 'aws-cdk-lib/aws-scheduler-targets'; * 2. Create a step function which updates the Parameter 'MyEventBridgePutParameter' from value '🐶' to '😺': * 3. Create an event bus and a rule which triggers the step function every 10 minutes (but it needs only one successful execution to pass) */ -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-scheduler-targets-event-bridge-put-events'); const stateMachinePayload = { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-scheduler-targets/test/integ.firehose-put-record.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-scheduler-targets/test/integ.firehose-put-record.ts index c052cc3df9be2..45367d7da9d2f 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-scheduler-targets/test/integ.firehose-put-record.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-scheduler-targets/test/integ.firehose-put-record.ts @@ -11,7 +11,7 @@ import { FirehosePutRecord } from 'aws-cdk-lib/aws-scheduler-targets'; * The firehose deliveries the record to S3 bucket * The assertion checks there is an object in the S3 bucket */ -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-scheduler-targets-firehose-put-record'); const payload = { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-scheduler-targets/test/integ.inspector-start-assessment-run.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-scheduler-targets/test/integ.inspector-start-assessment-run.ts index 5e4af0275e737..ea3f8f09fc969 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-scheduler-targets/test/integ.inspector-start-assessment-run.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-scheduler-targets/test/integ.inspector-start-assessment-run.ts @@ -13,7 +13,7 @@ import { InspectorStartAssessmentRun } from 'aws-cdk-lib/aws-scheduler-targets'; * An inspector assessment run by the scheduler * The assertion checks whether the assessment run */ -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-scheduler-targets-inspector-start-assessment-run'); const assessmentTarget = new CfnAssessmentTarget(stack, 'MyAssessmentTarget'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-scheduler-targets/test/integ.kinesis-stream-put-record.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-scheduler-targets/test/integ.kinesis-stream-put-record.ts index 0a614bfd77ca4..9990613f5f74f 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-scheduler-targets/test/integ.kinesis-stream-put-record.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-scheduler-targets/test/integ.kinesis-stream-put-record.ts @@ -9,7 +9,7 @@ import { KinesisStreamPutRecord } from 'aws-cdk-lib/aws-scheduler-targets'; * A record is put to the kinesis data stream by the scheduler * The assertion checks that the expected record is received by the stream */ -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-scheduler-targets-kinesis-stream-put-record'); const payload = { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-scheduler-targets/test/integ.lambda-invoke.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-scheduler-targets/test/integ.lambda-invoke.ts index 432d5a1d5af26..bccea68fefeaf 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-scheduler-targets/test/integ.lambda-invoke.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-scheduler-targets/test/integ.lambda-invoke.ts @@ -22,6 +22,7 @@ const LAMBDA_TAGGING_PERMISSION = new iam.PolicyStatement( * The assertion checks that the expected tag is created by calling listTags on the lambda function */ const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, '@aws-cdk/aws-lambda:createNewPoliciesWithAddToRolePolicy': true, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-scheduler-targets/test/integ.sage-maker-start-pipeline-execution.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-scheduler-targets/test/integ.sage-maker-start-pipeline-execution.ts index 629696482d772..45a8270ffa1ff 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-scheduler-targets/test/integ.sage-maker-start-pipeline-execution.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-scheduler-targets/test/integ.sage-maker-start-pipeline-execution.ts @@ -109,7 +109,7 @@ class FakePipeline extends cdk.Resource implements sagemaker.IPipeline { } } -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-scheduler-targets-sagemaker-start-pipeline-execution'); const pipelineParameterList: SageMakerPipelineParameter[] = [{ diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-scheduler-targets/test/integ.schedule-with-dlq.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-scheduler-targets/test/integ.schedule-with-dlq.ts index d1e0f350e686e..73d5c98fe41dd 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-scheduler-targets/test/integ.schedule-with-dlq.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-scheduler-targets/test/integ.schedule-with-dlq.ts @@ -5,7 +5,7 @@ import * as scheduler from 'aws-cdk-lib/aws-scheduler'; import * as sqs from 'aws-cdk-lib/aws-sqs'; import { SqsSendMessage } from 'aws-cdk-lib/aws-scheduler-targets'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-schedule-dlq'); const queue = new sqs.Queue(stack, 'ScheduleTargetQueue'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-scheduler-targets/test/integ.sns-publish.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-scheduler-targets/test/integ.sns-publish.ts index ea234a08ad76c..4e845ae7940ee 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-scheduler-targets/test/integ.sns-publish.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-scheduler-targets/test/integ.sns-publish.ts @@ -12,7 +12,7 @@ import { SnsPublish } from 'aws-cdk-lib/aws-scheduler-targets'; * 2. The SQS queue subscribes the topic * 3. The assertion checks that the expected message is delivered to the queue by calling an api */ -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'AwsSchedulerTargetsSnsPublish'); const message = 'Hello, Scheduler!'; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-scheduler-targets/test/integ.sqs-send-message.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-scheduler-targets/test/integ.sqs-send-message.ts index bd7a66f720ee2..beabd6837158e 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-scheduler-targets/test/integ.sqs-send-message.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-scheduler-targets/test/integ.sqs-send-message.ts @@ -9,7 +9,7 @@ import { SqsSendMessage } from 'aws-cdk-lib/aws-scheduler-targets'; * A message is sent to the queue by the scheduler every minute * The assertion checks that the expected payload in message is received by the queue */ -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-schedule'); const queue = new Queue(stack, 'MyQueue', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-scheduler-targets/test/integ.stepfunction-start-execution.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-scheduler-targets/test/integ.stepfunction-start-execution.ts index 26510747be61d..3f173652957e7 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-scheduler-targets/test/integ.stepfunction-start-execution.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-scheduler-targets/test/integ.stepfunction-start-execution.ts @@ -12,7 +12,7 @@ import { StepFunctionsStartExecution } from 'aws-cdk-lib/aws-scheduler-targets'; * 2. The step functions updates the Parameter 'MyParameter' from value '🌧️' to '🌈': * 3. The step function is invoked by the scheduler every 10 minutes (but it needs only one successful execution to pass). */ -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-scheduler-targets-sfn-start-execution'); const payload = { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-scheduler-targets/test/integ.universal.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-scheduler-targets/test/integ.universal.ts index 1f929f8f84b24..6f14b5bc9fd61 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-scheduler-targets/test/integ.universal.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-scheduler-targets/test/integ.universal.ts @@ -3,7 +3,7 @@ import * as cdk from 'aws-cdk-lib'; import * as scheduler from 'aws-cdk-lib/aws-scheduler'; import { Universal } from 'aws-cdk-lib/aws-scheduler-targets'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'AwsSchedulerTargetsUniversal'); new scheduler.Schedule(stack, 'Schedule', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-scheduler/test/integ.schedule.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-scheduler/test/integ.schedule.ts index 82ee152ef0e6f..b67f5f1c8c513 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-scheduler/test/integ.schedule.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-scheduler/test/integ.schedule.ts @@ -27,7 +27,7 @@ class SomeSqsTarget implements scheduler.IScheduleTarget { } } -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-scheduler-schedule'); const queue = new sqs.Queue(stack, 'ScheduleTargetQueue'); const role = new iam.Role(stack, 'Role', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-secretsmanager/test/integ.hosted-rotation.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-secretsmanager/test/integ.hosted-rotation.ts index f49fa56b913a5..09dfd4583dda7 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-secretsmanager/test/integ.hosted-rotation.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-secretsmanager/test/integ.hosted-rotation.ts @@ -30,6 +30,6 @@ class TestStack extends cdk.Stack { } } -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); new TestStack(app, 'cdk-integ-secret-hosted-rotation'); app.synth(); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-secretsmanager/test/integ.lambda-rotation.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-secretsmanager/test/integ.lambda-rotation.ts index 647f241a01815..80c86e5b3a0fd 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-secretsmanager/test/integ.lambda-rotation.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-secretsmanager/test/integ.lambda-rotation.ts @@ -27,6 +27,7 @@ class TestStack extends cdk.Stack { } const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, '@aws-cdk/aws-lambda:createNewPoliciesWithAddToRolePolicy': true, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-secretsmanager/test/integ.replica.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-secretsmanager/test/integ.replica.ts index c8d8e91dc2885..47fed44ae6b7d 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-secretsmanager/test/integ.replica.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-secretsmanager/test/integ.replica.ts @@ -10,6 +10,6 @@ class TestStack extends cdk.Stack { } } -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); new TestStack(app, 'cdk-integ-secrets-replica'); app.synth(); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-secretsmanager/test/integ.secret-name-parsed.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-secretsmanager/test/integ.secret-name-parsed.ts index 503b1997a8265..97a8630b173ee 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-secretsmanager/test/integ.secret-name-parsed.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-secretsmanager/test/integ.secret-name-parsed.ts @@ -39,6 +39,6 @@ class SecretsManagerStack extends cdk.Stack { } } -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); new SecretsManagerStack(app, 'Integ-SecretsManager-ParsedSecretName'); app.synth(); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-secretsmanager/test/integ.secret.dynamic-reference-key.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-secretsmanager/test/integ.secret.dynamic-reference-key.ts index 192ff6993de59..ffb314eb205bc 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-secretsmanager/test/integ.secret.dynamic-reference-key.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-secretsmanager/test/integ.secret.dynamic-reference-key.ts @@ -27,7 +27,7 @@ class TestStack extends cdk.Stack { } } -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new TestStack(app, 'cdk-integ-secrets-dynamic-reference-key'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-secretsmanager/test/integ.secret.lit.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-secretsmanager/test/integ.secret.lit.ts index 16661b50ec542..5657aadf17dc5 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-secretsmanager/test/integ.secret.lit.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-secretsmanager/test/integ.secret.lit.ts @@ -51,7 +51,7 @@ class SecretsManagerStack extends cdk.Stack { } } -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); new SecretsManagerStack(app, 'Integ-SecretsManager-Secret'); app.synth(); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-servicecatalog/test/integ.nested-stack-in-product-stack.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-servicecatalog/test/integ.nested-stack-in-product-stack.ts index ef33d5899b95e..a83c711d8b527 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-servicecatalog/test/integ.nested-stack-in-product-stack.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-servicecatalog/test/integ.nested-stack-in-product-stack.ts @@ -8,6 +8,7 @@ import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import * as path from 'path'; const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-servicecatalog/test/integ.portfolio.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-servicecatalog/test/integ.portfolio.ts index 0f5cade9d96ba..23cd3c026d022 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-servicecatalog/test/integ.portfolio.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-servicecatalog/test/integ.portfolio.ts @@ -3,7 +3,7 @@ import * as sns from 'aws-cdk-lib/aws-sns'; import * as cdk from 'aws-cdk-lib'; import * as servicecatalog from 'aws-cdk-lib/aws-servicecatalog'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'integ-servicecatalog-portfolio'); const role = new iam.Role(stack, 'TestRole', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-servicecatalog/test/integ.product.encrypted.asset.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-servicecatalog/test/integ.product.encrypted.asset.ts index 6a4b254166ca6..b2ab18e71e835 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-servicecatalog/test/integ.product.encrypted.asset.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-servicecatalog/test/integ.product.encrypted.asset.ts @@ -13,6 +13,7 @@ import { ProductStackHistory } from 'aws-cdk-lib/aws-servicecatalog'; import { ServerSideEncryption } from 'aws-cdk-lib/aws-s3-deployment'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-servicecatalog/test/integ.product.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-servicecatalog/test/integ.product.ts index fcae7730f25cf..73a028e0de031 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-servicecatalog/test/integ.product.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-servicecatalog/test/integ.product.ts @@ -62,6 +62,7 @@ import { ProductStackHistory } from 'aws-cdk-lib/aws-servicecatalog'; */ const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-servicecatalog/test/integ.two-products.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-servicecatalog/test/integ.two-products.ts index 4e6b39be5fd01..4b9ed1a022cf6 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-servicecatalog/test/integ.two-products.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-servicecatalog/test/integ.two-products.ts @@ -84,6 +84,7 @@ class TestAssetProductStack2 extends servicecatalog.ProductStack { } const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-servicediscovery/test/integ.service-with-cname-record.lit.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-servicediscovery/test/integ.service-with-cname-record.lit.ts index 55bb561576343..cd0d16aac7792 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-servicediscovery/test/integ.service-with-cname-record.lit.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-servicediscovery/test/integ.service-with-cname-record.lit.ts @@ -1,7 +1,7 @@ import * as cdk from 'aws-cdk-lib'; import * as servicediscovery from 'aws-cdk-lib/aws-servicediscovery'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-servicediscovery-integ'); const namespace = new servicediscovery.PublicDnsNamespace(stack, 'Namespace', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-servicediscovery/test/integ.service-with-http-namespace.lit.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-servicediscovery/test/integ.service-with-http-namespace.lit.ts index bf35e004e0b65..7b553a5d6c7b1 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-servicediscovery/test/integ.service-with-http-namespace.lit.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-servicediscovery/test/integ.service-with-http-namespace.lit.ts @@ -1,7 +1,7 @@ import * as cdk from 'aws-cdk-lib'; import * as servicediscovery from 'aws-cdk-lib/aws-servicediscovery'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-servicediscovery-integ'); const namespace = new servicediscovery.HttpNamespace(stack, 'MyNamespace', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-servicediscovery/test/integ.service-with-private-dns-namespace.lit.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-servicediscovery/test/integ.service-with-private-dns-namespace.lit.ts index 5e3a3565f6e8f..bc35d9f64f074 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-servicediscovery/test/integ.service-with-private-dns-namespace.lit.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-servicediscovery/test/integ.service-with-private-dns-namespace.lit.ts @@ -3,7 +3,7 @@ import * as elbv2 from 'aws-cdk-lib/aws-elasticloadbalancingv2'; import * as cdk from 'aws-cdk-lib'; import * as servicediscovery from 'aws-cdk-lib/aws-servicediscovery'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-servicediscovery-integ'); const vpc = new ec2.Vpc(stack, 'Vpc', { maxAzs: 2, restrictDefaultSecurityGroup: false }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-servicediscovery/test/integ.service-with-public-dns-namespace.lit.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-servicediscovery/test/integ.service-with-public-dns-namespace.lit.ts index 3f386953c2b63..e8ebf5dab5358 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-servicediscovery/test/integ.service-with-public-dns-namespace.lit.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-servicediscovery/test/integ.service-with-public-dns-namespace.lit.ts @@ -1,7 +1,7 @@ import * as cdk from 'aws-cdk-lib'; import * as servicediscovery from 'aws-cdk-lib/aws-servicediscovery'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-servicediscovery-integ'); const namespace = new servicediscovery.PublicDnsNamespace(stack, 'Namespace', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ses-actions/test/integ.actions.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ses-actions/test/integ.actions.ts index 325f371277355..02063b2a0a1c0 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ses-actions/test/integ.actions.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ses-actions/test/integ.actions.ts @@ -30,6 +30,7 @@ const TEST_ORGANIZATION_ARN = 'arn:aws:workmail:us-east-1:339712719728:organizat const TEST_EMAIL = `test@${TEST_WORKMAIL_DOMAIN}`; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ses/test/integ.configuration-set-event-bus.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ses/test/integ.configuration-set-event-bus.ts index 008efd1196a6c..5b673bb8318e1 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ses/test/integ.configuration-set-event-bus.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ses/test/integ.configuration-set-event-bus.ts @@ -3,7 +3,7 @@ import { ExpectedResult, IntegTest, Match } from '@aws-cdk/integ-tests-alpha'; import * as events from 'aws-cdk-lib/aws-events'; import * as ses from 'aws-cdk-lib/aws-ses'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'ses-configuration-set-event-bus'); const configurationSet = new ses.ConfigurationSet(stack, 'ConfigurationSet', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ses/test/integ.configuration-set-firehose.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ses/test/integ.configuration-set-firehose.ts index de174798f6310..0ca04b7cd7a8a 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ses/test/integ.configuration-set-firehose.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ses/test/integ.configuration-set-firehose.ts @@ -6,7 +6,7 @@ import * as iam from 'aws-cdk-lib/aws-iam'; import * as ses from 'aws-cdk-lib/aws-ses'; import * as s3 from 'aws-cdk-lib/aws-s3'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'ses-configuration-set-firehose'); const configurationSet = new ses.ConfigurationSet(stack, 'ConfigurationSet', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ses/test/integ.configuration-set-override-suppression-list-settings.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ses/test/integ.configuration-set-override-suppression-list-settings.ts index 08d4e28aa5ba0..4646aaf15b31d 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ses/test/integ.configuration-set-override-suppression-list-settings.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ses/test/integ.configuration-set-override-suppression-list-settings.ts @@ -26,7 +26,7 @@ class TestStack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); new integ.IntegTest(app, 'ConfigurationSetOverridingSuppressionListSettingsInteg', { testCases: [new TestStack(app, 'cdk-ses-configuration-set-overriding-suppression-list-integ')], diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ses/test/integ.configuration-set-tracking-options.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ses/test/integ.configuration-set-tracking-options.ts index 3642740591697..e20d48a549fdb 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ses/test/integ.configuration-set-tracking-options.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ses/test/integ.configuration-set-tracking-options.ts @@ -32,7 +32,7 @@ class ConfigurationSetStack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); new integ.IntegTest(app, 'ConfigurationSetInteg', { testCases: [new ConfigurationSetStack(app, 'ses-configuration-set-tracking-options-integ', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ses/test/integ.configuration-set-vdmoptions.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ses/test/integ.configuration-set-vdmoptions.ts index ad2ec856880e1..08058aa2cd164 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ses/test/integ.configuration-set-vdmoptions.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ses/test/integ.configuration-set-vdmoptions.ts @@ -2,7 +2,7 @@ import { App, Stack } from 'aws-cdk-lib'; import * as integ from '@aws-cdk/integ-tests-alpha'; import * as ses from 'aws-cdk-lib/aws-ses'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'cdk-ses-configuration-set-vdmoptions-integ'); const configurationSetVdmOptionsEnabled = new ses.ConfigurationSet(stack, 'VdmOptionsEnabled', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ses/test/integ.configuration-set.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ses/test/integ.configuration-set.ts index 29a49298f38ee..c918c6703b162 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ses/test/integ.configuration-set.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ses/test/integ.configuration-set.ts @@ -36,7 +36,7 @@ class TestStack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); new integ.IntegTest(app, 'ConfigurationSetInteg', { testCases: [new TestStack(app, 'cdk-ses-configuration-set-integ')], diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ses/test/integ.dedicated-ip-pool.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ses/test/integ.dedicated-ip-pool.ts index c6eb8ae4a3bcf..5e342690c0dea 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ses/test/integ.dedicated-ip-pool.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ses/test/integ.dedicated-ip-pool.ts @@ -2,7 +2,7 @@ import { App, Stack } from 'aws-cdk-lib'; import * as integ from '@aws-cdk/integ-tests-alpha'; import * as ses from 'aws-cdk-lib/aws-ses'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'aws-cdk-dedicated-ip-pool'); new ses.DedicatedIpPool(stack, 'Pool', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ses/test/integ.email-identity-from-arn.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ses/test/integ.email-identity-from-arn.ts index 8bb3923bf283b..acf0d9332fad2 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ses/test/integ.email-identity-from-arn.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ses/test/integ.email-identity-from-arn.ts @@ -38,6 +38,7 @@ class TestStack extends Stack { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ses/test/integ.email-identity.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ses/test/integ.email-identity.ts index 04599e500f72d..464fba41e22b1 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ses/test/integ.email-identity.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ses/test/integ.email-identity.ts @@ -32,6 +32,7 @@ class TestStack extends Stack { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ses/test/integ.receipt.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ses/test/integ.receipt.ts index eda227f1104eb..37324f41916bd 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ses/test/integ.receipt.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ses/test/integ.receipt.ts @@ -3,6 +3,7 @@ import * as ses from 'aws-cdk-lib/aws-ses'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ses/test/integ.vdm-attributes.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ses/test/integ.vdm-attributes.ts index 16d82662e654e..2486b73db0140 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ses/test/integ.vdm-attributes.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ses/test/integ.vdm-attributes.ts @@ -12,7 +12,7 @@ class TestStack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); new integ.IntegTest(app, 'VdmAttribtuesInteg', { testCases: [new TestStack(app, 'cdk-integ-ses-vdm-attributes')], diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-signer/integ.signing-profile.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-signer/integ.signing-profile.ts index c55bf241b3c53..2b54c99ec776b 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-signer/integ.signing-profile.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-signer/integ.signing-profile.ts @@ -3,7 +3,7 @@ import * as cdk from 'aws-cdk-lib'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import * as signer from 'aws-cdk-lib/aws-signer'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-signer-signing-profile'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-sns-subscriptions/test/integ.firehose-cross-region.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-sns-subscriptions/test/integ.firehose-cross-region.ts index 793650c5cfbe4..c78dd6da87317 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-sns-subscriptions/test/integ.firehose-cross-region.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-sns-subscriptions/test/integ.firehose-cross-region.ts @@ -5,7 +5,7 @@ import * as s3 from 'aws-cdk-lib/aws-s3'; import * as sns from 'aws-cdk-lib/aws-sns'; import * as subs from 'aws-cdk-lib/aws-sns-subscriptions'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const topicStack = new cdk.Stack(app, 'aws-cdk-sns-firehose-topicstack', { env: { region: 'us-east-1' }, }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-sns-subscriptions/test/integ.firehose.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-sns-subscriptions/test/integ.firehose.ts index 097c906a3f55e..778c071eb6231 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-sns-subscriptions/test/integ.firehose.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-sns-subscriptions/test/integ.firehose.ts @@ -6,7 +6,7 @@ import * as sns from 'aws-cdk-lib/aws-sns'; import * as subs from 'aws-cdk-lib/aws-sns-subscriptions'; import * as sqs from 'aws-cdk-lib/aws-sqs'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-sns-firehose'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-sns-subscriptions/test/integ.sns-lambda-cross-region.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-sns-subscriptions/test/integ.sns-lambda-cross-region.ts index 1beadc655b69c..a177a6b5255e2 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-sns-subscriptions/test/integ.sns-lambda-cross-region.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-sns-subscriptions/test/integ.sns-lambda-cross-region.ts @@ -5,7 +5,7 @@ import * as subs from 'aws-cdk-lib/aws-sns-subscriptions'; import { STANDARD_NODEJS_RUNTIME } from '../../config'; /// !cdk-integ * pragma:enable-lookups -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const topicStack = new cdk.Stack(app, 'TopicStack', { env: { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-sns-subscriptions/test/integ.sns-lambda.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-sns-subscriptions/test/integ.sns-lambda.ts index ac6a3cb01be85..4e3a07cefae93 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-sns-subscriptions/test/integ.sns-lambda.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-sns-subscriptions/test/integ.sns-lambda.ts @@ -64,6 +64,7 @@ class SnsToLambda extends cdk.Stack { } const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-sns-subscriptions/test/integ.sns-sqs-cross-region.lit.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-sns-subscriptions/test/integ.sns-sqs-cross-region.lit.ts index e6d896c698346..f3d8ddc7885f6 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-sns-subscriptions/test/integ.sns-sqs-cross-region.lit.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-sns-subscriptions/test/integ.sns-sqs-cross-region.lit.ts @@ -4,7 +4,7 @@ import * as cdk from 'aws-cdk-lib'; import * as subs from 'aws-cdk-lib/aws-sns-subscriptions'; /// !cdk-integ * pragma:enable-lookups -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); /// !show const topicStack = new cdk.Stack(app, 'TopicStack', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-sns-subscriptions/test/integ.sns-sqs-subscription-filter.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-sns-subscriptions/test/integ.sns-sqs-subscription-filter.ts index bc6748369b4de..bcf4c1f3d3572 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-sns-subscriptions/test/integ.sns-sqs-subscription-filter.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-sns-subscriptions/test/integ.sns-sqs-subscription-filter.ts @@ -4,7 +4,7 @@ import * as cdk from 'aws-cdk-lib'; import { IntegTest, ExpectedResult } from '@aws-cdk/integ-tests-alpha'; import * as subs from 'aws-cdk-lib/aws-sns-subscriptions'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'sns-sqs-subscription-filter'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-sns-subscriptions/test/integ.sns-sqs.lit.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-sns-subscriptions/test/integ.sns-sqs.lit.ts index ca27d2c803d7f..0b8352d5e28e7 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-sns-subscriptions/test/integ.sns-sqs.lit.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-sns-subscriptions/test/integ.sns-sqs.lit.ts @@ -25,7 +25,10 @@ class SnsToSqs extends cdk.Stack { } const app = new cdk.App({ - context: restrictSqsDescryption, + context: { + restrictSqsDescryption, + '@aws-cdk/core:disableGitSource': true, + }, }); new SnsToSqs(app, 'aws-cdk-sns-sqs'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-sns-subscriptions/test/integ.sns-sqs.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-sns-subscriptions/test/integ.sns-sqs.ts index 2e580c97fcd5e..b8a6c40c7766d 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-sns-subscriptions/test/integ.sns-sqs.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-sns-subscriptions/test/integ.sns-sqs.ts @@ -4,7 +4,7 @@ import * as cdk from 'aws-cdk-lib'; import { IntegTest, ExpectedResult } from '@aws-cdk/integ-tests-alpha'; import * as subs from 'aws-cdk-lib/aws-sns-subscriptions'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'SnsToSqsStack'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-sns-subscriptions/test/integ.sns-url.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-sns-subscriptions/test/integ.sns-url.ts index 18f602207f2e8..d76de7cade2c5 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-sns-subscriptions/test/integ.sns-url.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-sns-subscriptions/test/integ.sns-url.ts @@ -32,7 +32,7 @@ class SnsToUrlStack extends cdk.Stack { } } -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new SnsToUrlStack(app, 'SnsToUrlStack'); new integ.IntegTest(app, 'cdk-integ', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-sns/test/integ.sns-fifo-archive-policy.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-sns/test/integ.sns-fifo-archive-policy.ts index 71959341d55bf..736c41da06ed2 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-sns/test/integ.sns-fifo-archive-policy.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-sns/test/integ.sns-fifo-archive-policy.ts @@ -33,7 +33,7 @@ class SNSFifoArchivePolicyStack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new SNSFifoArchivePolicyStack(app, 'SNSFifoArchivePolicyStack'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-sns/test/integ.sns-fifo-throughput-scope.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-sns/test/integ.sns-fifo-throughput-scope.ts index 2d4fef994e53a..198d28ac09ee3 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-sns/test/integ.sns-fifo-throughput-scope.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-sns/test/integ.sns-fifo-throughput-scope.ts @@ -20,7 +20,7 @@ class SNSInteg extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new SNSInteg(app, 'sns-fifo-throughput-scope'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-sns/test/integ.sns-fifo.no-name.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-sns/test/integ.sns-fifo.no-name.ts index 270b3ca951b5b..de2acc12107a5 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-sns/test/integ.sns-fifo.no-name.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-sns/test/integ.sns-fifo.no-name.ts @@ -2,7 +2,7 @@ import { App, Stack } from 'aws-cdk-lib'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import { Topic } from 'aws-cdk-lib/aws-sns'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'aws-cdk-sns-fifo-1'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-sns/test/integ.sns-fifo.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-sns/test/integ.sns-fifo.ts index 9bcb6057c68ea..80e82c582b112 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-sns/test/integ.sns-fifo.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-sns/test/integ.sns-fifo.ts @@ -15,7 +15,7 @@ class SNSFifoInteg extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); new SNSFifoInteg(app, 'SNSFifoInteg'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-sns/test/integ.sns-topic-grant-subscribe.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-sns/test/integ.sns-topic-grant-subscribe.ts index 918f0a19c488d..1e1ec4d9b0537 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-sns/test/integ.sns-topic-grant-subscribe.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-sns/test/integ.sns-topic-grant-subscribe.ts @@ -25,7 +25,7 @@ class SNSInteg extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new SNSInteg(app, 'sns-grant-subscribe-stack'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-sns/test/integ.sns-topic-policy.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-sns/test/integ.sns-topic-policy.ts index bb90221b5b1dd..32e39cffd4d2a 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-sns/test/integ.sns-topic-policy.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-sns/test/integ.sns-topic-policy.ts @@ -3,7 +3,7 @@ import { Topic, TopicPolicy } from 'aws-cdk-lib/aws-sns'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import { PolicyDocument, PolicyStatement, ServicePrincipal } from 'aws-cdk-lib/aws-iam'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'SNSTopicPolicyStack'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-sns/test/integ.sns.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-sns/test/integ.sns.ts index d2d15f0635a29..86c355ec0878e 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-sns/test/integ.sns.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-sns/test/integ.sns.ts @@ -103,6 +103,7 @@ class SNSInteg extends Stack { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-sqs/test/integ.sqs-source-queue-permission.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-sqs/test/integ.sqs-source-queue-permission.ts index 3ff61390fd95d..709dc3ff0d15f 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-sqs/test/integ.sqs-source-queue-permission.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-sqs/test/integ.sqs-source-queue-permission.ts @@ -3,7 +3,7 @@ import { App, Stack } from 'aws-cdk-lib'; import * as integ from '@aws-cdk/integ-tests-alpha'; import { Queue, RedrivePermission } from 'aws-cdk-lib/aws-sqs'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'aws-cdk-sqs'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-sqs/test/integ.sqs.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-sqs/test/integ.sqs.ts index fc3344f1bfb98..57de04e7aa720 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-sqs/test/integ.sqs.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-sqs/test/integ.sqs.ts @@ -4,7 +4,7 @@ import { App, CfnOutput, RemovalPolicy, Stack } from 'aws-cdk-lib'; import * as integ from '@aws-cdk/integ-tests-alpha'; import { DeduplicationScope, FifoThroughputLimit, Queue, QueueEncryption } from 'aws-cdk-lib/aws-sqs'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'aws-cdk-sqs'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ssm/test/integ.import-parameter.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ssm/test/integ.import-parameter.ts index 20e6cc317dce2..66a99d9894147 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ssm/test/integ.import-parameter.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ssm/test/integ.import-parameter.ts @@ -2,7 +2,7 @@ import * as cdk from 'aws-cdk-lib'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import * as ssm from 'aws-cdk-lib/aws-ssm'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'Import-SSM-Parameter'); const parameterName = 'import-parameter-test'; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ssm/test/integ.list-parameter.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ssm/test/integ.list-parameter.ts index ed41dc7712080..83b36ce9fd354 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ssm/test/integ.list-parameter.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ssm/test/integ.list-parameter.ts @@ -18,6 +18,7 @@ class TestCaseBase extends cdk.Stack { } const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, treeMetadata: false, }); app.node.setContext('@aws-cdk/core:newStyleStackSynthesis', true); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ssm/test/integ.parameter-arns.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ssm/test/integ.parameter-arns.ts index ee72612e309ab..e03eea40bec6a 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ssm/test/integ.parameter-arns.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ssm/test/integ.parameter-arns.ts @@ -2,7 +2,7 @@ import { App, CfnOutput, CfnParameter, Stack } from 'aws-cdk-lib'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import * as ssm from 'aws-cdk-lib/aws-ssm'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'integ-parameter-arns'); const input = new CfnParameter(stack, 'ParameterNameParameter', { type: 'String', default: 'myParamName' }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ssm/test/integ.parameter-store-string-sharing.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ssm/test/integ.parameter-store-string-sharing.ts index 137775d826e41..3f8d287adaf7b 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ssm/test/integ.parameter-store-string-sharing.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ssm/test/integ.parameter-store-string-sharing.ts @@ -106,7 +106,7 @@ class ConsumingStack extends cdk.Stack { } } -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const account = process.env.CDK_INTEG_ACCOUNT || process.env.CDK_DEFAULT_ACCOUNT || '123456789012'; // The account sharing the parameter. const crossAccount = process.env.CDK_INTEG_CROSS_ACCOUNT || '234567890123'; // The account that comsumes the parameter. diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ssm/test/integ.parameter-store-string.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ssm/test/integ.parameter-store-string.ts index 7dee2fc62fd4a..13544d2c1a724 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ssm/test/integ.parameter-store-string.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ssm/test/integ.parameter-store-string.ts @@ -80,7 +80,7 @@ class UsingStack extends cdk.Stack { } } -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const creating = new CreatingStack(app, 'sspms-creating'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ssm/test/integ.parameter.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ssm/test/integ.parameter.ts index 19f754a887de0..f1f1288415f43 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ssm/test/integ.parameter.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ssm/test/integ.parameter.ts @@ -3,7 +3,7 @@ import * as cdk from 'aws-cdk-lib'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import * as ssm from 'aws-cdk-lib/aws-ssm'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'SSM-Parameter'); const role = new iam.Role(stack, 'UserRole', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ssm/test/integ.value-from-lookup-with-default.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ssm/test/integ.value-from-lookup-with-default.ts index 96b131e018a14..a7b9513301676 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ssm/test/integ.value-from-lookup-with-default.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ssm/test/integ.value-from-lookup-with-default.ts @@ -2,7 +2,7 @@ import * as ssm from 'aws-cdk-lib/aws-ssm'; import * as cdk from 'aws-cdk-lib/core'; import * as integ from '@aws-cdk/integ-tests-alpha'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'value-from-lookup-with-defaults', { env: { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/apigateway/integ.call-rest-api-cross-region.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/apigateway/integ.call-rest-api-cross-region.ts index c85dcdcbf291e..de5af9e0aa760 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/apigateway/integ.call-rest-api-cross-region.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/apigateway/integ.call-rest-api-cross-region.ts @@ -15,6 +15,7 @@ import { STANDARD_NODEJS_RUNTIME } from '../../../config'; */ const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/apigateway/integ.call-rest-api.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/apigateway/integ.call-rest-api.ts index 7e0d119313bbc..8735b353f978e 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/apigateway/integ.call-rest-api.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/apigateway/integ.call-rest-api.ts @@ -15,6 +15,7 @@ import { STANDARD_NODEJS_RUNTIME } from '../../../config'; */ const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/athena/integ.get-query-execution.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/athena/integ.get-query-execution.ts index 152fb3b3bab35..8dfb4120b54ae 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/athena/integ.get-query-execution.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/athena/integ.get-query-execution.ts @@ -8,7 +8,7 @@ import { AthenaStartQueryExecution, AthenaGetQueryExecution, EncryptionOption } * * aws stepfunctions describe-execution --execution-arn : should return status as SUCCEEDED and a query-execution-id * * aws athena get-query-execution --query-execution-id : should return QueryExecution */ -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-stepfunctions-tasks-athena-get-query-execution-integ'); const startQueryExecutionJob = new AthenaStartQueryExecution(stack, 'Start Athena Query', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/athena/integ.get-query-results.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/athena/integ.get-query-results.ts index 058eab1625de3..96297ce0165a9 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/athena/integ.get-query-results.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/athena/integ.get-query-results.ts @@ -8,7 +8,7 @@ import { AthenaStartQueryExecution, AthenaGetQueryResults, EncryptionOption } fr * * aws stepfunctions describe-execution --execution-arn : should return status as SUCCEEDED and a query-execution-id * * aws athena get-query-results --query-execution-id : should return query results */ -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-stepfunctions-tasks-athena-get-query-results-integ'); const query = sfn.JsonPath.stringAt('$.queryString'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/athena/integ.start-query-execution-result-reuse-configuration.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/athena/integ.start-query-execution-result-reuse-configuration.ts index 892ee279b4cba..f38859e3817e1 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/athena/integ.start-query-execution-result-reuse-configuration.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/athena/integ.start-query-execution-result-reuse-configuration.ts @@ -4,7 +4,7 @@ import { ExpectedResult, IntegTest } from '@aws-cdk/integ-tests-alpha'; import { AthenaStartQueryExecution, EncryptionOption } from 'aws-cdk-lib/aws-stepfunctions-tasks'; import { Bucket } from 'aws-cdk-lib/aws-s3'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-stepfunctions-tasks-athena-start-query-execution-result-reuse-configuration-integ'); const resultBucket = new Bucket(stack, 'Bucket', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/athena/integ.start-query-execution.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/athena/integ.start-query-execution.ts index a5a22501b2a8c..a5150afad3053 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/athena/integ.start-query-execution.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/athena/integ.start-query-execution.ts @@ -8,7 +8,7 @@ import { AthenaStartQueryExecution, EncryptionOption } from 'aws-cdk-lib/aws-ste * * aws stepfunctions describe-execution --execution-arn : should return status as SUCCEEDED and a query-execution-id * * aws athena get-query-execution --query-execution-id : should return QueryExecution */ -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-stepfunctions-tasks-athena-start-query-execution-integ'); const startQueryExecutionJob = new AthenaStartQueryExecution(stack, 'Start Athena Query', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/athena/integ.stop-query-execution.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/athena/integ.stop-query-execution.ts index ea150e53b978a..3a26cd081cd21 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/athena/integ.stop-query-execution.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/athena/integ.stop-query-execution.ts @@ -8,7 +8,7 @@ import { AthenaStartQueryExecution, AthenaStopQueryExecution, EncryptionOption } * * aws stepfunctions describe-execution --execution-arn : should return status as SUCCEEDED and a query-execution-id * * aws athena get-query-execution --query-execution-id : should return QueryExecution */ -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-stepfunctions-tasks-athena-stop-query-execution-integ'); const query = sfn.JsonPath.stringAt('$.queryString'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/aws-sdk/integ.call-aws-service-efs.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/aws-sdk/integ.call-aws-service-efs.ts index 29803fb85dfed..2f1fe265030ea 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/aws-sdk/integ.call-aws-service-efs.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/aws-sdk/integ.call-aws-service-efs.ts @@ -3,7 +3,7 @@ import * as cdk from 'aws-cdk-lib'; import { CallAwsService } from 'aws-cdk-lib/aws-stepfunctions-tasks'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-stepfunctions-tasks-call-aws-service-efs-integ'); const task = new CallAwsService(stack, 'TagEfsAccessPoint', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/aws-sdk/integ.call-aws-service-elasticloadbalancingv2.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/aws-sdk/integ.call-aws-service-elasticloadbalancingv2.ts index e917b71721652..8340078c4e0db 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/aws-sdk/integ.call-aws-service-elasticloadbalancingv2.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/aws-sdk/integ.call-aws-service-elasticloadbalancingv2.ts @@ -3,7 +3,7 @@ import * as cdk from 'aws-cdk-lib'; import { IntegTest, ExpectedResult } from '@aws-cdk/integ-tests-alpha'; import { CallAwsService } from 'aws-cdk-lib/aws-stepfunctions-tasks'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-stepfunctions-tasks-call-aws-service-elasticloadbalancingv2-integ'); const task = new CallAwsService(stack, 'DescribeELBV2TargetGroups', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/aws-sdk/integ.call-aws-service-jsonata.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/aws-sdk/integ.call-aws-service-jsonata.ts index 50baecdf17349..6d034ec00cf91 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/aws-sdk/integ.call-aws-service-jsonata.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/aws-sdk/integ.call-aws-service-jsonata.ts @@ -67,7 +67,7 @@ class TestStack extends cdk.Stack { } } -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new TestStack(app, 'aws-stepfunctions-aws-sdk-jsonata-integ'); const testCase = new IntegTest(app, 'AwsSdkJsonataTest', { testCases: [stack], diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/aws-sdk/integ.call-aws-service-logs.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/aws-sdk/integ.call-aws-service-logs.ts index 69402a1d3fece..57164807a3ed0 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/aws-sdk/integ.call-aws-service-logs.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/aws-sdk/integ.call-aws-service-logs.ts @@ -4,7 +4,7 @@ import { IntegTest, ExpectedResult } from '@aws-cdk/integ-tests-alpha'; import { CallAwsService } from 'aws-cdk-lib/aws-stepfunctions-tasks'; import { LogGroup } from 'aws-cdk-lib/aws-logs'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-stepfunctions-tasks-call-aws-service-logs-integ'); const logGroup = new LogGroup(stack, 'LogGroup'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/aws-sdk/integ.call-aws-service-mediapackagevod.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/aws-sdk/integ.call-aws-service-mediapackagevod.ts index f42e8574443db..905edd98e2250 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/aws-sdk/integ.call-aws-service-mediapackagevod.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/aws-sdk/integ.call-aws-service-mediapackagevod.ts @@ -3,7 +3,7 @@ import * as cdk from 'aws-cdk-lib'; import { IntegTest, ExpectedResult } from '@aws-cdk/integ-tests-alpha'; import { CallAwsService } from 'aws-cdk-lib/aws-stepfunctions-tasks'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-stepfunctions-tasks-call-aws-service-mediapackagevod-integ'); const task = new CallAwsService(stack, 'ListMediaPackageVoDPackagingGroups', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/aws-sdk/integ.call-aws-service-mwaa.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/aws-sdk/integ.call-aws-service-mwaa.ts index 76b7b10e9f04f..80cf152a322a7 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/aws-sdk/integ.call-aws-service-mwaa.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/aws-sdk/integ.call-aws-service-mwaa.ts @@ -3,7 +3,7 @@ import * as cdk from 'aws-cdk-lib'; import { IntegTest, ExpectedResult } from '@aws-cdk/integ-tests-alpha'; import { CallAwsService } from 'aws-cdk-lib/aws-stepfunctions-tasks'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-stepfunctions-tasks-call-aws-service-mwaa-integ'); const task = new CallAwsService(stack, 'ListMWAAEnvironments', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/aws-sdk/integ.call-aws-service-sfn.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/aws-sdk/integ.call-aws-service-sfn.ts index 985d886a6af34..7aa2d4d528ef9 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/aws-sdk/integ.call-aws-service-sfn.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/aws-sdk/integ.call-aws-service-sfn.ts @@ -3,7 +3,7 @@ import * as cdk from 'aws-cdk-lib'; import { IntegTest, ExpectedResult } from '@aws-cdk/integ-tests-alpha'; import { CallAwsService, StepFunctionsStartExecution } from 'aws-cdk-lib/aws-stepfunctions-tasks'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-stepfunctions-tasks-call-aws-service-sfn-integ'); const task = new CallAwsService(stack, 'SendTaskSuccess', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/aws-sdk/integ.call-aws-service.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/aws-sdk/integ.call-aws-service.ts index 93eba96965779..cf26c6944fe03 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/aws-sdk/integ.call-aws-service.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/aws-sdk/integ.call-aws-service.ts @@ -60,6 +60,6 @@ class TestStack extends cdk.Stack { } } -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); new TestStack(app, 'aws-stepfunctions-aws-sdk-integ'); app.synth(); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/batch/integ.run-batch-job.js b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/batch/integ.run-batch-job.js index 0d66ad2985d8c..771b991569559 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/batch/integ.run-batch-job.js +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/batch/integ.run-batch-job.js @@ -67,6 +67,6 @@ class RunBatchStack extends cdk.Stack { }); } } -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); new RunBatchStack(app, 'aws-stepfunctions-integ'); app.synth(); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/batch/integ.run-batch-job.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/batch/integ.run-batch-job.ts index 52217132ad89b..7c429045c0f3e 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/batch/integ.run-batch-job.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/batch/integ.run-batch-job.ts @@ -77,6 +77,6 @@ class RunBatchStack extends cdk.Stack { } } -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); new RunBatchStack(app, 'aws-stepfunctions-integ'); app.synth(); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/batch/integ.submit-job-queue-jsonpath.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/batch/integ.submit-job-queue-jsonpath.ts index 3c621cd11dc11..d9111b974e766 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/batch/integ.submit-job-queue-jsonpath.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/batch/integ.submit-job-queue-jsonpath.ts @@ -7,7 +7,7 @@ import * as ecs from 'aws-cdk-lib/aws-ecs'; import * as sfn from 'aws-cdk-lib/aws-stepfunctions'; import { BatchSubmitJob } from 'aws-cdk-lib/aws-stepfunctions-tasks'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'cdk-submit-job-queue-json-path'); const vpc = new ec2.Vpc(stack, 'vpc', { restrictDefaultSecurityGroup: false }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/batch/integ.submit-job.js b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/batch/integ.submit-job.js index 66764be195529..650c867700321 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/batch/integ.submit-job.js +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/batch/integ.submit-job.js @@ -68,6 +68,6 @@ class RunBatchStack extends cdk.Stack { }); } } -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); new RunBatchStack(app, 'aws-stepfunctions-integ'); app.synth(); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/batch/integ.submit-job.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/batch/integ.submit-job.ts index 0372dbd1cbf22..23791d17c0195 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/batch/integ.submit-job.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/batch/integ.submit-job.ts @@ -78,6 +78,6 @@ class RunBatchStack extends cdk.Stack { } } -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); new RunBatchStack(app, 'aws-stepfunctions-integ'); app.synth(); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/bedrock/integ.create-model-customization-job.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/bedrock/integ.create-model-customization-job.ts index bda63d2929328..c6c832e352a38 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/bedrock/integ.create-model-customization-job.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/bedrock/integ.create-model-customization-job.ts @@ -7,7 +7,7 @@ import * as tasks from 'aws-cdk-lib/aws-stepfunctions-tasks'; import * as cdk from 'aws-cdk-lib'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-stepfunctions-tasks-bedrock-invoke-model-integ'); const vpc = new ec2.Vpc(stack, 'Vpc', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/bedrock/integ.invoke-model-guardrail-trace.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/bedrock/integ.invoke-model-guardrail-trace.ts index 0bd416fd484dd..376a18a843914 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/bedrock/integ.invoke-model-guardrail-trace.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/bedrock/integ.invoke-model-guardrail-trace.ts @@ -4,7 +4,7 @@ import * as cdk from 'aws-cdk-lib'; import { ExpectedResult, IntegTest } from '@aws-cdk/integ-tests-alpha'; import { BedrockInvokeModel, Guardrail } from 'aws-cdk-lib/aws-stepfunctions-tasks'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-stepfunctions-tasks-bedrock-invoke-model-guardrail-trace-integ'); const model = bedrock.FoundationModel.fromFoundationModelId(stack, 'Model', bedrock.FoundationModelIdentifier.AMAZON_TITAN_TEXT_G1_EXPRESS_V1); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/bedrock/integ.invoke-model.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/bedrock/integ.invoke-model.ts index 585c159a2fb58..0bff0477343b1 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/bedrock/integ.invoke-model.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/bedrock/integ.invoke-model.ts @@ -10,7 +10,7 @@ import { BedrockInvokeModel } from 'aws-cdk-lib/aws-stepfunctions-tasks'; * * aws stepfunctions describe-execution --execution-arn : should return status as SUCCEEDED * This integ test does not actually verify a Step Functions execution, as not all AWS accounts have Bedrock model access. */ -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-stepfunctions-tasks-bedrock-invoke-model-integ'); const model = bedrock.FoundationModel.fromFoundationModelId(stack, 'Model', bedrock.FoundationModelIdentifier.AMAZON_TITAN_TEXT_G1_EXPRESS_V1); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/codebuild/integ.start-build-batch.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/codebuild/integ.start-build-batch.ts index 9556b37f07af8..4cf257663d543 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/codebuild/integ.start-build-batch.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/codebuild/integ.start-build-batch.ts @@ -85,7 +85,7 @@ class TestStack extends cdk.Stack { } } -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new TestStack(app, 'StartBuildBatch'); new IntegTest(app, 'StartBuildBatchInteg', { testCases: [stack], diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/codebuild/integ.start-build.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/codebuild/integ.start-build.ts index bb339d9823458..e33e2d16e32b1 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/codebuild/integ.start-build.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/codebuild/integ.start-build.ts @@ -63,6 +63,6 @@ class StartBuildStack extends cdk.Stack { } } -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); new StartBuildStack(app, 'aws-stepfunctions-tasks-codebuild-start-build-integ'); app.synth(); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/databrew/integ.start-job-run.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/databrew/integ.start-job-run.ts index 8550e69ef8e3f..0d498d5d69062 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/databrew/integ.start-job-run.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/databrew/integ.start-job-run.ts @@ -119,6 +119,6 @@ class GlueDataBrewJobStack extends cdk.Stack { } } -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); new GlueDataBrewJobStack(app, 'aws-stepfunctions-tasks-databrew-start-job-run-integ'); app.synth(); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/dynamodb/integ.call-dynamodb.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/dynamodb/integ.call-dynamodb.ts index 627dc9b602f77..2be53c101b5a1 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/dynamodb/integ.call-dynamodb.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/dynamodb/integ.call-dynamodb.ts @@ -88,6 +88,6 @@ class CallDynamoDBStack extends cdk.Stack { } } -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); new CallDynamoDBStack(app, 'aws-stepfunctions-integ'); app.synth(); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/dynamodb/integ.stringset-after-parallel.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/dynamodb/integ.stringset-after-parallel.ts index 369e866a4bfb1..6e2d2543c6e45 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/dynamodb/integ.stringset-after-parallel.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/dynamodb/integ.stringset-after-parallel.ts @@ -4,7 +4,7 @@ import * as cdk from 'aws-cdk-lib'; import * as integ from '@aws-cdk/integ-tests-alpha'; import * as tasks from 'aws-cdk-lib/aws-stepfunctions-tasks'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'stringset-after-parallel'); const table = new ddb.Table(stack, 'Table', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/ecs/integ.ec2-run-task-capacity-provider.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/ecs/integ.ec2-run-task-capacity-provider.ts index 7f994aade784f..6bfe1a0db8654 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/ecs/integ.ec2-run-task-capacity-provider.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/ecs/integ.ec2-run-task-capacity-provider.ts @@ -8,7 +8,7 @@ import { Duration } from 'aws-cdk-lib'; import * as tasks from 'aws-cdk-lib/aws-stepfunctions-tasks'; import { IntegTest, ExpectedResult } from '@aws-cdk/integ-tests-alpha'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-sfn-tasks-ecs-ec2-run-task-capacity-provider'); const cluster = new ecs.Cluster(stack, 'Ec2Cluster'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/ecs/integ.ec2-run-task-ref-definition.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/ecs/integ.ec2-run-task-ref-definition.ts index b06c5a00319a1..48413719706e7 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/ecs/integ.ec2-run-task-ref-definition.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/ecs/integ.ec2-run-task-ref-definition.ts @@ -8,6 +8,7 @@ import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import { EC2_RESTRICT_DEFAULT_SECURITY_GROUP, STEPFUNCTIONS_TASKS_FIX_RUN_ECS_TASK_POLICY } from 'aws-cdk-lib/cx-api'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, '@aws-cdk/aws-lambda:createNewPoliciesWithAddToRolePolicy': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/ecs/integ.ec2-run-task.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/ecs/integ.ec2-run-task.ts index 0bb06e0202662..8910b920c5e1e 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/ecs/integ.ec2-run-task.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/ecs/integ.ec2-run-task.ts @@ -18,6 +18,7 @@ import { IntegTest } from '@aws-cdk/integ-tests-alpha'; * -- aws stepfunctions describe-execution --execution-arn returns a status of `Succeeded` */ const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, '@aws-cdk/aws-lambda:createNewPoliciesWithAddToRolePolicy': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/ecs/integ.ec2-task.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/ecs/integ.ec2-task.ts index 1f1562cd3cdb6..11af06820b111 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/ecs/integ.ec2-task.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/ecs/integ.ec2-task.ts @@ -18,6 +18,7 @@ import { IntegTest } from '@aws-cdk/integ-tests-alpha'; * -- aws stepfunctions describe-execution --execution-arn returns a status of `Succeeded` */ const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, '@aws-cdk/aws-lambda:createNewPoliciesWithAddToRolePolicy': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/ecs/integ.fargate-run-task-capacity-provider.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/ecs/integ.fargate-run-task-capacity-provider.ts index c953643b6742f..a3566e0a308f0 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/ecs/integ.fargate-run-task-capacity-provider.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/ecs/integ.fargate-run-task-capacity-provider.ts @@ -6,7 +6,7 @@ import { Duration } from 'aws-cdk-lib'; import * as tasks from 'aws-cdk-lib/aws-stepfunctions-tasks'; import { IntegTest, ExpectedResult } from '@aws-cdk/integ-tests-alpha'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-sfn-tasks-ecs-fargate-run-task-capacity-provider'); const cluster = new ecs.Cluster(stack, 'FargateCluster'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/ecs/integ.fargate-run-task.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/ecs/integ.fargate-run-task.ts index 1ef9e1dba808a..b4128508d810e 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/ecs/integ.fargate-run-task.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/ecs/integ.fargate-run-task.ts @@ -17,6 +17,7 @@ import { IntegTest } from '@aws-cdk/integ-tests-alpha'; * -- aws stepfunctions describe-execution --execution-arn returns a status of `Succeeded` */ const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:createNewPoliciesWithAddToRolePolicy': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/ecs/integ.fargate-task.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/ecs/integ.fargate-task.ts index b239dd39909cb..9e92d481871cd 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/ecs/integ.fargate-task.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/ecs/integ.fargate-task.ts @@ -16,7 +16,7 @@ import { IntegTest } from '@aws-cdk/integ-tests-alpha'; * -- aws stepfunctions start-execution --state-machine-arn provides execution arn * -- aws stepfunctions describe-execution --execution-arn returns a status of `Succeeded` */ -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-sfn-tasks-ecs-fargate-task'); stack.node.setContext(EC2_RESTRICT_DEFAULT_SECURITY_GROUP, false); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/eks/integ.call.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/eks/integ.call.ts index 3480891ae2e7d..9773835a3054c 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/eks/integ.call.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/eks/integ.call.ts @@ -20,6 +20,7 @@ import { EC2_RESTRICT_DEFAULT_SECURITY_GROUP } from 'aws-cdk-lib/cx-api'; */ const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, '@aws-cdk/aws-lambda:createNewPoliciesWithAddToRolePolicy': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/emr/integ.emr-create-cluster-add-step-runtime-role.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/emr/integ.emr-create-cluster-add-step-runtime-role.ts index ef9ce254fc70a..8773e1c807941 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/emr/integ.emr-create-cluster-add-step-runtime-role.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/emr/integ.emr-create-cluster-add-step-runtime-role.ts @@ -17,7 +17,7 @@ import { IntegTest } from '@aws-cdk/integ-tests-alpha'; * -- aws stepfunctions describe-execution --execution-arn returns a status of `Succeeded` */ -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'aws-cdk-emr-add-step-runtime-role'); const vpc = new ec2.Vpc(stack, 'Vpc', { restrictDefaultSecurityGroup: false }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/emr/integ.emr-create-cluster-with-auto-deletion-policy-idle-timeout.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/emr/integ.emr-create-cluster-with-auto-deletion-policy-idle-timeout.ts index 5bef7f2f10eb5..39a9aae3957be 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/emr/integ.emr-create-cluster-with-auto-deletion-policy-idle-timeout.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/emr/integ.emr-create-cluster-with-auto-deletion-policy-idle-timeout.ts @@ -4,8 +4,7 @@ import { ExpectedResult, IntegTest } from '@aws-cdk/integ-tests-alpha'; import { EmrCreateCluster } from 'aws-cdk-lib/aws-stepfunctions-tasks'; import { Vpc } from 'aws-cdk-lib/aws-ec2'; -const app = new App({ -}); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'aws-cdk-emr-create-cluster-auto-deletion-policy-idle-timeout'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/emr/integ.emr-create-cluster-with-ebs.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/emr/integ.emr-create-cluster-with-ebs.ts index 483052e63d31e..bebac72c52b56 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/emr/integ.emr-create-cluster-with-ebs.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/emr/integ.emr-create-cluster-with-ebs.ts @@ -4,7 +4,7 @@ import { ExpectedResult, IntegTest } from '@aws-cdk/integ-tests-alpha'; import { EmrCreateCluster } from 'aws-cdk-lib/aws-stepfunctions-tasks'; import { Vpc } from 'aws-cdk-lib/aws-ec2'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'emr-create-cluster-ebs'); const vpc = new Vpc(stack, 'Vpc', { restrictDefaultSecurityGroup: false }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/emr/integ.emr-create-cluster-with-on-demand-instance-fleet.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/emr/integ.emr-create-cluster-with-on-demand-instance-fleet.ts index 00bc71629ee66..b9280b65771f7 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/emr/integ.emr-create-cluster-with-on-demand-instance-fleet.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/emr/integ.emr-create-cluster-with-on-demand-instance-fleet.ts @@ -3,7 +3,7 @@ import { App, Stack } from 'aws-cdk-lib'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import { EmrCreateCluster } from 'aws-cdk-lib/aws-stepfunctions-tasks'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'aws-cdk-emr-create-cluster-with-on-demand-instance-fleet'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/emr/integ.emr-create-cluster-with-spot-instance-fleet.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/emr/integ.emr-create-cluster-with-spot-instance-fleet.ts index ecbdf872a134f..1997641c877d1 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/emr/integ.emr-create-cluster-with-spot-instance-fleet.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/emr/integ.emr-create-cluster-with-spot-instance-fleet.ts @@ -3,7 +3,7 @@ import { App, Duration, Stack } from 'aws-cdk-lib'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import { EmrCreateCluster } from 'aws-cdk-lib/aws-stepfunctions-tasks'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'aws-cdk-emr-create-cluster-with-spot-instance-fleet'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/emr/integ.emr-create-cluster-with-tags.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/emr/integ.emr-create-cluster-with-tags.ts index 12b80f4f889a3..2607147aeac4c 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/emr/integ.emr-create-cluster-with-tags.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/emr/integ.emr-create-cluster-with-tags.ts @@ -17,7 +17,7 @@ import { Vpc } from 'aws-cdk-lib/aws-ec2'; * * Be sure to terminate the EMR cluster after validation. */ -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'aws-cdk-emr-create-cluster-tags'); const vpc = new Vpc(stack, 'Vpc', { restrictDefaultSecurityGroup: false }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/emr/integ.emr-create-cluster-with-v1-policy.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/emr/integ.emr-create-cluster-with-v1-policy.ts index 4cf8721c029bf..f7fd6c3b0fea1 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/emr/integ.emr-create-cluster-with-v1-policy.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/emr/integ.emr-create-cluster-with-v1-policy.ts @@ -18,7 +18,7 @@ import { Vpc } from 'aws-cdk-lib/aws-ec2'; * Be sure to terminate the EMR cluster after validation. */ -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'aws-cdk-emr-create-cluster-v1-policy'); const vpc = new Vpc(stack, 'Vpc', { restrictDefaultSecurityGroup: false }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/emr/integ.emr-create-cluster-with-v2-policy.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/emr/integ.emr-create-cluster-with-v2-policy.ts index 116cef8e1773a..51003ff4c7356 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/emr/integ.emr-create-cluster-with-v2-policy.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/emr/integ.emr-create-cluster-with-v2-policy.ts @@ -22,7 +22,7 @@ import { Vpc } from 'aws-cdk-lib/aws-ec2'; const enableEmrServicePolicyV2 = { [ENABLE_EMR_SERVICE_POLICY_V2]: true }; const app = new App({ - context: enableEmrServicePolicyV2, + context: { enableEmrServicePolicyV2, '@aws-cdk/core:disableGitSource': true }, }); const stack = new Stack(app, 'aws-cdk-emr-create-cluster-v2-policy'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/emrcontainers/integ.job-submission-workflow.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/emrcontainers/integ.job-submission-workflow.ts index e4fba39a4ec0d..a37b8fb4a4bf3 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/emrcontainers/integ.job-submission-workflow.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/emrcontainers/integ.job-submission-workflow.ts @@ -23,6 +23,7 @@ import { EC2_RESTRICT_DEFAULT_SECURITY_GROUP } from 'aws-cdk-lib/cx-api'; */ const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, '@aws-cdk/aws-lambda:createNewPoliciesWithAddToRolePolicy': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/emrcontainers/integ.start-job-run.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/emrcontainers/integ.start-job-run.ts index c4d7f07a1bab0..c29d363b7dffc 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/emrcontainers/integ.start-job-run.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/emrcontainers/integ.start-job-run.ts @@ -19,6 +19,7 @@ import { EC2_RESTRICT_DEFAULT_SECURITY_GROUP } from 'aws-cdk-lib/cx-api'; */ const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, '@aws-cdk/aws-lambda:createNewPoliciesWithAddToRolePolicy': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/eventbridge-scheduler/integ.create-schedule.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/eventbridge-scheduler/integ.create-schedule.ts index d07055f8a82a5..bf2656fe87086 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/eventbridge-scheduler/integ.create-schedule.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/eventbridge-scheduler/integ.create-schedule.ts @@ -7,7 +7,7 @@ import * as cdk from 'aws-cdk-lib'; import { IntegTest, ExpectedResult } from '@aws-cdk/integ-tests-alpha'; import * as tasks from 'aws-cdk-lib/aws-stepfunctions-tasks'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'createScheduleInteg'); const kmsKey = new kms.Key(stack, 'Key', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/eventbridge/integ.put-events.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/eventbridge/integ.put-events.ts index 7eaf38cdf150b..567d445f24f65 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/eventbridge/integ.put-events.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/eventbridge/integ.put-events.ts @@ -9,7 +9,7 @@ import { EventBridgePutEvents } from 'aws-cdk-lib/aws-stepfunctions-tasks'; * * aws stepfunctions start-execution --state-machine-arn : should return execution arn * * aws stepfunctions describe-execution --execution-arn : should return status as SUCCEEDED */ -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-stepfunctions-tasks-eventbridge-put-events-integ'); const eventBus = new events.EventBus(stack, 'EventBus', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/glue/integ.glue-start-crawler.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/glue/integ.glue-start-crawler.ts index 63281a8adcaf9..99ce4f04b6770 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/glue/integ.glue-start-crawler.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/glue/integ.glue-start-crawler.ts @@ -56,7 +56,7 @@ class TestStack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new TestStack(app, 'aws-cdk-glue-crawler'); new integ.IntegTest(app, 'EcsDeploymentConfigTest', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/glue/integ.glue-task.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/glue/integ.glue-task.ts index b9761a986d8bb..b3c77a8dac400 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/glue/integ.glue-task.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/glue/integ.glue-task.ts @@ -15,7 +15,7 @@ import * as tasks from 'aws-cdk-lib/aws-stepfunctions-tasks'; * for AWS Glue, which as of 02/2020, is around 10-15 minutes. */ -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-stepfunctions-integ'); const codeAsset = new assets.Asset(stack, 'Glue Job Script', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/glue/integ.start-job-run-dynamic-worker-type.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/glue/integ.start-job-run-dynamic-worker-type.ts index 07428239a3605..2b28abacc3b8e 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/glue/integ.start-job-run-dynamic-worker-type.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/glue/integ.start-job-run-dynamic-worker-type.ts @@ -7,7 +7,7 @@ import * as cdk from 'aws-cdk-lib'; import { GlueStartJobRun, WorkerTypeV2 } from 'aws-cdk-lib/aws-stepfunctions-tasks'; import { ExpectedResult, IntegTest } from '@aws-cdk/integ-tests-alpha'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); class GlueStartJobRunWorkerStack extends cdk.Stack { readonly stateMachine: sfn.StateMachine; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/glue/integ.start-job-run-execution-class.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/glue/integ.start-job-run-execution-class.ts index d59b4446f9840..16a658e404867 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/glue/integ.start-job-run-execution-class.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/glue/integ.start-job-run-execution-class.ts @@ -7,7 +7,7 @@ import * as cdk from 'aws-cdk-lib'; import { ExecutionClass, GlueStartJobRun } from 'aws-cdk-lib/aws-stepfunctions-tasks'; import { ExpectedResult, IntegTest } from '@aws-cdk/integ-tests-alpha'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); class GlueStartJobRunExecutionClassStack extends cdk.Stack { readonly stateMachine: sfn.StateMachine; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/glue/integ.start-job-run-worker.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/glue/integ.start-job-run-worker.ts index acc9cd89b7dfc..df183e3a63794 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/glue/integ.start-job-run-worker.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/glue/integ.start-job-run-worker.ts @@ -7,7 +7,7 @@ import * as cdk from 'aws-cdk-lib'; import { GlueStartJobRun, WorkerType } from 'aws-cdk-lib/aws-stepfunctions-tasks'; import { ExpectedResult, IntegTest } from '@aws-cdk/integ-tests-alpha'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); class GlueStartJobRunWorkerStack extends cdk.Stack { readonly stateMachine: sfn.StateMachine; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/glue/integ.start-job-run.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/glue/integ.start-job-run.ts index e045f39abe577..81032ab089250 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/glue/integ.start-job-run.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/glue/integ.start-job-run.ts @@ -16,7 +16,7 @@ import { IntegTest } from '@aws-cdk/integ-tests-alpha'; * for AWS Glue, which as of 02/2020, is around 10-15 minutes. */ -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-stepfunctions-integ'); const codeAsset = new assets.Asset(stack, 'Glue Job Script', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/http/integ.invoke-json-path.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/http/integ.invoke-json-path.ts index 8e72e3db5d050..48d15c98b3404 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/http/integ.invoke-json-path.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/http/integ.invoke-json-path.ts @@ -19,7 +19,7 @@ import { password, username } from './my-lambda-handler'; * * aws stepfunctions start-execution --state-machine-arn : should return execution arn * * aws stepfunctions describe-execution --execution-arn : should return status as SUCCEEDED */ -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-stepfunctions-tasks-http-invoke-json-path-integ'); const authorizerHandler = new lambda.NodejsFunction(stack, 'AuthorizerHandler', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/http/integ.invoke-jsonata.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/http/integ.invoke-jsonata.ts index 11980a9c90681..abefba89f8358 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/http/integ.invoke-jsonata.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/http/integ.invoke-jsonata.ts @@ -18,6 +18,7 @@ import { password, username } from './my-lambda-handler'; * * aws stepfunctions describe-execution --execution-arn : should return status as SUCCEEDED */ const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/http/integ.invoke.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/http/integ.invoke.ts index 1c4fd1fb53018..f39a18447831b 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/http/integ.invoke.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/http/integ.invoke.ts @@ -18,6 +18,7 @@ import { password, username } from './my-lambda-handler'; * * aws stepfunctions describe-execution --execution-arn : should return status as SUCCEEDED */ const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/integ.evaluate-expression-arm64.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/integ.evaluate-expression-arm64.ts index 51223a29328a2..66a4991efdb32 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/integ.evaluate-expression-arm64.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/integ.evaluate-expression-arm64.ts @@ -5,7 +5,7 @@ import * as lambda from 'aws-cdk-lib/aws-lambda'; import * as cdk from 'aws-cdk-lib'; import * as tasks from 'aws-cdk-lib/aws-stepfunctions-tasks'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'aws-cdk-sfn-evaluate-expression-arm64-integ'); const evaluateExpression = new tasks.EvaluateExpression(stack, 'EvaluateExpression', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/integ.evaluate-expression-default-runtime.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/integ.evaluate-expression-default-runtime.ts index 804ce1b541e94..7837e6671676e 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/integ.evaluate-expression-default-runtime.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/integ.evaluate-expression-default-runtime.ts @@ -50,6 +50,7 @@ class TestStack extends Stack { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/integ.evaluate-expression-default.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/integ.evaluate-expression-default.ts index 16a2689ec78e9..152f0e58ad66f 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/integ.evaluate-expression-default.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/integ.evaluate-expression-default.ts @@ -4,7 +4,7 @@ import * as sfn from 'aws-cdk-lib/aws-stepfunctions'; import * as cdk from 'aws-cdk-lib'; import * as tasks from 'aws-cdk-lib/aws-stepfunctions-tasks'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'aws-cdk-sfn-evaluate-expression-default-integ'); const evaluateExpression = new tasks.EvaluateExpression(stack, 'EvaluateExpression', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/integ.evaluate-expression-mixed-arch.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/integ.evaluate-expression-mixed-arch.ts index 15c0df55e59a1..b5a6086cf69c7 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/integ.evaluate-expression-mixed-arch.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/integ.evaluate-expression-mixed-arch.ts @@ -4,7 +4,7 @@ import * as cdk from 'aws-cdk-lib'; import * as integ from '@aws-cdk/integ-tests-alpha'; import * as tasks from 'aws-cdk-lib/aws-stepfunctions-tasks'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-cdk-sfn-evaluate-expression-mixed-arch-integ'); const evalTaskArm = new tasks.EvaluateExpression(stack, 'EvalExpressionArm', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/integ.evaluate-expression-nodejs22.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/integ.evaluate-expression-nodejs22.ts index 52cc777611273..a210975acbec5 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/integ.evaluate-expression-nodejs22.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/integ.evaluate-expression-nodejs22.ts @@ -21,7 +21,7 @@ class TestStack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); new integ.IntegTest(app, 'EvaluateExpressionNodejs22', { testCases: [new TestStack(app, 'evaluate-expression-nodejs22')], diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/integ.evaluate-expression-x86.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/integ.evaluate-expression-x86.ts index dddab531b830a..1c6b775196c51 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/integ.evaluate-expression-x86.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/integ.evaluate-expression-x86.ts @@ -5,7 +5,7 @@ import * as lambda from 'aws-cdk-lib/aws-lambda'; import * as cdk from 'aws-cdk-lib'; import * as tasks from 'aws-cdk-lib/aws-stepfunctions-tasks'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'aws-cdk-sfn-evaluate-expression-x86-integ'); const evaluateExpression = new tasks.EvaluateExpression(stack, 'EvaluateExpression', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/integ.evaluate-expression.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/integ.evaluate-expression.ts index 8d735d87f46ec..0c78f3443b7f9 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/integ.evaluate-expression.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/integ.evaluate-expression.ts @@ -53,6 +53,7 @@ class TestStack extends Stack { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/integ.job-poller.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/integ.job-poller.ts index 2c68bf79576e9..f5c5e44f56aec 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/integ.job-poller.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/integ.job-poller.ts @@ -45,6 +45,6 @@ class JobPollerStack extends cdk.Stack { } } -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); new JobPollerStack(app, 'aws-stepfunctions-integ'); app.synth(); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/integ.start-execution.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/integ.start-execution.ts index eda79b9172ce1..528e79d6b4241 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/integ.start-execution.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/integ.start-execution.ts @@ -35,7 +35,7 @@ class TestStack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); new TestStack(app, 'integ-sfn-start-execution'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/lambda/integ.call-aws-service-cross-region-lambda.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/lambda/integ.call-aws-service-cross-region-lambda.ts index d1e6ed9bd3e6b..5868e3193b69b 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/lambda/integ.call-aws-service-cross-region-lambda.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/lambda/integ.call-aws-service-cross-region-lambda.ts @@ -56,6 +56,7 @@ class TestStack extends cdk.Stack { } const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, '@aws-cdk/aws-lambda:createNewPoliciesWithAddToRolePolicy': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/lambda/integ.call-aws-service-cross-region-task-token.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/lambda/integ.call-aws-service-cross-region-task-token.ts index 5042ef5ea58cc..61b376eee78ed 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/lambda/integ.call-aws-service-cross-region-task-token.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/lambda/integ.call-aws-service-cross-region-task-token.ts @@ -43,6 +43,7 @@ class TestStack extends cdk.Stack { } const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, '@aws-cdk/aws-lambda:createNewPoliciesWithAddToRolePolicy': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/lambda/integ.call-aws-service-cross-region.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/lambda/integ.call-aws-service-cross-region.ts index b05f2a14a204a..e2e8ef417773a 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/lambda/integ.call-aws-service-cross-region.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/lambda/integ.call-aws-service-cross-region.ts @@ -114,6 +114,7 @@ class TestStack extends cdk.Stack { } const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, '@aws-cdk/aws-lambda:createNewPoliciesWithAddToRolePolicy': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/lambda/integ.invoke-function.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/lambda/integ.invoke-function.ts index a3ff5516ef57c..72517b45a47e3 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/lambda/integ.invoke-function.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/lambda/integ.invoke-function.ts @@ -5,6 +5,7 @@ import * as cdk from 'aws-cdk-lib'; import * as tasks from 'aws-cdk-lib/aws-stepfunctions-tasks'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/lambda/integ.invoke-jsonata.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/lambda/integ.invoke-jsonata.ts index 47c08fab9b681..de4653f3d33c5 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/lambda/integ.invoke-jsonata.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/lambda/integ.invoke-jsonata.ts @@ -18,6 +18,7 @@ import { STANDARD_NODEJS_RUNTIME } from '../../../config'; * -- aws stepfunctions describe-execution --execution-arn returns a status of `Succeeded` */ const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/lambda/integ.invoke.payload.only.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/lambda/integ.invoke.payload.only.ts index 0f88505113f45..a8ed76cc8b347 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/lambda/integ.invoke.payload.only.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/lambda/integ.invoke.payload.only.ts @@ -17,6 +17,7 @@ import { STANDARD_NODEJS_RUNTIME } from '../../../config'; * -- aws stepfunctions describe-execution --execution-arn returns a status of `Succeeded` */ const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/lambda/integ.invoke.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/lambda/integ.invoke.ts index ac8c7273f02cc..ba9b6ce73abe7 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/lambda/integ.invoke.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/lambda/integ.invoke.ts @@ -18,6 +18,7 @@ import { STANDARD_NODEJS_RUNTIME } from '../../../config'; * -- aws stepfunctions describe-execution --execution-arn returns a status of `Succeeded` */ const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/lambda/integ.run-lambda.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/lambda/integ.run-lambda.ts index 9887f04781f3f..851e84fb29261 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/lambda/integ.run-lambda.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/lambda/integ.run-lambda.ts @@ -13,6 +13,7 @@ import { STANDARD_NODEJS_RUNTIME } from '../../../config'; * -- aws stepfunctions describe-execution --execution-arn returns a status of `Succeeded` */ const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/mediaconvert/test/integ.create-job.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/mediaconvert/test/integ.create-job.ts index ab5a94743c0a6..42190919175d6 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/mediaconvert/test/integ.create-job.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/mediaconvert/test/integ.create-job.ts @@ -25,7 +25,7 @@ import { IntegTest } from '@aws-cdk/integ-tests-alpha/lib'; * -- aws mediaconvert get-job --id * */ -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'aws-cdk-mediaconvert-create-job-test-stack'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/sagemaker/integ.call-sagemaker.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/sagemaker/integ.call-sagemaker.ts index dd4a40cb35893..72b2847c807f0 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/sagemaker/integ.call-sagemaker.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/sagemaker/integ.call-sagemaker.ts @@ -115,7 +115,7 @@ class CallSageMakerStack extends cdk.Stack { } } -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); new CallSageMakerStack(app, 'aws-stepfunctions-integ-sagemaker'); app.synth(); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/sagemaker/integ.create-training-job-image.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/sagemaker/integ.create-training-job-image.ts index 940a5ca6541da..63040a55fd39f 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/sagemaker/integ.create-training-job-image.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/sagemaker/integ.create-training-job-image.ts @@ -8,6 +8,7 @@ import { BucketDeployment, Source } from 'aws-cdk-lib/aws-s3-deployment'; import * as path from 'path'; const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/sagemaker/integ.create-training-job.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/sagemaker/integ.create-training-job.ts index 827ace050ffd1..8cd1acef1fd6d 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/sagemaker/integ.create-training-job.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/sagemaker/integ.create-training-job.ts @@ -20,7 +20,7 @@ import { S3Location, SageMakerCreateTrainingJob, InputMode } from 'aws-cdk-lib/a * -- aws stepfunctions start-execution --state-machine-arn provides execution arn * -- aws stepfunctions describe-execution --execution-arn returns a status of `Succeeded` */ -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'integ-stepfunctions-sagemaker'); const encryptionKey = new Key(stack, 'EncryptionKey', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/sagemaker/integ.create-transform-job.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/sagemaker/integ.create-transform-job.ts index ad8facd39ffa0..f286f3119aa76 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/sagemaker/integ.create-transform-job.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/sagemaker/integ.create-transform-job.ts @@ -36,7 +36,7 @@ class StepFunctionsTaskCreateTransformJobIntegStack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new StepFunctionsTaskCreateTransformJobIntegStack(app, 'aws-cdk-step-functions-task-create-transform-job-integ'); new integ.IntegTest(app, 'SqsTest', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/sns/integ.publish.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/sns/integ.publish.ts index 35438fbe1aa22..288f9e3f41db8 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/sns/integ.publish.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/sns/integ.publish.ts @@ -19,7 +19,7 @@ import { SnsPublish } from 'aws-cdk-lib/aws-stepfunctions-tasks'; * -- aws stepfunctions describe-execution --execution-arn returns a status of `Succeeded` * -- aws sqs receive-message --queue-url has a message of 'sending message over' */ -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-stepfunctions-tasks-sns-publish-integ'); const topic = new sns.Topic(stack, 'cool-topic'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/sqs/integ.send-message-encrypted.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/sqs/integ.send-message-encrypted.ts index 7996016c28830..9fd57096fbd91 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/sqs/integ.send-message-encrypted.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/sqs/integ.send-message-encrypted.ts @@ -18,7 +18,7 @@ import { SqsSendMessage } from 'aws-cdk-lib/aws-stepfunctions-tasks'; * -- aws stepfunctions describe-execution --execution-arn returns a status of `Succeeded` * -- aws sqs receive-message --queue-url has a message of 'sending message over' */ -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-stepfunctions-tasks-sqs-send-message-integ'); const queue = new sqs.Queue(stack, 'show-me-the-messages', { encryption: sqs.QueueEncryption.KMS, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/sqs/integ.send-message.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/sqs/integ.send-message.ts index a2e16d15044cc..dfe3972ecbb35 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/sqs/integ.send-message.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/sqs/integ.send-message.ts @@ -18,7 +18,7 @@ import { SqsSendMessage } from 'aws-cdk-lib/aws-stepfunctions-tasks'; * -- aws stepfunctions describe-execution --execution-arn returns a status of `Succeeded` * -- aws sqs receive-message --queue-url has a message of 'sending message over' */ -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-stepfunctions-tasks-sqs-send-message-integ'); const queue = new sqs.Queue(stack, 'show-me-the-messages'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/stepfunctions/integ.invoke-activity.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/stepfunctions/integ.invoke-activity.ts index 9e8bec9090e04..139fbe2d95771 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/stepfunctions/integ.invoke-activity.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/stepfunctions/integ.invoke-activity.ts @@ -72,6 +72,6 @@ class InvokeActivityStack extends cdk.Stack { } } -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); new InvokeActivityStack(app, 'aws-stepfunctions-integ'); app.synth(); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/stepfunctions/integ.start-execution-jsonata.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/stepfunctions/integ.start-execution-jsonata.ts index 35d12fccfb7e2..f446bd7189f11 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/stepfunctions/integ.start-execution-jsonata.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/stepfunctions/integ.start-execution-jsonata.ts @@ -3,7 +3,7 @@ import { App, Stack } from 'aws-cdk-lib'; import { StepFunctionsStartExecution } from 'aws-cdk-lib/aws-stepfunctions-tasks'; import * as integ from '@aws-cdk/integ-tests-alpha'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'integ-sfn-start-execution-jsonata'); const child = new sfn.StateMachine(stack, 'Child', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/stepfunctions/integ.start-execution.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/stepfunctions/integ.start-execution.ts index e7ecf15aa3811..a1b7d87ae4513 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/stepfunctions/integ.start-execution.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/stepfunctions/integ.start-execution.ts @@ -34,7 +34,7 @@ class TestStack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); new TestStack(app, 'integ-sfn-start-execution'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.custom-state.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.custom-state.ts index 544eccc344621..2e01e54d0ae72 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.custom-state.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.custom-state.ts @@ -6,7 +6,7 @@ import * as sfn from 'aws-cdk-lib/aws-stepfunctions'; * * -- aws stepfunctions describe-state-machine --state-machine-arn has a status of `ACTIVE` */ -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-stepfunctions-custom-state-integ'); const finalStatus = new sfn.Pass(stack, 'final step'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.distributed-map-csv-delimiter-with-result-writer-v2.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.distributed-map-csv-delimiter-with-result-writer-v2.ts index b9a0b9f9ed8d3..e4f2a849a39fc 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.distributed-map-csv-delimiter-with-result-writer-v2.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.distributed-map-csv-delimiter-with-result-writer-v2.ts @@ -40,6 +40,7 @@ class DistributedMapStack extends cdk.Stack { const app = new cdk.App({ context: { + '@aws-cdk/core:disableGitSource': true, [STEPFUNCTIONS_USE_DISTRIBUTED_MAP_RESULT_WRITER_V2]: true, }, }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.distributed-map-csv-delimiter.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.distributed-map-csv-delimiter.ts index b238fd90a87fd..a5404404f1f38 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.distributed-map-csv-delimiter.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.distributed-map-csv-delimiter.ts @@ -37,7 +37,7 @@ class DistributedMapStack extends cdk.Stack { } } -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new DistributedMapStack(app, 'aws-stepfunctions-csv-delimiter-integ'); const testCase = new IntegTest(app, 'DistributedMapCsvDelimiter', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.distributed-map-execution-type.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.distributed-map-execution-type.ts index 58503268d9bbb..ca4853a82e87d 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.distributed-map-execution-type.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.distributed-map-execution-type.ts @@ -22,7 +22,7 @@ class DistributedMapStack extends cdk.Stack { } } -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new DistributedMapStack(app, 'aws-stepfunctions-map-integ-execution-type'); new IntegTest(app, 'DistributedMap', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.distributed-map-parallel.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.distributed-map-parallel.ts index e0f126a49bcb5..6e5bf492c3911 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.distributed-map-parallel.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.distributed-map-parallel.ts @@ -72,7 +72,7 @@ function setupAssertions(testCaseStack: DistributedMapParallelStack, assertions: .next(expectSucceededExecution); } -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const parallelStack = new DistributedMapParallelStack(app, 'DistributedMapParallelStack'); const testCase = new integ.IntegTest(app, 'DistributedMapParallel', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.distributed-map-redrive.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.distributed-map-redrive.ts index aa7e36bccf660..d7d58efefd648 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.distributed-map-redrive.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.distributed-map-redrive.ts @@ -115,7 +115,7 @@ function setupAssertions(testCaseStack: DistributedMapRedriveStack, assertions: .next(expectRedrivenExecution); } -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const unlabeledDistributedMapStack = new DistributedMapRedriveStack(app, 'UnlabeledDistributedMapRedrive'); const labeledDistributedMapStack = new DistributedMapRedriveStack(app, 'LabeledDistributedMapRedrive', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.distributed-map-with-result-writer-v2-having-writer-config.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.distributed-map-with-result-writer-v2-having-writer-config.ts index c165c710ee3fd..db70bc5821a33 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.distributed-map-with-result-writer-v2-having-writer-config.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.distributed-map-with-result-writer-v2-having-writer-config.ts @@ -45,6 +45,7 @@ class DistributedMapStack extends cdk.Stack { const app = new cdk.App({ context: { + '@aws-cdk/core:disableGitSource': true, [STEPFUNCTIONS_USE_DISTRIBUTED_MAP_RESULT_WRITER_V2]: true, }, }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.distributed-map-with-result-writer-v2.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.distributed-map-with-result-writer-v2.ts index 7cb50218bb244..585a39ebc6009 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.distributed-map-with-result-writer-v2.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.distributed-map-with-result-writer-v2.ts @@ -39,6 +39,7 @@ class DistributedMapStack extends cdk.Stack { const app = new cdk.App({ context: { + '@aws-cdk/core:disableGitSource': true, [STEPFUNCTIONS_USE_DISTRIBUTED_MAP_RESULT_WRITER_V2]: true, }, }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.distributed-map.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.distributed-map.ts index 7f7a33da53d8d..8e0a044662d0b 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.distributed-map.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.distributed-map.ts @@ -36,7 +36,7 @@ class DistributedMapStack extends cdk.Stack { } } -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new DistributedMapStack(app, 'aws-stepfunctions-map-integ'); const testCase = new IntegTest(app, 'DistributedMap', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.distribution-map-result-writer-bucket-jsonpath.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.distribution-map-result-writer-bucket-jsonpath.ts index 3c22b8d78f517..82d45085f674c 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.distribution-map-result-writer-bucket-jsonpath.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.distribution-map-result-writer-bucket-jsonpath.ts @@ -8,6 +8,7 @@ const CSV_KEY = 'my-key.csv'; const app = new App({ context: { + '@aws-cdk/core:disableGitSource': true, [STEPFUNCTIONS_USE_DISTRIBUTED_MAP_RESULT_WRITER_V2]: true, }, }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.distribution-map-with-result-writer-jsonata.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.distribution-map-with-result-writer-jsonata.ts index 38d30fdee59bf..c46d221b2ad5e 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.distribution-map-with-result-writer-jsonata.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.distribution-map-with-result-writer-jsonata.ts @@ -41,7 +41,7 @@ class DistributedMapStack extends cdk.Stack { } } -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new DistributedMapStack(app, 'aws-stepfunctions-map-with-result-writer'); const testCase = new IntegTest(app, 'DistributedMap-JSONATA', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.distribution-map-with-result-writer-v2-jsonata.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.distribution-map-with-result-writer-v2-jsonata.ts index 86adb12b02d82..6d867d2b5b85a 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.distribution-map-with-result-writer-v2-jsonata.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.distribution-map-with-result-writer-v2-jsonata.ts @@ -44,6 +44,7 @@ class DistributedMapStack extends cdk.Stack { const app = new cdk.App({ context: { + '@aws-cdk/core:disableGitSource': true, [STEPFUNCTIONS_USE_DISTRIBUTED_MAP_RESULT_WRITER_V2]: true, }, }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.intrinsics.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.intrinsics.ts index 7d8d94566f622..a3458ca895dc5 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.intrinsics.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.intrinsics.ts @@ -2,7 +2,7 @@ import * as cdk from 'aws-cdk-lib'; import { IntegTest, ExpectedResult } from '@aws-cdk/integ-tests-alpha'; import { JsonPath, Pass, StateMachine } from 'aws-cdk-lib/aws-stepfunctions'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-stepfunctions-intrinsics-integ'); const pass = new Pass(stack, 'pass', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.listAt-after-parallel.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.listAt-after-parallel.ts index e2515a37ecc8e..8662527877a8c 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.listAt-after-parallel.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.listAt-after-parallel.ts @@ -2,7 +2,7 @@ import * as cdk from 'aws-cdk-lib'; import * as integ from '@aws-cdk/integ-tests-alpha'; import * as sfn from 'aws-cdk-lib/aws-stepfunctions'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'listAt-after-parallel'); const passStringList = new sfn.Pass(stack, 'PSL', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.map-distributed.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.map-distributed.ts index f924e21ca2227..73d2f3f9f403f 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.map-distributed.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.map-distributed.ts @@ -9,7 +9,7 @@ import * as sfn from 'aws-cdk-lib/aws-stepfunctions'; * -- aws stepfunctions describe-state-machine --state-machine-arn has a status of `ACTIVE` * -- aws iam get-role-policy --role-name --policy-name has all actions mapped to respective resources. */ -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'cdk-stepfunctions-map-distributed-stack'); const map = new sfn.Map(stack, 'Map', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.map-inline.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.map-inline.ts index 8b717a34f7399..7f7c6caaa137a 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.map-inline.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.map-inline.ts @@ -7,7 +7,7 @@ import * as sfn from 'aws-cdk-lib/aws-stepfunctions'; * * -- aws stepfunctions describe-state-machine --state-machine-arn has a status of `ACTIVE` */ -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'cdk-stepfunctions-map-inline-stack'); const map = new sfn.Map(stack, 'Map', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.map-itemselector.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.map-itemselector.ts index 33000604e6213..679b261a3b82d 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.map-itemselector.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.map-itemselector.ts @@ -7,7 +7,7 @@ import * as sfn from 'aws-cdk-lib/aws-stepfunctions'; * * -- aws stepfunctions describe-state-machine --state-machine-arn has a status of `ACTIVE` */ -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'cdk-stepfunctions-map-itemselector-stack'); const map = new sfn.Map(stack, 'Map', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.map-jsonata-itemselector.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.map-jsonata-itemselector.ts index d3ae20fe40f1c..d171dc14e4e66 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.map-jsonata-itemselector.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.map-jsonata-itemselector.ts @@ -7,7 +7,7 @@ import * as sfn from 'aws-cdk-lib/aws-stepfunctions'; * * -- aws stepfunctions describe-state-machine --state-machine-arn has a status of `ACTIVE` */ -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'cdk-stepfunctions-map-jsonata-itemselector-stack'); const map = new sfn.Map(stack, 'Map', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.map-jsonata-maxconcurrency.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.map-jsonata-maxconcurrency.ts index 24b972a7ac408..3fcf1d441c348 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.map-jsonata-maxconcurrency.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.map-jsonata-maxconcurrency.ts @@ -7,7 +7,7 @@ import * as sfn from 'aws-cdk-lib/aws-stepfunctions'; * * -- aws stepfunctions describe-state-machine --state-machine-arn has a status of `ACTIVE` */ -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'cdk-stepfunctions-map-jsonata-maxconcurrency-stack'); const map = new sfn.Map(stack, 'Map', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.map-with-catch.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.map-with-catch.ts index b44c925c7dcc4..1c5410a2efb2f 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.map-with-catch.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.map-with-catch.ts @@ -48,7 +48,7 @@ class DistributedMapStack extends cdk.Stack { } } -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new DistributedMapStack(app, 'aws-stepfunctions-map-with-catch'); const testCase = new IntegTest(app, 'DistributedMap-JSONATA', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.parallel-parameters.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.parallel-parameters.ts index 6a73a6feb6cc5..f0a02c9a54d42 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.parallel-parameters.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.parallel-parameters.ts @@ -2,7 +2,7 @@ import * as cdk from 'aws-cdk-lib'; import * as sfn from 'aws-cdk-lib/aws-stepfunctions'; import { IntegTest, ExpectedResult, Match } from '@aws-cdk/integ-tests-alpha'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-stepfunctions-integ'); const firstPassBranch = new sfn.Pass(stack, 'Pass Branch 1', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.s3-json-item-reader.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.s3-json-item-reader.ts index 1fe2fb414ab60..1e3fb7688976c 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.s3-json-item-reader.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.s3-json-item-reader.ts @@ -164,7 +164,7 @@ class S3JsonItemReaderTest { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const s3OJsonItemReaderPathTest = new S3JsonItemReaderTest(app); s3OJsonItemReaderPathTest.test(); app.synth(); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.s3-objects-item-reader.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.s3-objects-item-reader.ts index 0e6a4ec3d6740..3c792ffda10bc 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.s3-objects-item-reader.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.s3-objects-item-reader.ts @@ -164,7 +164,7 @@ class S3ObjectsItemReaderTest { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const s3ObjectsItemReaderPathTest = new S3ObjectsItemReaderTest(app); s3ObjectsItemReaderPathTest.test(); app.synth(); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.sm-jsonpath-with-distributed-map-jsonata.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.sm-jsonpath-with-distributed-map-jsonata.ts index f8b036d59b047..82c81d45c1413 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.sm-jsonpath-with-distributed-map-jsonata.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.sm-jsonpath-with-distributed-map-jsonata.ts @@ -44,6 +44,7 @@ class DistributedMapStack extends cdk.Stack { const app = new cdk.App({ context: { + '@aws-cdk/core:disableGitSource': true, [STEPFUNCTIONS_USE_DISTRIBUTED_MAP_RESULT_WRITER_V2]: true, }, }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.state-machine-and-activity-cmk.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.state-machine-and-activity-cmk.ts index dfad2fa5527b5..d890240e2486c 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.state-machine-and-activity-cmk.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.state-machine-and-activity-cmk.ts @@ -40,7 +40,7 @@ class KMSStateMachine extends cdk.Stack { }); } } -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new KMSStateMachine(app, 'aws-stepfunctions-statemachine-and-activity-with-cmk-encryptionconfig'); const testCase = new IntegTest(app, 'StateMachineAndActivityWithCMKEncryptionConfiguration', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.state-machine-cmk-with-cwl-encryption.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.state-machine-cmk-with-cwl-encryption.ts index 2f7b322ea48d5..4fff15a03376b 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.state-machine-cmk-with-cwl-encryption.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.state-machine-cmk-with-cwl-encryption.ts @@ -39,7 +39,7 @@ class KMSStateMachine extends cdk.Stack { }); } } -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new KMSStateMachine(app, 'aws-stepfunctions-statemachine-and-activity-with-cmk-encryptionconfig'); const testCase = new IntegTest(app, 'StateMachineAndActivityWithCMKEncryptionConfiguration', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.state-machine-credentials.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.state-machine-credentials.ts index 666b97b7ad301..96b58b52a5b5b 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.state-machine-credentials.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.state-machine-credentials.ts @@ -9,7 +9,7 @@ import * as sfn from 'aws-cdk-lib/aws-stepfunctions'; * * -- aws stepfunctions describe-state-machine --state-machine-arn has a status of `ACTIVE` */ -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-stepfunctions-state-machine-credentials-integ'); const role = new iam.Role(stack, 'Role', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.state-machine-disable-xray.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.state-machine-disable-xray.ts index 4196d8ed1239d..d9be86243bd83 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.state-machine-disable-xray.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.state-machine-disable-xray.ts @@ -2,7 +2,7 @@ import * as cdk from 'aws-cdk-lib'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import * as sfn from 'aws-cdk-lib/aws-stepfunctions'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-stepfunctions-integ'); new sfn.StateMachine(stack, 'StateMachine', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.state-machine-jsonata.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.state-machine-jsonata.ts index 34dcbeda8d9de..d63ea6d146ada 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.state-machine-jsonata.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.state-machine-jsonata.ts @@ -3,7 +3,7 @@ import { ExpectedResult, IntegTest } from '@aws-cdk/integ-tests-alpha'; import * as sfn from 'aws-cdk-lib/aws-stepfunctions'; import { executionSync } from './util'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-stepfunctions-state-machine-jsonata-integ'); const jsonPathPass = sfn.Pass.jsonPath(stack, 'JSONPathPass', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.state-machine-logging.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.state-machine-logging.ts index 945c6170d9bbb..81c19a80c63fc 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.state-machine-logging.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.state-machine-logging.ts @@ -8,7 +8,7 @@ import * as sfn from 'aws-cdk-lib/aws-stepfunctions'; * -- aws stepfunctions describe-state-machine --state-machine-arn has a status of `ACTIVE` * -- aws iam get-role-policy --role-name --policy-name has logging permissions. */ -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-stepfunctions-integ'); const logGroup = new logs.LogGroup(stack, 'LogGroup', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.state-machine-string.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.state-machine-string.ts index d53f92d392f29..d5477fe48cbe3 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.state-machine-string.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.state-machine-string.ts @@ -6,7 +6,7 @@ import * as sfn from 'aws-cdk-lib/aws-stepfunctions'; * * -- aws stepfunctions describe-state-machine --state-machine-arn has a status of `ACTIVE` and the definition is correct */ -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-stepfunctions-integ'); new sfn.StateMachine(stack, 'StateMachine', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.state-machine-variables.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.state-machine-variables.ts index 090bcb978ed5e..9055f2ce2dd75 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.state-machine-variables.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.state-machine-variables.ts @@ -3,7 +3,7 @@ import { ExpectedResult, IntegTest } from '@aws-cdk/integ-tests-alpha'; import * as sfn from 'aws-cdk-lib/aws-stepfunctions'; import { executionSync } from './util'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-stepfunctions-state-machine-variables-integ'); const step1 = sfn.Pass.jsonata(stack, 'Step1', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.state-machine.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.state-machine.ts index 5ff6711106589..f5477b0fd8aac 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.state-machine.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.state-machine.ts @@ -7,7 +7,7 @@ import * as sfn from 'aws-cdk-lib/aws-stepfunctions'; * -- aws stepfunctions describe-state-machine --state-machine-arn has a status of `ACTIVE` * -- aws iam get-role-policy --role-name --policy-name has all actions mapped to respective resources. */ -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'aws-stepfunctions-integ'); const wait = new sfn.Wait(stack, 'wait time', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-synthetics/test/integ.canary-artifact-s3-encryption.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-synthetics/test/integ.canary-artifact-s3-encryption.ts index 97933bcac89be..f166a75b46aec 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-synthetics/test/integ.canary-artifact-s3-encryption.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-synthetics/test/integ.canary-artifact-s3-encryption.ts @@ -7,7 +7,7 @@ import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import { RemovalPolicy } from 'aws-cdk-lib'; import { Key } from 'aws-cdk-lib/aws-kms'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'canary-artifact-s3-encryption'); const bucket = new s3.Bucket(stack, 'MyTestBucket', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-synthetics/test/integ.canary-auto-delete-lambda.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-synthetics/test/integ.canary-auto-delete-lambda.ts index 2608b1a779f67..89ac1b0273e0c 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-synthetics/test/integ.canary-auto-delete-lambda.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-synthetics/test/integ.canary-auto-delete-lambda.ts @@ -54,6 +54,7 @@ class TestStack extends Stack { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-synthetics/test/integ.canary-browser-type.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-synthetics/test/integ.canary-browser-type.ts index cac04e1d6f1ad..8ccac8e3c851b 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-synthetics/test/integ.canary-browser-type.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-synthetics/test/integ.canary-browser-type.ts @@ -28,7 +28,7 @@ class TestStack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const testStack = new TestStack(app, 'SyntheticsCanaryBrowserTypeStack'); new IntegTest(app, 'SyntheticsCanaryBrowserType', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-synthetics/test/integ.canary-dryrun-update.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-synthetics/test/integ.canary-dryrun-update.ts index 5c1eabf49a2f3..a382342398c85 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-synthetics/test/integ.canary-dryrun-update.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-synthetics/test/integ.canary-dryrun-update.ts @@ -25,7 +25,7 @@ class TestStack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const testStack = new TestStack(app, 'SyntheticsCanaryDryRunAndUpdateStack'); new IntegTest(app, 'SyntheticsCanaryDryRunAndUpdate', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-synthetics/test/integ.canary-provisioned-resource-cleanup.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-synthetics/test/integ.canary-provisioned-resource-cleanup.ts index 887ace0847786..f642be405500b 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-synthetics/test/integ.canary-provisioned-resource-cleanup.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-synthetics/test/integ.canary-provisioned-resource-cleanup.ts @@ -25,7 +25,7 @@ class TestStack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const testStack = new TestStack(app, 'SyntheticsCanaryProvisionedResourceCleanupStack'); new IntegTest(app, 'SyntheticsCanaryProvisionedResourceCleanup', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-synthetics/test/integ.canary-resources-to-replicate-tags.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-synthetics/test/integ.canary-resources-to-replicate-tags.ts index ace8c55e9e391..832f65537f418 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-synthetics/test/integ.canary-resources-to-replicate-tags.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-synthetics/test/integ.canary-resources-to-replicate-tags.ts @@ -29,7 +29,7 @@ class TestStack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const testStack = new TestStack(app, 'SyntheticsCanaryResourcesToReplicateTagsStack'); new IntegTest(app, 'SyntheticsCanaryResourcesToReplicateTags', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-synthetics/test/integ.canary-retry.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-synthetics/test/integ.canary-retry.ts index b2ebf2f76d0ea..0eac97b5b3c25 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-synthetics/test/integ.canary-retry.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-synthetics/test/integ.canary-retry.ts @@ -25,7 +25,7 @@ class TestStack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const testStack = new TestStack(app, 'SyntheticsCanaryRetryStack'); new IntegTest(app, 'SyntheticsCanaryRetry', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-synthetics/test/integ.canary-run-config.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-synthetics/test/integ.canary-run-config.ts index 5426c4ec69987..1fb638cf6b1fd 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-synthetics/test/integ.canary-run-config.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-synthetics/test/integ.canary-run-config.ts @@ -26,7 +26,7 @@ class TestStack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); new IntegTest(app, 'cdk-integ-synthetics-canary-run-config', { testCases: [new TestStack(app, 'cdk-synthetics-canary-run-config')], diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-synthetics/test/integ.canary-runtime-validation.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-synthetics/test/integ.canary-runtime-validation.ts index adc48fa3debd1..721e6c94b7103 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-synthetics/test/integ.canary-runtime-validation.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-synthetics/test/integ.canary-runtime-validation.ts @@ -36,7 +36,7 @@ class TestStack extends Stack { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const testStack = new TestStack(app, 'SyntheticsCanaryRuntimeValidationStack'); new IntegTest(app, 'SyntheticsCanaryRuntimeValidation', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-synthetics/test/integ.canary.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-synthetics/test/integ.canary.ts index cbacb20e41ad2..9e07465ae1c17 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-synthetics/test/integ.canary.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-synthetics/test/integ.canary.ts @@ -8,7 +8,7 @@ import { Canary, Cleanup, Code, Runtime, Schedule, Test } from 'aws-cdk-lib/aws- import { ExpectedResult, IntegTest } from '@aws-cdk/integ-tests-alpha'; import { RemovalPolicy } from 'aws-cdk-lib'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'canary-one'); const bucket = new s3.Bucket(stack, 'MyTestBucket', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-synthetics/test/integ.vpc.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-synthetics/test/integ.vpc.ts index 3344e8738dc46..51ef5c8a68036 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-synthetics/test/integ.vpc.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-synthetics/test/integ.vpc.ts @@ -4,7 +4,7 @@ import * as cdk from 'aws-cdk-lib/core'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import * as synthetics from 'aws-cdk-lib/aws-synthetics'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'canary-vpc'); const vpc = new ec2.Vpc(stack, 'MyVpc', { maxAzs: 2, restrictDefaultSecurityGroup: false }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/cloudformation-include/test/integ.autoscaling-update-policy.ts b/packages/@aws-cdk-testing/framework-integ/test/cloudformation-include/test/integ.autoscaling-update-policy.ts index c3dfc2433dc7c..20622cafa6136 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/cloudformation-include/test/integ.autoscaling-update-policy.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/cloudformation-include/test/integ.autoscaling-update-policy.ts @@ -3,7 +3,7 @@ import * as inc from 'aws-cdk-lib/cloudformation-include'; import * as integ from '@aws-cdk/integ-tests-alpha'; import * as path from 'path'; -const app = new core.App(); +const app = new core.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new core.Stack(app, 'Stack'); new inc.CfnInclude(stack, 'Stack', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/cloudformation-include/test/integ.intrinsic-deletion-policy.ts b/packages/@aws-cdk-testing/framework-integ/test/cloudformation-include/test/integ.intrinsic-deletion-policy.ts index eb534c1bd2447..660a4a83d2151 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/cloudformation-include/test/integ.intrinsic-deletion-policy.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/cloudformation-include/test/integ.intrinsic-deletion-policy.ts @@ -3,7 +3,7 @@ import * as inc from 'aws-cdk-lib/cloudformation-include'; import * as integ from '@aws-cdk/integ-tests-alpha'; import * as path from 'path'; -const app = new core.App(); +const app = new core.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new core.Stack(app, 'Stack'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/cloudformation-include/test/integ.nested-stacks.ts b/packages/@aws-cdk-testing/framework-integ/test/cloudformation-include/test/integ.nested-stacks.ts index d39a68137d211..e38674c4f4f40 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/cloudformation-include/test/integ.nested-stacks.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/cloudformation-include/test/integ.nested-stacks.ts @@ -2,7 +2,7 @@ import * as core from 'aws-cdk-lib'; import * as inc from 'aws-cdk-lib/cloudformation-include'; import * as path from 'path'; -const app = new core.App(); +const app = new core.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new core.Stack(app, 'ParentStack'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/cloudformation-include/test/integ.novalue-nonstring.ts b/packages/@aws-cdk-testing/framework-integ/test/cloudformation-include/test/integ.novalue-nonstring.ts index 07a169b51c8ad..aec2b2783c296 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/cloudformation-include/test/integ.novalue-nonstring.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/cloudformation-include/test/integ.novalue-nonstring.ts @@ -3,7 +3,7 @@ import * as cdk from 'aws-cdk-lib'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; import { CfnInclude } from 'aws-cdk-lib/cloudformation-include'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'integ-cfninclude-novalue-boolean'); const templateFile = path.join(__dirname, 'test-templates', 'novalue-boolean.json'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/cloudformation-include/test/integ.resource-tags-wtih-intrinsics.ts b/packages/@aws-cdk-testing/framework-integ/test/cloudformation-include/test/integ.resource-tags-wtih-intrinsics.ts index 04efd16a1b274..0e76b0b5ec43c 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/cloudformation-include/test/integ.resource-tags-wtih-intrinsics.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/cloudformation-include/test/integ.resource-tags-wtih-intrinsics.ts @@ -3,7 +3,7 @@ import * as inc from 'aws-cdk-lib/cloudformation-include'; import * as integ from '@aws-cdk/integ-tests-alpha'; import * as path from 'path'; -const app = new core.App(); +const app = new core.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new core.Stack(app, 'Stack'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/core/test/integ.cfn-mappings-find-in-map.ts b/packages/@aws-cdk-testing/framework-integ/test/core/test/integ.cfn-mappings-find-in-map.ts index 5a3de14796142..9e4ee56b193c6 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/core/test/integ.cfn-mappings-find-in-map.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/core/test/integ.cfn-mappings-find-in-map.ts @@ -2,7 +2,7 @@ import * as cdk from 'aws-cdk-lib/core'; import { Bucket } from 'aws-cdk-lib/aws-s3'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'core-cfn-mapping-1'/* ,{ env }*/); diff --git a/packages/@aws-cdk-testing/framework-integ/test/core/test/integ.cross-region-references.ts b/packages/@aws-cdk-testing/framework-integ/test/core/test/integ.cross-region-references.ts index 3835f8b02b564..920fa09b1c98e 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/core/test/integ.cross-region-references.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/core/test/integ.cross-region-references.ts @@ -2,7 +2,7 @@ import * as cdk from 'aws-cdk-lib/core'; import * as ssm from 'aws-cdk-lib/aws-ssm'; import { IntegTest } from '@aws-cdk/integ-tests-alpha'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const producingStack = new cdk.Stack(app, 'CrossRegionRefProducerInteg', { crossRegionReferences: true, diff --git a/packages/@aws-cdk-testing/framework-integ/test/core/test/integ.logical-id.ts b/packages/@aws-cdk-testing/framework-integ/test/core/test/integ.logical-id.ts index 3ab50e19fb58e..7bc0aeeee58d3 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/core/test/integ.logical-id.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/core/test/integ.logical-id.ts @@ -6,7 +6,7 @@ import * as sqs from 'aws-cdk-lib/aws-sqs'; * This test creates resources using alphanumeric logical IDs. */ -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app); diff --git a/packages/@aws-cdk-testing/framework-integ/test/core/test/integ.nested-stack-references.ts b/packages/@aws-cdk-testing/framework-integ/test/core/test/integ.nested-stack-references.ts index a721eaa83007f..03392f7a3cdcf 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/core/test/integ.nested-stack-references.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/core/test/integ.nested-stack-references.ts @@ -2,7 +2,7 @@ import * as cdk from 'aws-cdk-lib/core'; import * as integ from '@aws-cdk/integ-tests-alpha'; import * as s3 from 'aws-cdk-lib/aws-s3'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const producer = new cdk.Stack(app, 'Producer'); const nested = new cdk.NestedStack(producer, 'Nested'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/core/test/integ.nested-stack-suppress-template-indentation.ts b/packages/@aws-cdk-testing/framework-integ/test/core/test/integ.nested-stack-suppress-template-indentation.ts index ab4a6487da74d..66d637cefe281 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/core/test/integ.nested-stack-suppress-template-indentation.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/core/test/integ.nested-stack-suppress-template-indentation.ts @@ -2,7 +2,7 @@ import * as cdk from 'aws-cdk-lib/core'; import * as integ from '@aws-cdk/integ-tests-alpha'; import * as s3 from 'aws-cdk-lib/aws-s3'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'ParentStack'); const nested = new cdk.NestedStack(stack, 'NestedSuppressIndentation', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/core/test/integ.prop-injectors.ts b/packages/@aws-cdk-testing/framework-integ/test/core/test/integ.prop-injectors.ts index 4c1fb21f1f0d9..7ddc1ed374eb1 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/core/test/integ.prop-injectors.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/core/test/integ.prop-injectors.ts @@ -187,7 +187,7 @@ class LambdaRestApiPropsInjector implements cdk.IPropertyInjector { } } -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'TestStack', { propertyInjectors: [ new FunctionPropsInjector(), diff --git a/packages/@aws-cdk-testing/framework-integ/test/core/test/integ.removal-policies.ts b/packages/@aws-cdk-testing/framework-integ/test/core/test/integ.removal-policies.ts index a7b71e937a83a..e08ce72d80bb1 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/core/test/integ.removal-policies.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/core/test/integ.removal-policies.ts @@ -5,7 +5,7 @@ import * as s3 from 'aws-cdk-lib/aws-s3'; import * as integ from '@aws-cdk/integ-tests-alpha'; import { Construct } from 'constructs'; -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new Stack(app, 'TestStack'); new s3.Bucket(stack, 'TestBucket'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/core/test/integ.stack-with-mixin.ts b/packages/@aws-cdk-testing/framework-integ/test/core/test/integ.stack-with-mixin.ts index f9abe84ff5c23..a47d05a5a4093 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/core/test/integ.stack-with-mixin.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/core/test/integ.stack-with-mixin.ts @@ -2,7 +2,7 @@ import * as cdk from 'aws-cdk-lib'; import * as s3 from 'aws-cdk-lib/aws-s3'; import * as integ from '@aws-cdk/integ-tests-alpha'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'StackWithMixinTest'); diff --git a/packages/@aws-cdk-testing/framework-integ/test/core/test/integ.stack.ts b/packages/@aws-cdk-testing/framework-integ/test/core/test/integ.stack.ts index 2fc4c48639346..d61eb5bbd6e95 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/core/test/integ.stack.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/core/test/integ.stack.ts @@ -5,7 +5,7 @@ import { IntegTest } from '@aws-cdk/integ-tests-alpha'; * This test creates a stack and changes termination protection with the setter. */ -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'Stack', { terminationProtection: false }); stack.terminationProtection = true; diff --git a/packages/@aws-cdk-testing/framework-integ/test/core/test/integ.token-aware-stringify-logical-ids.ts b/packages/@aws-cdk-testing/framework-integ/test/core/test/integ.token-aware-stringify-logical-ids.ts index 3862824fade01..9f9ee31ef17af 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/core/test/integ.token-aware-stringify-logical-ids.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/core/test/integ.token-aware-stringify-logical-ids.ts @@ -4,6 +4,7 @@ import * as ec2 from 'aws-cdk-lib/aws-ec2'; import * as cr from 'aws-cdk-lib/custom-resources'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource-assumeRole.ts b/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource-assumeRole.ts index b69649f62a385..5eaa8ea2a161a 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource-assumeRole.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource-assumeRole.ts @@ -4,6 +4,7 @@ import * as cdk from 'aws-cdk-lib'; import * as integ from '@aws-cdk/integ-tests-alpha'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource-athena.ts b/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource-athena.ts index bf9e337a8291e..62ef9b0929896 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource-athena.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource-athena.ts @@ -19,6 +19,7 @@ import { AwsCustomResource, PhysicalResourceId, PhysicalResourceIdReference } fr * */ const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource-cloudwatch.ts b/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource-cloudwatch.ts index f965d305a0254..1b7848c5a2d75 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource-cloudwatch.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource-cloudwatch.ts @@ -4,6 +4,7 @@ import * as cr from 'aws-cdk-lib/custom-resources'; import { ExpectedResult, IntegTest, Match } from '@aws-cdk/integ-tests-alpha'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource-dynamodb.ts b/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource-dynamodb.ts index 29791f522a122..0fc91d0eeae9a 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource-dynamodb.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource-dynamodb.ts @@ -52,6 +52,7 @@ export class AWSCustomResourceDynamoDb extends cdk.Stack { } const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource-service-timeout.ts b/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource-service-timeout.ts index a32212ac5ec8a..efb9c142299c8 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource-service-timeout.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource-service-timeout.ts @@ -12,6 +12,7 @@ import type { Construct } from 'constructs'; */ const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource-ssm-ff.ts b/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource-ssm-ff.ts index 32694c4d05097..da8ae583f0f26 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource-ssm-ff.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource-ssm-ff.ts @@ -7,6 +7,7 @@ import { LOG_API_RESPONSE_DATA_PROPERTY_TRUE_DEFAULT } from 'aws-cdk-lib/cx-api' import type { Construct } from 'constructs'; const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { [LOG_API_RESPONSE_DATA_PROPERTY_TRUE_DEFAULT]: true, '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource-ssm.ts b/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource-ssm.ts index 6178883339139..009b79317cf87 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource-ssm.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource-ssm.ts @@ -6,6 +6,7 @@ import { AwsCustomResource, AwsCustomResourcePolicy, Logging, PhysicalResourceId import type { Construct } from 'constructs'; const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource-vpc.ts b/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource-vpc.ts index cb7886a8029be..45412e047a8e5 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource-vpc.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource-vpc.ts @@ -12,6 +12,7 @@ import { AwsCustomResource, AwsCustomResourcePolicy, PhysicalResourceId } from ' */ const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource.ts b/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource.ts index 5a7a60e39cae7..ed87a1a98c262 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource.ts @@ -116,6 +116,7 @@ class AwsCdkSdkJsStack extends cdk.Stack { } const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.cross-account-assumeRole.ts b/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.cross-account-assumeRole.ts index f88981372dbef..14a916647f4fe 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.cross-account-assumeRole.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.cross-account-assumeRole.ts @@ -29,6 +29,7 @@ import { AwsCustomResource, AwsCustomResourcePolicy, PhysicalResourceId } from ' */ const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.external-id.ts b/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.external-id.ts index c3b8d0d42543e..8dce8919d9eeb 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.external-id.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.external-id.ts @@ -16,6 +16,7 @@ import { AwsCustomResource, AwsCustomResourcePolicy, PhysicalResourceId } from ' */ const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { // Disable CDK managed log groups to prevent Lambda changes '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.invoke-function-payload.ts b/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.invoke-function-payload.ts index d67f5a7204449..5006f74eb253d 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.invoke-function-payload.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.invoke-function-payload.ts @@ -5,6 +5,7 @@ import * as cr from 'aws-cdk-lib/custom-resources'; import * as iam from 'aws-cdk-lib/aws-iam'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/custom-resource-config/integ.custom-resource-config-lambda-node-runtime.ts b/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/custom-resource-config/integ.custom-resource-config-lambda-node-runtime.ts index a3d1b4e87c98c..372f1851fca22 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/custom-resource-config/integ.custom-resource-config-lambda-node-runtime.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/custom-resource-config/integ.custom-resource-config-lambda-node-runtime.ts @@ -5,6 +5,7 @@ import * as lambda from 'aws-cdk-lib/aws-lambda'; import { CustomResourceConfig } from 'aws-cdk-lib/custom-resources'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, '@aws-cdk/aws-dynamodb:retainTableReplica': true, diff --git a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/custom-resource-config/integ.custom-resource-config-lambda-python-runtime.ts b/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/custom-resource-config/integ.custom-resource-config-lambda-python-runtime.ts index 5ecd0a4452d97..6b0e92e31c76b 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/custom-resource-config/integ.custom-resource-config-lambda-python-runtime.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/custom-resource-config/integ.custom-resource-config-lambda-python-runtime.ts @@ -6,6 +6,7 @@ import * as s3deploy from 'aws-cdk-lib/aws-s3-deployment'; import { CustomResourceConfig } from 'aws-cdk-lib/custom-resources'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/custom-resource-config/integ.custom-resource-config-lambda-runtime.ts b/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/custom-resource-config/integ.custom-resource-config-lambda-runtime.ts index 7fc6f7a02930c..4fb8652aa2838 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/custom-resource-config/integ.custom-resource-config-lambda-runtime.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/custom-resource-config/integ.custom-resource-config-lambda-runtime.ts @@ -6,6 +6,7 @@ import * as s3deploy from 'aws-cdk-lib/aws-s3-deployment'; import { CustomResourceConfig } from 'aws-cdk-lib/custom-resources'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/custom-resource-config/integ.custom-resource-config-logGroup.ts b/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/custom-resource-config/integ.custom-resource-config-logGroup.ts index 0b728a6940a6a..51aca7dd23164 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/custom-resource-config/integ.custom-resource-config-logGroup.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/custom-resource-config/integ.custom-resource-config-logGroup.ts @@ -5,7 +5,7 @@ import * as integ from '@aws-cdk/integ-tests-alpha'; import * as s3deploy from 'aws-cdk-lib/aws-s3-deployment'; import { CustomResourceConfig } from 'aws-cdk-lib/custom-resources'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'MyStack'); let websiteBucket = new s3.Bucket(stack, 'WebsiteBucket', {}); diff --git a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/custom-resource-config/integ.custom-resource-config-logRetention.ts b/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/custom-resource-config/integ.custom-resource-config-logRetention.ts index 83cdfa62a31bc..ea1424584cf3d 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/custom-resource-config/integ.custom-resource-config-logRetention.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/custom-resource-config/integ.custom-resource-config-logRetention.ts @@ -5,7 +5,7 @@ import * as integ from '@aws-cdk/integ-tests-alpha'; import * as s3deploy from 'aws-cdk-lib/aws-s3-deployment'; import { CustomResourceConfig } from 'aws-cdk-lib/custom-resources'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'MyStack'); let websiteBucket = new s3.Bucket(stack, 'WebsiteBucket', {}); diff --git a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/custom-resource-config/integ.custom-resource-config-removalPolicy.ts b/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/custom-resource-config/integ.custom-resource-config-removalPolicy.ts index c7663d061e766..ef6a4f71a7a23 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/custom-resource-config/integ.custom-resource-config-removalPolicy.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/custom-resource-config/integ.custom-resource-config-removalPolicy.ts @@ -5,7 +5,7 @@ import * as s3 from 'aws-cdk-lib/aws-s3'; import * as s3deploy from 'aws-cdk-lib/aws-s3-deployment'; import { CustomResourceConfig } from 'aws-cdk-lib/custom-resources'; -const app = new cdk.App(); +const app = new cdk.App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new cdk.Stack(app, 'MyStack'); let websiteBucket = new s3.Bucket(stack, 'WebsiteBucket', {}); diff --git a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/custom-resource-config/integ.custom-resource-config-undefined-log.ts b/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/custom-resource-config/integ.custom-resource-config-undefined-log.ts index bc801c5317bcf..070aedbee0a6b 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/custom-resource-config/integ.custom-resource-config-undefined-log.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/custom-resource-config/integ.custom-resource-config-undefined-log.ts @@ -6,6 +6,7 @@ import * as s3deploy from 'aws-cdk-lib/aws-s3-deployment'; import { CustomResourceConfig } from 'aws-cdk-lib/custom-resources'; const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/provider-framework/integ.provider-no-echo.ts b/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/provider-framework/integ.provider-no-echo.ts index 5a3e0495b7ae1..11469e6e08bbe 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/provider-framework/integ.provider-no-echo.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/provider-framework/integ.provider-no-echo.ts @@ -40,6 +40,7 @@ class TestStack extends Stack { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, '@aws-cdk/aws-lambda:createNewPoliciesWithAddToRolePolicy': true, diff --git a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/provider-framework/integ.provider-with-waiter-state-machine-custom-role.ts b/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/provider-framework/integ.provider-with-waiter-state-machine-custom-role.ts index 6c0ab0e230fad..cd229aea8a46d 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/provider-framework/integ.provider-with-waiter-state-machine-custom-role.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/provider-framework/integ.provider-with-waiter-state-machine-custom-role.ts @@ -48,6 +48,7 @@ class TestStack extends Stack { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/provider-framework/integ.provider-with-waiter-state-machine.ts b/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/provider-framework/integ.provider-with-waiter-state-machine.ts index f6387d52583e3..68d6fb146d446 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/provider-framework/integ.provider-with-waiter-state-machine.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/provider-framework/integ.provider-with-waiter-state-machine.ts @@ -50,6 +50,7 @@ class TestStack extends Stack { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, '@aws-cdk/aws-lambda:createNewPoliciesWithAddToRolePolicy': true, diff --git a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/provider-framework/integ.provider.ts b/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/provider-framework/integ.provider.ts index 266ba5dd2da9b..3f9d4541dc9f9 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/provider-framework/integ.provider.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/provider-framework/integ.provider.ts @@ -47,6 +47,7 @@ class TestStack extends Stack { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, '@aws-cdk/aws-lambda:createNewPoliciesWithAddToRolePolicy': true, diff --git a/packages/@aws-cdk-testing/framework-integ/test/lambda-layer-awscli/test/integ.awscli-layer.ts b/packages/@aws-cdk-testing/framework-integ/test/lambda-layer-awscli/test/integ.awscli-layer.ts index 6b42270c63e9d..d27aee1613552 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/lambda-layer-awscli/test/integ.awscli-layer.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/lambda-layer-awscli/test/integ.awscli-layer.ts @@ -11,6 +11,7 @@ import { AwsCliLayer } from 'aws-cdk-lib/lambda-layer-awscli'; */ const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, '@aws-cdk/aws-lambda:createNewPoliciesWithAddToRolePolicy': true, diff --git a/packages/@aws-cdk-testing/framework-integ/test/lambda-layer-kubectl/test/integ.kubectl-layer.ts b/packages/@aws-cdk-testing/framework-integ/test/lambda-layer-kubectl/test/integ.kubectl-layer.ts index 6779cfb5153fe..9c87d0c2eef8f 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/lambda-layer-kubectl/test/integ.kubectl-layer.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/lambda-layer-kubectl/test/integ.kubectl-layer.ts @@ -10,6 +10,7 @@ import { KubectlV31Layer } from '@aws-cdk/lambda-layer-kubectl-v31'; */ const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, '@aws-cdk/aws-lambda:createNewPoliciesWithAddToRolePolicy': true, diff --git a/packages/@aws-cdk-testing/framework-integ/test/lambda-layer-node-proxy-agent/test/integ.node-proxy-agent.ts b/packages/@aws-cdk-testing/framework-integ/test/lambda-layer-node-proxy-agent/test/integ.node-proxy-agent.ts index 0239fb9dfce33..0b3a326392ece 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/lambda-layer-node-proxy-agent/test/integ.node-proxy-agent.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/lambda-layer-node-proxy-agent/test/integ.node-proxy-agent.ts @@ -13,6 +13,7 @@ import { STANDARD_NODEJS_RUNTIME } from '../../config'; */ const app = new cdk.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, '@aws-cdk/aws-lambda:createNewPoliciesWithAddToRolePolicy': true, diff --git a/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.cross-account-pipeline-action.ts b/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.cross-account-pipeline-action.ts index 6848a5a4b650e..76231382ffead 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.cross-account-pipeline-action.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.cross-account-pipeline-action.ts @@ -108,6 +108,7 @@ class PipelineStack extends Stack { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, '@aws-cdk/aws-codepipeline:defaultPipelineTypeToV2': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.newpipeline-reduce-stagerole-scope.ts b/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.newpipeline-reduce-stagerole-scope.ts index c4b98acacf9e7..cf6d881963a48 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.newpipeline-reduce-stagerole-scope.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.newpipeline-reduce-stagerole-scope.ts @@ -74,6 +74,7 @@ class PipelineStack extends Stack { * Integration test that ensures the pipeline can be deployed. */ const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/pipelines:reduceStageRoleTrustScope': true, '@aws-cdk/aws-codepipeline:defaultPipelineTypeToV2': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.newpipeline-single-publisher.ts b/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.newpipeline-single-publisher.ts index b9d5d047d736a..add23b035c975 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.newpipeline-single-publisher.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.newpipeline-single-publisher.ts @@ -47,7 +47,7 @@ class AppStage extends Stage { } } -const app = new App(); +const app = new App({ context: { '@aws-cdk/core:disableGitSource': true } }); const stack = new PipelineStack(app, 'PipelineStackSinglePublisher'); new IntegTest(app, 'PipelineStackSinglePublisher-integ', { testCases: [stack], diff --git a/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.newpipeline-with-codebuild-logging.ts b/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.newpipeline-with-codebuild-logging.ts index 08e0b8a39ae00..50aa86c926c04 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.newpipeline-with-codebuild-logging.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.newpipeline-with-codebuild-logging.ts @@ -69,6 +69,7 @@ class AppStage extends Stage { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/core:newStyleStackSynthesis': '1', '@aws-cdk/aws-codepipeline:defaultPipelineTypeToV2': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.newpipeline-with-codestar-connection.ts b/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.newpipeline-with-codestar-connection.ts index dbbbab53cf319..8af6471e0a66d 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.newpipeline-with-codestar-connection.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.newpipeline-with-codestar-connection.ts @@ -40,6 +40,7 @@ class AppStage extends Stage { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/core:newStyleStackSynthesis': '1', '@aws-cdk/aws-codepipeline:defaultPipelineTypeToV2': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.newpipeline-with-cross-account-keys.ts b/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.newpipeline-with-cross-account-keys.ts index b9efb1ab950c6..50b795588f3d7 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.newpipeline-with-cross-account-keys.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.newpipeline-with-cross-account-keys.ts @@ -55,6 +55,7 @@ class AppStage extends Stage { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-codepipeline:defaultPipelineTypeToV2': false, '@aws-cdk/pipelines:reduceStageRoleTrustScope': true, diff --git a/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.newpipeline-with-cross-region-replication-buckets.ts b/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.newpipeline-with-cross-region-replication-buckets.ts index dcb40605769d6..32f77cdef53af 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.newpipeline-with-cross-region-replication-buckets.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.newpipeline-with-cross-region-replication-buckets.ts @@ -75,6 +75,7 @@ class AppStage extends Stage { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/core:newStyleStackSynthesis': '1', '@aws-cdk/aws-codepipeline:defaultPipelineTypeToV2': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.newpipeline-with-file-system-locations.js b/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.newpipeline-with-file-system-locations.js index 8956095918845..53e3b7066ad46 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.newpipeline-with-file-system-locations.js +++ b/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.newpipeline-with-file-system-locations.js @@ -52,6 +52,7 @@ class AppStage extends aws_cdk_lib_1.Stage { } } const app = new aws_cdk_lib_1.App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/core:newStyleStackSynthesis': '1', '@aws-cdk/aws-codepipeline:defaultPipelineTypeToV2': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.newpipeline-with-file-system-locations.ts b/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.newpipeline-with-file-system-locations.ts index a0482c5a91a54..a04b99b93929d 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.newpipeline-with-file-system-locations.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.newpipeline-with-file-system-locations.ts @@ -60,6 +60,7 @@ class AppStage extends Stage { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/core:newStyleStackSynthesis': '1', '@aws-cdk/aws-codepipeline:defaultPipelineTypeToV2': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.newpipeline-with-vpc.ts b/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.newpipeline-with-vpc.ts index e24d248db90fb..800fb1effa010 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.newpipeline-with-vpc.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.newpipeline-with-vpc.ts @@ -49,6 +49,7 @@ class AppStage extends Stage { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/core:newStyleStackSynthesis': '1', '@aws-cdk/aws-codepipeline:defaultPipelineTypeToV2': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.newpipeline.ts b/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.newpipeline.ts index 9a7f9ba0d2e7b..b29b525475ea7 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.newpipeline.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.newpipeline.ts @@ -53,6 +53,7 @@ class AppStage extends Stage { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/core:newStyleStackSynthesis': '1', '@aws-cdk/aws-codepipeline:defaultPipelineTypeToV2': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.pipeline-use-default-action-role.ts b/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.pipeline-use-default-action-role.ts index 8ed114806cf77..e81863890733e 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.pipeline-use-default-action-role.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.pipeline-use-default-action-role.ts @@ -51,6 +51,7 @@ class PipelineStack extends Stack { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/core:newStyleStackSynthesis': '1', '@aws-cdk/aws-codepipeline:defaultPipelineTypeToV2': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.pipeline-v2.ts b/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.pipeline-v2.ts index b8cd69e0b2058..1fc3b5f084080 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.pipeline-v2.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.pipeline-v2.ts @@ -53,6 +53,7 @@ class PipelineStack extends Stack { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/core:newStyleStackSynthesis': '1', '@aws-cdk/aws-codepipeline:defaultPipelineTypeToV2': true, diff --git a/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.pipeline-with-artifact-bucket.ts b/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.pipeline-with-artifact-bucket.ts index 80bf29c3be19d..f3a2c4d82364c 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.pipeline-with-artifact-bucket.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.pipeline-with-artifact-bucket.ts @@ -28,6 +28,7 @@ class PipelineStack extends Stack { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/core:newStyleStackSynthesis': '1', '@aws-cdk/aws-codepipeline:defaultPipelineTypeToV2': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.pipeline-with-customsynthesizer.ts b/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.pipeline-with-customsynthesizer.ts index 6e6f084e5a956..c3d5ee10335e3 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.pipeline-with-customsynthesizer.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.pipeline-with-customsynthesizer.ts @@ -90,6 +90,7 @@ export class DeploymentStage extends Stage { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/core:newStyleStackSynthesis': '1', '@aws-cdk/aws-codepipeline:defaultPipelineTypeToV2': true, diff --git a/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.pipeline-with-stack-outputs-in-custom-step.ts b/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.pipeline-with-stack-outputs-in-custom-step.ts index aa1b7abbd737f..4daedecae9708 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.pipeline-with-stack-outputs-in-custom-step.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.pipeline-with-stack-outputs-in-custom-step.ts @@ -80,6 +80,7 @@ class PipelineStack extends Stack { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, '@aws-cdk/core:newStyleStackSynthesis': '1', diff --git a/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.pipeline-with-variables.ts b/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.pipeline-with-variables.ts index 142c1d8d67811..82a604f1374a6 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.pipeline-with-variables.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.pipeline-with-variables.ts @@ -65,6 +65,7 @@ class PipelineStack extends Stack { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/core:newStyleStackSynthesis': '1', '@aws-cdk/aws-codepipeline:defaultPipelineTypeToV2': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.pipeline-without-prepare.ts b/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.pipeline-without-prepare.ts index 4a7cb3e236437..be91b8baebe40 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.pipeline-without-prepare.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.pipeline-without-prepare.ts @@ -66,6 +66,7 @@ class PipelineStack extends Stack { } const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/core:newStyleStackSynthesis': '1', '@aws-cdk/aws-codepipeline:defaultPipelineTypeToV2': false, diff --git a/packages/@aws-cdk-testing/framework-integ/test/triggers/test/integ.triggers.ts b/packages/@aws-cdk-testing/framework-integ/test/triggers/test/integ.triggers.ts index b6a025675b440..51d4077d80c0a 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/triggers/test/integ.triggers.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/triggers/test/integ.triggers.ts @@ -8,6 +8,7 @@ import { STANDARD_NODEJS_RUNTIME } from '../../config'; import * as path from 'path'; const app = new App({ + context: { '@aws-cdk/core:disableGitSource': true }, postCliContext: { '@aws-cdk/aws-lambda:useCdkManagedLogGroup': false, }, diff --git a/packages/aws-cdk-lib/core/lib/private/git-source.ts b/packages/aws-cdk-lib/core/lib/private/git-source.ts new file mode 100644 index 0000000000000..73e7e94e0e406 --- /dev/null +++ b/packages/aws-cdk-lib/core/lib/private/git-source.ts @@ -0,0 +1,31 @@ +import type { ExecSyncOptionsWithStringEncoding } from 'child_process'; +import { execSync } from 'child_process'; +import * as path from 'path'; + +/** + * Retrieves git source information (remote URL and latest commit) for the current repository. + * Uses the CDK app entry point to determine the correct git repository. + * Returns undefined if git is not available, the app is not in a git repo, + * or CDK_DISABLE_GIT_SOURCE is set. + */ +export function getGitSource(): { repository: string; commit: string } | undefined { + if (process.env.CDK_DISABLE_GIT_SOURCE == '1' || process.env.CDK_DISABLE_GIT_SOURCE == 'true') { + return undefined; + } + try { + const appDir = process.argv[1] ? path.dirname(path.resolve(process.argv[1])) : process.cwd(); + const opts: ExecSyncOptionsWithStringEncoding = { + encoding: 'utf-8', + stdio: ['pipe', 'pipe', 'pipe'], + cwd: appDir, + }; + const repository = execSync('git ls-remote --get-url', opts).trim(); + const commit = execSync('git rev-parse HEAD', opts).trim(); + if (!repository || !commit) { + return undefined; + } + return { repository, commit }; + } catch { + return undefined; + } +} diff --git a/packages/aws-cdk-lib/core/lib/stack.ts b/packages/aws-cdk-lib/core/lib/stack.ts index 61f861c2ff82d..911f9231ab1e6 100644 --- a/packages/aws-cdk-lib/core/lib/stack.ts +++ b/packages/aws-cdk-lib/core/lib/stack.ts @@ -1429,11 +1429,25 @@ export class Stack extends Construct implements ITaggable { } } + const metadata: { [key: string]: any } = {}; + if (!this.node.tryGetContext(cxapi.DISABLE_GIT_SOURCE)) { + const gitSource = getGitSource(); + if (gitSource) { + metadata['AWS::CloudFormation::Source'] = { + Repository: gitSource.repository, + Commit: gitSource.commit, + }; + } + } + if (this.templateOptions.metadata) { + Object.assign(metadata, this.templateOptions.metadata); + } + const template: any = { Description: this.templateOptions.description, Transform: transform, AWSTemplateFormatVersion: this.templateOptions.templateFormatVersion, - Metadata: this.templateOptions.metadata, + Metadata: Object.keys(metadata).length > 0 ? metadata : undefined, }; const elements = cfnElements(this); @@ -1902,4 +1916,5 @@ import { PRIVATE_CONTEXT_DEFAULT_STACK_SYNTHESIZER } from './private/private-con import type { Intrinsic } from './private/intrinsic'; import { mutatingAspectPrio32333 } from './private/aspect-prio'; import { AssumptionError, ValidationError } from './errors'; +import { getGitSource } from './private/git-source'; /* eslint-enable import/order */ diff --git a/packages/aws-cdk-lib/core/test/stack.test.ts b/packages/aws-cdk-lib/core/test/stack.test.ts index a40564909ad46..10a5b51b31cd8 100644 --- a/packages/aws-cdk-lib/core/test/stack.test.ts +++ b/packages/aws-cdk-lib/core/test/stack.test.ts @@ -2643,6 +2643,58 @@ describe('regionalFact', () => { }, }); }); + + test('git source metadata is included by default', () => { + const savedEnv = process.env.CDK_DISABLE_GIT_SOURCE; + process.env.CDK_DISABLE_GIT_SOURCE = ''; + try { + const app = new App(); + const stack = new Stack(app, 'Stack'); + new CfnResource(stack, 'Resource', { type: 'MyResource' }); + + const assembly = app.synth(); + const template = assembly.getStackByName(stack.stackName).template; + const source = template?.Metadata?.['AWS::CloudFormation::Source']; + expect(source).toBeDefined(); + expect(typeof source.Repository).toBe('string'); + expect(typeof source.Commit).toBe('string'); + expect(source.Commit).toMatch(/^[a-f0-9]{40}$/); + } finally { + process.env.CDK_DISABLE_GIT_SOURCE = savedEnv; + } + }); + + test('git source metadata is not included when CDK_DISABLE_GIT_SOURCE is set', () => { + const savedEnv = process.env.CDK_DISABLE_GIT_SOURCE; + process.env.CDK_DISABLE_GIT_SOURCE = '1'; + try { + const app = new App(); + const stack = new Stack(app, 'Stack'); + new CfnResource(stack, 'Resource', { type: 'MyResource' }); + + const assembly = app.synth(); + const template = assembly.getStackByName(stack.stackName).template; + expect(template?.Metadata?.['AWS::CloudFormation::Source']).toBeUndefined(); + } finally { + process.env.CDK_DISABLE_GIT_SOURCE = savedEnv; + } + }); + + test('git source metadata is not included when context key is set', () => { + const savedEnv = process.env.CDK_DISABLE_GIT_SOURCE; + process.env.CDK_DISABLE_GIT_SOURCE = ''; + try { + const app = new App({ context: { [cxapi.DISABLE_GIT_SOURCE]: true } }); + const stack = new Stack(app, 'Stack'); + new CfnResource(stack, 'Resource', { type: 'MyResource' }); + + const assembly = app.synth(); + const template = assembly.getStackByName(stack.stackName).template; + expect(template?.Metadata?.['AWS::CloudFormation::Source']).toBeUndefined(); + } finally { + process.env.CDK_DISABLE_GIT_SOURCE = savedEnv; + } + }); }); class StackWithPostProcessor extends Stack { diff --git a/packages/aws-cdk-lib/cx-api/lib/features.ts b/packages/aws-cdk-lib/cx-api/lib/features.ts index 2bb7213ed648d..233355e904023 100644 --- a/packages/aws-cdk-lib/cx-api/lib/features.ts +++ b/packages/aws-cdk-lib/cx-api/lib/features.ts @@ -153,6 +153,7 @@ export const STEPFUNCTIONS_TASKS_HTTPINVOKE_DYNAMIC_JSONPATH_ENDPOINT = '@aws-cd export const CLOUDFRONT_FUNCTION_DEFAULT_RUNTIME_V2_0 = '@aws-cdk/aws-cloudfront:defaultFunctionRuntimeV2_0'; export const ELB_USE_POST_QUANTUM_TLS_POLICY = '@aws-cdk/aws-elasticloadbalancingv2:usePostQuantumTlsPolicy'; export const AUTOMATIC_L1_TRAITS = '@aws-cdk/core:automaticL1Traits'; +export const DISABLE_GIT_SOURCE = '@aws-cdk/core:disableGitSource'; export const FLAGS: Record = { ////////////////////////////////////////////////////////////////////// @@ -1815,6 +1816,20 @@ export const FLAGS: Record = { unconfiguredBehavesLike: { v2: true }, compatibilityWithOldBehaviorMd: 'Register traits explicitly for each resource type', }, + + [DISABLE_GIT_SOURCE]: { + type: FlagType.ApiDefault, + summary: 'Disable git source information in the CloudFormation template metadata', + detailsMd: ` + By default, the synthesized CloudFormation template includes an + \`AWS::CloudFormation::Source\` entry in the top-level \`Metadata\` section + containing the git remote repository URL and the latest commit hash. + Set this flag to \`true\` to disable this behavior. + `, + introducedIn: { v2: 'V2NEXT' }, + recommendedValue: false, + compatibilityWithOldBehaviorMd: 'Set this flag to `true` to stop emitting git source metadata in CloudFormation templates.', + }, }; export const CURRENT_MV = 'v2'; diff --git a/packages/aws-cdk-lib/jest.config.js b/packages/aws-cdk-lib/jest.config.js index 155063d95b925..3825a6763c5a4 100644 --- a/packages/aws-cdk-lib/jest.config.js +++ b/packages/aws-cdk-lib/jest.config.js @@ -22,6 +22,7 @@ const config = { }, testEnvironment: './testhelpers/jest-bufferedconsole.ts', + setupFiles: ['./testhelpers/jest-disable-git-source.ts'], }; module.exports = config; diff --git a/packages/aws-cdk-lib/testhelpers/jest-disable-git-source.ts b/packages/aws-cdk-lib/testhelpers/jest-disable-git-source.ts new file mode 100644 index 0000000000000..48d25ecc827ed --- /dev/null +++ b/packages/aws-cdk-lib/testhelpers/jest-disable-git-source.ts @@ -0,0 +1,3 @@ +// Disable git source metadata in CloudFormation templates during tests +// to avoid breaking existing snapshot/assertion tests. +process.env.CDK_DISABLE_GIT_SOURCE = '1';