File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
main/java/com/inrupt/client/accessgrant
test/java/com/inrupt/client/accessgrant Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -298,7 +298,7 @@ public CompletionStage<Void> revoke(final AccessGrant accessGrant) {
298298 credentialStatus .put ("status" , Integer .toString (status .getIndex ()));
299299
300300 final Map <String , Object > data = new HashMap <>();
301- data .put ("credentialId" , status .getIdentifier ());
301+ data .put ("credentialId" , accessGrant .getIdentifier ());
302302 data .put ("credentialStatus" , Arrays .asList (credentialStatus ));
303303
304304 final Request req = Request .newBuilder (metadata .statusEndpoint )
Original file line number Diff line number Diff line change @@ -180,14 +180,14 @@ private void setupMocks() {
180180 wireMockServer .stubFor (post (urlEqualTo ("/status" ))
181181 .atPriority (1 )
182182 .withHeader ("Authorization" , containing ("Bearer eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9." ))
183- .withRequestBody (containing ("\" https://accessgrant.example/status/CVAM#2832 \" " ))
183+ .withRequestBody (containing ("\" " + wireMockServer . baseUrl () + "/access-grant-1 \" " ))
184184 .willReturn (aResponse ()
185185 .withStatus (204 )));
186186
187187 wireMockServer .stubFor (post (urlEqualTo ("/status" ))
188188 .atPriority (1 )
189189 .withHeader ("Authorization" , containing ("Bearer eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9." ))
190- .withRequestBody (containing ("\" https://accessgrant.example/status/CVAM#2833 \" " ))
190+ .withRequestBody (containing ("\" " + wireMockServer . baseUrl () + "/access-grant-2 \" " ))
191191 .willReturn (aResponse ()
192192 .withStatus (403 )));
193193
You can’t perform that action at this time.
0 commit comments