From 04d3c9bbb334c1281dddf315e58b6080bd3b5c0b Mon Sep 17 00:00:00 2001 From: tefirman <tefirman@gmail.com> Date: Thu, 8 Aug 2024 12:57:12 -0700 Subject: [PATCH] Removing logged_in_user and api_endpoint from info function --- R/info.R | 2 -- man/proof_info.Rd | 2 -- tests/testthat/helper-stubs.R | 2 -- tests/testthat/test-proof_info.R | 2 -- 4 files changed, 8 deletions(-) diff --git a/R/info.R b/R/info.R index 3986f6d..78f4a59 100644 --- a/R/info.R +++ b/R/info.R @@ -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` diff --git a/man/proof_info.Rd b/man/proof_info.Rd index a4639a9..d54726f 100644 --- a/man/proof_info.Rd +++ b/man/proof_info.Rd @@ -9,8 +9,6 @@ proof_info() \value{ A list with fields: \itemize{ -\item \code{logged_in_user} (character): NULL unless authentication header is sent -\item \code{api_endpoint} (character): the URL for the PROOF API \item \code{branch} (character): git branch of API \item \code{commit_sha} (character): SHA of the git commit of the API \item \code{short_commit_sha} (character): the first eight characters of \code{commit_sha} diff --git a/tests/testthat/helper-stubs.R b/tests/testthat/helper-stubs.R index 3185fa3..b73693f 100644 --- a/tests/testthat/helper-stubs.R +++ b/tests/testthat/helper-stubs.R @@ -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", diff --git a/tests/testthat/test-proof_info.R b/tests/testthat/test-proof_info.R index 515304e..1126f4c 100644 --- a/tests/testthat/test-proof_info.R +++ b/tests/testthat/test-proof_info.R @@ -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()