Skip to content

Commit 0a89feb

Browse files
authored
acc: expand run_as test with empty dictionary (#3322)
## Why The semantics of nulls is going to change in #3230 but empty dictionary behaviour should stay the same. This test ensures that.
1 parent c3db467 commit 0a89feb

File tree

4 files changed

+21
-0
lines changed

4 files changed

+21
-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: "abc"
3+
4+
run_as: {}
5+
6+
resources:
7+
jobs:
8+
foo:
9+
name: foo
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Local = true
2+
Cloud = false
3+
4+
[EnvMatrix]
5+
DATABRICKS_CLI_DEPLOYMENT = ["terraform", "direct-exp"]
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Error: run_as section must specify exactly one identity. Neither service_principal_name nor user_name is specified
2+
in databricks.yml:4:9
3+
4+
5+
Exit code (musterr): 1
6+
"run_as": {},
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
musterr $CLI bundle validate -o json | grep run_as

0 commit comments

Comments
 (0)