Interface IntegTestProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
,TestOptions
- All Known Implementing Classes:
IntegTestProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-22T02:24:11.293Z")
@Stability(Experimental)
public interface IntegTestProps
extends software.amazon.jsii.JsiiSerializable, TestOptions
(experimental) Integration test properties.
Example:
IFunction lambdaFunction; App app; Stack stack = new Stack(app, "cdk-integ-lambda-bundling"); IntegTest integ = IntegTest.Builder.create(app, "IntegTest") .testCases(List.of(stack)) .build(); IApiCall invoke = integ.assertions.invokeFunction(LambdaInvokeFunctionProps.builder() .functionName(lambdaFunction.getFunctionName()) .build()); invoke.expect(ExpectedResult.objectLike(Map.of( "Payload", "200")));
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forIntegTestProps
static final class
An implementation forIntegTestProps
-
Method Summary
Modifier and TypeMethodDescriptionstatic IntegTestProps.Builder
builder()
default Stack
(experimental) Specify a stack to use for assertions.default Boolean
(experimental) Enable lookups for this test.(experimental) List of test cases that make up this test.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
Methods inherited from interface software.amazon.awscdk.cloud_assembly_schema.TestOptions
getAllowDestroy, getCdkCommandOptions, getDiffAssets, getHooks, getRegions, getStackUpdateWorkflow
-
Method Details
-
getTestCases
(experimental) List of test cases that make up this test. -
getAssertionStack
(experimental) Specify a stack to use for assertions.Default: - a stack is created for you
-
getEnableLookups
(experimental) Enable lookups for this test.If lookups are enabled then
stackUpdateWorkflow
must be set to false. Lookups should only be enabled when you are explicitly testing lookups.Default: false
-
builder
- Returns:
- a
IntegTestProps.Builder
ofIntegTestProps
-