Skip to content

Commit ef0b0f5

Browse files
committed
Adjust mock test server
1 parent 9732deb commit ef0b0f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

access-grant/src/test/java/com/inrupt/client/accessgrant/MockAccessGrantServer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,14 +178,14 @@ private void setupMocks() {
178178
wireMockServer.stubFor(post(urlEqualTo("/status"))
179179
.atPriority(1)
180180
.withHeader("Authorization", containing("Bearer eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9."))
181-
.withRequestBody(containing("\"https://accessgrant.example/status/CVAM#2832\""))
181+
.withRequestBody(containing("\"" + wireMockServer.baseUrl() + "/access-grant-1\""))
182182
.willReturn(aResponse()
183183
.withStatus(204)));
184184

185185
wireMockServer.stubFor(post(urlEqualTo("/status"))
186186
.atPriority(1)
187187
.withHeader("Authorization", containing("Bearer eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9."))
188-
.withRequestBody(containing("\"https://accessgrant.example/status/CVAM#2833\""))
188+
.withRequestBody(containing("\"" + wireMockServer.baseUrl() + "/access-grant-2\""))
189189
.willReturn(aResponse()
190190
.withStatus(403)));
191191

0 commit comments

Comments
 (0)