mirror of https://github.com/databricks/cli.git
Add complex-transitive-deeper acceptance test (#2140)
Extension of complex-transitive test that shows an error instead of simply failing to interpolate.
This commit is contained in:
parent
a5e09ab28a
commit
ccb2599b42
|
@ -0,0 +1,22 @@
|
|||
bundle:
|
||||
name: complex-transitive-deeper
|
||||
|
||||
variables:
|
||||
catalog_1:
|
||||
default:
|
||||
name: hive_metastore
|
||||
catalog:
|
||||
default: ${var.catalog_1}
|
||||
spark_conf:
|
||||
default:
|
||||
"spark.databricks.sql.initial.catalog.name": ${var.catalog.name}
|
||||
etl_cluster_config:
|
||||
type: complex
|
||||
default:
|
||||
spark_version: 14.3.x-scala2.12
|
||||
runtime_engine: PHOTON
|
||||
spark_conf: ${var.spark_conf}
|
||||
|
||||
resources:
|
||||
clusters:
|
||||
my_cluster: ${var.etl_cluster_config}
|
|
@ -0,0 +1,7 @@
|
|||
Error: expected a map to index "variables.catalog.value.name", found string
|
||||
|
||||
{
|
||||
"my_cluster": "${var.etl_cluster_config}"
|
||||
}
|
||||
|
||||
Exit code: 1
|
|
@ -0,0 +1,2 @@
|
|||
# Currently, this errors instead of interpolating variables
|
||||
$CLI bundle validate -o json | jq '.resources.clusters'
|
Loading…
Reference in New Issue