diff --git a/DESCRIPTION b/DESCRIPTION
index 8b291c3..2db03d1 100644
--- a/DESCRIPTION
+++ b/DESCRIPTION
@@ -1,6 +1,6 @@
Package: enviPathR
Title: Client for the 'enviPath' 'RESTful' API
-Version: 1.0.0
+Version: 1.0.1
Authors@R:
c(person(given = "Giulio", family = "Benedetti",
role = c("aut", "cre", "cph"),
diff --git a/tests/httptest/get/package_reaction/wrong.R b/tests/httptest/get/package_reaction/wrong.R
index 8b7b7ce..9250547 100644
--- a/tests/httptest/get/package_reaction/wrong.R
+++ b/tests/httptest/get/package_reaction/wrong.R
@@ -1,12 +1,12 @@
structure(list(method = "GET", url = "https://package_reaction/wrong",
status_code = 404L, headers = structure(list(Server = "nginx/1.24.0 (Ubuntu)",
- Date = "Thu, 01 Oct 2026 02:05:28 GMT", `Content-Type` = "text/html; charset=utf-8",
+ Date = "Fri, 16 Oct 2026 03:48:05 GMT", `Content-Type` = "text/html; charset=utf-8",
`Transfer-Encoding` = "chunked", Connection = "keep-alive",
Vary = "Authorization, Cookie", `X-Frame-Options` = "DENY",
`X-Content-Type-Options` = "nosniff", `Referrer-Policy` = "same-origin",
- `Cross-Origin-Opener-Policy` = "same-origin", `Set-Cookie` = "csrftoken=jbKz8jrQ5jD9akE1MIVnlSQL3pyhdL4S; expires=Thu, 30 Sep 2027 02:05:28 GMT; Max-Age=31449600; Path=/; SameSite=Lax",
+ `Cross-Origin-Opener-Policy` = "same-origin", `Set-Cookie` = "csrftoken=e36jYcr3Z69ZFISouZkrX2zsF8Hu0aQN; expires=Fri, 15 Oct 2027 03:48:05 GMT; Max-Age=31449600; Path=/; SameSite=Lax",
`Content-Encoding` = "gzip"), class = "httr2_headers"),
- body = charToRaw("\n\n \n
\n enviPath\n \n \n \n\n \n \n\n \n \n\n \n \n \n\n \n \n \n \n \n \n \n \n\n \n \n\n \n \n\n \n\n \n \n\n \n \n \n \n \n \n \n \n\n\n\n\n\n\n \n \n \n \n \n\n \n \n \n \n\n \n \n
\n
\n
\n
\n
\n
Page Not Found
\n
The page you're looking for doesn't exist.
\n
\n
\n\n
\n
\n
404 Error
\n
\n The page or resource you requested could not be found. It may have\n been moved, deleted, or the URL might be incorrect.\n
\n
\n
\n
\n
\n
\n\n\n \n \n
\n \n \n\n \n\n \n \n
\n\n\n \n \n\n \n \n\n \n\n \n \n\n"),
- timing = c(redirect = 0, namelookup = 9.1e-05, connect = 0,
- pretransfer = 0.000481, starttransfer = 0.287334, total = 0.288082
+ body = charToRaw("\n\n \n \n enviPath\n \n \n \n\n \n \n\n \n \n\n \n \n \n\n \n \n \n \n \n \n \n \n\n \n \n\n \n \n\n \n\n \n \n\n \n \n \n \n \n \n \n \n\n\n\n\n\n\n \n \n \n \n \n\n \n \n \n \n\n \n \n
\n
\n
\n
\n
\n
Page Not Found
\n
The page you're looking for doesn't exist.
\n
\n
\n\n
\n
\n
404 Error
\n
\n The page or resource you requested could not be found. It may have\n been moved, deleted, or the URL might be incorrect.\n
\n
\n
\n
\n
\n
\n\n\n \n \n
\n \n \n\n \n\n \n \n
\n\n\n \n \n\n \n \n\n \n\n \n \n\n"),
+ timing = c(redirect = 0, namelookup = 6.2e-05, connect = 0,
+ pretransfer = 0.000239, starttransfer = 0.379562, total = 0.37996
), cache = new.env(parent = emptyenv())), class = "httr2_response")
diff --git a/tests/httptest/link/package_compound/wrong.R b/tests/httptest/link/package_compound/wrong.R
index 2bf0890..c3d71c6 100644
--- a/tests/httptest/link/package_compound/wrong.R
+++ b/tests/httptest/link/package_compound/wrong.R
@@ -1,12 +1,12 @@
structure(list(method = "GET", url = "https://package_compound/wrong",
status_code = 404L, headers = structure(list(Server = "nginx/1.24.0 (Ubuntu)",
- Date = "Thu, 01 Oct 2026 02:05:30 GMT", `Content-Type` = "text/html; charset=utf-8",
+ Date = "Fri, 16 Oct 2026 03:48:06 GMT", `Content-Type` = "text/html; charset=utf-8",
`Transfer-Encoding` = "chunked", Connection = "keep-alive",
Vary = "Authorization, Cookie", `X-Frame-Options` = "DENY",
`X-Content-Type-Options` = "nosniff", `Referrer-Policy` = "same-origin",
- `Cross-Origin-Opener-Policy` = "same-origin", `Set-Cookie` = "csrftoken=jbKz8jrQ5jD9akE1MIVnlSQL3pyhdL4S; expires=Thu, 30 Sep 2027 02:05:30 GMT; Max-Age=31449600; Path=/; SameSite=Lax",
+ `Cross-Origin-Opener-Policy` = "same-origin", `Set-Cookie` = "csrftoken=e36jYcr3Z69ZFISouZkrX2zsF8Hu0aQN; expires=Fri, 15 Oct 2027 03:48:06 GMT; Max-Age=31449600; Path=/; SameSite=Lax",
`Content-Encoding` = "gzip"), class = "httr2_headers"),
- body = charToRaw("\n\n \n \n enviPath\n \n \n \n\n \n \n\n \n \n\n \n \n \n\n \n \n \n \n \n \n \n \n\n \n \n\n \n \n\n \n\n \n \n\n \n \n \n \n \n \n \n \n\n\n\n\n\n\n \n \n \n \n \n\n \n \n \n \n\n \n \n
\n
\n
\n
\n
\n
Page Not Found
\n
The page you're looking for doesn't exist.
\n
\n
\n\n
\n
\n
404 Error
\n
\n The page or resource you requested could not be found. It may have\n been moved, deleted, or the URL might be incorrect.\n
\n
\n
\n
\n
\n
\n\n\n \n \n
\n \n \n\n \n\n \n \n
\n\n\n \n \n\n \n \n\n \n\n \n \n\n"),
- timing = c(redirect = 0, namelookup = 0.020328, connect = 0.232652,
- pretransfer = 0.441409, starttransfer = 0.714779, total = 0.715411
+ body = charToRaw("\n\n \n \n enviPath\n \n \n \n\n \n \n\n \n \n\n \n \n \n\n \n \n \n \n \n \n \n \n\n \n \n\n \n \n\n \n\n \n \n\n \n \n \n \n \n \n \n \n\n\n\n\n\n\n \n \n \n \n \n\n \n \n \n \n\n \n \n
\n
\n
\n
\n
\n
Page Not Found
\n
The page you're looking for doesn't exist.
\n
\n
\n\n
\n
\n
404 Error
\n
\n The page or resource you requested could not be found. It may have\n been moved, deleted, or the URL might be incorrect.\n
\n
\n
\n
\n
\n
\n\n\n \n \n
\n \n \n\n \n\n \n \n
\n\n\n \n \n\n \n \n\n \n\n \n \n\n"),
+ timing = c(redirect = 0, namelookup = 2.4e-05, connect = 0,
+ pretransfer = 0.000146, starttransfer = 0.314834, total = 0.315206
), cache = new.env(parent = emptyenv())), class = "httr2_response")
diff --git a/tests/httptest/list/package.json b/tests/httptest/list/package.json
index 8701ebf..e4422b5 100644
--- a/tests/httptest/list/package.json
+++ b/tests/httptest/list/package.json
@@ -1,5 +1,65 @@
{
"package": [
+ {
+ "description": "Package to make Prediction Models publicly available",
+ "id": "https://envipath.org/package/134886bb-b52e-4ad6-91d3-a02cecde6d95",
+ "links": [
+ {
+ "Pathways": [
+ "https://envipath.org/package_pathway",
+ 0
+ ]
+ },
+ {
+ "Rules": [
+ "https://envipath.org/package_rule",
+ 0
+ ]
+ },
+ {
+ "Compounds": [
+ "https://envipath.org/package_compound",
+ 0
+ ]
+ },
+ {
+ "Reactions": [
+ "https://envipath.org/package_reaction",
+ 0
+ ]
+ },
+ {
+ "Relative Reasoning": [
+ "https://envipath.org/package_relative-reasoning",
+ 5
+ ]
+ },
+ {
+ "Scenarios": [
+ "https://envipath.org/package_scenario",
+ 0
+ ]
+ }
+ ],
+ "name": "Public Prediction Models",
+ "primaryGroup": null,
+ "readers": [
+ {
+ "id": "https://envipath.org/user/fce36893-bdb1-4a6f-87bd-5fd893feca89",
+ "identifier": "user",
+ "name": "admin"
+ }
+ ],
+ "reviewComment": "",
+ "reviewStatus": "reviewed",
+ "writers": [
+ {
+ "id": "https://envipath.org/user/fce36893-bdb1-4a6f-87bd-5fd893feca89",
+ "identifier": "user",
+ "name": "admin"
+ }
+ ]
+ },
{
"description": "This Package was generated automatically for the batch prediction task.",
"id": "https://envipath.org/package/5b594bf6-56a8-4ce5-9a63-5fd4b525756e",
@@ -360,66 +420,6 @@
}
]
},
- {
- "description": "Package to make Prediction Models publicly available",
- "id": "https://envipath.org/package/134886bb-b52e-4ad6-91d3-a02cecde6d95",
- "links": [
- {
- "Pathways": [
- "https://envipath.org/package_pathway",
- 0
- ]
- },
- {
- "Rules": [
- "https://envipath.org/package_rule",
- 0
- ]
- },
- {
- "Compounds": [
- "https://envipath.org/package_compound",
- 0
- ]
- },
- {
- "Reactions": [
- "https://envipath.org/package_reaction",
- 0
- ]
- },
- {
- "Relative Reasoning": [
- "https://envipath.org/package_relative-reasoning",
- 3
- ]
- },
- {
- "Scenarios": [
- "https://envipath.org/package_scenario",
- 0
- ]
- }
- ],
- "name": "Public Prediction Models",
- "primaryGroup": null,
- "readers": [
- {
- "id": "https://envipath.org/user/fce36893-bdb1-4a6f-87bd-5fd893feca89",
- "identifier": "user",
- "name": "admin"
- }
- ],
- "reviewComment": "",
- "reviewStatus": "reviewed",
- "writers": [
- {
- "id": "https://envipath.org/user/fce36893-bdb1-4a6f-87bd-5fd893feca89",
- "identifier": "user",
- "name": "admin"
- }
- ]
- },
{
"description": "string",
"id": "https://envipath.org/package/7245f711-51d0-4b1e-b49d-99a9d9744c96",
diff --git a/tests/httptest/list/package/wrong/reaction.R b/tests/httptest/list/package/wrong/reaction.R
index 3227bfa..6283961 100644
--- a/tests/httptest/list/package/wrong/reaction.R
+++ b/tests/httptest/list/package/wrong/reaction.R
@@ -1,12 +1,12 @@
structure(list(method = "GET", url = "https://package/wrong/reaction",
status_code = 404L, headers = structure(list(Server = "nginx/1.24.0 (Ubuntu)",
- Date = "Thu, 01 Oct 2026 02:05:32 GMT", `Content-Type` = "text/html; charset=utf-8",
+ Date = "Fri, 16 Oct 2026 03:48:07 GMT", `Content-Type` = "text/html; charset=utf-8",
`Transfer-Encoding` = "chunked", Connection = "keep-alive",
Vary = "Authorization, Cookie", `X-Frame-Options` = "DENY",
`X-Content-Type-Options` = "nosniff", `Referrer-Policy` = "same-origin",
- `Cross-Origin-Opener-Policy` = "same-origin", `Set-Cookie` = "csrftoken=jbKz8jrQ5jD9akE1MIVnlSQL3pyhdL4S; expires=Thu, 30 Sep 2027 02:05:32 GMT; Max-Age=31449600; Path=/; SameSite=Lax",
+ `Cross-Origin-Opener-Policy` = "same-origin", `Set-Cookie` = "csrftoken=e36jYcr3Z69ZFISouZkrX2zsF8Hu0aQN; expires=Fri, 15 Oct 2027 03:48:07 GMT; Max-Age=31449600; Path=/; SameSite=Lax",
`Content-Encoding` = "gzip"), class = "httr2_headers"),
- body = charToRaw("\n\n \n \n enviPath\n \n \n \n\n \n \n\n \n \n\n \n \n \n\n \n \n \n \n \n \n \n \n\n \n \n\n \n \n\n \n\n \n \n\n \n \n \n \n \n \n \n \n\n\n\n\n\n\n \n \n \n \n \n\n \n \n \n \n\n \n \n
\n
\n
\n
\n
\n
Page Not Found
\n
The page you're looking for doesn't exist.
\n
\n
\n\n
\n
\n
404 Error
\n
\n The page or resource you requested could not be found. It may have\n been moved, deleted, or the URL might be incorrect.\n
\n
\n
\n
\n
\n
\n\n\n \n \n
\n \n \n\n \n\n \n \n
\n\n\n \n \n\n \n \n\n \n\n \n \n\n"),
- timing = c(redirect = 0, namelookup = 0.014201, connect = 0.215712,
- pretransfer = 0.430346, starttransfer = 0.68023, total = 0.680857
+ body = charToRaw("\n\n \n \n enviPath\n \n \n \n\n \n \n\n \n \n\n \n \n \n\n \n \n \n \n \n \n \n \n\n \n \n\n \n \n\n \n\n \n \n\n \n \n \n \n \n \n \n \n\n\n\n\n\n\n \n \n \n \n \n\n \n \n \n \n\n \n \n
\n
\n
\n
\n
\n
Page Not Found
\n
The page you're looking for doesn't exist.
\n
\n
\n\n
\n
\n
404 Error
\n
\n The page or resource you requested could not be found. It may have\n been moved, deleted, or the URL might be incorrect.\n
\n
\n
\n
\n
\n
\n\n\n \n \n
\n \n \n\n \n\n \n \n
\n\n\n \n \n\n \n \n\n \n\n \n \n\n"),
+ timing = c(redirect = 0, namelookup = 3.1e-05, connect = 0,
+ pretransfer = 0.000168, starttransfer = 0.341902, total = 0.342292
), cache = new.env(parent = emptyenv())), class = "httr2_response")
diff --git a/tests/httptest/login/NA-2f7c1a-POST.R b/tests/httptest/login/NA-2f7c1a-POST.R
index 7394f79..571401c 100644
--- a/tests/httptest/login/NA-2f7c1a-POST.R
+++ b/tests/httptest/login/NA-2f7c1a-POST.R
@@ -1,11 +1,11 @@
structure(list(method = "POST", url = "https://", status_code = 500L,
headers = structure(list(Server = "nginx/1.24.0 (Ubuntu)",
- Date = "Thu, 01 Oct 2026 02:05:33 GMT", `Content-Type` = "text/html; charset=utf-8",
- `Content-Length` = "42985", Connection = "keep-alive",
+ Date = "Fri, 16 Oct 2026 03:48:08 GMT", `Content-Type` = "text/html; charset=utf-8",
+ `Content-Length` = "43025", Connection = "keep-alive",
Vary = "Authorization, Cookie", `X-Frame-Options` = "DENY",
`X-Content-Type-Options` = "nosniff", `Referrer-Policy` = "same-origin",
- `Cross-Origin-Opener-Policy` = "same-origin", `Set-Cookie` = "csrftoken=jbKz8jrQ5jD9akE1MIVnlSQL3pyhdL4S; expires=Thu, 30 Sep 2027 02:05:33 GMT; Max-Age=31449600; Path=/; SameSite=Lax"), class = "httr2_headers"),
- body = charToRaw("\n\n \n \n enviPath\n \n \n \n\n \n \n\n \n \n\n \n \n \n\n \n \n \n \n \n \n \n \n\n \n \n\n \n \n\n \n\n \n \n\n \n \n \n \n \n \n \n \n\n\n\n\n\n\n \n \n \n \n \n\n \n \n \n \n\n \n \n
\n
\n
\n
\n
\n
\n Internal Server Error\n
\n
\n An unexpected error occurred. Please try again later.\n
\n
\n
\n\n
\n
\n
Oops! Something went wrong
\n
\n We encountered an unexpected error while processing your request. Our team has been notified and is working to resolve the issue.\n
\n
\n
\n
\n
\n
\n\n\n \n \n
\n \n \n\n \n\n \n \n
\n\n\n \n \n\n \n \n\n \n\n \n \n\n"),
- timing = c(redirect = 0, namelookup = 3.1e-05, connect = 0,
- pretransfer = 0.000197, starttransfer = 0.27129, total = 0.474832
+ `Cross-Origin-Opener-Policy` = "same-origin", `Set-Cookie` = "csrftoken=e36jYcr3Z69ZFISouZkrX2zsF8Hu0aQN; expires=Fri, 15 Oct 2027 03:48:08 GMT; Max-Age=31449600; Path=/; SameSite=Lax"), class = "httr2_headers"),
+ body = charToRaw("\n\n \n \n enviPath\n \n \n \n\n \n \n\n \n \n\n \n \n \n\n \n \n \n \n \n \n \n \n\n \n \n\n \n \n\n \n\n \n \n\n \n \n \n \n \n \n \n \n\n\n\n\n\n\n \n \n \n \n \n\n \n \n \n \n\n \n \n
\n
\n
\n
\n
\n
\n Internal Server Error\n
\n
\n An unexpected error occurred. Please try again later.\n
\n
\n
\n\n
\n
\n
Oops! Something went wrong
\n
\n We encountered an unexpected error while processing your request. Our team has been notified and is working to resolve the issue.\n
\n
\n
\n
\n
\n
\n\n\n \n \n
\n \n \n\n \n\n \n \n
\n\n\n \n \n\n \n \n\n \n\n \n \n\n"),
+ timing = c(redirect = 0, namelookup = 3.9e-05, connect = 0,
+ pretransfer = 0.000197, starttransfer = 0.341021, total = 0.647505
), cache = new.env(parent = emptyenv())), class = "httr2_response")
diff --git a/tests/httptest/model/util-e1f28b-POST.R b/tests/httptest/model/util-e1f28b-POST.R
index d9c2fb3..d4e696b 100644
--- a/tests/httptest/model/util-e1f28b-POST.R
+++ b/tests/httptest/model/util-e1f28b-POST.R
@@ -1,11 +1,11 @@
structure(list(method = "POST", url = "https://util", status_code = 403L,
headers = structure(list(Server = "nginx/1.24.0 (Ubuntu)",
- Date = "Thu, 01 Oct 2026 02:05:34 GMT", `Content-Type` = "application/json; charset=utf-8",
+ Date = "Fri, 16 Oct 2026 03:48:10 GMT", `Content-Type` = "application/json; charset=utf-8",
`Content-Length` = "139", Connection = "keep-alive",
Vary = "Authorization, Cookie", `X-Frame-Options` = "DENY",
`X-Content-Type-Options` = "nosniff", `Referrer-Policy` = "same-origin",
`Cross-Origin-Opener-Policy` = "same-origin"), class = "httr2_headers"),
body = charToRaw("{\"message\": \"Getting Setting with id https://envipath.org/setting/1d915a48-286a-4394-9693-bfaa187326a5 failed due to insufficient rights!\"}"),
- timing = c(redirect = 0, namelookup = 3.1e-05, connect = 0,
- pretransfer = 0.000165, starttransfer = 0.247818, total = 0.247872
+ timing = c(redirect = 0, namelookup = 3.2e-05, connect = 0,
+ pretransfer = 0.000166, starttransfer = 0.347267, total = 0.347304
), cache = new.env(parent = emptyenv())), class = "httr2_response")
diff --git a/tests/testthat/setup.R b/tests/testthat/setup.R
index 3d32aa6..34b90c1 100644
--- a/tests/testthat/setup.R
+++ b/tests/testthat/setup.R
@@ -1,5 +1,7 @@
library(httptest2)
+# Set serial strategy
+BPPARAM <- BiocParallel::SerialParam()
# Retrieve login credentials
username <- Sys.getenv("EP_USERNAME")
password <- Sys.getenv("EP_PASSWORD")
diff --git a/tests/testthat/test-get.R b/tests/testthat/test-get.R
index 09863b9..df8349e 100644
--- a/tests/testthat/test-get.R
+++ b/tests/testthat/test-get.R
@@ -6,20 +6,20 @@ with_mock_dir("../httptest/get", {
rxn_id <- "2b6bbcc5-77f4-4bed-92a9-731cdc978f6a"
expect_error(
- epGet("wrong"),
+ epGet("wrong", BPPARAM = BPPARAM),
"'type' must be one of the listable elements returned by epTypes.",
fixed = TRUE
)
expect_error(
- epGet("reaction", "wrong"),
+ epGet("reaction", "wrong", BPPARAM = BPPARAM),
"Not found. Please check that 'type' and 'pkg' are correct.",
fixed = TRUE
)
- rxn <- epGet("reaction", rxn_id)
+ rxn <- epGet("reaction", rxn_id, BPPARAM = BPPARAM)
expect_type(rxn, "list")
expect_length(rxn, 15L)
})
-})
\ No newline at end of file
+})
diff --git a/tests/testthat/test-link.R b/tests/testthat/test-link.R
index c7de4b9..3440940 100644
--- a/tests/testthat/test-link.R
+++ b/tests/testthat/test-link.R
@@ -7,18 +7,18 @@ with_mock_dir("../httptest/link", {
cpd_id <- "ec87b463-6a3c-4dfa-8b88-4637fc158896"
expect_error(
- epLink("wrong", types[2], cpd_id),
+ epLink("wrong", types[2], cpd_id, BPPARAM = BPPARAM),
"'from' must be one of the linkable elements returned by epTypes.",
fixed = TRUE
)
expect_error(
- epLink(types[1], types[2], "wrong"),
+ epLink(types[1], types[2], "wrong", BPPARAM = BPPARAM),
"Not found. Please check that 'type' and 'pkg' are correct.",
fixed = TRUE
)
- cpd2inchikey <- epLink(types[1], types[2], cpd_id)
+ cpd2inchikey <- epLink(types[1], types[2], cpd_id, BPPARAM = BPPARAM)
expect_named(cpd2inchikey, types)
})