refactor: making tests configurable to run on eks auto framework - #4891
Conversation
Callers consult test_resources.{ALB,NLB}GatewayControllerName instead of
hardcoded strings. Defaults preserve upstream behavior; override via
GATEWAY_{ALB,NLB}_CONTROLLER_NAME env for forks that rebrand.
…ge import Blank-importing from a parent test binary requires Describes in regular .go files (Go excludes _test.go from cross-package imports). Each suite exposes state.go with InitTF() and moves specs to non-test files.
AWS locks preserve_client_ip=true for UDP/TCP_UDP target groups (verified via ModifyTargetGroupAttributes). With client IP preserved, udp-echoserver replies bypass the NLB return path and the client times out. The IPv6 SourceNatIPv6Prefix workaround has no IPv4 equivalent in the CRD, so skip the assertion on IPv4.
|
Hi @jupdec. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Tip We noticed you've done this a few times! Consider joining the org to skip this step and gain Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jupdec, shraddhabang The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Suites blank-importing alb_tests/nlb_tests transitively register those packages' Describes into the test binary; without calling their InitTF the imported BeforeEach nil-derefs on tf.Options.
|
/retest |
|
@jupdec: Cannot trigger testing until a trusted user reviews the PR and leaves an DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4891 +/- ##
==========================================
+ Coverage 57.44% 57.48% +0.03%
==========================================
Files 396 397 +1
Lines 31619 31709 +90
==========================================
+ Hits 18164 18228 +64
- Misses 12398 12422 +24
- Partials 1057 1059 +2 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
/lgtm |
Issue
Minor test framework updates to reuse this test suite for Auto Mode
Description
Checklist
README.md, or thedocsdirectory)BONUS POINTS checklist: complete for good vibes and maybe prizes?! 🤯