This commit is contained in:
Alex Kyllo 2022-09-21 09:44:14 -07:00
Родитель 8a42238033
Коммит ab76525404
2 изменённых файлов: 26 добавлений и 1 удалений

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

@ -315,6 +315,7 @@ AzureTokenCLI <- R6::R6Class("AzureTokenCLI",
warning = function(cond)
{
not_found <- grepl("az: not found", cond, fixed = TRUE)
# TODO: handle bash, windows, powershell errors for command not found
not_loggedin <- grepl("az login", cond, fixed = TRUE) |
grepl("az account set", cond, fixed = TRUE)
bad_resource <- grepl(

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

@ -4,8 +4,32 @@ test_that("cli auth_type can be selected",
expect_equal(auth_type, "cli")
})
test_that("token is successfully retrieved if user is logged in",
{
fail("TODO")
})
test_that("az login is called if the user is not already logged in",
{
fail("TODO")
})
test_that("the output of az login is handled appropriately",
{
fail("TODO")
})
test_that("the appropriate error is thrown when az is not installed",
{
# TODO
fail("TODO")
})
test_that("the appropriate error is thrown when the resource is invalid",
{
fail("TODO")
})
test_that("the appropriate error is thrown when az login fails",
{
fail("TODO")
})