| Constructor and Description |
|---|
Builder() |
@Stability(value=Stable) public TestCase.Builder stacks(List<String> stacks)
TestCase.getStacks()stacks - 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. This parameter is required.this@Stability(value=Stable) public TestCase.Builder assertionStack(String assertionStack)
TestCase.getAssertionStack()assertionStack - The node id of the stack that contains assertions.
This is the value that can be used to deploy the stack with the CDK CLIthis@Stability(value=Stable) public TestCase.Builder assertionStackName(String assertionStackName)
TestCase.getAssertionStackName()assertionStackName - The name of the stack that contains assertions.this@Stability(value=Stable) public TestCase.Builder allowDestroy(List<String> allowDestroy)
TestOptions.getAllowDestroy()allowDestroy - 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']
this@Stability(value=Stable) public TestCase.Builder cdkCommandOptions(CdkCommands cdkCommandOptions)
TestOptions.getCdkCommandOptions()cdkCommandOptions - Additional options to use for each CDK command.this@Stability(value=Stable) public TestCase.Builder diffAssets(Boolean diffAssets)
TestOptions.getDiffAssets()diffAssets - 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 bundlingthis@Stability(value=Stable) public TestCase.Builder hooks(Hooks hooks)
TestOptions.getHooks()hooks - Additional commands to run at predefined points in the test workflow.
e.g. { postDeploy: ['yarn', 'test'] }this@Stability(value=Stable) public TestCase.Builder regions(List<String> regions)
TestOptions.getRegions()regions - Limit deployment to these regions.this@Stability(value=Stable) public TestCase.Builder stackUpdateWorkflow(Boolean stackUpdateWorkflow)
TestOptions.getStackUpdateWorkflow()stackUpdateWorkflow - Run update workflow on this test case This should only be set to false to test scenarios that are not possible to test as part of the update workflow.this@Stability(value=Stable) public TestCase build()
build in interface software.amazon.jsii.Builder<TestCase>TestCaseNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.