File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
main/java/com/inrupt/client/accessgrant
test/java/com/inrupt/client/accessgrant Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -490,7 +490,7 @@ public CompletionStage<Void> revoke(final AccessCredential credential) {
490490
491491 final Map <String , Object > credentialStatus = new HashMap <>();
492492 credentialStatus .put (TYPE , status .getType ());
493- credentialStatus .put ("status" , Integer . toString ( status . getIndex ()) );
493+ credentialStatus .put ("status" , "1" );
494494
495495 final Map <String , Object > data = new HashMap <>();
496496 data .put ("credentialId" , credential .getIdentifier ());
Original file line number Diff line number Diff line change @@ -256,6 +256,7 @@ private void setupMocks() {
256256 wireMockServer .stubFor (post (urlEqualTo ("/status" ))
257257 .atPriority (1 )
258258 .withHeader ("Authorization" , containing ("Bearer eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9." ))
259+ .withRequestBody (containing ("\" status\" :\" 1\" " ))
259260 .withRequestBody (containing ("\" " + wireMockServer .baseUrl () + "/access-grant-1\" " ))
260261 .willReturn (aResponse ()
261262 .withStatus (204 )));
You can’t perform that action at this time.
0 commit comments