feat(gen2-migration): add gen1 and gen2 test scripts for mood-board app#14729
Merged
iliapolo merged 1 commit intogen2-migrationfrom Mar 31, 2026
Merged
feat(gen2-migration): add gen1 and gen2 test scripts for mood-board app#14729iliapolo merged 1 commit intogen2-migrationfrom
iliapolo merged 1 commit intogen2-migrationfrom
Conversation
Add e2e test scripts for the mood-board migration app, following the same pattern as the other test apps (project-boards, discussions, etc.). New files: - test-utils.ts: shared test functions and orchestrator covering Board/MoodItem CRUD, moodItemsByBoardID index, getRandomEmoji and getKinesisEvents Lambda resolvers, and S3 storage operations. - gen1-test-script.ts: validates Gen1 deployment - gen2-test-script.ts: validates Gen2 deployment Bug fixes found during testing: - schema.graphql: fixed function name case mismatch (moodboardKinesisreader -> moodboardKinesisReader) that caused a Lambda 404 at runtime. - configure.sh: removed configure-schema.sh call that hardcoded the API directory name as "moodboard", which doesn't match the deployment-name-based directory created by amplify add api. The category initializer already handles schema updates dynamically. Validated by running the full migration CLI pipeline: gen1 post-push, gen2 post-generate, and gen1 post-refactor all passed with zero failures. --- Prompt: create a gen1 test script and gen2 test script for mood-board app
iliapolo
approved these changes
Mar 31, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description of changes
Adds Gen1 and Gen2 e2e test scripts for the mood-board migration app, enabling automated validation during the full migration pipeline.
The test scripts cover:
moodItemsByBoardIDindex querygetRandomEmojiLambda resolver (userPool auth)getKinesisEventsLambda resolver (userPool auth)Also fixes two pre-existing bugs discovered during testing:
schema.graphql:moodboardKinesisreader→moodboardKinesisReader(case mismatch caused Lambda 404)configure.sh: removedconfigure-schema.shcall that hardcoded the API directory asmoodboard, which doesn't match the deployment-name-based directory. The category initializer already handles schema updates dynamically.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.