amplify-category-api icon indicating copy to clipboard operation
amplify-category-api copied to clipboard

test: migration e2es

Open dpilch opened this issue 1 year ago • 0 comments

Description of changes

Add migration e2es for three schemas (basic, references, many-to-many). The tests all follow the same pattern.

  1. Create a gen 1 project.
  2. Get the table mapping from gen 1 project
  3. Create a gen 2 project with the table mapping.
  4. Make queries/mutations on both gen 1 and gen 2.
  5. Delete gen 1 project.
  6. 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 test passes
  • [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.

dpilch avatar Jul 12 '24 14:07 dpilch