Skip to content

Commit

Permalink
Clean up remaining NOTEs.
Browse files Browse the repository at this point in the history
  • Loading branch information
craigcitro committed Feb 5, 2017
1 parent fe9ff59 commit 18af97c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions .Rbuildignore
@@ -1,2 +1,3 @@
^.*\.Rproj$
^\.Rproj\.user$
^\.travis\.yml$
1 change: 0 additions & 1 deletion NAMESPACE
Expand Up @@ -5,6 +5,5 @@ export(add_credential_function)
export(all_credential_functions)
export(fetch_token)
export(get_gce_credentials)
export(list_service_accounts)
export(set_credential_functions)
importFrom(magrittr,"%>%")
4 changes: 3 additions & 1 deletion R/gce-token.R
@@ -1,3 +1,6 @@
# Don't warn about . in pipelines.
utils::globalVariables(".")

#' GceToken is a token for use only on Google Compute Engine instances.
#'
#' This class uses the metadata service available on GCE VMs to fetch access tokens.
Expand Down Expand Up @@ -55,7 +58,6 @@ detect_gce <- function() {
#' List all service accounts available on this GCE instance.
#'
#' @return A list of service account names.
#' @export
list_service_accounts <- function() {
accounts <- gce_metadata_request('instance/service-accounts') %>%
httr::content('text', encoding = 'utf8') %>%
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-gce-token.R
Expand Up @@ -14,6 +14,6 @@ test_that('Can list service accounts', {

testthat::with_mock(
`gauth::gce_metadata_request` = request_mock,
expect_equal(service_accounts, gauth::list_service_accounts())
expect_equal(service_accounts, gauth:::list_service_accounts())
)
})

0 comments on commit 18af97c

Please sign in to comment.