Running ‘test-all.R’ [9s/21s]
Running the tests in ‘tests/test-all.R’ failed.
Complete output:
  > # Modeled after the R6 testing structure: https://github.com/wch/R6/blob/master/tests/testthat.R
  > library(testthat)
  > library(REDCapR)
  > 
  > # source("R/helpers-testing.R")
  > testthat::test_check("REDCapR")
  The REDCapR read/export operation was not successful.  The error message was:
  <?xml version="1.0" encoding="UTF-8" ?><hash><error>This REDCap instance is offline this weekend for maintenance.</error></hash>
  The REDCapR read/export operation was not successful.  The error message was:
  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
  <head>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
  <title>404 - File or directory not found.</title>
  <style type="text/css">
  <!--
  body{margin:0;font-size:.7em;font-family:Verdana, Arial, Helvetica, sans-serif;background:#EEEEEE;}
  fieldset{padding:0 15px 10px 15px;} 
  h1{font-size:2.4em;margin:0;color:#FFF;}
  h2{font-size:1.7em;margin:0;color:#CC0000;} 
  h3{font-size:1.2em;margin:10px 0 0 0;color:#000000;} 
  #header{width:96%;margin:0 0 0 0;padding:6px 2% 6px 2%;font-family:"trebuchet MS", Verdana, sans-serif;color:#FFF;
  background-color:#555555;}
  #content{margin:0 0 0 2%;position:relative;}
  .content-container{background:#FFF;width:96%;margin-top:8px;padding:10px;position:relative;}
  -->
  </style>
  </head>
  <body>
  <div id="header"><h1>Server Error</h1></div>
  <div id="content">
   <div class="content-container"><fieldset>
    <h2>404 - File or directory not found.</h2>
    <h3>The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.</h3>
   </fieldset></div>
  </div>
  </body>
  </html>
  
  The REDCapR metadata export operation was not successful.  The error message was:
  ERROR: This REDCap instance is offline this weekend for maintenance.
  The REDCapR read/export operation was not successful.  The error message was:
  ERROR: This REDCap instance is offline this weekend for maintenance.
  Starting to update 32 records to be written at 2022-07-16 11:24:27.
  Writing batch 1 of 1, with indices 1 through 32.
  The REDCapR write/import operation was not successful.  The error message was:
  ERROR: This REDCap instance is offline this weekend for maintenance.
  Starting to update 32 records to be written at 2022-07-16 11:24:28.
  Writing batch 1 of 4, with indices 1 through 10.
  The REDCapR write/import operation was not successful.  The error message was:
  ERROR: This REDCap instance is offline this weekend for maintenance.
  Writing batch 1 of 1, with indices 1 through 32.
  The REDCapR write/import operation was not successful.  The error message was:
  ERROR: This REDCap instance is offline this weekend for maintenance.
  Starting to update 32 records to be written at 2022-07-16 11:24:30.
  Writing batch 1 of 4, with indices 1 through 10.
  The REDCapR write/import operation was not successful.  The error message was:
  ERROR: This REDCap instance is offline this weekend for maintenance.
  Writing batch 2 of 4, with indices 11 through 20.
  The REDCapR write/import operation was not successful.  The error message was:
  ERROR: This REDCap instance is offline this weekend for maintenance.
  Writing batch 3 of 4, with indices 21 through 30.
  The REDCapR write/import operation was not successful.  The error message was:
  ERROR: This REDCap instance is offline this weekend for maintenance.
  Writing batch 4 of 4, with indices 31 through 32.
  The REDCapR write/import operation was not successful.  The error message was:
  ERROR: This REDCap instance is offline this weekend for maintenance.
  [ FAIL 11 | WARN 0 | SKIP 109 | PASS 161 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (109)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure (test-read-errors.R:18:3): One Shot: Bad Uri -Not HTTPS ─────────────
  returned_object$status_code %in% c(411L, 501L) is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  ── Failure (test-read-errors.R:19:3): One Shot: Bad Uri -Not HTTPS ─────────────
  returned_object$raw_text %in% c(expected_message_411, expected_message_501) is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  ── Failure (test-read-errors.R:57:3): Batch: Bad Uri -Not HTTPS ────────────────
  returned_object$status_code %in% c(411L, 501L) is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  ── Failure (test-read-errors.R:60:3): Batch: Bad Uri -Not HTTPS ────────────────
  returned_object\$outcome_messages does not match "The initial call failed with the code: (411|501).".
  Actual value: "The initial call failed with the code: 400\."
  Backtrace:
      ▆
   1. └─testthat::expect_match(returned_object$outcome_messages, expected_outcome_message) at test-read-errors.R:60:2
   2.   └─testthat:::expect_match_(...)
  ── Failure (test-write-error.R:23:3): One Shot: writing with read-only privileges ──
  result$status_code (`actual`) not equal to 403L (`expected`).
  
    `actual`: 400
  `expected`: 403
  ── Failure (test-write-error.R:24:3): One Shot: writing with read-only privileges ──
  result$outcome_message (`actual`) not equal to `expected_message` (`expected`).
  
  lines(actual) vs lines(expected)
    "The REDCapR write/import operation was not successful.  The error message was:"
  - "ERROR: This REDCap instance is offline this weekend for maintenance."
  + "ERROR: You do not have API Import/Update privileges"
  ── Failure (test-write-error.R:27:3): One Shot: writing with read-only privileges ──
  result$raw_text (`actual`) not equal to `expected_text` (`expected`).
  
  actual vs expected
  - "ERROR: This REDCap instance is offline this weekend for maintenance."
  + "ERROR: You do not have API Import/Update privileges"
  ── Failure (test-write-error.R:80:3): Single Batch: writing with read-only privileges --contiue on error ──
  result$status_code (`actual`) not equal to "403" (`expected`).
  
  `actual`:   "400"
  `expected`: "403"
  ── Failure (test-write-error.R:81:3): Single Batch: writing with read-only privileges --contiue on error ──
  result$outcome_message (`actual`) not equal to `expected_message` (`expected`).
  
  lines(actual) vs lines(expected)
    "The REDCapR write/import operation was not successful.  The error message was:"
  - "ERROR: This REDCap instance is offline this weekend for maintenance."
  + "ERROR: You do not have API Import/Update privileges"
  ── Failure (test-write-error.R:101:3): Many Batches: writing with read-only privileges --contiue on error ──
  result$status_code (`actual`) not equal to "403; 403; 403; 403" (`expected`).
  
  `actual`:   "400; 400; 400; 400"
  `expected`: "403; 403; 403; 403"
  ── Failure (test-write-error.R:102:3): Many Batches: writing with read-only privileges --contiue on error ──
  result\$outcome_message does not match "The REDCapR write/import operation was not successful.  The error message was:\nERROR: You do not have API Import/Update privileges".
  Actual value: "The REDCapR write/import operation was not successful\.  The error message was:\\nERROR: This REDCap instance is offline this weekend for maintenance\.; The REDCapR write/import operation was not successful\.  The error message was:\\nERROR: This REDCap instance is offline this weekend for maintenance\.; The REDCapR write/import operation was not successful\.  The error message was:\\nERROR: This REDCap instance is offline this weekend for maintenance\.; The REDCapR write/import operation was not successful\.  The error message was:\\nERROR: This REDCap instance is offline this weekend for maintenance\."
  Backtrace:
      ▆
   1. └─testthat::expect_match(result$outcome_message, expected_message) at test-write-error.R:102:2
   2.   └─testthat:::expect_match_(...)
  
  [ FAIL 11 | WARN 0 | SKIP 109 | PASS 161 ]
  Error: Test failures
  Execution halted