databricks-cli/bundle/tests/validate
shreyas-goenka a52b188e99
Use dynamic walking to validate unique resource keys (#1614)
## Changes
This PR:
1. Uses dynamic walking (via the `dyn.MapByPattern` func) to validate no
two resources have the same resource key. The allows us to remove this
validation at merge time.
2. Modifies `dyn.Mapping` to always return a sorted slice of pairs. This
makes traversal functions like `dyn.Walk` or `dyn.MapByPattern`
deterministic.

## Tests
Unit tests. Also manually.
2024-07-29 13:04:02 +00:00
..
duplicate_resource_name_in_multiple_locations Use dynamic walking to validate unique resource keys (#1614) 2024-07-29 13:04:02 +00:00
duplicate_resource_name_in_subconfiguration Use dynamic walking to validate unique resource keys (#1614) 2024-07-29 13:04:02 +00:00
duplicate_resource_name_in_subconfiguration_job_and_job Use dynamic walking to validate unique resource keys (#1614) 2024-07-29 13:04:02 +00:00
duplicate_resource_names_in_different_subconfiguations Use dynamic walking to validate unique resource keys (#1614) 2024-07-29 13:04:02 +00:00
duplicate_resource_names_in_root_job_and_experiment Use dynamic walking to validate unique resource keys (#1614) 2024-07-29 13:04:02 +00:00
duplicate_resource_names_in_root_job_and_pipeline Use dynamic walking to validate unique resource keys (#1614) 2024-07-29 13:04:02 +00:00