mirror of https://github.com/databricks/cli.git
b14920cd12
## 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 ``` |
||
---|---|---|
.. | ||
autoload_git | ||
basic | ||
conflicting_resource_ids | ||
environment_empty | ||
environment_overrides | ||
include_default | ||
include_invalid | ||
include_override | ||
include_with_glob | ||
interpolation | ||
job_and_pipeline | ||
variables | ||
yaml_anchors | ||
README.md | ||
autoload_git_test.go | ||
basic_test.go | ||
conflicting_resource_ids_test.go | ||
environment_empty_test.go | ||
environment_overrides_test.go | ||
include_default_test.go | ||
include_override_test.go | ||
include_test.go | ||
interpolation_test.go | ||
job_and_pipeline_test.go | ||
loader.go | ||
variables_test.go | ||
yaml_anchors_test.go |
README.md
Bundle configuration tests
Every test here uses an example bundle configuration. Each bundle configuration is located in a dedicated subdirectory.