chore: migration test suite#51
Merged
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #51 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 3 3
Lines 262 262
Branches 9 9
=========================================
Hits 262 262 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
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.



This pull request introduces a comprehensive migration test harness for
aws-cdk-github-oidc, enabling automated validation of migration flows across multiple major versions. The harness is implemented as an isolated CDK app with supporting scripts and configuration, and it programmatically exercises upgrade, resource retention, lookup, and import scenarios. The most important changes are as follows:Migration Test Harness Implementation
migration-testdirectory containing a standalone CDK app, which can switch between differentaws-cdk-github-oidcversions and migration phases using theMIGRATION_PHASEenvironment variable. The app includes logic to create, retain, look up, and import the OIDC provider resource, validating real-world migration flows. (migration-test/lib/migration-test-stack.ts, migration-test/lib/migration-test-stack.tsR1-R77)scripts/run-migration.sh) that automates the full migration sequence, including dependency upgrades, stack deployments, resource lookups, and post-import verification, ensuring end-to-end coverage. (migration-test/scripts/run-migration.sh, migration-test/scripts/run-migration.shR1-R109)Configuration and Documentation
README.mddescribing the migration flow, stack behavior in each phase, setup instructions, and resource mapping process. (migration-test/README.md, migration-test/README.mdR1-R66)cdk.json,package.json, andpnpm-workspace.yamlto configure the CDK app, dependency management, and workspace policies, ensuring isolated and reproducible test runs. (migration-test/cdk.json, [1];migration-test/package.json, [2];migration-test/pnpm-workspace.yaml, [3]Resource Mapping and Ignore Files
config/resource-mapping.template.json) to support the CDK import process without hardcoding account IDs. (migration-test/config/resource-mapping.template.json, migration-test/config/resource-mapping.template.jsonR1-R5).gitignoreto exclude build artifacts,node_modules, and temporary files from version control. (migration-test/.gitignore, migration-test/.gitignoreR1-R3)