R Under development (unstable) (2024-12-17 r87446 ucrt) -- "Unsuffered Consequences" Copyright (C) 2024 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 ✔ | 1 16 | connect ⠏ | 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 Defining Connect with server: https://connect.example Version information is not exposed by this Posit Connect instance. ⠋ | 1 1 19 | content Defining Connect with server: https://connect.example Defining Connect with server: https://connect.example ⠴ | 1 1 24 | content Defining Connect with server: https://connect.example Defining Connect with server: https://connect.example ⠋ | 1 1 29 | content Defining Connect with server: https://connect.example ⠦ | 1 1 35 | content Defining Connect with server: https://connect.example Defining Connect with server: https://connect.example ⠙ | 1 1 40 | content 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 No encoding supplied: defaulting to UTF-8. ⠇ | 2 1 46 | content Defining Connect with server: http://connect.example ⠙ | 2 1 49 | 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 52 | content ✔ | 2 1 52 | content [1.2s] ──────────────────────────────────────────────────────────────────────────────── 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:240: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:240:5 2. └─connectapi::get_variant(self, "default") 3. └─connectapi:::warn_experimental("get_variant") 4. └─connectapi:::warn_once(...) ──────────────────────────────────────────────────────────────────────────────── ⠏ | 0 | deploy ⠴ | 6 | deploy ⠇ | 9 | deploy ✔ | 10 | 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 ⠙ | 12 | get Defining Connect with server: http://connect.example ✔ | 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 ✔ | 4 | git ⠏ | 0 | groups Defining Connect with server: https://connect.example Defining Connect with server: https://connect.example ⠸ | 4 | 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 ⠙ | 22 | parse ⠋ | 41 | parse ⠏ | 60 | parse ✔ | 1 73 | 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 ⠦ | 7 | remote Creating remote group: Everyone two Done creating remote groups Defining Connect with server: https://connect.example Found 0 remote groups. Expected 1 ⠙ | 12 | remote Done creating remote groups ⠦ | 17 | remote 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. ⠹ | 3 | thumbnail NULL ⠇ | 9 | thumbnail NULL ⠹ | 13 | thumbnail NULL ⠧ | 18 | 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 ⠏ | 30 | thumbnail NULL NULL ⠼ | 35 | thumbnail NULL ⠇ | 39 | thumbnail ✔ | 40 | thumbnail [1.1s] ⠏ | 0 | users Defining Connect with server: https://connect.example Defining Connect with server: https://connect.example ⠹ | 3 | users Defining Connect with server: https://connect.example Defining Connect with server: https://connect.example ⠧ | 8 | users ✔ | 8 | users ⠏ | 0 | utils ✔ | 1 10 | utils ⠏ | 0 | variant Defining Connect with server: https://connect.example ⠼ | 5 | variant ⠏ | 10 | variant ✔ | 10 | variant ══ Results ═════════════════════════════════════════════════════════════════════ Duration: 7.3 s ── Skipped tests (8) ─────────────────────────────────────────────────────────── • Ahh! this fails presently. Are double -> POSIXct conversions allowed? (1): 'test-parse.R:178: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:34:3' • not implemented yet (1): 'test-connect.R:33:3' • not tested yet (1): 'test-tags.R:39:3' [ FAIL 0 | WARN 3 | SKIP 8 | PASS 340 ] > > proc.time() user system elapsed 7.42 0.89 8.31