@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:42.865Z") @Stability(value=Stable) public interface TestCase extends software.amazon.jsii.JsiiSerializable, TestOptions
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.cloudassembly.schema.*;
TestCase testCase = TestCase.builder()
.stacks(List.of("stacks"))
// the properties below are optional
.allowDestroy(List.of("allowDestroy"))
.assertionStack("assertionStack")
.assertionStackName("assertionStackName")
.cdkCommandOptions(CdkCommands.builder()
.deploy(DeployCommand.builder()
.args(DeployOptions.builder()
.all(false)
.app("app")
.assetMetadata(false)
.caBundlePath("caBundlePath")
.changeSetName("changeSetName")
.ci(false)
.color(false)
.context(Map.of(
"contextKey", "context"))
.debug(false)
.ec2Creds(false)
.exclusively(false)
.execute(false)
.force(false)
.ignoreErrors(false)
.json(false)
.lookups(false)
.notices(false)
.notificationArns(List.of("notificationArns"))
.output("output")
.outputsFile("outputsFile")
.parameters(Map.of(
"parametersKey", "parameters"))
.pathMetadata(false)
.profile("profile")
.proxy("proxy")
.requireApproval(RequireApproval.NEVER)
.reuseAssets(List.of("reuseAssets"))
.roleArn("roleArn")
.rollback(false)
.stacks(List.of("stacks"))
.staging(false)
.strict(false)
.toolkitStackName("toolkitStackName")
.trace(false)
.usePreviousParameters(false)
.verbose(false)
.versionReporting(false)
.build())
.enabled(false)
.expectedMessage("expectedMessage")
.expectError(false)
.build())
.destroy(DestroyCommand.builder()
.args(DestroyOptions.builder()
.all(false)
.app("app")
.assetMetadata(false)
.caBundlePath("caBundlePath")
.color(false)
.context(Map.of(
"contextKey", "context"))
.debug(false)
.ec2Creds(false)
.exclusively(false)
.force(false)
.ignoreErrors(false)
.json(false)
.lookups(false)
.notices(false)
.output("output")
.pathMetadata(false)
.profile("profile")
.proxy("proxy")
.roleArn("roleArn")
.stacks(List.of("stacks"))
.staging(false)
.strict(false)
.trace(false)
.verbose(false)
.versionReporting(false)
.build())
.enabled(false)
.expectedMessage("expectedMessage")
.expectError(false)
.build())
.build())
.diffAssets(false)
.hooks(Hooks.builder()
.postDeploy(List.of("postDeploy"))
.postDestroy(List.of("postDestroy"))
.preDeploy(List.of("preDeploy"))
.preDestroy(List.of("preDestroy"))
.build())
.regions(List.of("regions"))
.stackUpdateWorkflow(false)
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
TestCase.Builder
A builder for
TestCase |
static class |
TestCase.Jsii$Proxy
An implementation for
TestCase |
| Modifier and Type | Method and Description |
|---|---|
static TestCase.Builder |
builder() |
default String |
getAssertionStack()
The node id of the stack that contains assertions.
|
default String |
getAssertionStackName()
The name of the stack that contains assertions.
|
List<String> |
getStacks()
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.
|
getAllowDestroy, getCdkCommandOptions, getDiffAssets, getHooks, getRegions, getStackUpdateWorkflow@Stability(value=Stable) @NotNull List<String> getStacks()
@Stability(value=Stable) @Nullable default String getAssertionStack()
This is the value that can be used to deploy the stack with the CDK CLI
Default: - no assertion stack
@Stability(value=Stable) @Nullable default String getAssertionStackName()
Default: - no assertion stack
@Stability(value=Stable) static TestCase.Builder builder()
builder in interface TestOptionsTestCase.Builder of TestCaseCopyright © 2022. All rights reserved.