Add CI for testing infrastructure code#3694
Conversation
WalkthroughAdded a CI job to run infrastructure tests, updated many Terraform TFTest files to use a mock AWS provider and adjusted a few test data/formatting items, broadened pre-commit terraform_fmt matching, and normalized semgrep/nosemgrep comment directive casing across infra files. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested labels
Suggested reviewers
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## feature/nest-zappa-migration #3694 +/- ##
=============================================================
Coverage 85.50% 85.50%
=============================================================
Files 463 463
Lines 14271 14271
Branches 1900 1900
=============================================================
Hits 12202 12202
Misses 1689 1689
Partials 380 380
Flags with carried forward coverage won't be shown. Click here to find out more. Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
…igration-testing-ci
| hooks: | ||
| - id: terraform_fmt | ||
| files: ^infrastructure/.*\.tf$ | ||
| files: ^infrastructure/.*\.(tf|tftest\.hcl)$ |
There was a problem hiding this comment.
random formatting changes are due to this
b01a4a3 to
12d3008
Compare
|
3d98f9c
into
OWASP:feature/nest-zappa-migration



Proposed change
Resolves #3666
Add CI for testing infrastructure code.
Fix pre-commit hook to also apply to tests.
Update
nosemgreptoNOSEMGREP.Checklist
make check-testlocally: all warnings addressed, tests passed