-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use specrestapi in integ test and readme example
- Loading branch information
gracelu0
committed
Apr 25, 2024
1 parent
d0955d0
commit d029be0
Showing
13 changed files
with
309 additions
and
215 deletions.
There are no files selected for viewing
12 changes: 0 additions & 12 deletions
12
...nteg/test/aws-apigateway/test/integ.restapi.import-deploymentstage.js.snapshot/integ.json
This file was deleted.
Oops, something went wrong.
75 changes: 0 additions & 75 deletions
75
...mport-deploymentstage.js.snapshot/integtest-restapi-import-deployment-stage.template.json
This file was deleted.
Oops, something went wrong.
24 changes: 0 additions & 24 deletions
24
...-testing/framework-integ/test/aws-apigateway/test/integ.restapi.import-deploymentstage.ts
This file was deleted.
Oops, something went wrong.
File renamed without changes.
12 changes: 12 additions & 0 deletions
12
...test/aws-apigateway/test/integ.spec-restapi.import-deploymentstage.js.snapshot/integ.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
6 changes: 3 additions & 3 deletions
6
...stapi-import-deployment-stage.assets.json → ...stapi-import-deployment-stage.assets.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
100 changes: 100 additions & 0 deletions
100
...t-deploymentstage.js.snapshot/integtest-specrestapi-import-deployment-stage.template.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
{ | ||
"Resources": { | ||
"myapi4C7BF186": { | ||
"Type": "AWS::ApiGateway::RestApi", | ||
"Properties": { | ||
"Body": { | ||
"openapi": "3.0.2", | ||
"info": { | ||
"version": "1.0.0", | ||
"title": "Test API for CDK" | ||
}, | ||
"paths": { | ||
"/pets": { | ||
"get": { | ||
"summary": "Test Method", | ||
"operationId": "testMethod", | ||
"responses": { | ||
"200": { | ||
"description": "A paged array of pets", | ||
"content": { | ||
"application/json": { | ||
"schema": { | ||
"$ref": "#/components/schemas/Empty" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"x-amazon-apigateway-integration": { | ||
"responses": { | ||
"default": { | ||
"statusCode": "200" | ||
} | ||
}, | ||
"requestTemplates": { | ||
"application/json": "{\"statusCode\": 200}" | ||
}, | ||
"passthroughBehavior": "when_no_match", | ||
"type": "mock" | ||
} | ||
} | ||
} | ||
}, | ||
"components": { | ||
"schemas": { | ||
"Empty": { | ||
"title": "Empty Schema", | ||
"type": "object" | ||
} | ||
} | ||
} | ||
}, | ||
"Name": "my-api" | ||
} | ||
}, | ||
"MyManualDeployment92F2175C1dcdcb8f1c24d86b6090e78df1fafcd3": { | ||
"Type": "AWS::ApiGateway::Deployment", | ||
"Properties": { | ||
"RestApiId": { | ||
"Ref": "myapi4C7BF186" | ||
}, | ||
"StageName": "myStage" | ||
} | ||
} | ||
}, | ||
"Parameters": { | ||
"BootstrapVersion": { | ||
"Type": "AWS::SSM::Parameter::Value<String>", | ||
"Default": "/cdk-bootstrap/hnb659fds/version", | ||
"Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]" | ||
} | ||
}, | ||
"Rules": { | ||
"CheckBootstrapVersion": { | ||
"Assertions": [ | ||
{ | ||
"Assert": { | ||
"Fn::Not": [ | ||
{ | ||
"Fn::Contains": [ | ||
[ | ||
"1", | ||
"2", | ||
"3", | ||
"4", | ||
"5" | ||
], | ||
{ | ||
"Ref": "BootstrapVersion" | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
"AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI." | ||
} | ||
] | ||
} | ||
} | ||
} |
59 changes: 22 additions & 37 deletions
59
...deploymentstage.js.snapshot/manifest.json → ...deploymentstage.js.snapshot/manifest.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.