Skip to content

Commit 4103d9f

Browse files
committed
Adjust Databricks tests to include service principal language
1 parent 84ef03a commit 4103d9f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tests/testthat/test-driver-databricks.R

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,10 @@ test_that("Workbench-managed credentials are detected correctly", {
132132
DATABRICKS_CONFIG_FILE = file.path(db_home, "databricks.cfg")
133133
)
134134
args <- databricks_auth_args(host = "some-host")
135-
expect_equal(args, list(authMech = 11, auth_flow = 0, auth_accesstoken = "token"))
135+
expect_equal(
136+
args,
137+
list(authMech = 11, auth_flow = 0, auth_accesstoken = "token")
138+
)
136139
})
137140

138141
test_that("Workbench-managed credentials are ignored for other hosts", {
@@ -153,7 +156,7 @@ test_that("Workbench-managed credentials are ignored for other hosts", {
153156
expect_equal(databricks_auth_args(host = "some-host"), NULL)
154157
})
155158

156-
test_that("we hint viewer-based credentials on Connect", {
159+
test_that("we hint viewer-based and service principal credentials on Connect", {
157160
local_mocked_bindings(
158161
running_on_connect = function() TRUE
159162
)

0 commit comments

Comments
 (0)