Running 'testthat.R' [10s/94s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > # Copyright 2019 Province of British Columbia
  > #
  > # Licensed under the Apache License, Version 2.0 (the "License");
  > # you may not use this file except in compliance with the License.
  > # You may obtain a copy of the License at
  > #
  > # http://www.apache.org/licenses/LICENSE-2.0
  > #
  > # Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS,
  > # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  > # See the License for the specific language governing permissions and limitations under the License.
  > 
  > if (require("testthat", quietly = TRUE)) {
  +   library(bcdata)
  +   library(sf)
  +   test_check("bcdata")
  + }
  
  Attaching package: 'bcdata'
  
  The following object is masked from 'package:stats':
  
      filter
  
  Linking to GEOS 3.10.2, GDAL 3.4.1, PROJ 8.2.1; sf_use_s2() is TRUE
  [ FAIL 2 | WARN 0 | SKIP 96 | PASS 75 ]
  
  == Skipped tests ===============================================================
  * BEYOND currently not supported (1)
  * On CRAN (94)
  * RELATE not supported. https://github.com/bcgov/bcdata/pull/154 (1)
  
  == Failed tests ================================================================
  -- Error (test-query-geodata-base-methods.R:66:3): names.bcdc_promise returns the same as names on a data.frame --
  Error: There was an issue sending this WFS request
  ================================================================================
  Request:
    URL: https://openmaps.gov.bc.ca/geo/pub/wfs
    POST fields:
      SERVICE=WFS&VERSION=2.0.0&REQUEST=GetFeature&outputFormat=application%2Fjson&typeNames=WHSE_IMAGERY_AND_BASE_MAPS.GSR_AIRPORTS_SVW&SRSNAME=EPSG%3A3005&count=6&sortBy=SEQUENCE_ID
    Content-Type: application/x-www-form-urlencoded
    Accept-Encoding: gzip, deflate
    Accept: application/json, text/xml, application/xml, */*
    User-Agent: https://github.com/bcgov/bcdata
  Response:
    status: HTTP/1.1 503
    date: Thu, 10 Feb 2022 20:24:16 GMT
    server: Apache
    x-frame-options: allow-from (null)
    x-control-flow-delay-ms: 30000
    content-type: text/html;charset=utf-8
    content-language: en
    content-length: 1201
    access-control-allow-origin: (null)
    access-control-allow-credentials: true
    access-control-allow-methods: POST, GET, OPTIONS, HEAD
    access-control-allow-headers: X-Requested-With, Referer, Origin, Content-Type, SOAPAction, Authorization, Accept
    access-control-max-age: 1000
    connection: close
  
  Backtrace:
      x
   1. +-testthat::expect_identical(names(query01), names(collect(query01))) at test-query-geodata-base-methods.R:66:2
   2. | \-testthat::quasi_label(enquo(expected), expected.label, arg = "expected")
   3. |   \-rlang::eval_bare(expr, quo_get_env(quo))
   4. +-dplyr::collect(query01)
   5. \-bcdata:::collect.bcdc_promise(query01)
   6.   \-bcdata:::catch_wfs_error(cc)
  -- Error (test-query-geodata-base-methods.R:77:3): names.bcdc_promise returns the same as names on a data.frame when using select --
  Error: There was an issue sending this WFS request
  ================================================================================
  Request:
    URL: https://openmaps.gov.bc.ca/geo/pub/wfs
    POST fields:
      SERVICE=WFS&VERSION=2.0.0&REQUEST=GetFeature&outputFormat=application%2Fjson&typeNames=WHSE_LEGAL_ADMIN_BOUNDARIES.ABMS_REGIONAL_DISTRICTS_SP&SRSNAME=EPSG%3A3005&count=6&sortBy=OBJECTID&propertyName=SHAPE%2CLGL_ADMIN_AREA_ID%2CADMIN_AREA_NAME
    Content-Type: application/x-www-form-urlencoded
    Accept-Encoding: gzip, deflate
    Accept: application/json, text/xml, application/xml, */*
    User-Agent: https://github.com/bcgov/bcdata
  Response:
    status: HTTP/1.1 503
    date: Thu, 10 Feb 2022 20:24:48 GMT
    server: Apache
    x-frame-options: allow-from (null)
    x-control-flow-delay-ms: 30000
    content-type: text/html;charset=utf-8
    content-language: en
    content-length: 1201
    access-control-allow-origin: (null)
    access-control-allow-credentials: true
    access-control-allow-methods: POST, GET, OPTIONS, HEAD
    access-control-allow-headers: X-Requested-With, Referer, Origin, Content-Type, SOAPAction, Authorization, Accept
    access-control-max-age: 1000
    connection: close
  
  Backtrace:
      x
   1. +-testthat::expect_identical(names(query02), names(collect(query02))) at test-query-geodata-base-methods.R:77:2
   2. | \-testthat::quasi_label(enquo(expected), expected.label, arg = "expected")
   3. |   \-rlang::eval_bare(expr, quo_get_env(quo))
   4. +-dplyr::collect(query02)
   5. \-bcdata:::collect.bcdc_promise(query02)
   6.   \-bcdata:::catch_wfs_error(cc)
  
  [ FAIL 2 | WARN 0 | SKIP 96 | PASS 75 ]
  Error: Test failures
  Execution halted