-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate TestResolveComplexVariable to acceptance test
- Loading branch information
Showing
4 changed files
with
43 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# This example works and properly merges resources.jobs.job1.job_clusters.new_cluster and ${var.cluster}. | ||
# retaining num_workers, spark_version and overriding node_type_id. | ||
# However, it prints a warning "expected map, found string" which is unnecessary. | ||
bundle: | ||
name: TestResolveComplexVariable | ||
|
||
variables: | ||
type: "complex" | ||
cluster: | ||
value: | ||
node_type_id: "Standard_DS3_v2" | ||
num_workers: 2 | ||
|
||
resources: | ||
jobs: | ||
job1: | ||
job_clusters: | ||
- new_cluster: | ||
node_type_id: "random" | ||
spark_version: 13.3.x-scala2.12 | ||
|
||
targets: | ||
dev: | ||
resources: | ||
jobs: | ||
job1: | ||
job_clusters: | ||
- new_cluster: ${var.cluster} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
Warning: expected map, found string | ||
at variables.type | ||
in databricks.yml:5:9 | ||
|
||
[ | ||
{ | ||
"job_cluster_key": "", | ||
"new_cluster": { | ||
"node_type_id": "Standard_DS3_v2", | ||
"num_workers": 2, | ||
"spark_version": "13.3.x-scala2.12" | ||
} | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
$CLI bundle validate -o json | jq .resources.jobs.job1.job_clusters |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters