-
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 TestResolveComplexVariableWithVarReference (#2156)
This is the last test referencing ResolveVariableReferencesInComplexVariables, allowing removal of that mutator.
- Loading branch information
Showing
4 changed files
with
30 additions
and
69 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
acceptance/bundle/variables/complex-with-var-reference/databricks.yml
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,17 @@ | ||
bundle: | ||
name: TestResolveComplexVariableWithVarReference | ||
|
||
variables: | ||
package_version: | ||
default: "1.0.0" | ||
cluster_libraries: | ||
type: "complex" | ||
default: | ||
- pypi: | ||
package: "cicd_template==${var.package_version}" | ||
|
||
resources: | ||
jobs: | ||
job1: | ||
tasks: | ||
- libraries: ${var.cluster_libraries} |
12 changes: 12 additions & 0 deletions
12
acceptance/bundle/variables/complex-with-var-reference/output.txt
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,12 @@ | ||
[ | ||
{ | ||
"libraries": [ | ||
{ | ||
"pypi": { | ||
"package": "cicd_template==1.0.0" | ||
} | ||
} | ||
], | ||
"task_key": "" | ||
} | ||
] |
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.tasks |
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