diff --git a/acceptance/bundle/variables/file-defaults/script b/acceptance/bundle/variables/file-defaults/script index 7dd0ccfbc..8e6fd0d75 100644 --- a/acceptance/bundle/variables/file-defaults/script +++ b/acceptance/bundle/variables/file-defaults/script @@ -15,10 +15,10 @@ title "variable has value in config file" trace $CLI bundle validate -o json --target with_value | jq $cluster_expr title "file cannot be parsed" -trace errcode $CLI bundle validate -o json --target invalid_json | jq $cluster_expr | sed 's/\\/\//g' +trace errcode $CLI bundle validate -o json --target invalid_json | jq $cluster_expr title "file has wrong structure" -trace errcode $CLI bundle validate -o json --target wrong_file_structure | jq $cluster_expr | sed 's/\\/\//g' +trace errcode $CLI bundle validate -o json --target wrong_file_structure | jq $cluster_expr title "file has variable that is complex but default is string" trace errcode $CLI bundle validate -o json --target complex_to_string | jq $cluster_expr diff --git a/acceptance/bundle/variables/file-defaults/test.toml b/acceptance/bundle/variables/file-defaults/test.toml new file mode 100644 index 000000000..4d3a8e6e6 --- /dev/null +++ b/acceptance/bundle/variables/file-defaults/test.toml @@ -0,0 +1,4 @@ +# Fix for windows +[[Repls]] +Old = '$TMPDIR\.databricks\bundle\wrong_file_structure\variable-overrides.json' +New = '$TMPDIR/.databricks/bundle/wrong_file_structure/variable-overrides.json'