mirror of
https://github.com/kubevela/kubevela.git
synced 2026-05-17 23:07:34 +00:00
Completes the test migration for the transforms → output API change. ## Test Migrations ### policy_transforms_test.go (29 transforms → output) - 21 labels transforms → output.labels - 7 spec transforms → output.components - 1 annotations transform → output.annotations All type/value wrappers removed for cleaner syntax. ### policy_validation_test.go Already migrated in previous commit. ## Regression Tests Added ### Test 1: Policy spec modifications preserved across status patch Verifies fix for bug where UpdateAppLatestRevisionStatus() lost policy-modified spec during Status().Patch() operation. Tests that after applying a policy that modifies components, the modifications survive the status update operation. ### Test 2: JSON normalization prevents infinite ApplicationRevisions Verifies fix for bug where RawExtension JSON with different byte representations caused infinite revision creation. Tests that semantically identical JSON with different field order produces identical normalized bytes and matching hashes. ## Additional Changes - Minor whitespace cleanup in application_controller.go - Import reordering in suite_test.go - Formatting alignment in references/cli/policy.go All tests now use the new output API exclusively.
Vela CLI and Dashboard Reference Implementation
This folder contains all reference implementation of vela cli, apiserver and dashboard. It provides a PoC of how to integrate KubeVela with your own system, you can refer to these implementations and build your own.
The formal KubeVela APIServer is a standalone project called velacp.