generated from amazon-archives/__template_Apache-2.0
-
Notifications
You must be signed in to change notification settings - Fork 89
test: migration e2es #2703
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
test: migration e2es #2703
Changes from all commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
711e445
test: start migration e2es
464aa6d
test: working base migration test
b3e85f5
tests: add tests for other cases
5451692
style: fix lint errors
1ea7fb6
chore: temp test setup
f9a924c
test: add references migration e2e test
0c7a040
test: add many-to-many migration e2e test
429ca15
test: fix index creation for many-to-many
debbadc
test: add ddb cleanup for migration tests
3bbd8e7
test: improve assertions
7ddc3d9
docs: remove unnecessary comments
eb5ce6d
test: undo temp testing changes
c73463c
chore: split e2e tests
3fd11fc
test: set duration timeout to 20 min
c6b9054
test: fix ddb client region
e549360
style: add new line to end of file
fb2993e
test: update test name
c5e62a6
chore: remove unnecessary schema
67f550e
test: remove unused test file
5731e6b
style: sort imports
15f06e8
docs: add comment on second migration push
cdb726d
docs: add comment to clarify table retain logic
8051d3d
Revert "test: undo temp testing changes"
33ea1b4
test: use configurable stack
bfe9525
Revert "Revert "test: undo temp testing changes""
53bb5da
docs: add comment for create assertions
d516f53
fix: remove unused cdk apps
5029390
style: run prettier
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| type Post @model @auth(rules: [{ allow: public }]) { | ||
| id: ID! | ||
| title: String! | ||
| content: String | ||
| tags: [Tag] @manyToMany(relationName: "PostTags") | ||
| } | ||
|
|
||
| type Tag @model @auth(rules: [{ allow: public }]) { | ||
| id: ID! | ||
| label: String! | ||
| posts: [Post] @manyToMany(relationName: "PostTags") | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| type Primary @model @auth(rules: [{ allow: public }]) { | ||
| id: ID! @primaryKey | ||
| relatedMany: [RelatedMany] @hasMany(references: "primaryId") | ||
| relatedOne: RelatedOne @hasOne(references: "primaryId") | ||
| } | ||
|
|
||
| type RelatedMany @model @auth(rules: [{ allow: public }]) { | ||
| id: ID! @primaryKey | ||
| primaryId: String | ||
| primary: Primary @belongsTo(references: ["primaryId"]) | ||
| } | ||
|
|
||
| type RelatedOne @model @auth(rules: [{ allow: public }]) { | ||
| id: ID! @primaryKey | ||
| primaryId: String | ||
| primary: Primary @belongsTo(references: ["primaryId"]) | ||
| } |
4 changes: 4 additions & 0 deletions
4
packages/amplify-e2e-tests/schemas/simple_model_public_auth.graphql
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| type Todo @model @auth(rules: [{ allow: public }]) { | ||
| id: ID! | ||
| content: String | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.