You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(integ-tests): enhancements to integ-tests (#20180)
This PR contains various enhancements including
- `integ-tests`
- removed dependency on other CDK libraries (other than core)
- API ergonomics improvements
- renamed `queryAws` to `awsApiCall`
- added some additional methods
- Now using `Match` from @aws-cdk/assertions for the assertions provider
- `DeployAssert` now creates its own stack
- This stack is written to a new IntegManifest property so that it can be treated differently
(i.e. don't diff this stack)
- Additional assertion types (OBJECT_LIKE)
- Refactored assertion results
- removed separate results handler in favor of just writing results to a stack output
- utility for invoking lambda functions (separate from `awsApiCall`)
- `IntegTest` now creates a test case by default.
- Added `IntegTestCaseStack` class
- `integ-runner`
- Updated to handle the results of assertions
- When running with update workflow, the assertion stack is only deployed during the
"update" deployment
- The stack outputs containing the assertion results are are written to a
file that the runner can read.
I've also converted/added assertions to a couple of existing integration tests
- `aws-lambda/test/integ.bundling.ts`
- `aws-lambda-destinations/test/integ.destinations.ts`
- `aws-stepfunctions-tasks/test/eventbridge/integ.put-events.ts`
----
### 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*
0 commit comments