Skip to content

Commit d280f14

Browse files
authored
Add a test with empty slice in config (#4122)
Acceptance test for #4121 databricks/databricks-sdk-go#1366
1 parent a4ab082 commit d280f14

File tree

8 files changed

+75
-0
lines changed

8 files changed

+75
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
bundle:
2+
name: usage_logs
3+
4+
resources:
5+
jobs:
6+
refresh_usage_logs:
7+
name: Refresh usage logs
8+
9+
tasks:
10+
- task_key: usage_logs_grants
11+
notebook_task:
12+
notebook_path: usage_logs.py
13+
14+
email_notifications:
15+
on_failure: []
16+
17+
targets:
18+
dev:
19+
default: true
20+
mode: development
21+
workspace:
22+
profile: logfood
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"local": {
3+
"email_notifications.on_failure": {
4+
"action": "update",
5+
"new": []
6+
}
7+
},
8+
"remote": {
9+
"tasks[task_key='usage_logs_grants'].notebook_task.source": {
10+
"action": "skip",
11+
"reason": "server_side_default"
12+
},
13+
"timeout_seconds": {
14+
"action": "skip",
15+
"reason": "server_side_default"
16+
},
17+
"webhook_notifications": {
18+
"action": "skip",
19+
"reason": "server_side_default"
20+
}
21+
}
22+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"plan": {
3+
"resources.jobs.refresh_usage_logs": {
4+
"action": "skip"
5+
}
6+
}
7+
}

acceptance/bundle/resources/jobs/on_failure_empty_slice/out.test.toml

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
2+
>>> [CLI] bundle plan
3+
create jobs.refresh_usage_logs
4+
5+
Plan: 1 to add, 0 to change, 0 to delete, 0 unchanged
6+
7+
>>> [CLI] bundle deploy
8+
Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/usage_logs/dev/files...
9+
Deploying resources...
10+
Updating deployment state...
11+
Deployment complete!
12+
13+
>>> [CLI] bundle plan -o json
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
trace $CLI bundle plan
2+
trace $CLI bundle deploy
3+
trace $CLI bundle plan -o json | jq '.plan."resources.jobs.refresh_usage_logs".changes // .' > out.plan.$DATABRICKS_BUNDLE_ENGINE.json
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Badness = "Permanent drift due to https://github.com/databricks/databricks-sdk-go/issues/1366"
2+
RecordRequests = false
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Databricks notebook source

0 commit comments

Comments
 (0)