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. |
static fromAwsApiCall(query, attribute)
public static fromAwsApiCall(query: IAwsApiCall, attribute: string): ActualResult
Parameters
- query
IAwsApi 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
CustomResource - attribute
string
Returns
Get the actual results from a CustomResource.

.NET
Java
Python
TypeScript (