newrelic-pixie: Add Comprehensive Global Value Inheritance Test Coverage #2024
+813
−58
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.
Overview
This PR adds comprehensive test coverage with EXPLICIT validation of global value inheritance for all applicable values from the nri-bundle global values contract. Each applicable global value has dedicated test cases that directly validate propagation and override precedence. The chart required template fixes to properly implement the precedence model (global → local override → default).
Changes
Fixed Template Bugs
templates/job.yamlAdded Test Suite
charts/newrelic-pixie/tests/global_inheritance_test.yamlTest Results
Test coverage includes:
Global Values Coverage
All 27 global values from the nri-bundle global contract assessed:
Legend:
Yes- Chart includes explicit helm-unittest test coveragePartial- Known limitation preventing full testing (documented in Known Limitations section)No- Value not applicable to this chart typeCRITICAL: All applicable global values MUST have explicit test coverage. Each value is tested independently in helm-unittest test cases.
Testing Approach: This chart validates ALL applicable global values through EXPLICIT helm-unittest test coverage with dedicated test cases for each value. Each test directly validates that the global value propagates correctly and respects override precedence. Independent validation is industry-standard for infrastructure-as-code: it provides confidence that configuration changes work as expected.
Known Limitations
customSecretName and customSecretLicenseKey
These alternative authentication mechanisms are not yet implemented in the newrelic-pixie chart. Currently, only direct
licenseKeyconfiguration is supported.Workaround: Use
licenseKeydirectly in values:Future Enhancement: Add support for
global.customSecretNameandglobal.customSecretLicenseKeyto align with other nri-bundle subcharts and support secret-based license key management.Files Modified
charts/newrelic-pixie/templates/job.yaml- Fixed global value inheritance precedencecharts/newrelic-pixie/tests/global_inheritance_test.yaml- Added 27 test casescharts/newrelic-pixie/Chart.yaml- Bumped version 2.1.5 → 2.1.6CHANGELOG.md- Added test suite entry under UnreleasedNo Breaking Changes
Build Status
Changelog Entry