Skip to content

Commit

Permalink
[INJICERT] rename credential.type to MockVerifiableCredential
Browse files Browse the repository at this point in the history
Signed-off-by: Harsh Vardhan <harsh59v@gmail.com>
  • Loading branch information
vharsh committed Aug 1, 2024
1 parent a96fada commit e58b860
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ private JsonLDObject buildJsonLDWithLDProof(String accessTokenHash)

Map<String, Object> verCredJsonObject = new HashMap<>();
verCredJsonObject.put("@context", vcCredentialContexts);
verCredJsonObject.put("type", Arrays.asList("VerifiableCredential", "MOSIPVerifiableCredential"));
verCredJsonObject.put("type", Arrays.asList("VerifiableCredential", "MockVerifiableCredential"));
verCredJsonObject.put("id", "urn:uuid:3978344f-8596-4c3a-a978-8fcaba3903c5");
verCredJsonObject.put("issuer", "did:example:123456789");
verCredJsonObject.put("issuanceDate", getUTCDateTime());
Expand Down Expand Up @@ -241,4 +241,4 @@ public VCResult<String> getVerifiableCredential(VCRequestDto vcRequestDto, Strin
public OIDCTransaction getUserInfoTransaction(String accessTokenHash) {
return cacheManager.getCache(USERINFO_CACHE).get(accessTokenHash, OIDCTransaction.class);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public void setUp() {

vcRequestDto.setFormat("ldp_vc");
vcRequestDto.setContext(Arrays.asList("context1","context2"));
vcRequestDto.setType(Arrays.asList("VerifiableCredential"));
vcRequestDto.setType(Arrays.asList("VerifiableCredential", "MockVerifiableCredential"));
vcRequestDto.setCredentialSubject(Map.of("subject1","subject1","subject2","subject2"));

Mockito.when(cacheManager.getCache(Mockito.anyString())).thenReturn(cache);
Expand Down

0 comments on commit e58b860

Please sign in to comment.