Skip to content

Commit 1f6a4b8

Browse files
committed
test: remove interactive U2M request test
1 parent 962ea4a commit 1f6a4b8

1 file changed

Lines changed: 0 additions & 30 deletions

File tree

tests/testthat/test-request-helpers.R

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -140,36 +140,6 @@ test_that("request helpers - m2m auth flow", {
140140
expect_identical(req$policies$auth_sign$params$expiry_margin, 40)
141141
})
142142

143-
test_that("request helpers - u2m auth flow", {
144-
local_clear_auth_env()
145-
withr::local_envvar(c(
146-
DATABRICKS_CLIENT_ID = NA_character_,
147-
DATABRICKS_CLIENT_SECRET = NA_character_
148-
))
149-
local_mocked_bindings(
150-
is_hosted_session = function() FALSE,
151-
.package = "brickster"
152-
)
153-
local_mocked_bindings(
154-
is_interactive = function() TRUE,
155-
.package = "rlang"
156-
)
157-
158-
req <- db_request(
159-
endpoint = "clusters/list",
160-
method = "GET",
161-
version = "2.0",
162-
host = "workspace.example.com",
163-
token = NULL
164-
)
165-
166-
expect_identical(
167-
req$policies$auth_sign$params$flow,
168-
"oauth_flow_auth_code"
169-
)
170-
expect_identical(req$policies$auth_sign$params$expiry_margin, 40)
171-
})
172-
173143
test_that("request helpers isolate OAuth clients and tokens by workspace", {
174144
local_clear_auth_env()
175145

0 commit comments

Comments
 (0)