R Under development (unstable) (2025-02-10 r87710 ucrt) -- "Unsuffered Consequences" Copyright (C) 2025 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > library(testthat) > library(connectapi) > > progress_reporter <- ProgressReporter$new(max_failures = 1000) > check_reporter <- CheckReporter$new(file = fs::path("check-results-check.txt")) > > reporter_list <- list(progress_reporter, check_reporter) > > if (as.logical(Sys.getenv("IS_JENKINS", "FALSE"))) { + junit_reporter <- JunitReporter$new(file = fs::path("check-results-junit.xml")) + reporter_list <- c(reporter_list, list(junit_reporter)) + } > multi_reporter <- MultiReporter$new(reporters = reporter_list) > > test_check("connectapi", reporter = multi_reporter) ✔ | F W S OK | Context ⠏ | 0 | audit Defining Connect with server: https://connect.example ⠋ | 1 | audit Defining Connect with server: https://connect.example ⠹ | 3 | audit Defining Connect with server: https://connect.example Defining Connect with server: https://connect.example ⠴ | 6 | audit Defining Connect with server: https://connect.example ✔ | 10 | audit [1.1s] ⠏ | 0 | connect Defining Connect with server: http://myhost.example.com Defining Connect with server: http://myhost.example.com/ Defining Connect with server: http://myhost.example.com Defining Connect with server: https://myhost.example.com Defining Connect with server: test.example.com Defining Connect with server: ://test.example.com Defining Connect with server: https://connect.example NULL Defining Connect with server: https://connect.example ⠋ | 1 10 | connect Defining Connect with server: https://connect.example Defining Connect with server: https://connect.example Defining Connect with server: https://connect.example ⠦ | 1 16 | connect Defining Connect with server: https://connect.example Version information is not exposed by this Posit Connect instance. Defining Connect with server: https://connect.example Version information is not exposed by this Posit Connect instance. Version information is not exposed by this Posit Connect instance. Defining Connect with server: https://connect.example Version information is not exposed by this Posit Connect instance. Defining Connect with server: https://connect.example Version information is not exposed by this Posit Connect instance. Version information is not exposed by this Posit Connect instance. ⠋ | 1 1 19 | connect Defining Connect with server: https://connect.example Version information is not exposed by this Posit Connect instance. Defining Connect with server: https://connect.example Version information is not exposed by this Posit Connect instance. Version information is not exposed by this Posit Connect instance. Defining Connect with server: https://connect.example ✔ | 1 1 25 | connect ──────────────────────────────────────────────────────────────────────────────── Warning ('test-connect.R:127:5'): Visitor client can successfully be created running on Connect WARNING: This feature requires Posit Connect version 2025.01.0 but the server version is not exposed by this Posit Connect instance. You may experience errors when using this functionality. This warning is displayed once per session. Backtrace: ▆ 1. ├─httptest::with_mock_api(...) at test-connect.R:120:3 2. │ └─base::eval.parent(expr) 3. │ └─base::eval(expr, p) 4. └─connectapi::connect(token = "my-token") at test-connect.R:127:5 5. └─connectapi:::error_if_less_than(con$version, "2025.01.0") 6. └─connectapi:::warn_once(msg) ──────────────────────────────────────────────────────────────────────────────── ⠏ | 0 | content Defining Connect with server: https://connect.example ⠹ | 13 | content Defining Connect with server: https://connect.example Defining Connect with server: https://connect.example ⠇ | 1 18 | content Defining Connect with server: https://connect.example Version information is not exposed by this Posit Connect instance. Defining Connect with server: https://connect.example Defining Connect with server: https://connect.example ⠸ | 1 1 22 | content Defining Connect with server: https://connect.example Defining Connect with server: https://connect.example ⠏ | 1 1 28 | content Defining Connect with server: https://connect.example ⠴ | 1 1 34 | content Defining Connect with server: https://connect.example ⠏ | 1 1 38 | content Defining Connect with server: https://connect.example Defining Connect with server: http://connect.example Defining Connect with server: https://connect.example Defining Connect with server: http://connect.example Defining Connect with server: http://connect.example ⠦ | 2 1 44 | content Defining Connect with server: http://connect.example Version information is not exposed by this Posit Connect instance. No encoding supplied: defaulting to UTF-8. ⠇ | 2 1 46 | content Defining Connect with server: http://connect.example Version information is not exposed by this Posit Connect instance. ⠦ | 2 1 54 | content Defining Connect with server: http://connect.example No encoding supplied: defaulting to UTF-8. No encoding supplied: defaulting to UTF-8. chr "404 page not found" ⠏ | 2 1 57 | content Defining Connect with server: http://connect.example Version information is not exposed by this Posit Connect instance. ✔ | 3 1 59 | content [1.3s] ──────────────────────────────────────────────────────────────────────────────── Warning ('test-content.R:77:5'): we can modify a content item WARNING: This feature requires Posit Connect version 1.8.6 but the server version is not exposed by this Posit Connect instance. You may experience errors when using this functionality. This warning is displayed once per session. Backtrace: ▆ 1. ├─httptest::expect_PATCH(...) at test-content.R:77:5 2. │ └─httptest:::expect_mock_request(object, "PATCH ", url, " ", ...) 3. │ └─request_happened()(...) 4. │ └─testthat:::expect_condition_matching(...) 5. │ └─testthat:::quasi_capture(...) 6. │ ├─testthat (local) .capture(...) 7. │ │ └─base::withCallingHandlers(...) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. └─item$update(description = "new description") 10. └─connectapi:::error_if_less_than(con$version, "1.8.6") 11. └─connectapi:::warn_once(msg) Warning ('test-content.R:236:5'): content$default_variant gets the default variant The `get_variant` function is experimental and subject to change without warning in a future release This warning is displayed once per session. Backtrace: ▆ 1. └─connectapi (local) ``() at test-content.R:236:5 2. └─connectapi::get_variant(self, "default") 3. └─connectapi:::warn_experimental("get_variant") 4. └─connectapi:::warn_once(...) Warning ('test-content.R:363:5'): get_log() gets job logs WARNING: This feature requires Posit Connect version 2022.10.0 but the server version is not exposed by this Posit Connect instance. You may experience errors when using this functionality. This warning is displayed once per session. Backtrace: ▆ 1. ├─httptest::with_mock_api(...) at test-content.R:357:3 2. │ └─base::eval.parent(expr) 3. │ └─base::eval(expr, p) 4. └─connectapi::get_log(job) at test-content.R:363:5 5. └─connectapi:::error_if_less_than(job$client$version, "2022.10.0") 6. └─connectapi:::warn_once(msg) ──────────────────────────────────────────────────────────────────────────────── ⠏ | 0 | deploy ⠴ | 6 | deploy ⠇ | 9 | deploy Defining Connect with server: https://connect.example Version information is not exposed by this Posit Connect instance. Version information is not exposed by this Posit Connect instance. raw [1:89] 7b 22 63 6f ... ⠋ | 11 | deploy raw [1:89] 7b 22 63 6f ... ✔ | 12 | deploy ⠏ | 0 | get ⠹ | 3 | get Defining Connect with server: https://connect.example Version information is not exposed by this Posit Connect instance. ⠧ | 8 | get Defining Connect with server: https://connect.example Defining Connect with server: http://connect.example ⠹ | 13 | get ✔ | 13 | get ⠏ | 0 | git Defining Connect with server: https://connect.example Defining Connect with server: https://connect.example Defining Connect with server: https://connect.example ✔ | 4 | git ⠏ | 0 | groups Defining Connect with server: https://connect.example Defining Connect with server: https://connect.example ⠼ | 5 | groups Defining Connect with server: https://connect.example ⠦ | 1 6 | groups ✔ | 2 6 | groups ⠏ | 0 | instrumentation Defining Connect with server: https://connect.example ⠼ | 5 | instrumentation Defining Connect with server: https://connect.example ⠙ | 12 | instrumentation ✔ | 16 | instrumentation ⠏ | 0 | oauth Defining Connect with server: https://connect.example Defining Connect with server: https://connect.example Version information is not exposed by this Posit Connect instance. Defining Connect with server: https://connect.example Version information is not exposed by this Posit Connect instance. ⠦ | 1 6 | oauth Defining Connect with server: https://connect.example Version information is not exposed by this Posit Connect instance. ✔ | 1 8 | oauth ──────────────────────────────────────────────────────────────────────────────── Warning ('test-oauth.R:19:5'): we can retrieve the oauth content credentials with an explicit token WARNING: This feature requires Posit Connect version 2024.12.0 but the server version is not exposed by this Posit Connect instance. You may experience errors when using this functionality. This warning is displayed once per session. Backtrace: ▆ 1. └─connectapi::get_oauth_content_credentials(con, content_session_token = "content-session-token") at test-oauth.R:19:5 2. └─connectapi:::error_if_less_than(connect$version, "2024.12.0") 3. └─connectapi:::warn_once(msg) ──────────────────────────────────────────────────────────────────────────────── ⠏ | 0 | parse ⠴ | 26 | parse ⠼ | 45 | parse ⠙ | 1 71 | parse ✔ | 1 74 | parse ⠏ | 0 | print ✔ | 1 0 | print ⠏ | 0 | remote Done creating remote groups Done creating remote groups Found 1 remote groups. Expected 2 Groups found: Everyone ⠧ | 8 | remote Creating remote group: Everyone two Done creating remote groups Defining Connect with server: https://connect.example Found 0 remote groups. Expected 1 ⠼ | 15 | remote Done creating remote groups Found 2 remote groups. Expected 1 Groups found: Art, Arthur O Eve - E O P Program ✔ | 18 | remote ⠏ | 0 | runtime-caches Defining Connect with server: https://connect.example Version information is not exposed by this Posit Connect instance. ⠸ | 4 | runtime-caches raw [1:56] 7b 22 63 6f ... ✔ | 6 | runtime-caches ⠏ | 0 | schedule chr "404 page not found" chr "404 page not found" chr "404 page not found" ✔ | 6 | schedule ⠏ | 0 | tags ⠋ | 1 20 | tags ✔ | 1 33 | tags ⠏ | 0 | task Defining Connect with server: https://connect.example ✔ | 1 | task ⠏ | 0 | thumbnail Defining Connect with server: https://connect.example Version information is not exposed by this Posit Connect instance. ⠼ | 5 | thumbnail NULL ⠏ | 10 | thumbnail NULL NULL ⠴ | 16 | thumbnail List of 3 $ code : num 4 $ error : chr "The requested object does not exist." $ payload: NULL Defining Connect with server: https://connect.example ⠋ | 21 | thumbnail NULL ⠋ | 31 | thumbnail NULL NULL ⠦ | 37 | thumbnail NULL ✔ | 40 | thumbnail ⠏ | 0 | users Defining Connect with server: https://connect.example Defining Connect with server: https://connect.example Defining Connect with server: https://connect.example ⠼ | 5 | users Defining Connect with server: https://connect.example ✔ | 8 | users ⠏ | 0 | utils ✔ | 1 15 | utils ⠏ | 0 | variant Defining Connect with server: https://connect.example ⠦ | 7 | variant ✔ | 10 | variant ══ Results ═════════════════════════════════════════════════════════════════════ Duration: 7.0 s ── Skipped tests (8) ─────────────────────────────────────────────────────────── • Ahh! this fails presently. Are double -> POSIXct conversions allowed? (1): 'test-parse.R:190:3' • On CRAN (5): 'test-content.R:49:5', 'test-groups.R:48:5', 'test-groups.R:54:5', 'test-print.R:16:3', 'test-utils.R:57:3' • not implemented yet (1): 'test-connect.R:33:3' • not tested yet (1): 'test-tags.R:39:3' [ FAIL 0 | WARN 5 | SKIP 8 | PASS 364 ] > > proc.time() user system elapsed 6.73 1.10 7.86