Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CRAN: address test failures #1130

Closed
aronatkins opened this issue Jan 21, 2025 · 3 comments · Fixed by #1131
Closed

CRAN: address test failures #1130

aronatkins opened this issue Jan 21, 2025 · 3 comments · Fixed by #1131
Assignees

Comments

@aronatkins
Copy link
Contributor

    ══ Failed tests ════════════════════════════════════════════════════════════════
    ── Error ('test-client-cloud.R:623:3'): findDeploymentTarget() results in correct Cloud API calls when given appId ──
    Error in `openssl::base64_decode(authInfo$secret)`: Failed to decode base64 string
    Backtrace:
        ▆
     1. └─rsconnect (local) configureTestAccount() at test-client-cloud.R:623:3
     2.   └─rsconnect::setAccountInfo(...) at test-client-cloud.R:120:5
     3.     └─rsconnect:::findShinyAppsAccountId(name, token, secret, server)
     4.       └─client$currentUser()
     5.         └─rsconnect:::GET(service, authInfo, "/users/current/")
     6.           └─rsconnect:::httpRequest(...)
     7.             └─rsconnect:::authHeaders(authInfo, method, path)
     8.               └─rsconnect:::signatureHeaders(authInfo, method, path, file)
     9.                 └─openssl::base64_decode(authInfo$secret)
    ── Error ('test-http.R:56:3'): authHeaders() picks correct method based on supplied fields ──
    Error in `openssl::base64_decode(authInfo$secret)`: Failed to decode base64 string
    Backtrace:
        ▆
     1. └─testthat::expect_snapshot(...) at test-http.R:56:3
     2.   └─rlang::cnd_signal(state$error)
    
    [ FAIL 2 | WARN 0 | SKIP 155 | PASS 616 ]
    Error: Test failures
    Execution halted

https://cran.r-project.org/web/checks/check_results_rsconnect.html
https://www.r-project.org/nosvn/R.check/r-devel-linux-x86_64-debian-clang/rsconnect-00check.html
https://www.r-project.org/nosvn/R.check/r-devel-linux-x86_64-debian-gcc/rsconnect-00check.html

@aronatkins aronatkins self-assigned this Jan 21, 2025
@aronatkins
Copy link
Contributor Author

Likely related: jeroen/openssl#131

@aronatkins
Copy link
Contributor Author

@aronatkins
Copy link
Contributor Author

The underlying cause was the use of simple strings as test data that needed to be Base64 encoded.

@aronatkins aronatkins mentioned this issue Jan 22, 2025
16 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant