Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import * as agw from 'aws-cdk-lib/aws-apigateway';
* * `curl -i <CFN output PetsURL>` 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');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { AuthorizationType, MockIntegration, PassthroughBehavior } from 'aws-cdk
* * `curl -i <CFN output PetsURL>` 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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { AuthorizationType, CognitoUserPoolsAuthorizer, MockIntegration, Passthr
* * c. `curl -s -o /dev/null -w "%{http_code}" -H 'Authorization: <Valid-IdToken>' <url>` 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');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { STANDARD_NODEJS_RUNTIME } from '../../../config';
// `curl -s -o /dev/null -w "%{http_code}" -H 'Authorization: allow' <url>?allow=yes` should return 200

const app = new App({
context: { '@aws-cdk/core:disableGitSource': true },
postCliContext: {
'@aws-cdk/aws-lambda:useCdkManagedLogGroup': false,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import * as apigateway from 'aws-cdk-lib/aws-apigateway';
* * `curl -s -o /dev/null -w "%{http_code}" <CFN output BooksURL>` 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', {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import * as apigateway from 'aws-cdk-lib/aws-apigateway';
* * `curl -i <CFN output PetsURL>` 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', {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,4 +129,4 @@ class DeployStack extends NestedStack {
}
}

new RootStack(new App());
new RootStack(new App({ context: { '@aws-cdk/core:disableGitSource': true } }));
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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', {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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', {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 });

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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', {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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', {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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', {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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', {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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', {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
Expand Down
Loading
Loading