diff --git a/inspector-vc/src/test/java/org/oneedtech/inspect/vc/Endorsement30Tests.java b/inspector-vc/src/test/java/org/oneedtech/inspect/vc/Endorsement30Tests.java index b9217f6..2759a1c 100644 --- a/inspector-vc/src/test/java/org/oneedtech/inspect/vc/Endorsement30Tests.java +++ b/inspector-vc/src/test/java/org/oneedtech/inspect/vc/Endorsement30Tests.java @@ -16,7 +16,7 @@ import org.oneedtech.inspect.vc.probe.CredentialParseProbe; public class Endorsement30Tests { private static EndorsementInspector validator; - private static boolean verbose = false; + private static boolean verbose = true; @BeforeAll static void setup() { @@ -26,7 +26,7 @@ public class Endorsement30Tests { .build(); } - @Disabled @Test + @Test void testEndorsementWithoutErrors() { assertDoesNotThrow(()->{ Report report = validator.run(Samples.OB30.JSON.ENDORSEMENT_VALID.asFileResource()); diff --git a/inspector-vc/src/test/resources/ob30/endorsement-valid.json b/inspector-vc/src/test/resources/ob30/endorsement-valid.json index 99d5efa..c0eaabf 100644 --- a/inspector-vc/src/test/resources/ob30/endorsement-valid.json +++ b/inspector-vc/src/test/resources/ob30/endorsement-valid.json @@ -1,39 +1,39 @@ { "@context": [ - "https://www.w3.org/2018/credentials/v1", - "https://purl.imsglobal.org/spec/ob/v3p0/context.json", - "https://purl.imsglobal.org/spec/ob/v3p0/extensions.json", - "https://w3id.org/security/suites/ed25519-2020/v1" + "https://www.w3.org/2018/credentials/v1", + "https://purl.imsglobal.org/spec/ob/v3p0/context.json", + "https://purl.imsglobal.org/spec/ob/v3p0/extensions.json", + "https://w3id.org/security/suites/ed25519-2020/v1" ], "id": "http://1edtech.edu/endorsementcredential/3732", "type": [ - "VerifiableCredential", - "EndorsementCredential" + "VerifiableCredential", + "EndorsementCredential" ], "issuer": { - "id": "https://state.gov/issuers/565049", - "type": "Profile", - "name": "State Department of Education" + "id": "https://state.gov/issuers/565049", + "type": "Profile", + "name": "State Department of Education" }, "issuanceDate": "2010-01-01T00:00:00Z", "expirationDate": "2030-01-01T00:00:00Z", "name": "Example endorsement", "credentialSubject": { - "id": "https://1edtech.edu/issuers/565049", - "type": "EndorsementSubject", - "endorsementComment": "1EdTech University is in good standing" + "id": "https://1edtech.edu/issuers/565049", + "type": "EndorsementSubject", + "endorsementComment": "1EdTech University is in good standing" }, "credentialSchema": [ - { - "id": "https://purl.imsglobal.org/spec/ob/v3p0/schema/json/ob_v3p0_endorsementcredential_schema.json", - "type": "1EdTechJsonSchemaValidator2019" - } + { + "id": "https://purl.imsglobal.org/spec/ob/v3p0/schema/json/ob_v3p0_endorsementcredential_schema.json", + "type": "1EdTechJsonSchemaValidator2019" + } ], "proof": { - "type": "Ed25519Signature2020", - "created": "2022-12-20T20:56:10Z", - "proofPurpose": "assertionMethod", - "verificationMethod": "did:key:z6MkgG59UvkBM1Lfv2D9JBu6yHn7aKurbwQgs1h5NCYJEk35", - "proofValue": "zLJF9oRBcpVQ9HUt8BRfPevvEGwL74bSyBKDpGzjNpb3KtMQ8JhQDPq3C4sqojneNz74YFWkjLSntC93iZGVscta" + "type": "Ed25519Signature2020", + "created": "2010-01-01T19:23:24Z", + "verificationMethod": "https://state.gov/issuers/565049#z6MkjZRZv3aez3r18pB1RBFJR1kwUVJ5jHt92JmQwXbd5hwi", + "proofPurpose": "assertionMethod", + "proofValue": "z347N8ntbL3usCGshtUZiyrBeGBhYVAqyi4HUhz4fBmU1zVwk5eRfPZJvKoendfyGaeSbJcAfQEVNpvcHLzVhDtQC" } -} \ No newline at end of file + } \ No newline at end of file