Running ‘testthat.R’ [11s/18s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/tests.html
  > # * https://testthat.r-lib.org/reference/test_package.html#special-files
  > 
  > library(testthat)
  > library(rlandfire)
  [38;5;208m                           
           _           _ ___ _         
       ___| |___ ___ _| |  _|_|___ ___ 
      |  _| | .'|   | . |  _| |  _| -_|
      |_| |_|__,|_|_|___|_| |_|_| |___|
                                   
      [0mversion:2.0.0[38;5;160m
  
  NOTICE:[0m
  The LFPS API has been updated (LFPSv1 -> LFPSv2) and has new requirements.
  To review the required parameters and syntax for LFPSv2 view `?rlandfire::landfireAPIv2`
  Product names and availability may have changed, check `viewProducts()`
  
  [38;5;160mWorkflows built before May 2025 or with `rlandfire` versions < 2.0.0 will need to be updated.[0m
  > 
  > test_check("rlandfire")
  [ FAIL 8 | WARN 0 | SKIP 2 | PASS 67 ]
  
  ══ Skipped tests (2) ═══════════════════════════════════════════════════════════
  • On CRAN (2): 'test-landfireAPI.R:245:3', 'test-utils.R:27:5'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-checkStatus.R:16:5'): `.checkStatus_internal()` returns expected ──
  Error in `httr2::resp_body_json(response)`: Unexpected content type "text/html".
  * Expecting type "application/json" or suffix "json".
  Backtrace:
      ▆
   1. └─rlandfire:::.checkStatus_internal(landfire_api, i = 1, max_time = 10) at test-checkStatus.R:16:5
   2.   └─httr2::resp_body_json(response)
   3.     └─httr2::resp_check_content_type(...)
   4.       └─httr2:::check_content_type(...)
   5.         └─cli::cli_abort(...)
   6.           └─rlang::abort(...)
  ── Error ('test-checkStatus.R:55:5'): cancelJob() returns expected response ────
  <httr2_http_503/httr2_http/httr2_error/rlang_error/rlang_error/error/condition>
  Error in `httr2::req_perform(request)`: HTTP 503 Service Unavailable.
  Backtrace:
       ▆
    1. ├─testthat::expect_null(cancelJob("6f5ba39c-09f7-4f6d-97fa-543af185eb1b")) at test-checkStatus.R:55:5
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. └─rlandfire::cancelJob("6f5ba39c-09f7-4f6d-97fa-543af185eb1b")
    5.   └─httr2::req_perform(request)
    6.     └─httr2:::handle_resp(req, resp, error_call = error_call)
    7.       └─httr2:::resp_failure_cnd(req, resp, error_call = error_call)
    8.         ├─rlang::catch_cnd(...)
    9.         │ ├─rlang::eval_bare(...)
   10.         │ ├─base::tryCatch(...)
   11.         │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   12.         │ │   └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   13.         │ │     └─base (local) doTryCatch(return(expr), name, parentenv, handler)
   14.         │ └─base::force(expr)
   15.         └─rlang::abort(...)
  ── Error ('test-landfireAPI.R:117:5'): `landfireAPIv2()` formats priority requests correctly ──
  Error in `httr2::resp_body_json(req, simplifyVector = TRUE)`: Unexpected content type "text/html".
  * Expecting type "application/json" or suffix "json".
  Backtrace:
      ▆
   1. └─rlandfire::landfireAPIv2(...) at test-landfireAPI.R:117:5
   2.   └─httr2::resp_body_json(req, simplifyVector = TRUE)
   3.     └─httr2::resp_check_content_type(...)
   4.       └─httr2:::check_content_type(...)
   5.         └─cli::cli_abort(...)
   6.           └─rlang::abort(...)
  ── Error ('test-landfireAPI.R:124:5'): `landfireAPIv2()` returns expected messages ──
  Error in `httr2::resp_body_json(req, simplifyVector = TRUE)`: Unexpected content type "text/html".
  * Expecting type "application/json" or suffix "json".
  Backtrace:
       ▆
    1. ├─testthat::expect_message(...) at test-landfireAPI.R:124:5
    2. │ └─testthat:::expect_condition_matching(...)
    3. │   └─testthat:::quasi_capture(...)
    4. │     ├─testthat (local) .capture(...)
    5. │     │ └─base::withCallingHandlers(...)
    6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. └─rlandfire::landfireAPIv2(products, aoi, email, priority_code = priority_code)
    8.   └─httr2::resp_body_json(req, simplifyVector = TRUE)
    9.     └─httr2::resp_check_content_type(...)
   10.       └─httr2:::check_content_type(...)
   11.         └─cli::cli_abort(...)
   12.           └─rlang::abort(...)
  ── Error ('test-landfireAPI.R:151:5'): `landfireAPIv2()` recognizes failed call ──
  Error in `httr2::resp_body_json(req, simplifyVector = TRUE)`: Unexpected content type "text/html".
  * Expecting type "application/json" or suffix "json".
  Backtrace:
       ▆
    1. ├─testthat::expect_warning(...) at test-landfireAPI.R:151:5
    2. │ └─testthat:::expect_condition_matching(...)
    3. │   └─testthat:::quasi_capture(...)
    4. │     ├─testthat (local) .capture(...)
    5. │     │ └─base::withCallingHandlers(...)
    6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. └─rlandfire::landfireAPIv2(products, aoi, email, projection, path = path)
    8.   └─httr2::resp_body_json(req, simplifyVector = TRUE)
    9.     └─httr2::resp_check_content_type(...)
   10.       └─httr2:::check_content_type(...)
   11.         └─cli::cli_abort(...)
   12.           └─rlang::abort(...)
  ── Error ('test-landfireAPI.R:166:5'): `landfireAPIv2()` edge cases ────────────
  Error in `httr2::resp_body_json(req, simplifyVector = TRUE)`: Unexpected content type "text/html".
  * Expecting type "application/json" or suffix "json".
  Backtrace:
      ▆
   1. └─rlandfire::landfireAPIv2(...) at test-landfireAPI.R:166:5
   2.   └─httr2::resp_body_json(req, simplifyVector = TRUE)
   3.     └─httr2::resp_check_content_type(...)
   4.       └─httr2:::check_content_type(...)
   5.         └─cli::cli_abort(...)
   6.           └─rlang::abort(...)
  ── Error ('test-landfireAPI.R:187:5'): `landfireAPIv2()` works with `getAOI()` ──
  Error in `httr2::resp_body_json(req, simplifyVector = TRUE)`: Unexpected content type "text/html".
  * Expecting type "application/json" or suffix "json".
  Backtrace:
      ▆
   1. └─rlandfire::landfireAPIv2(...) at test-landfireAPI.R:187:5
   2.   └─httr2::resp_body_json(req, simplifyVector = TRUE)
   3.     └─httr2::resp_check_content_type(...)
   4.       └─httr2:::check_content_type(...)
   5.         └─cli::cli_abort(...)
   6.           └─rlang::abort(...)
  ── Error ('test-landfireAPI.R:206:5'): `landfireAPIv2()` works with `getZone()` ──
  Error in `httr2::resp_body_json(req, simplifyVector = TRUE)`: Unexpected content type "text/html".
  * Expecting type "application/json" or suffix "json".
  Backtrace:
      ▆
   1. └─rlandfire::landfireAPIv2(...) at test-landfireAPI.R:206:5
   2.   └─httr2::resp_body_json(req, simplifyVector = TRUE)
   3.     └─httr2::resp_check_content_type(...)
   4.       └─httr2:::check_content_type(...)
   5.         └─cli::cli_abort(...)
   6.           └─rlang::abort(...)
  
  [ FAIL 8 | WARN 0 | SKIP 2 | PASS 67 ]
  Error: Test failures
  Execution halted