Skip to content
v2.275.0

Experimental

@aws-cdk/integ-tests-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.

AssertionRequest Struct ​

A request to make an assertion that the actual value matches the expected.

Example ​

ts
// 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 actual: any;
declare const expected: any;
const assertionRequest: integ_tests_alpha.AssertionRequest = {
  actual: actual,
  expected: expected,

  // the properties below are optional
  failDeployment: false,
};

Properties ​

actualanyactualAnyactualObjectActualobjectActualinterface{}required#
The actual value received.
expectedanyexpectedAnyexpectedObjectExpectedobjectExpectedinterface{}required#
The expected value to assert.
failDeploymentoptionalbooleanfail_deploymentoptionalboolfailDeploymentoptionalBooleanFailDeploymentoptionalboolFailDeploymentoptional*bool= 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.