Skip to content

Commit

Permalink
test: update tests
Browse files Browse the repository at this point in the history
Signed-off-by: Pat Losoponkul <[email protected]>
  • Loading branch information
Pat Losoponkul committed Jun 6, 2024
1 parent ddc08b9 commit 9b41281
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,17 @@ object OID4VCIIssuerMetadataRepositorySpecSuite {
authServer2 = URI.create("http://example-2.com").toURL()
issuer = makeCredentialIssuer(authorizationServer = authServer1)
_ <- repo.createIssuer(issuer)
_ <- repo.updateIssuer(issuer.id, authorizationServer = Some(authServer2))
_ <- repo.updateIssuer(
issuerId = issuer.id,
authorizationServer = Some(authServer2),
authorizationServerClientId = Some("client-2"),
authorizationServerClientSecret = Some("secret-2")
)
updatedIssuer <- repo.findIssuerById(issuer.id).some
} yield assert(updatedIssuer.id)(equalTo(issuer.id)) &&
assert(updatedIssuer.authorizationServer)(equalTo(authServer2)) &&
assert(updatedIssuer.authorizationServerClientId)(equalTo("client-2")) &&
assert(updatedIssuer.authorizationServerClientSecret)(equalTo("secret-2")) &&
assert(updatedIssuer.updatedAt)(not(equalTo(issuer.createdAt)))
},
test("update credential issuer with empty patch successfully") {
Expand Down

0 comments on commit 9b41281

Please sign in to comment.