Skip to content

Commit

Permalink
remove baseurl to get test to pass on Jenkins #10542
Browse files Browse the repository at this point in the history
Before this PR...

In development:

Expected: is "http://localhost:8080/dataset.xhtml?persistentId=doi:10.5072/FK2/6A3292"
  Actual: is "http://localhost:8080/dataset.xhtml?persistentId=doi:10.5072/FK2/6A3292"

On Jenkins

Expected: is "http://localhost:8080/dataset.xhtml?persistentId=doi:10.5072/FK2/6A3292"
  Actual: http://ec2-3-225-221-142.compute-1.amazonaws.com/dataset.xhtml?persistentId=doi:10.5072/FK2/6A3292

So we'll change to just "endsWith" since we aren't actually testing the baseurl,
just the datasetPid which we fixed up in ca93d60.
  • Loading branch information
pdurbin committed Nov 25, 2024
1 parent 8a0102b commit f704651
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public void testSignposting() {
linksetResponse.prettyPrint();
linksetResponse.then().assertThat()
.statusCode(OK.getStatusCode())
.body("linkset[0].anchor", is(RestAssured.baseURI + "/dataset.xhtml?persistentId=" + datasetPid))
.body("linkset[0].anchor", endsWith("/dataset.xhtml?persistentId=" + datasetPid))
.body("linkset[0].license.href", is("http://creativecommons.org/publicdomain/zero/1.0"))
.body("linkset[0].describedby[1].href", endsWith("persistentId=" + datasetPid));

Expand Down

0 comments on commit f704651

Please sign in to comment.