Skip to content

Commit

Permalink
Removing logged_in_user and api_endpoint from info function
Browse files Browse the repository at this point in the history
  • Loading branch information
tefirman authored and sckott committed Aug 9, 2024
1 parent 011ddff commit 04d3c9b
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 8 deletions.
2 changes: 0 additions & 2 deletions R/info.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
#' @export
#' @references <https://github.com/FredHutch/proof-api?tab=readme-ov-file#get-info>
#' @return A list with fields:
#' - `logged_in_user` (character): NULL unless authentication header is sent
#' - `api_endpoint` (character): the URL for the PROOF API
#' - `branch` (character): git branch of API
#' - `commit_sha` (character): SHA of the git commit of the API
#' - `short_commit_sha` (character): the first eight characters of `commit_sha`
Expand Down
2 changes: 0 additions & 2 deletions man/proof_info.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions tests/testthat/helper-stubs.R
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,6 @@ response_authenticate_success <- list(
)

response_info_success <- list (
logged_in_user = "someone",
api_endpoint = "https://proof-api.fredhutch.org",
branch = "main",
commit_sha = "c4b85200632c2f9bd5e8173179208c3b32c7db7a",
short_commit_sha = "c4b85200",
Expand Down
2 changes: 0 additions & 2 deletions tests/testthat/test-proof_info.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ test_that("proof_info - success", {
})

expect_type(info_res, "list")
expect_type(info_res$logged_in_user, "character")
expect_type(info_res$api_endpoint, "character")


stub_registry_clear()
Expand Down

0 comments on commit 04d3c9b

Please sign in to comment.