test(helm): match CA volumes by name - #2261
Conversation
|
Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
Signed-off-by: Evan Lezar <elezar@nvidia.com>
0c6fa22 to
dc6b0ff
Compare
PR Review StatusValidation: This maintainer-authored PR is project-valid as a small, concentrated Helm test cleanup. It replaces brittle positional CA volume assertions with name-based checks while preserving coverage for OIDC CA mounts, client CA secret names, Review findings:
Docs: Not needed because this is test-only and does not change user-facing behavior or Fern documentation paths. Checks: DCO and Helm Lint are green. Required Branch Checks are currently failing on E2E: Not required; no Next state: Blocker: required Branch Checks are red due to an unrelated Rust arm64 test failure. Next action: a maintainer should rerun or investigate that required check; once it is green, gator can continue to approval gating. |
Summary
Make the existing OIDC CA and gateway client CA Helm tests insensitive to unrelated volume insertion. The assertions now identify volumes and mounts by name while preserving coverage of secret names, key mappings, mount paths, and omission behavior.
Related Issue
Related to #1868. This is a generally applicable test cleanup extracted from the HA review.
Changes
containsassertions.ca.crtitem mapping.secret.itemsmust remain absent.notContainschecks for the HTTPS-only omission case.Testing
mise run pre-commitpasses (run insidenix develop)Focused validation:
mise run helm:test— 62 tests passed across 5 suitesmise run helm:lint— defaults and every CI values variant passedChecklist
Notes
PR #2235 also touches these test files for a client CA behavior fix. It does not implement this assertion cleanup, but merge order may require a trivial rebase.