tests/testthat/test_storage_api.R

# Automatically generated by openapi-generator (https://openapi-generator.tech)
# Please update as you see appropriate

context("Test StorageApi")

api.instance <- StorageApi$new()

test_that("GetMetadata", {
  # tests for GetMetadata
  # base path: http://localhost
  # Get metadata about an object stored in GCS. 
  # Returns a subset of the metadata available from Google&#39;s Cloud Storage JSON API, as well as the estimated egress charge to North America. If you need the full metadata, we recommend you use Google&#39;s API directly; see https://cloud.google.com/storage/docs/json_api/v1/objects/get. 
  # @param bucket character Name of the bucket in which the object resides.
  # @param object character Name of the object. (be sure to urlencode)
  # @return [Void]

  # uncomment below to test the operation
  #expect_equal(result, "EXPECTED_RESULT")
})

test_that("GetStorageDownload", {
  # tests for GetStorageDownload
  # base path: http://localhost
  # Download GCS object using a cookie token 
  # Download GCS object using a cookie token 
  # @param bucket character Name of the bucket in which the object resides.
  # @param object character Name of the object. (be sure to urlencode)
  # @return [data.frame]

  # uncomment below to test the operation
  #expect_equal(result, "EXPECTED_RESULT")
})
vjcitn/terraClientR documentation built on Dec. 23, 2021, 4:07 p.m.