Skip to content

Commit

Permalink
colorado: so long, farewell
Browse files Browse the repository at this point in the history
  • Loading branch information
aronatkins committed Jan 21, 2025
1 parent a7c93ba commit 508a1cc
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tests/testthat/_snaps/servers-deprec.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# addConnectServer is deprecated

Code
addConnectServer("https://colorado.posit.co/rsc", quiet = TRUE)
addConnectServer("https://connect.posit.it/", quiet = TRUE)
Condition
Warning:
`addConnectServer()` was deprecated in rsconnect 1.0.0.
Expand Down
3 changes: 0 additions & 3 deletions tests/testthat/test-ide.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,12 @@ test_that("validateServerUrl() returns expected", {
expect_false(validateServerUrl("https://posit.cloud")$valid)
expect_false(validateServerUrl("https://shinyapps.io")$valid)
expect_true(validateServerUrl("https://connect.posit.it/")$valid)
expect_true(validateServerUrl("https://colorado.posit.co/rsc")$valid)
})

test_that("validateServerUrl() normalises urls", {
skip_on_cran()

expect_true(validateServerUrl("connect.posit.it/")$valid)
expect_true(validateServerUrl("colorado.posit.co/rsc")$valid)
})

test_that("validateConnectUrl() returns expected return for some known endpoints", {
Expand All @@ -20,7 +18,6 @@ test_that("validateConnectUrl() returns expected return for some known endpoints
expect_false(validateConnectUrl("https://posit.cloud")$valid)
expect_false(validateConnectUrl("https://shinyapps.io")$valid)
expect_true(validateConnectUrl("https://connect.posit.it/")$valid)
expect_true(validateConnectUrl("https://colorado.posit.co/rsc")$valid)
})

test_that("validateConnectUrl() normalises urls", {
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-servers-deprec.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ test_that("addConnectServer is deprecated", {
local_temp_config()

expect_snapshot(
addConnectServer("https://colorado.posit.co/rsc", quiet = TRUE)
addConnectServer("https://connect.posit.it/", quiet = TRUE)
)
})

0 comments on commit 508a1cc

Please sign in to comment.