Running ‘testthat.R’ [5s/11s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(polished)
  > library(httr)
  > 
  > test_check("polished")
  Error in curl::curl_fetch_memory(url, handle = handle) : 
    SSL certificate problem: certificate has expired
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-api-01-apps.R:6:3): can add an app to an account ────────────────
  Error in `curl::curl_fetch_memory(url, handle = handle)`: SSL certificate problem: certificate has expired
  Backtrace:
      █
   1. └─polished::add_app(app_name = test_app_name) test-api-01-apps.R:6:2
   2.   └─httr::POST(...)
   3.     └─httr:::request_perform(req, hu$handle$handle)
   4.       ├─httr:::request_fetch(req$output, req$url, handle)
   5.       └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   6.         └─curl::curl_fetch_memory(url, handle = handle)
  ── Error (test-api-01-apps.R:25:3): can get all apps for an account ────────────
  Error in `curl::curl_fetch_memory(url, handle = handle)`: SSL certificate problem: certificate has expired
  Backtrace:
      █
   1. └─polished::get_apps() test-api-01-apps.R:25:2
   2.   └─httr::GET(...)
   3.     └─httr:::request_perform(req, hu$handle$handle)
   4.       ├─httr:::request_fetch(req$output, req$url, handle)
   5.       └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   6.         └─curl::curl_fetch_memory(url, handle = handle)
  ── Error (test-api-01-apps.R:35:3): can get an app by app_name ─────────────────
  Error in `curl::curl_fetch_memory(url, handle = handle)`: SSL certificate problem: certificate has expired
  Backtrace:
      █
   1. └─polished::get_apps(app_name = "test_app") test-api-01-apps.R:35:2
   2.   └─httr::GET(...)
   3.     └─httr:::request_perform(req, hu$handle$handle)
   4.       ├─httr:::request_fetch(req$output, req$url, handle)
   5.       └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   6.         └─curl::curl_fetch_memory(url, handle = handle)
  ── Error (test-api-01-apps.R:46:3): can get an app by app_uid ──────────────────
  Error in `curl::curl_fetch_memory(url, handle = handle)`: SSL certificate problem: certificate has expired
  Backtrace:
      █
   1. └─polished::get_apps(app_uid = test_app_info$uid) test-api-01-apps.R:46:2
   2.   └─httr::GET(...)
   3.     └─httr:::request_perform(req, hu$handle$handle)
   4.       ├─httr:::request_fetch(req$output, req$url, handle)
   5.       └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   6.         └─curl::curl_fetch_memory(url, handle = handle)
  ── Error (test-api-01-apps.R:57:3): can update an app ──────────────────────────
  Error in `curl::curl_fetch_memory(url, handle = handle)`: SSL certificate problem: certificate has expired
  Backtrace:
      █
   1. └─polished::update_app(...) test-api-01-apps.R:57:2
   2.   └─httr::PUT(...)
   3.     └─httr:::request_perform(req, hu$handle$handle)
   4.       ├─httr:::request_fetch(req$output, req$url, handle)
   5.       └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   6.         └─curl::curl_fetch_memory(url, handle = handle)
  ── Error (test-api-01-apps.R:70:3): can delete an app ──────────────────────────
  Error in `curl::curl_fetch_memory(url, handle = handle)`: SSL certificate problem: certificate has expired
  Backtrace:
      █
   1. └─polished::delete_app(app_uid = test_app_info$uid) test-api-01-apps.R:70:2
   2.   └─httr::DELETE(...)
   3.     └─httr:::request_perform(req, hu$handle$handle)
   4.       ├─httr:::request_fetch(req$output, req$url, handle)
   5.       └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   6.         └─curl::curl_fetch_memory(url, handle = handle)
  ── Error (test-api-02-users.R:17:3): can add a user to an account ──────────────
  Error in `curl::curl_fetch_memory(url, handle = handle)`: SSL certificate problem: certificate has expired
  Backtrace:
      █
   1. └─polished::add_user(email = test_email) test-api-02-users.R:17:2
   2.   └─httr::POST(...)
   3.     └─httr:::request_perform(req, hu$handle$handle)
   4.       ├─httr:::request_fetch(req$output, req$url, handle)
   5.       └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   6.         └─curl::curl_fetch_memory(url, handle = handle)
  ── Error (test-api-02-users.R:37:3): can get all users for an account ──────────
  Error in `curl::curl_fetch_memory(url, handle = handle)`: SSL certificate problem: certificate has expired
  Backtrace:
      █
   1. └─polished::get_users() test-api-02-users.R:37:2
   2.   └─httr::GET(...)
   3.     └─httr:::request_perform(req, hu$handle$handle)
   4.       ├─httr:::request_fetch(req$output, req$url, handle)
   5.       └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   6.         └─curl::curl_fetch_memory(url, handle = handle)
  ── Error (test-api-02-users.R:47:3): can get a app by email ────────────────────
  Error in `curl::curl_fetch_memory(url, handle = handle)`: SSL certificate problem: certificate has expired
  Backtrace:
      █
   1. └─polished::get_users(email = test_email) test-api-02-users.R:47:2
   2.   └─httr::GET(...)
   3.     └─httr:::request_perform(req, hu$handle$handle)
   4.       ├─httr:::request_fetch(req$output, req$url, handle)
   5.       └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   6.         └─curl::curl_fetch_memory(url, handle = handle)
  ── Error (test-api-02-users.R:57:3): can get a user by user_uid ────────────────
  Error in `curl::curl_fetch_memory(url, handle = handle)`: SSL certificate problem: certificate has expired
  Backtrace:
      █
   1. └─polished::get_users(user_uid = test_user_info$uid) test-api-02-users.R:57:2
   2.   └─httr::GET(...)
   3.     └─httr:::request_perform(req, hu$handle$handle)
   4.       ├─httr:::request_fetch(req$output, req$url, handle)
   5.       └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   6.         └─curl::curl_fetch_memory(url, handle = handle)
  ── Error (test-api-02-users.R:68:3): can delete a user ─────────────────────────
  Error in `curl::curl_fetch_memory(url, handle = handle)`: SSL certificate problem: certificate has expired
  Backtrace:
      █
   1. └─polished::delete_user(user_uid = test_user_info$uid) test-api-02-users.R:68:2
   2.   └─httr::DELETE(...)
   3.     └─httr:::request_perform(req, hu$handle$handle)
   4.       ├─httr:::request_fetch(req$output, req$url, handle)
   5.       └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   6.         └─curl::curl_fetch_memory(url, handle = handle)
  ── Error (test-api-03-app-users.R:3:1): (code run outside of `test_that()`) ────
  Error in `curl::curl_fetch_memory(url, handle = handle)`: SSL certificate problem: certificate has expired
  Backtrace:
      █
   1. └─polished::get_apps(app_name = "polished_test") test-api-03-app-users.R:3:0
   2.   └─httr::GET(...)
   3.     └─httr:::request_perform(req, hu$handle$handle)
   4.       ├─httr:::request_fetch(req$output, req$url, handle)
   5.       └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   6.         └─curl::curl_fetch_memory(url, handle = handle)
  ── Error (test-api-04-roles.R:7:3): can add a role to an account ───────────────
  Error in `curl::curl_fetch_memory(url, handle = handle)`: SSL certificate problem: certificate has expired
  Backtrace:
      █
   1. └─polished::add_role(role_name = test_role) test-api-04-roles.R:7:2
   2.   └─httr::POST(...)
   3.     └─httr:::request_perform(req, hu$handle$handle)
   4.       ├─httr:::request_fetch(req$output, req$url, handle)
   5.       └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   6.         └─curl::curl_fetch_memory(url, handle = handle)
  ── Error (test-api-04-roles.R:28:3): can get all roles for an account ──────────
  Error in `curl::curl_fetch_memory(url, handle = handle)`: SSL certificate problem: certificate has expired
  Backtrace:
      █
   1. └─polished::get_roles() test-api-04-roles.R:28:2
   2.   └─httr::GET(...)
   3.     └─httr:::request_perform(req, hu$handle$handle)
   4.       ├─httr:::request_fetch(req$output, req$url, handle)
   5.       └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   6.         └─curl::curl_fetch_memory(url, handle = handle)
  ── Error (test-api-04-roles.R:39:3): can get a role by uid ─────────────────────
  Error in `curl::curl_fetch_memory(url, handle = handle)`: SSL certificate problem: certificate has expired
  Backtrace:
      █
   1. └─polished::get_roles(role_uid = role_info$uid) test-api-04-roles.R:39:2
   2.   └─httr::GET(...)
   3.     └─httr:::request_perform(req, hu$handle$handle)
   4.       ├─httr:::request_fetch(req$output, req$url, handle)
   5.       └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   6.         └─curl::curl_fetch_memory(url, handle = handle)
  ── Error (test-api-04-roles.R:52:3): can delete a role ─────────────────────────
  Error in `curl::curl_fetch_memory(url, handle = handle)`: SSL certificate problem: certificate has expired
  Backtrace:
      █
   1. └─polished::delete_role(role_uid = role_info$uid) test-api-04-roles.R:52:2
   2.   └─httr::DELETE(...)
   3.     └─httr:::request_perform(req, hu$handle$handle)
   4.       ├─httr:::request_fetch(req$output, req$url, handle)
   5.       └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   6.         └─curl::curl_fetch_memory(url, handle = handle)
  ── Error (test-api-05-user_roles.R:5:1): (code run outside of `test_that()`) ───
  Error in `curl::curl_fetch_memory(url, handle = handle)`: SSL certificate problem: certificate has expired
  Backtrace:
      █
   1. └─polished::get_roles(role_uid = "da782793-cfac-45c1-8a55-02af4ce6011e") test-api-05-user_roles.R:5:0
   2.   └─httr::GET(...)
   3.     └─httr:::request_perform(req, hu$handle$handle)
   4.       ├─httr:::request_fetch(req$output, req$url, handle)
   5.       └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   6.         └─curl::curl_fetch_memory(url, handle = handle)
  
  [ FAIL 17 | WARN 0 | SKIP 0 | PASS 0 ]
  Error: Test failures
  Execution halted