databricks-cli/bundle/tests
Pieter Noordhuis 97699b849f
Enable environment overrides for job clusters (#658)
## Changes

While they are a slice, we can identify a job cluster by its job cluster
key. A job definition with multiple job clusters with the same key is
always invalid. We can therefore merge definitions with the same key
into one. This is compatible with how environment overrides are applied;
merging a slice means appending to it. The override will end up in the
job cluster slice of the original, which gives us a deterministic way to
merge them.

Since the alternative is an invalid configuration, this doesn't change
behavior.

## Tests

New test coverage.
2023-08-14 06:43:45 +00:00
..
autoload_git Add validation for Git settings in bundles (#578) 2023-07-30 12:44:33 +00:00
basic First look for databricks.yml before falling back to bundle.yml (#580) 2023-07-18 12:16:34 +02:00
bundle Log the bundle root configuration file if applicable (#657) 2023-08-11 12:28:05 +00:00
conflicting_resource_ids Require include glob patterns to be explicitly defined (#602) 2023-07-25 10:00:46 +02:00
environment_empty First look for databricks.yml before falling back to bundle.yml (#580) 2023-07-18 12:16:34 +02:00
environment_overrides First look for databricks.yml before falling back to bundle.yml (#580) 2023-07-18 12:16:34 +02:00
git_branch_validation Fix bundle git branch validation (#645) 2023-08-07 17:29:02 +00:00
include_default Require include glob patterns to be explicitly defined (#602) 2023-07-25 10:00:46 +02:00
include_invalid First look for databricks.yml before falling back to bundle.yml (#580) 2023-07-18 12:16:34 +02:00
include_multiple Require include glob patterns to be explicitly defined (#602) 2023-07-25 10:00:46 +02:00
include_with_glob First look for databricks.yml before falling back to bundle.yml (#580) 2023-07-18 12:16:34 +02:00
interpolation First look for databricks.yml before falling back to bundle.yml (#580) 2023-07-18 12:16:34 +02:00
job_and_pipeline Extend deployment mode support (#577) 2023-07-30 07:19:49 +00:00
override_job_cluster Enable environment overrides for job clusters (#658) 2023-08-14 06:43:45 +00:00
variables First look for databricks.yml before falling back to bundle.yml (#580) 2023-07-18 12:16:34 +02:00
yaml_anchors First look for databricks.yml before falling back to bundle.yml (#580) 2023-07-18 12:16:34 +02:00
README.md Move mutator interface to top level bundle package (#105) 2022-11-28 10:59:43 +01:00
basic_test.go Move mutator interface to top level bundle package (#105) 2022-11-28 10:59:43 +01:00
conflicting_resource_ids_test.go Log the bundle root configuration file if applicable (#657) 2023-08-11 12:28:05 +00:00
environment_empty_test.go Check for nil environment before accessing it (#453) 2023-06-08 20:55:49 +00:00
environment_overrides_test.go Move mutator interface to top level bundle package (#105) 2022-11-28 10:59:43 +01:00
git_test.go Fix bundle git branch validation (#645) 2023-08-07 17:29:02 +00:00
include_test.go Log the bundle root configuration file if applicable (#657) 2023-08-11 12:28:05 +00:00
interpolation_test.go Added support for bundle.Seq, simplified Mutator.Apply interface (#403) 2023-05-24 14:45:19 +02:00
job_and_pipeline_test.go First look for databricks.yml before falling back to bundle.yml (#580) 2023-07-18 12:16:34 +02:00
loader.go Log the bundle root configuration file if applicable (#657) 2023-08-11 12:28:05 +00:00
override_job_cluster_test.go Enable environment overrides for job clusters (#658) 2023-08-14 06:43:45 +00:00
variables_test.go Added support for bundle.Seq, simplified Mutator.Apply interface (#403) 2023-05-24 14:45:19 +02:00
yaml_anchors_test.go Revert "Rename jobs -> workflows" (#118) 2022-12-01 22:39:15 +01:00

README.md

Bundle configuration tests

Every test here uses an example bundle configuration. Each bundle configuration is located in a dedicated subdirectory.