class ActualResult
Language | Type name |
---|---|
.NET | Amazon.CDK.IntegTests.ActualResult |
Java | software.amazon.awscdk.integtests.ActualResult |
Python | aws_cdk.integ_tests.ActualResult |
TypeScript (source) | @aws-cdk/integ-tests » 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. |
AwsApiCall(query, attribute)
static frompublic static fromAwsApiCall(query: IAwsApiCall, attribute: string): ActualResult
Parameters
- query
IAws
Api Call - attribute
string
Returns
Get the actual results from a AwsApiCall.
CustomResource(customResource, attribute)
static frompublic static fromCustomResource(customResource: CustomResource, attribute: string): ActualResult
Parameters
- customResource
Custom
Resource - attribute
string
Returns
Get the actual results from a CustomResource.