Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ void testOfStringPublisherUmaSession() throws IOException, InterruptedException
final String token = generateIdToken(claims);

final Request request = Request.newBuilder()
.uri(URI.create(baseUri.get() + "/postString"))
.uri(URI.create(baseUri.get() + "/postStringContainer/"))
.header("Content-Type", "text/plain")
.POST(Request.BodyPublishers.ofString("Test String 1"))
.build();
Expand All @@ -356,7 +356,7 @@ void testOfStringPublisherUmaSession() throws IOException, InterruptedException
@Test
void testOfStringPublisherUmaAnonSession() throws IOException, InterruptedException {
final Request request = Request.newBuilder()
.uri(URI.create(baseUri.get() + "/postString"))
.uri(URI.create(baseUri.get() + "/postStringContainer/"))
.header("Content-Type", "text/plain")
.POST(Request.BodyPublishers.ofString("Test String 1"))
.build();
Expand Down Expand Up @@ -387,7 +387,7 @@ void testUmaSessionExpiredIdToken() throws Exception {
await().atMost(5, SECONDS).until(() -> !s.getCredential(OpenIdSession.ID_TOKEN, null).isPresent());

final Request request = Request.newBuilder()
.uri(URI.create(baseUri.get() + "/postString"))
.uri(URI.create(baseUri.get() + "/postStringContainer/"))
.header("Content-Type", "text/plain")
.POST(Request.BodyPublishers.ofString("Test String 1"))
.build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ private void setupMocks() {
.withStatus(401)
.withHeader("WWW-Authenticate", "Bearer,DPoP algs=\"ES256\"")));

wireMockServer.stubFor(post(urlEqualTo("/postString"))
wireMockServer.stubFor(post(urlEqualTo("/postStringContainer/"))
.atPriority(1)
.withHeader("User-Agent", equalTo(USER_AGENT))
.withRequestBody(matching("Test String 1"))
Expand All @@ -138,7 +138,7 @@ private void setupMocks() {
.willReturn(aResponse()
.withStatus(201)));

wireMockServer.stubFor(post(urlEqualTo("/postString"))
wireMockServer.stubFor(post(urlEqualTo("/postStringContainer/"))
.atPriority(2)
.withHeader("User-Agent", equalTo(USER_AGENT))
.willReturn(aResponse()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ private void setupMocks() {
.withHeader(CONTENT_TYPE, TEXT_TURTLE)
.withBodyFile("profileExample.ttl")));

wireMockServer.stubFor(post(urlEqualTo("/rdf"))
wireMockServer.stubFor(post(urlEqualTo("/rdf/"))
.withRequestBody(equalTo(
"<http://example.test/s> " +
"<http://example.test/p> \"object\" ."))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ void testSendRequestImage() throws IOException {

@Test
void testPostTriple() throws IOException {
final URI uri = URI.create(config.get(HTTP_URI) + "/rdf");
final URI uri = URI.create(config.get(HTTP_URI) + "/rdf/");
final String triple = "<http://example.test/s> <http://example.test/p> \"object\" .";
final Request request = Request.newBuilder()
.uri(uri)
Expand Down