mirror of https://github.com/databricks/cli.git
Fix env_overrides not to use variables in workspace.profile (#2251)
This does not work when this test is run against cloud. Needed for https://github.com/databricks/cli/pull/2242
This commit is contained in:
parent
0256225408
commit
4ba222ab36
|
@ -18,12 +18,13 @@ variables:
|
||||||
description: variable with lookup
|
description: variable with lookup
|
||||||
lookup:
|
lookup:
|
||||||
cluster_policy: wrong-cluster-policy
|
cluster_policy: wrong-cluster-policy
|
||||||
|
|
||||||
|
result:
|
||||||
|
default: ${var.a} ${var.b}
|
||||||
|
|
||||||
bundle:
|
bundle:
|
||||||
name: test bundle
|
name: test bundle
|
||||||
|
|
||||||
workspace:
|
|
||||||
profile: ${var.a} ${var.b}
|
|
||||||
|
|
||||||
targets:
|
targets:
|
||||||
env-with-single-variable-override:
|
env-with-single-variable-override:
|
||||||
variables:
|
variables:
|
||||||
|
|
|
@ -36,5 +36,6 @@ Exit code: 1
|
||||||
"b": "prod-b",
|
"b": "prod-b",
|
||||||
"d": "4321",
|
"d": "4321",
|
||||||
"e": "1234",
|
"e": "1234",
|
||||||
"f": "9876"
|
"f": "9876",
|
||||||
|
"result": "default-a prod-b"
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
trace $CLI bundle validate -t env-with-single-variable-override -o json | jq .workspace.profile
|
trace $CLI bundle validate -t env-with-single-variable-override -o json | jq .variables.result.value
|
||||||
trace $CLI bundle validate -t env-with-two-variable-overrides -o json | jq .workspace.profile
|
trace $CLI bundle validate -t env-with-two-variable-overrides -o json | jq .variables.result.value
|
||||||
trace BUNDLE_VAR_b=env-var-b $CLI bundle validate -t env-with-two-variable-overrides -o json | jq .workspace.profile
|
trace BUNDLE_VAR_b=env-var-b $CLI bundle validate -t env-with-two-variable-overrides -o json | jq .variables.result.value
|
||||||
trace errcode $CLI bundle validate -t env-missing-a-required-variable-assignment
|
trace errcode $CLI bundle validate -t env-missing-a-required-variable-assignment
|
||||||
trace errcode $CLI bundle validate -t env-using-an-undefined-variable
|
trace errcode $CLI bundle validate -t env-using-an-undefined-variable
|
||||||
trace $CLI bundle validate -t env-overrides-lookup -o json | jq '.variables | map_values(.value)'
|
trace $CLI bundle validate -t env-overrides-lookup -o json | jq '.variables | map_values(.value)'
|
||||||
|
|
Loading…
Reference in New Issue