-
Notifications
You must be signed in to change notification settings - Fork 4k
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
chore: add integ test that validates full proxy traversal #33140
base: main
Are you sure you want to change the base?
Conversation
Add a CLI integ test to validate that `cdk deploy` works in a fully network-isolated environment, with only a proxy to go through. This validates that no parts of the CLI setup ignore the proxy configuration, which would otherwise be hard to test. We achieve the network isolation by running the code inside a Docker container where we use `iptables` to drop all network traffic that doesn't go through the Docker host, where we run a proxy. I temporarily bumped the `tsconfig` `target` to try out the `using` syntax (didn't work out with Jest), but that caused some compiler errors around class member initialization that I fixed as well. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license* Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(This review is outdated)
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #33140 +/- ##
==========================================
- Coverage 81.57% 80.79% -0.78%
==========================================
Files 227 232 +5
Lines 13793 14110 +317
Branches 2419 2453 +34
==========================================
+ Hits 11251 11400 +149
- Misses 2270 2430 +160
- Partials 272 280 +8
Flags with carried forward coverage won't be shown. Click here to find out more.
|
✅ Updated pull request passes all PRLinter validations. Dismissing previous PRLinter review.
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(This review is outdated)
✅ Updated pull request passes all PRLinter validations. Dismissing previous PRLinter review.
(Re-roll of #33092)
Add a CLI integ test to validate that
cdk deploy
works in a fully network-isolated environment, with only a proxy to go through.This validates that no parts of the CLI setup ignore the proxy configuration, which would otherwise be hard to test.
We achieve the network isolation by running the code inside a Docker container where we use
iptables
to drop all network traffic that doesn't go through the Docker host, where we run a proxy.I temporarily bumped the
tsconfig
target
to try out theusing
syntax (didn't work out with Jest), but that caused some compiler errors around class member initialization that I fixed as well.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license