Running ‘testthat.R’ [1s/13s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > test_check('sbtools')
  Loading required package: sbtools
  ── 1. Failure: generic post fails w/o auth (@test-REST.R#5)  ───────────────────
  `item_append_files("54e265a4e4b08de9379b4dfb", "/foo/bar/baz.zip")` threw an error with unexpected message.
  Expected match: "Item not found for"
  Actual message: "server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none"
  
  ── 2. Failure: generic post fails w/o auth (@test-REST.R#10)  ──────────────────
  `item_append_files(...)` threw an error with unexpected message.
  Expected match: "Item not found for"
  Actual message: "server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none"
  
  ── 3. Failure: generic post fails w/o auth (@test-REST.R#14)  ──────────────────
  `item_append_files("54e265a4e4b08de9379b4dfb", files, session = session)` threw an error with unexpected message.
  Expected match: "Item not found for"
  Actual message: "server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none"
  
  ── 4. Error: generic get w/ and w/o auth (@test-REST.R#29)  ────────────────────
  server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
  1: expect_is(item_get(public_item, session = NULL), "sbitem") at testthat/test-REST.R:29
  2: quasi_label(enquo(object), label)
  3: eval_bare(get_expr(quo), get_env(quo))
  4: item_get(public_item, session = NULL)
  5: get_item(as.sbitem(sb_id)$id, ..., session = session)
  6: sbtools_GET(url = paste0(pkg.env$url_item, id), ..., query = list(type = "json"), 
         session = session)
  7: GET(url = url, ..., httrUserAgent(), handle = session)
  8: handle_url(handle, url, ...)
  9: paste0(pkg.env$url_item, id)
  10: as.sbitem(sb_id)
  11: as.sbitem.character(sb_id)
  12: get_item(x, ...)
  13: sbtools_GET(url = paste0(pkg.env$url_item, id), ..., query = list(type = "json"), 
         session = session)
  14: GET(url = url, ..., httrUserAgent(), handle = session)
  15: request_perform(req, hu$handle$handle)
  16: request_fetch(req$output, req$url, handle)
  17: request_fetch.write_memory(req$output, req$url, handle)
  18: curl::curl_fetch_memory(url, handle = handle)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 10 SKIPPED: 3 FAILED: 4
  1. Failure: generic post fails w/o auth (@test-REST.R#5) 
  2. Failure: generic post fails w/o auth (@test-REST.R#10) 
  3. Failure: generic post fails w/o auth (@test-REST.R#14) 
  4. Error: generic get w/ and w/o auth (@test-REST.R#29) 
  
  Error: testthat unit tests failed
  Execution halted