Running ‘testthat.R’ [1s/3s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(osi)
  Loading required package: httr
  > 
  > test_check("osi")
  ── 1. Error: All licenses can be retrieved (@test_connectors.R#6)  ─────────────
  server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
  1: license_list() at testthat/test_connectors.R:6
  2: lapply(query_osi("licenses/", ...), clean_license)
  3: query_osi("licenses/", ...)
  4: httr::GET(paste0("https://api.opensource.org/", params), httr::user_agent("R API connector - https://www.github.com/Ironholds/osi"), 
         ...)
  5: request_perform(req, hu$handle$handle)
  6: request_fetch(req$output, req$url, handle)
  7: request_fetch.write_memory(req$output, req$url, handle)
  8: curl::curl_fetch_memory(url, handle = handle)
  
  ── 2. Error: Keyword retrieval works (@test_connectors.R#14)  ──────────────────
  server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
  1: license_by_keyword("copyleft") at testthat/test_connectors.R:14
  2: lapply(query_osi(paste0("licenses/", keyword), ...), clean_license)
  3: query_osi(paste0("licenses/", keyword), ...)
  4: httr::GET(paste0("https://api.opensource.org/", params), httr::user_agent("R API connector - https://www.github.com/Ironholds/osi"), 
         ...)
  5: request_perform(req, hu$handle$handle)
  6: request_fetch(req$output, req$url, handle)
  7: request_fetch.write_memory(req$output, req$url, handle)
  8: curl::curl_fetch_memory(url, handle = handle)
  
  ── 3. Error: ID retrieval works (@test_connectors.R#22)  ───────────────────────
  server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
  1: license_by_id("GPL-2.0") at testthat/test_connectors.R:22
  2: lapply(license_ids, function(id, ...) {
         return(clean_license(query_osi(paste0("license/", id), ...)))
     }, ...)
  3: FUN(X[[i]], ...)
  4: clean_license(query_osi(paste0("license/", id), ...))
  5: query_osi(paste0("license/", id), ...)
  6: httr::GET(paste0("https://api.opensource.org/", params), httr::user_agent("R API connector - https://www.github.com/Ironholds/osi"), 
         ...)
  7: request_perform(req, hu$handle$handle)
  8: request_fetch(req$output, req$url, handle)
  9: request_fetch.write_memory(req$output, req$url, handle)
  10: curl::curl_fetch_memory(url, handle = handle)
  
  ── 4. Error: Content retrieval works (@test_connectors.R#29)  ──────────────────
  server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
  1: license_by_id("GPL-2.0") at testthat/test_connectors.R:29
  2: lapply(license_ids, function(id, ...) {
         return(clean_license(query_osi(paste0("license/", id), ...)))
     }, ...)
  3: FUN(X[[i]], ...)
  4: clean_license(query_osi(paste0("license/", id), ...))
  5: query_osi(paste0("license/", id), ...)
  6: httr::GET(paste0("https://api.opensource.org/", params), httr::user_agent("R API connector - https://www.github.com/Ironholds/osi"), 
         ...)
  7: request_perform(req, hu$handle$handle)
  8: request_fetch(req$output, req$url, handle)
  9: request_fetch.write_memory(req$output, req$url, handle)
  10: curl::curl_fetch_memory(url, handle = handle)
  
  ── 5. Error: licenses IDs can be retrieved (@test_extractors.R#4)  ─────────────
  server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
  1: license_list() at testthat/test_extractors.R:4
  2: lapply(query_osi("licenses/", ...), clean_license)
  3: query_osi("licenses/", ...)
  4: httr::GET(paste0("https://api.opensource.org/", params), httr::user_agent("R API connector - https://www.github.com/Ironholds/osi"), 
         ...)
  5: request_perform(req, hu$handle$handle)
  6: request_fetch(req$output, req$url, handle)
  7: request_fetch.write_memory(req$output, req$url, handle)
  8: curl::curl_fetch_memory(url, handle = handle)
  
  ── 6. Error: licenses names can be retrieved (@test_extractors.R#11)  ──────────
  server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
  1: license_list() at testthat/test_extractors.R:11
  2: lapply(query_osi("licenses/", ...), clean_license)
  3: query_osi("licenses/", ...)
  4: httr::GET(paste0("https://api.opensource.org/", params), httr::user_agent("R API connector - https://www.github.com/Ironholds/osi"), 
         ...)
  5: request_perform(req, hu$handle$handle)
  6: request_fetch(req$output, req$url, handle)
  7: request_fetch.write_memory(req$output, req$url, handle)
  8: curl::curl_fetch_memory(url, handle = handle)
  
  ── 7. Error: licenses superseded states can be retrieved (@test_extractors.R#18)
  server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
  1: license_list() at testthat/test_extractors.R:18
  2: lapply(query_osi("licenses/", ...), clean_license)
  3: query_osi("licenses/", ...)
  4: httr::GET(paste0("https://api.opensource.org/", params), httr::user_agent("R API connector - https://www.github.com/Ironholds/osi"), 
         ...)
  5: request_perform(req, hu$handle$handle)
  6: request_fetch(req$output, req$url, handle)
  7: request_fetch.write_memory(req$output, req$url, handle)
  8: curl::curl_fetch_memory(url, handle = handle)
  
  ── 8. Error: licenses keywords can be retrieved (@test_extractors.R#25)  ───────
  server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
  1: license_list() at testthat/test_extractors.R:25
  2: lapply(query_osi("licenses/", ...), clean_license)
  3: query_osi("licenses/", ...)
  4: httr::GET(paste0("https://api.opensource.org/", params), httr::user_agent("R API connector - https://www.github.com/Ironholds/osi"), 
         ...)
  5: request_perform(req, hu$handle$handle)
  6: request_fetch(req$output, req$url, handle)
  7: request_fetch.write_memory(req$output, req$url, handle)
  8: curl::curl_fetch_memory(url, handle = handle)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 0 SKIPPED: 0 FAILED: 8
  1. Error: All licenses can be retrieved (@test_connectors.R#6) 
  2. Error: Keyword retrieval works (@test_connectors.R#14) 
  3. Error: ID retrieval works (@test_connectors.R#22) 
  4. Error: Content retrieval works (@test_connectors.R#29) 
  5. Error: licenses IDs can be retrieved (@test_extractors.R#4) 
  6. Error: licenses names can be retrieved (@test_extractors.R#11) 
  7. Error: licenses superseded states can be retrieved (@test_extractors.R#18) 
  8. Error: licenses keywords can be retrieved (@test_extractors.R#25) 
  
  Error: testthat unit tests failed
  Execution halted