databricks-cli/bundle/tests
Andrew Nester 6141476ca2
Added support for bundle.Seq, simplified Mutator.Apply interface (#403)
## Changes
Added support for `bundle.Seq`, simplified `Mutator.Apply` interface by
removing list of mutators from return values/

## Tests
1. Ran `cli bundle deploy` and interrupted it with Cmd + C mid execution
so lock is not released
2. Ran `cli bundle deploy` top make sure that CLI is not trying to
release lock when it fail to acquire it
```
andrew.nester@HFW9Y94129 multiples-tasks % cli bundle deploy
Starting upload of bundle files
Uploaded bundle files at /Users/andrew.nester@databricks.com/.bundle/simple-task/development/files!

^C
andrew.nester@HFW9Y94129 multiples-tasks % cli bundle deploy
Error: deploy lock acquired by andrew.nester@databricks.com at 2023-05-24 12:10:23.050343 +0200 CEST. Use --force to override
```
2023-05-24 14:45:19 +02:00
..
autoload_git Add git config block to bundle config (#356) 2023-04-26 16:54:36 +02:00
basic Move mutator interface to top level bundle package (#105) 2022-11-28 10:59:43 +01:00
conflicting_resource_ids Detect duplicate identifiers in bundle config (#332) 2023-04-17 12:21:21 +02:00
environment_overrides Move mutator interface to top level bundle package (#105) 2022-11-28 10:59:43 +01:00
include_default Revert "Rename jobs -> workflows" (#118) 2022-12-01 22:39:15 +01:00
include_override Revert "Rename jobs -> workflows" (#118) 2022-12-01 22:39:15 +01:00
interpolation Add support for multiple level string variable interpolation (#342) 2023-04-20 01:13:33 +02:00
job_and_pipeline Revert "Rename jobs -> workflows" (#118) 2022-12-01 22:39:15 +01:00
variables Add config environment support for variable overriding (#383) 2023-05-15 14:07:18 +02:00
yaml_anchors Revert "Rename jobs -> workflows" (#118) 2022-12-01 22:39:15 +01:00
README.md Move mutator interface to top level bundle package (#105) 2022-11-28 10:59:43 +01:00
autoload_git_test.go Fix tests for new repository name (#390) 2023-05-16 19:02:07 +02: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 Added support for bundle.Seq, simplified Mutator.Apply interface (#403) 2023-05-24 14:45:19 +02:00
environment_overrides_test.go Move mutator interface to top level bundle package (#105) 2022-11-28 10:59:43 +01:00
include_default_test.go Store relative path to configuration file for every resource (#322) 2023-04-12 16:17:13 +02:00
include_override_test.go Revert "Rename jobs -> workflows" (#118) 2022-12-01 22:39:15 +01: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 Store relative path to configuration file for every resource (#322) 2023-04-12 16:17:13 +02:00
loader.go Added support for bundle.Seq, simplified Mutator.Apply interface (#403) 2023-05-24 14:45:19 +02: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.