From 56267a7350adc16d4eec74554131dfcf7a6210bf Mon Sep 17 00:00:00 2001 From: Denis Bilenko Date: Thu, 16 Jan 2025 14:30:20 +0100 Subject: [PATCH] add acceptance/bundle/variables/complex-cross-ref (it passes on main, added for completeness) --- .../complex-cross-ref/databricks.yml | 12 ++++++++++ .../variables/complex-cross-ref/output.txt | 22 +++++++++++++++++++ .../bundle/variables/complex-cross-ref/script | 1 + 3 files changed, 35 insertions(+) create mode 100644 acceptance/bundle/variables/complex-cross-ref/databricks.yml create mode 100644 acceptance/bundle/variables/complex-cross-ref/output.txt create mode 100644 acceptance/bundle/variables/complex-cross-ref/script diff --git a/acceptance/bundle/variables/complex-cross-ref/databricks.yml b/acceptance/bundle/variables/complex-cross-ref/databricks.yml new file mode 100644 index 0000000000..4459f44df9 --- /dev/null +++ b/acceptance/bundle/variables/complex-cross-ref/databricks.yml @@ -0,0 +1,12 @@ +bundle: + name: complex-cross-ref + +variables: + a: + default: + a_1: 500 + a_2: ${var.b.b_2} + b: + default: + b_1: ${var.a.a_1} + b_2: 2.5 diff --git a/acceptance/bundle/variables/complex-cross-ref/output.txt b/acceptance/bundle/variables/complex-cross-ref/output.txt new file mode 100644 index 0000000000..f1b624d29f --- /dev/null +++ b/acceptance/bundle/variables/complex-cross-ref/output.txt @@ -0,0 +1,22 @@ +{ + "a": { + "default": { + "a_1": 500, + "a_2": 2.5 + }, + "value": { + "a_1": 500, + "a_2": 2.5 + } + }, + "b": { + "default": { + "b_1": 500, + "b_2": 2.5 + }, + "value": { + "b_1": 500, + "b_2": 2.5 + } + } +} diff --git a/acceptance/bundle/variables/complex-cross-ref/script b/acceptance/bundle/variables/complex-cross-ref/script new file mode 100644 index 0000000000..0e53f237e8 --- /dev/null +++ b/acceptance/bundle/variables/complex-cross-ref/script @@ -0,0 +1 @@ +$CLI bundle validate -o json | jq .variables