From 397920266bc845cdf8625e996b10d5d4a0034b0b Mon Sep 17 00:00:00 2001 From: Matthew Lynch Date: Tue, 1 Aug 2023 13:48:43 -0500 Subject: [PATCH] switch from rstudioservices.com to posit.it --- tests/testthat/test-ide.R | 18 +++++++++--------- tests/testthat/test-servers.R | 4 ++-- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/tests/testthat/test-ide.R b/tests/testthat/test-ide.R index a0d55a7d..72781cd7 100644 --- a/tests/testthat/test-ide.R +++ b/tests/testthat/test-ide.R @@ -3,14 +3,14 @@ test_that("validateServerUrl() returns expected", { expect_false(validateServerUrl("https://posit.cloud")$valid) expect_false(validateServerUrl("https://shinyapps.io")$valid) - expect_true(validateServerUrl("https://connect.rstudioservices.com/")$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.rstudioservices.com/")$valid) + expect_true(validateServerUrl("connect.posit.it/")$valid) expect_true(validateServerUrl("colorado.posit.co/rsc")$valid) }) @@ -19,24 +19,24 @@ 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.rstudioservices.com/")$valid) + expect_true(validateConnectUrl("https://connect.posit.it/")$valid) expect_true(validateConnectUrl("https://colorado.posit.co/rsc")$valid) }) test_that("validateConnectUrl() normalises urls", { skip_on_cran() - api_url <- "https://connect.rstudioservices.com/__api__" - expect_equal(validateConnectUrl("connect.rstudioservices.com")$url, api_url) - expect_equal(validateConnectUrl("connect.rstudioservices.com")$url, api_url) - expect_equal(validateConnectUrl("https://connect.rstudioservices.com/")$url, api_url) + api_url <- "https://connect.posit.it/__api__" + expect_equal(validateConnectUrl("connect.posit.it")$url, api_url) + expect_equal(validateConnectUrl("connect.posit.it")$url, api_url) + expect_equal(validateConnectUrl("https://connect.posit.it/")$url, api_url) }) test_that("validateConnectUrl() follows redirects", { skip_on_cran() - api_url <- "https://connect.rstudioservices.com:443/__api__" - expect_equal(validateConnectUrl("http://connect.rstudioservices.com")$url, api_url) + api_url <- "https://connect.posit.it:443/__api__" + expect_equal(validateConnectUrl("http://connect.posit.it")$url, api_url) }) test_that("getAppById() fails where expected", { diff --git a/tests/testthat/test-servers.R b/tests/testthat/test-servers.R index b4ad7fe0..44cdd8cc 100644 --- a/tests/testthat/test-servers.R +++ b/tests/testthat/test-servers.R @@ -53,9 +53,9 @@ test_that("addServer() normalises url", { skip_on_cran() local_temp_config() - addServer("connect.rstudioservices.com", name = "connect", quiet = TRUE) + addServer("connect.posit.it", name = "connect", quiet = TRUE) info <- serverInfo("connect") - expect_equal(info$url, "https://connect.rstudioservices.com/__api__") + expect_equal(info$url, "https://connect.posit.it/__api__") }) test_that("addServer() errors if url not a connect server", {