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:
Denis Bilenko 2025-01-14 16:38:20 +01:00 committed by GitHub
parent a5e09ab28a
commit ccb2599b42
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 31 additions and 0 deletions

View File

@ -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}

View File

@ -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

View File

@ -0,0 +1,2 @@
# Currently, this errors instead of interpolating variables
$CLI bundle validate -o json | jq '.resources.clusters'