Skip to content

Commit 5b13e34

Browse files
committed
try: specify full url in local settings
1 parent 2afaa7a commit 5b13e34

1 file changed

Lines changed: 10 additions & 4 deletions

File tree

tests/testthat/connection_to_datasets/login_details.R

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,18 @@ if (! is.null(getOption("default_driver"))) {
2222
}
2323

2424
if ((ds.test_env$driver == "DSLiteDriver") || (ds.test_env$driver == "OpalDriver")) {
25-
ds.test_env$ping_address <- paste("https://", ds.test_env$server_ip_address, ":8443", sep="")
25+
if (ds.test_env$server_ip_address == "localhost") {
26+
opal.url <- "https://localhost:8443"
27+
} else {
28+
opal.url <- ds.test_env$server_ip_address
29+
}
30+
31+
ds.test_env$ping_address <- opal.url
2632
ds.test_env$ping_config <- config(timeout=5, ssl_verifyhost=0, ssl_verifypeer=0)
2733

28-
ds.test_env$ip_address_1 <- paste("https://", ds.test_env$server_ip_address, ":8443", sep="")
29-
ds.test_env$ip_address_2 <- paste("https://", ds.test_env$server_ip_address, ":8443", sep="")
30-
ds.test_env$ip_address_3 <- paste("https://", ds.test_env$server_ip_address, ":8443", sep="")
34+
ds.test_env$ip_address_1 <- opal.url
35+
ds.test_env$ip_address_2 <- opal.url
36+
ds.test_env$ip_address_3 <- opal.url
3137

3238
ds.test_env$user_1 <- getOption("opal.user", "administrator")
3339
ds.test_env$user_2 <- getOption("opal.user", "administrator")

0 commit comments

Comments
 (0)