Skip to content

Commit 462fc3c

Browse files
committed
Reworking of ci setup for 'ping'
1 parent bbb5364 commit 462fc3c

2 files changed

Lines changed: 15 additions & 9 deletions

File tree

tests/testthat/connection_to_datasets/init_local_settings.R

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,14 @@ init.server.url <- function()
1010
file.name <- init.local.settings()
1111
if (file.exists(file.name))
1212
{
13-
content <- read.csv(file.name, header = FALSE)
14-
server.url <- as.character(content[[1]][1])
13+
content <- read.csv(file.name, header = FALSE)
14+
server_ping.url <- as.character(content[[1]][1])
15+
server_ping.url <- as.character(content[[1]][2])
1516
}
1617
else
1718
{
18-
server.url <- NULL
19+
server.url <- NULL
20+
server_ping.url <- NULL
1921
}
2022
return (server.url)
2123
}

tests/testthat/connection_to_datasets/login_details.R

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,14 @@ if (! is.null(getOption("default_driver"))) {
2323

2424
if ((ds.test_env$driver == "DSLiteDriver") || (ds.test_env$driver == "OpalDriver")) {
2525
if (! is.null(ds.test_env$server_url)) {
26-
opal.url <- ds.test_env$server_url
26+
opal.url <- ds.test_env$server_url
27+
opal_ping.url <- ds.test_env$server_ping_url
2728
} else {
28-
opal.url <- "https://localhost:8443/"
29+
opal.url <- "https://localhost:8443/"
30+
opal_ping.url <- "http://localhost:8080/"
2931
}
3032

31-
ds.test_env$ping_url <- opal.url
33+
ds.test_env$ping_url <- opal_ping.url
3234
ds.test_env$ping_config <- config(timeout=5)
3335

3436
ds.test_env$server_url_1 <- opal.url
@@ -50,12 +52,14 @@ if ((ds.test_env$driver == "DSLiteDriver") || (ds.test_env$driver == "OpalDriver
5052
ds.test_env$secure_login_details <- TRUE
5153
} else if (ds.test_env$driver == "ArmadilloDriver") {
5254
if (! is.null(ds.test_env$server_url)) {
53-
armadillo.url <- ds.test_env$server_url
55+
armadillo.url <- ds.test_env$server_url
56+
armadillo_ping.url <- ds.test_env$server_ping_url
5457
} else {
55-
armadillo.url <- "http://localhost:8080/"
58+
armadillo.url <- "http://localhost:8080/"
59+
armadillo_ping.url <- "http://localhost:8080/"
5660
}
5761

58-
ds.test_env$ping_url <- armadillo.url
62+
ds.test_env$ping_url <- armadillo_ping.url
5963
ds.test_env$ping_config <- config(timeout=5)
6064

6165
ds.test_env$server_url_1 <- armadillo.url

0 commit comments

Comments
 (0)