amplify-category-api
amplify-category-api copied to clipboard
test: migration e2es
Description of changes
Add migration e2es for three schemas (basic, references, many-to-many). The tests all follow the same pattern.
- Create a gen 1 project.
- Get the table mapping from gen 1 project
- Create a gen 2 project with the table mapping.
- Make queries/mutations on both gen 1 and gen 2.
- Delete gen 1 project.
- Query gen 2 project to ensure imported table still exists.
In a following PR these tests will be augmented to include modifying the table from the gen 2 project after the gen 1 project is deleted.
Additional E2E tests for import validation will come in a later PR.
CDK / CloudFormation Parameters Changed
N/A
Issue #, if available
N/A
Description of how you validated changes
N/A
Checklist
- [x] PR description included
- [x]
yarn testpasses - [x] Tests are changed or added
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.