зеркало из https://github.com/Azure/AzureAuth.git
tests really pass
This commit is contained in:
Родитель
3f0014bb37
Коммит
69291572ed
|
@ -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))
|
||||
|
|
Загрузка…
Ссылка в новой задаче