@aws-cdk_integ-tests-alpha.ActualResult

class ActualResult ๐Ÿ”น

LanguageType name
.NETAmazon.CDK.IntegTests.Alpha.ActualResult
Gogithub.com/aws/aws-cdk-go/awscdkintegtestsalpha/v2#ActualResult
Javasoftware.amazon.awscdk.integtests.alpha.ActualResult
Pythonaws_cdk.integ_tests_alpha.ActualResult
TypeScript (source)@aws-cdk/integ-tests-alpha ยป ActualResult

Represents the "actual" results to compare.

Example

declare const myCustomResource: CustomResource;
declare const stack: Stack;
declare const app: App;

const integ = new IntegTest(app, 'Integ', { testCases: [stack] });
integ.assertions.expect(
  'CustomAssertion',
  ExpectedResult.objectLike({ foo: 'bar' }),
  ActualResult.fromCustomResource(myCustomResource, 'data'),
);

Initializer

new ActualResult()

Properties

NameTypeDescription
result๐Ÿ”นstringThe actual results as a string.

result๐Ÿ”น

Type: string

The actual results as a string.

Methods

NameDescription
static fromAwsApiCall(query, attribute)๐Ÿ”นGet the actual results from a AwsApiCall.
static fromCustomResource(customResource, attribute)๐Ÿ”นGet the actual results from a CustomResource.

static fromAwsApiCall(query, attribute)๐Ÿ”น

public static fromAwsApiCall(query: IApiCall, attribute: string): ActualResult

Parameters

  • query IApiCall
  • attribute string

Returns

  • ActualResult

Get the actual results from a AwsApiCall.


static fromCustomResource(customResource, attribute)๐Ÿ”น

public static fromCustomResource(customResource: CustomResource, attribute: string): ActualResult

Parameters

  • customResource CustomResource
  • attribute string

Returns

  • ActualResult

Get the actual results from a CustomResource.