Skip to content

Commit d02b940

Browse files
authored
acc: Add a test with development mode + preset (#2677)
Based on slack thread in help-dabs. Related: https://github.com/databricks/cli/pull/1490/files#diff-9eedd6c63465cd766c89497eda7f212c5b6868054393cfe464d8d1bc69692576R79
1 parent e619b01 commit d02b940

File tree

4 files changed

+23
-0
lines changed

4 files changed

+23
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
bundle:
2+
name: preset
3+
4+
targets:
5+
dev:
6+
mode: development
7+
default: true
8+
presets:
9+
trigger_pause_status: UNPAUSED
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
Error: target with 'mode: development' cannot set trigger pause status to UNPAUSED by default
2+
in databricks.yml:9:29
3+
4+
Name: preset
5+
Target: dev
6+
Workspace:
7+
User: [USERNAME]
8+
Path: /Workspace/Users/[USERNAME]/.bundle/preset/dev
9+
10+
Found 1 error
11+
12+
Exit code: 1
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
$CLI bundle validate
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Badness = "Contrary to documentation, setting both presets and dev mode results in error"

0 commit comments

Comments
 (0)