diff --git a/acceptance/bundle/config-remote-sync/job_fields/databricks.yml.tmpl b/acceptance/bundle/config-remote-sync/job_fields/databricks.yml.tmpl index d2e63d7cc1..ddff699c6b 100644 --- a/acceptance/bundle/config-remote-sync/job_fields/databricks.yml.tmpl +++ b/acceptance/bundle/config-remote-sync/job_fields/databricks.yml.tmpl @@ -4,6 +4,7 @@ bundle: resources: jobs: my_job: + name: test-job-$UNIQUE_NAME email_notifications: on_success: - success@example.com diff --git a/acceptance/bundle/config-remote-sync/job_fields/output.txt b/acceptance/bundle/config-remote-sync/job_fields/output.txt index 12b9987741..2ccd025fbe 100644 --- a/acceptance/bundle/config-remote-sync/job_fields/output.txt +++ b/acceptance/bundle/config-remote-sync/job_fields/output.txt @@ -13,6 +13,7 @@ Resource: resources.jobs.my_job email_notifications.no_alert_for_skipped_runs: add email_notifications.on_failure: add job_clusters[0].job_cluster_key: replace + name: replace parameters: replace tags['team']: add tasks[task_key='inline_cluster_task'].new_cluster.num_workers: replace @@ -28,7 +29,12 @@ Resource: resources.jobs.my_job >>> diff.py databricks.yml.backup databricks.yml --- databricks.yml.backup +++ databricks.yml -@@ -8,13 +8,19 @@ +@@ -5,20 +5,26 @@ + jobs: + my_job: +- name: test-job-[UNIQUE_NAME] ++ name: renamed-job-[UNIQUE_NAME] + email_notifications: on_success: - success@example.com + no_alert_for_skipped_runs: true @@ -55,21 +61,21 @@ Resource: resources.jobs.my_job + - samples.nyctaxi.trips environments: - environment_key: default -@@ -24,5 +30,5 @@ +@@ -27,5 +33,5 @@ - ./*.whl job_clusters: - - job_cluster_key: test_cluster + - job_cluster_key: test_cluster_renamed new_cluster: spark_version: [[DEFAULT_SPARK_VERSION]] -@@ -33,5 +39,5 @@ +@@ -36,5 +42,5 @@ notebook_task: notebook_path: /Users/{{workspace_user_name}}/notebook - job_cluster_key: test_cluster + job_cluster_key: test_cluster_renamed - task_key: inline_cluster_task notebook_task: -@@ -40,5 +46,7 @@ +@@ -43,5 +49,7 @@ spark_version: [[DEFAULT_SPARK_VERSION]] node_type_id: [NODE_TYPE_ID] - num_workers: 1 diff --git a/acceptance/bundle/config-remote-sync/job_fields/script b/acceptance/bundle/config-remote-sync/job_fields/script index 8d600aaeaa..264304d734 100755 --- a/acceptance/bundle/config-remote-sync/job_fields/script +++ b/acceptance/bundle/config-remote-sync/job_fields/script @@ -17,6 +17,8 @@ job_id="$(read_id.py my_job)" title "Modify job fields remotely" echo edit_resource.py jobs $job_id <