Class IntegTestProps.Builder
java.lang.Object
software.amazon.awscdk.integtests.alpha.IntegTestProps.Builder
- All Implemented Interfaces:
- software.amazon.jsii.Builder<IntegTestProps>
- Enclosing interface:
- IntegTestProps
@Stability(Experimental)
public static final class IntegTestProps.Builder
extends Object
implements software.amazon.jsii.Builder<IntegTestProps>
A builder for 
IntegTestProps- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionallowDestroy(List<String> allowDestroy) Sets the value ofTestOptions.getAllowDestroy()assertionStack(Stack assertionStack) Sets the value ofIntegTestProps.getAssertionStack()build()Builds the configured instance.cdkCommandOptions(CdkCommands cdkCommandOptions) Sets the value ofTestOptions.getCdkCommandOptions()diffAssets(Boolean diffAssets) Sets the value ofTestOptions.getDiffAssets()enableLookups(Boolean enableLookups) Sets the value ofIntegTestProps.getEnableLookups()Sets the value ofTestOptions.getHooks()Sets the value ofTestOptions.getRegions()stackUpdateWorkflow(Boolean stackUpdateWorkflow) Sets the value ofTestOptions.getStackUpdateWorkflow()Sets the value ofIntegTestProps.getTestCases()
- 
Constructor Details- 
Builderpublic Builder()
 
- 
- 
Method Details- 
testCasesSets the value ofIntegTestProps.getTestCases()- Parameters:
- testCases- List of test cases that make up this test. This parameter is required.
- Returns:
- this
 
- 
assertionStackSets the value ofIntegTestProps.getAssertionStack()- Parameters:
- assertionStack- Specify a stack to use for assertions.
- Returns:
- this
 
- 
enableLookupsSets the value ofIntegTestProps.getEnableLookups()- Parameters:
- enableLookups- Enable lookups for this test. If lookups are enabled then- stackUpdateWorkflowmust be set to false. Lookups should only be enabled when you are explicitly testing lookups.
- Returns:
- this
 
- 
allowDestroySets the value ofTestOptions.getAllowDestroy()- Parameters:
- 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'] 
- Returns:
- this
 
- 
cdkCommandOptionsSets the value ofTestOptions.getCdkCommandOptions()- Parameters:
- cdkCommandOptions- Additional options to use for each CDK command.
- Returns:
- this
 
- 
diffAssetsSets the value ofTestOptions.getDiffAssets()- Parameters:
- 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 bundling
- Returns:
- this
 
- 
hooksSets the value ofTestOptions.getHooks()- Parameters:
- hooks- Additional commands to run at predefined points in the test workflow. e.g. { postDeploy: ['yarn', 'test'] }
- Returns:
- this
 
- 
regionsSets the value ofTestOptions.getRegions()- Parameters:
- regions- Limit deployment to these regions.
- Returns:
- this
 
- 
stackUpdateWorkflowSets the value ofTestOptions.getStackUpdateWorkflow()- Parameters:
- 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.
- Returns:
- this
 
- 
buildBuilds the configured instance.- Specified by:
- buildin interface- software.amazon.jsii.Builder<IntegTestProps>
- Returns:
- a new instance of IntegTestProps
- Throws:
- NullPointerException- if any required attribute was not provided
 
 
-