This commit is contained in:
Hong Ooi 2021-10-05 09:09:33 +11:00
Родитель 3f0014bb37
Коммит 69291572ed
2 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -82,7 +82,7 @@ test_that("v1.0 simple authentication works",
dev_tok2 <- get_azure_token(res, tenant, native_app, auth_type="device_code")
expect_true(is_azure_token(dev_tok2))
expect_true(is.numeric(aut_tok2$credentials$expires_at))
expect_true(is.numeric(dev_tok2$credentials$expires_at))
expect_identical(dev_tok2$hash(), dev_hash)
# resource must be a single string

Просмотреть файл

@ -103,9 +103,11 @@ test_that("v2.0 refresh with offline scope works",
# load cached tokens: should not get repeated login prompts/screens
aut_tok2 <- get_azure_token(c(res, res2), tenant, native_app, auth_type="authorization_code", version=2)
expect_true(is_azure_token(aut_tok2))
expect_true(is.numeric(aut_tok2$credentials$expires_at))
dev_tok2 <- get_azure_token(c(res, res2), tenant, native_app, auth_type="device_code", version=2)
expect_true(is_azure_token(dev_tok2))
expect_true(is.numeric(dev_tok2$credentials$expires_at))
expect_null(
delete_azure_token(c(res, res2), tenant, native_app, auth_type="authorization_code", version=2, confirm=FALSE))