testrunner/runners/policy: add configurable version override and field ignoring#3771
testrunner/runners/policy: add configurable version override and field ignoring#3771efd6 wants to merge 2 commits into
Conversation
…d ignoring Policy tests that validate rendered agent policy output break when templates reference _meta.package.version because the rendered value depends on both the package version (changes on every bump) and the stack version (older stacks don't inject _meta at all). Add two new fields to the global policy test config: - package_version: temporarily rewrites the source manifest version during test setup so Fleet installs under a stable, known version. - ignore_fields: lists stream-level field paths to strip from both sides during assertion (but not during generation), so the expected file documents the rendered output while tolerating value differences across stack versions.
This comment has been minimized.
This comment has been minimized.
|
The linter is wrong. It claims: This is not the case since it's called with This is a bug in golangci-lint; the upstream linter that is doing the work does not find an issue. however, it does fail if I call with Confirmed bug in |
073db4d to
c7750ec
Compare
💔 Build Failed
Failed CI Steps
History
cc @efd6 |
This comment has been minimized.
This comment has been minimized.
TL;DRThe Remediation
Investigation detailsRoot Cause
Evidence
Verification
Follow-up
What is this? | From workflow: PR Buildkite Detective Give us feedback! React with 🚀 if perfect, 👍 if helpful, 👎 if not. |
|
/test |
Please take a look.
ref elastic/integrations#14136 (comment)