class ActualResult
Language | Type name |
---|---|
.NET | Amazon.CDK.IntegTests.Alpha.ActualResult |
Go | github.com/aws/aws-cdk-go/awscdkintegtestsalpha/v2#ActualResult |
Java | software.amazon.awscdk.integtests.alpha.ActualResult |
Python | aws_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
Name | Type | Description |
---|---|---|
result | string | The actual results as a string. |
result
Type:
string
The actual results as a string.
Methods
Name | Description |
---|---|
static from | Get the actual results from a AwsApiCall. |
static from | Get the actual results from a CustomResource. |
static fromAwsApiCall(query, attribute)
public static fromAwsApiCall(query: IApiCall, attribute: string): ActualResult
Parameters
- query
IApi
Call - attribute
string
Returns
Get the actual results from a AwsApiCall.
static fromCustomResource(customResource, attribute)
public static fromCustomResource(customResource: CustomResource, attribute: string): ActualResult
Parameters
- customResource
Custom
Resource - attribute
string
Returns
Get the actual results from a CustomResource.