Experimental
@aws-cdk/integ-tests-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.
ActualResult Class
Represents the "actual" results to compare.
Example
ts
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
ts
new ActualResult()
python
ActualResult()
java
new ActualResult()
csharp
new ActualResult()
go
NewActualResult()
Properties
The actual results as a string.
Methods
fromAwsApiCall(query: IApiCall, attribute: string): ActualResult // chainable@staticmethod def from_aws_api_call(query: IApiCall, attribute: str) -> ActualResultpublic static ActualResult fromAwsApiCall(IApiCall query, String attribute)public static ActualResult FromAwsApiCall(IApiCall query, string attribute)func FromAwsApiCall(Query IApiCall, Attribute *string) ActualResultstatic#Get the actual results from a AwsApiCall.
fromCustomResource(customResource: CustomResource, attribute: string): ActualResult // chainable@staticmethod def from_custom_resource(custom_resource: CustomResource, attribute: str) -> ActualResultpublic static ActualResult fromCustomResource(CustomResource customResource, String attribute)public static ActualResult FromCustomResource(CustomResource customResource, string attribute)func FromCustomResource(CustomResource CustomResource, Attribute *string) ActualResultstatic#Get the actual results from a CustomResource.