Skip to content

Commit e2819b3

Browse files
authored
chore(integ-tests): status should be an enum type (#20364)
rosetta infuse has trouble generating an example for `status`. Also, this should be an enum type anyway. ---- ### All Submissions: * [ ] Have you followed the guidelines in our [Contributing guide?](https://github.com/aws/aws-cdk/blob/master/CONTRIBUTING.md) ### Adding new Unconventional Dependencies: * [ ] This PR adds new unconventional dependencies following the process described [here](https://github.com/aws/aws-cdk/blob/master/CONTRIBUTING.md/#adding-new-unconventional-dependencies) ### New Features * [ ] Have you added the new feature to an [integration test](https://github.com/aws/aws-cdk/blob/master/INTEGRATION_TESTS.md)? * [ ] Did you use `yarn integ` to deploy the infrastructure and generate the snapshot (i.e. `yarn integ` without `--dry-run`)? *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent 3ff3fb7 commit e2819b3

File tree

1 file changed

+16
-1
lines changed
  • packages/@aws-cdk/integ-tests/lib/assertions/providers/lambda-handler

1 file changed

+16
-1
lines changed

packages/@aws-cdk/integ-tests/lib/assertions/providers/lambda-handler/types.ts

+16-1
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,21 @@ export interface AssertionResult {
122122
readonly failed?: boolean;
123123
}
124124

125+
/**
126+
* The status of the assertion
127+
*/
128+
export enum Status {
129+
/**
130+
* The assertion passed
131+
*/
132+
PASS = 'pass',
133+
134+
/**
135+
* The assertion failed
136+
*/
137+
FAIL = 'fail',
138+
}
139+
125140
/**
126141
* The result of an assertion
127142
*/
@@ -130,7 +145,7 @@ export interface AssertionResultData {
130145
* The status of the assertion, i.e.
131146
* pass or fail
132147
*/
133-
readonly status: 'pass' | 'fail'
148+
readonly status: Status;
134149

135150
/**
136151
* Any message returned with the assertion result

0 commit comments

Comments
 (0)