Skip to content
v2.276.0

Experimental

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

EqualsAssertionProps Struct ​

Options for an EqualsAssertion.

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';
import { aws_lambda as lambda } from 'aws-cdk-lib';

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,
  providerLogLevel: lambda.ApplicationLogLevel.INFO,
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.integ_tests_alpha as integ_tests_alpha
from aws_cdk import aws_lambda as lambda_

# actual_result: integ_tests_alpha.ActualResult
# expected_result: integ_tests_alpha.ExpectedResult

equals_assertion_props = integ_tests_alpha.EqualsAssertionProps(
    actual=actual_result,
    expected=expected_result,

    # the properties below are optional
    fail_deployment=False,
    provider_log_level=lambda_.ApplicationLogLevel.INFO
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.integtests.alpha.*;
import software.amazon.awscdk.services.lambda.*;

ActualResult actualResult;
ExpectedResult expectedResult;

EqualsAssertionProps equalsAssertionProps = EqualsAssertionProps.builder()
        .actual(actualResult)
        .expected(expectedResult)

        // the properties below are optional
        .failDeployment(false)
        .providerLogLevel(ApplicationLogLevel.INFO)
        .build();
csharp
// Install: dotnet add package Amazon.CDK.IntegTests.Alpha
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.IntegTests.Alpha;
using Amazon.CDK.AWS.Lambda;

ActualResult actualResult;
ExpectedResult expectedResult;

var equalsAssertionProps = new EqualsAssertionProps {
    Actual = actualResult,
    Expected = expectedResult,

    // the properties below are optional
    FailDeployment = false,
    ProviderLogLevel = ApplicationLogLevel.INFO
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdkintegtestsalpha/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import integ_tests_alpha "github.com/aws/aws-cdk-go/awscdkintegtestsalpha"
import "github.com/aws/aws-cdk-go/awscdk"

var actualResult ActualResult
var expectedResult ExpectedResult

equalsAssertionProps := &EqualsAssertionProps{
	Actual: actualResult,
	Expected: expectedResult,

	// the properties below are optional
	FailDeployment: jsii.Boolean(false),
	ProviderLogLevel: awscdk.Aws_lambda.ApplicationLogLevel_INFO,
}

Properties ​

The actual results to compare.
expectedExpectedResultexpectedExpectedResultexpectedExpectedResultExpectedExpectedResultExpectedExpectedResultrequired#
The expected result 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.

providerLogLeveloptionalApplicationLogLevelprovider_log_leveloptionalApplicationLogLevelproviderLogLeveloptionalApplicationLogLevelProviderLogLeveloptionalApplicationLogLevelProviderLogLeveloptionalApplicationLogLevel= ApplicationLogLevel.FATAL#
The log level of the provider lambda function.