-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test for overriding list variable (#2099)
- Add override for "libraries". - Remove complexvar - it serves no purpose - we already have map variable ‘cluster’.
- Loading branch information
Showing
5 changed files
with
33 additions
and
61 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
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
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
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 @@ | ||
|
||
>>> $CLI bundle validate -o json | ||
|
||
>>> jq .resources.jobs.my_job.tasks[0].task_key out.default.json | ||
"task with spark version 13.2.x-scala2.11 and jar /path/to/jar" | ||
|
||
>>> $CLI bundle validate -o json -t dev | ||
|
||
>>> jq .resources.jobs.my_job.tasks[0].task_key out.dev.json | ||
"task with spark version 14.2.x-scala2.11 and jar /newpath/to/jar" | ||
policy_id and spark_conf.spark_random fields do not exist in dev target: | ||
|
||
>>> jq .resources.jobs.my_job.job_clusters[0].new_cluster.policy_id out.dev.json | ||
null |
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 |
---|---|---|
@@ -1,4 +1,8 @@ | ||
$CLI bundle validate -o json | jq '{resources,variables}' > out.default.json | ||
trace $CLI bundle validate -o json | jq '{resources,variables}' > out.default.json | ||
trace jq .resources.jobs.my_job.tasks[0].task_key out.default.json | grep "task with spark version 13.2.x-scala2.11 and jar /path/to/jar" | ||
|
||
# spark.random and policy_id should be empty in this target: | ||
$CLI bundle validate -o json -t dev | jq '{resources,variables}' > out.dev.json | ||
trace $CLI bundle validate -o json -t dev | jq '{resources,variables}' > out.dev.json | ||
trace jq .resources.jobs.my_job.tasks[0].task_key out.dev.json | grep "task with spark version 14.2.x-scala2.11 and jar /newpath/to/jar" | ||
|
||
echo policy_id and spark_conf.spark_random fields do not exist in dev target: | ||
trace jq .resources.jobs.my_job.job_clusters[0].new_cluster.policy_id out.dev.json | grep null |