From 4b9b1d41473a72afbc9df24cb2215c01e93a966c Mon Sep 17 00:00:00 2001 From: Xavi Aracil Date: Thu, 21 Mar 2024 18:00:16 +0100 Subject: [PATCH] Fixed tests --- .../resources/ob30/simple-err-expired.json | 4 +- .../src/test/resources/ob30/simple.json | 37 +++++++++++-------- 2 files changed, 24 insertions(+), 17 deletions(-) diff --git a/inspector-vc/src/test/resources/ob30/simple-err-expired.json b/inspector-vc/src/test/resources/ob30/simple-err-expired.json index 1949ac7..ea9b3a8 100644 --- a/inspector-vc/src/test/resources/ob30/simple-err-expired.json +++ b/inspector-vc/src/test/resources/ob30/simple-err-expired.json @@ -35,12 +35,12 @@ "name": "Teamwork" } }, - "proof": { + "proof": [{ "type": "DataIntegrityProof", "created": "2010-01-01T19:23:24Z", "verificationMethod": "https://example.com/issuers/876543#z6MkjZRZv3aez3r18pB1RBFJR1kwUVJ5jHt92JmQwXbd5hwi", "cryptosuite": "eddsa-rdfc-2022", "proofPurpose": "assertionMethod", "proofValue": "z2mAP6ezimojRWSHDhS1VfJgDdMCqa4oPbmJT1tCs43t5bRiwsrrhHxrmTEeAF2EBjErrzxoJj3HCKsdkyVkno11f" - } + }] } \ No newline at end of file diff --git a/inspector-vc/src/test/resources/ob30/simple.json b/inspector-vc/src/test/resources/ob30/simple.json index 0543c90..c0776c4 100644 --- a/inspector-vc/src/test/resources/ob30/simple.json +++ b/inspector-vc/src/test/resources/ob30/simple.json @@ -4,20 +4,29 @@ "https://purl.imsglobal.org/spec/ob/v3p0/context-3.0.3.json" ], "id": "http://example.com/credentials/3527", - "type": ["VerifiableCredential", "OpenBadgeCredential"], + "type": [ + "VerifiableCredential", + "OpenBadgeCredential" + ], "issuer": { "id": "https://example.com/issuers/876543", - "type": ["Profile"], + "type": [ + "Profile" + ], "name": "Example Corp" }, "validFrom": "2010-01-01T00:00:00Z", "name": "Teamwork Badge", "credentialSubject": { "id": "did:example:ebfeb1f712ebc6f1c276e12ec21", - "type": ["AchievementSubject"], + "type": [ + "AchievementSubject" + ], "achievement": { "id": "https://example.com/achievements/21st-century-skills/teamwork", - "type": ["Achievement"], + "type": [ + "Achievement" + ], "criteria": { "narrative": "Team members are nominated for this badge by their peers and recognized upon review by Example Corp management." }, @@ -25,14 +34,12 @@ "name": "Teamwork" } }, - "proof": [ - { - "type": "DataIntegrityProof", - "created": "2024-03-20T14:53:19Z", - "verificationMethod": "https://example.com/issuers/876543#z6MkrvfzkMnvCroEUP2DVc9SHPE48CRsvHiVSusHioxTYu1x", - "cryptosuite": "eddsa-rdfc-2022", - "proofPurpose": "assertionMethod", - "proofValue": "z76jrNcyxHg5fV17h96yCRwqUaTQZD2QQivyNqHyLSvqu3aWGC3nLShzZEGbH3LnVFodwov9rPQxi3QRP7adCrzV" - } - ] -} + "proof": [{ + "type": "DataIntegrityProof", + "created": "2010-01-01T19:23:24Z", + "verificationMethod": "https://example.com/issuers/876543#z6MkjZRZv3aez3r18pB1RBFJR1kwUVJ5jHt92JmQwXbd5hwi", + "cryptosuite": "eddsa-rdfc-2022", + "proofPurpose": "assertionMethod", + "proofValue": "z41ZsNkz78FHSGkAD5J4b8EN49DkywMMJSL3UdUNffbsCAWmTLPvtnJpd3JGGooYX7TNrzgsTLkXUWiGsRRZ788ML" + }] +} \ No newline at end of file