Skip to content

Commit

Permalink
Merge branch 'master' into kaizen3031593-patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
mergify[bot] authored Apr 13, 2022
2 parents 260b617 + b214ede commit f2c912e
Show file tree
Hide file tree
Showing 40 changed files with 1,864 additions and 5,565 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"ResourceTypes": {
"patch": {
"description": "Remove the DomainArn attribute of AWS::OpenSearchService::Domain resources, as it is unsupported by CloudFormation",
"operations": [
{
"op": "remove",
"path": "/AWS::OpenSearchService::Domain/Attributes/DomainArn"
}
]
}
}
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"ResourceTypes": {
"AWS::Serverless::Api": {
"Properties": {
"GatewayResponses": {
"patch": {
"description": "Make the GatewayResponses property of AWS::Serverless::Api accept JSON",
"operations": [
{
"op": "remove",
"path": "/PrimitiveItemType"
},
{
"op": "remove",
"path": "/Type"
},
{
"op": "add",
"path": "/PrimitiveType",
"value": "Json"
}
]
}
},
"Models": {
"patch": {
"description": "Make the Models property of AWS::Serverless::Api accept JSON",
"operations": [
{
"op": "remove",
"path": "/PrimitiveItemType"
},
{
"op": "remove",
"path": "/Type"
},
{
"op": "add",
"path": "/PrimitiveType",
"value": "Json"
}
]
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,17 +1,9 @@
import { DeployOptions, DestroyOptions } from './commands';

/**
* Represents an integration test test case
* The set of options to control the workflow of the test runner
*/
export interface TestCase {
/**
* Stacks that should be tested as part of this test case
* The stackNames will be passed as args to the cdk commands
* so dependent stacks will be automatically deployed unless
* `exclusively` is passed
*/
readonly stacks: string[];

export interface TestOptions {
/**
* Run update workflow on this test case
* This should only be set to false to test scenarios
Expand All @@ -22,54 +14,67 @@ export interface TestCase {
readonly stackUpdateWorkflow?: boolean;

/**
* Additional options to use for each CDK command
*
* @default - runner default options
*/
* Additional options to use for each CDK command
*
* @default - runner default options
*/
readonly cdkCommandOptions?: CdkCommands;

/**
* Additional commands to run at predefined points in the test workflow
*
* e.g. { postDeploy: ['yarn', 'test'] }
*
* @default - no hooks
*/
* Additional commands to run at predefined points in the test workflow
*
* e.g. { postDeploy: ['yarn', 'test'] }
*
* @default - no hooks
*/
readonly hooks?: Hooks;

/**
* Whether or not to include asset hashes in the diff
* Asset hashes can introduces a lot of unneccessary noise into tests,
* but there are some cases where asset hashes _should_ be included. For example
* any tests involving custom resources or bundling
*
* @default false
*/
* Whether or not to include asset hashes in the diff
* Asset hashes can introduces a lot of unneccessary noise into tests,
* but there are some cases where asset hashes _should_ be included. For example
* any tests involving custom resources or bundling
*
* @default false
*/
readonly diffAssets?: boolean;

/**
* List of CloudFormation resource types in this stack that can
* be destroyed as part of an update without failing the test.
*
* This list should only include resources that for this specific
* integration test we are sure will not cause errors or an outage if
* destroyed. For example, maybe we know that a new resource will be created
* first before the old resource is destroyed which prevents any outage.
*
* e.g. ['AWS::IAM::Role']
*
* @default - do not allow destruction of any resources on update
*/
* List of CloudFormation resource types in this stack that can
* be destroyed as part of an update without failing the test.
*
* This list should only include resources that for this specific
* integration test we are sure will not cause errors or an outage if
* destroyed. For example, maybe we know that a new resource will be created
* first before the old resource is destroyed which prevents any outage.
*
* e.g. ['AWS::IAM::Role']
*
* @default - do not allow destruction of any resources on update
*/
readonly allowDestroy?: string[];

/**
* Limit deployment to these regions
*
* @default - can run in any region
*/
* Limit deployment to these regions
*
* @default - can run in any region
*/
readonly regions?: string[];
}

/**
* Represents an integration test case
*/
export interface TestCase extends TestOptions {
/**
* Stacks that should be tested as part of this test case
* The stackNames will be passed as args to the cdk commands
* so dependent stacks will be automatically deployed unless
* `exclusively` is passed
*/
readonly stacks: string[];
}

/**
* Commands to run at predefined points during the
* integration test workflow
Expand Down

This file was deleted.

Loading

0 comments on commit f2c912e

Please sign in to comment.