Nothing
test_that("secrets", {
srv <- test_vault_test_server()
cl <- srv$client()
expect_s3_class(cl$secrets, "vault_client_secrets")
d <- cl$secrets$list()
expect_s3_class(d, "data.frame")
expect_true("secret/" %in% d$path)
expect_true("kv" %in% d$type)
expect_error(cl$secrets$list(TRUE),
"Detailed secret information not supported")
})
test_that("enable/disable a secret engine", {
srv <- test_vault_test_server()
cl <- srv$client()
cl$secrets$enable("kv", version = 2)
d <- cl$secrets$list()
expect_true("kv/" %in% d$path)
expect_equal(d$type["kv/" == d$path], "kv")
cl$secrets$disable("kv")
d <- cl$secrets$list()
expect_false("kv/" %in% d$path)
})
test_that("move a secret engine", {
srv <- test_vault_test_server()
cl <- srv$client()
p1 <- "oldpath"
p2 <- "newpath"
cl$secrets$enable("kv", p1, version = 2)
# On CI, these tests are being flakey, and it's not at all obvious
# why; it could be a race condition so adding a little sleep here to see.
Sys.sleep(1)
cl$secrets$move(p1, p2)
Sys.sleep(1)
d <- cl$secrets$list()
expect_true(paste0(p2, "/") %in% d$path)
expect_false(paste0(p1, "/") %in% d$path)
})
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.