Skip to content

Commit a51cbec

Browse files
committed
Fixed network config for Opal
1 parent 429183f commit a51cbec

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

tests/testthat/connection_to_datasets/login_details.R

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ 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("http://", ds.test_env$server_ip_address, ":8080", sep="")
26-
ds.test_env$ping_config <- config(timeout=5)
25+
ds.test_env$ping_address <- paste("https://", ds.test_env$server_ip_address, ":8443", sep="")
26+
ds.test_env$ping_config <- config(timeout=5, ssl_verifyhost=0, ssl_verifypeer=0)
2727

28-
ds.test_env$ip_address_1 <- paste("http://", ds.test_env$server_ip_address, ":8080", sep="")
29-
ds.test_env$ip_address_2 <- paste("http://", ds.test_env$server_ip_address, ":8080", sep="")
30-
ds.test_env$ip_address_3 <- paste("http://", ds.test_env$server_ip_address, ":8080", sep="")
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="")
3131

3232
ds.test_env$user_1 <- getOption("opal.user", "administrator")
3333
ds.test_env$user_2 <- getOption("opal.user", "administrator")
@@ -37,9 +37,9 @@ if ((ds.test_env$driver == "DSLiteDriver") || (ds.test_env$driver == "OpalDriver
3737
ds.test_env$password_2 <- getOption("opal.password", "datashield_test&")
3838
ds.test_env$password_3 <- getOption("opal.password", "datashield_test&")
3939

40-
ds.test_env$options_1 <- "list()"
41-
ds.test_env$options_2 <- "list()"
42-
ds.test_env$options_3 <- "list()"
40+
ds.test_env$options_1 <- "list(ssl_verifyhost=0, ssl_verifypeer=0)"
41+
ds.test_env$options_2 <- "list(ssl_verifyhost=0, ssl_verifypeer=0)"
42+
ds.test_env$options_3 <- "list(ssl_verifyhost=0, ssl_verifypeer=0)"
4343

4444
ds.test_env$secure_login_details <- TRUE
4545
} else if (ds.test_env$driver == "ArmadilloDriver") {

0 commit comments

Comments
 (0)