Files
kubevela/pkg/controller/core.oam.dev
Brian Kane 5330c0f0fe test: fix all policy transform tests for new output API
Updated all tests to use the new 'output' API structure instead of the old
'transforms' API. Key changes:

1. Fixed RenderedPolicyResult usage in tests
   - Changed Output field to Transforms field (stores *PolicyOutput)
   - Added missing Transforms field for tests calling applyRenderedPolicyResult

2. Fixed CUE templates in policy tests
   - Changed 'additionalContext' to 'output.ctx' (3 templates)
   - Fixed kube.#Get usage to avoid double-defining output (2 templates)
   - Changed test expectations from 'transforms' to 'output' key in ConfigMap

3. Removed deprecated transforms API validation
   - Removed test checking for old transforms API rejection
   - Removed extractTransforms() function and its callers
   - Removed PolicyTransforms validation logic

4. Fixed nil pointer bugs in revision comparison
   - Added nil checks in DeepEqualRevision for definition maps
   - Added nil check in gatherRevisionSpec for nil appfile parameter

All policy transform tests now pass successfully.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2026-02-16 20:16:43 +00:00
..
2021-04-11 21:00:14 +08:00