mirror of
https://github.com/kubevela/kubevela.git
synced 2026-05-19 07:46:51 +00:00
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>