databricks-cli/bundle/tests
Andrew Nester b14920cd12
Fixed error reporting when included invalid files in include section (#543)
## Changes
Fixed error reporting when included invalid files in include section

Case 1. When the file to include is invalid, throw an error
Case 2. When the file is loaded but the schema is wrong, indicate which
file is failed to load

## Tests

With non-existent notexists.yml

```
databricks bundle deploy
Error: notexists.yml defined in 'include' section does not match any files

```

With malformed notexists.yml
```
databricks bundle deploy
Error: failed to load /Users/andrew.nester/dabs/wheel/notexists.yml: error unmarshaling JSON: json: cannot unmarshal string into Go value of type config.Root
```
2023-07-07 10:22:58 +00: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_empty Check for nil environment before accessing it (#453) 2023-06-08 20:55:49 +00: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_invalid Fixed error reporting when included invalid files in include section (#543) 2023-07-07 10:22:58 +00:00
include_override Revert "Rename jobs -> workflows" (#118) 2022-12-01 22:39:15 +01:00
include_with_glob Fixed error reporting when included invalid files in include section (#543) 2023-07-07 10:22:58 +00: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_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
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
include_test.go Fixed error reporting when included invalid files in include section (#543) 2023-07-07 10:22:58 +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 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.