interface EqualsAssertionProps
Language | Type name |
---|---|
.NET | Amazon.CDK.IntegTests.Alpha.EqualsAssertionProps |
Go | github.com/aws/aws-cdk-go/awscdkintegtestsalpha/v2#EqualsAssertionProps |
Java | software.amazon.awscdk.integtests.alpha.EqualsAssertionProps |
Python | aws_cdk.integ_tests_alpha.EqualsAssertionProps |
TypeScript (source) | @aws-cdk/integ-tests-alpha ยป EqualsAssertionProps |
Options for an EqualsAssertion.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as integ_tests_alpha from '@aws-cdk/integ-tests-alpha';
declare const actualResult: integ_tests_alpha.ActualResult;
declare const expectedResult: integ_tests_alpha.ExpectedResult;
const equalsAssertionProps: integ_tests_alpha.EqualsAssertionProps = {
actual: actualResult,
expected: expectedResult,
// the properties below are optional
failDeployment: false,
};
Properties
Name | Type | Description |
---|---|---|
actual | Actual | The actual results to compare. |
expected | Expected | The expected result to assert. |
fail | boolean | Set this to true if a failed assertion should result in a CloudFormation deployment failure. |
actual
Type:
Actual
The actual results to compare.
expected
Type:
Expected
The expected result to assert.
failDeployment?
Type:
boolean
(optional, default: false)
Set this to true if a failed assertion should result in a CloudFormation deployment failure.
This is only necessary if assertions are being
executed outside of integ-runner
.