diff --git a/inspector-vc/src/test/java/org/oneedtech/inspect/vc/OB30Tests.java b/inspector-vc/src/test/java/org/oneedtech/inspect/vc/OB30Tests.java index e213038..046c876 100644 --- a/inspector-vc/src/test/java/org/oneedtech/inspect/vc/OB30Tests.java +++ b/inspector-vc/src/test/java/org/oneedtech/inspect/vc/OB30Tests.java @@ -44,6 +44,15 @@ public class OB30Tests { }); } + @Test + void testSimpleV1JsonValid() { + assertDoesNotThrow(()->{ + Report report = validator.run(Samples.OB30.JSON.SIMPLE_V1_JSON.asFileResource()); + if(verbose) PrintHelper.print(report, true); + assertWarning(report); + }); + } + @Test void testSimpleDidKeyMethodJsonValid() { assertDoesNotThrow(()->{ @@ -219,7 +228,7 @@ public class OB30Tests { assertDoesNotThrow(()->{ Report report = validator.run(Samples.OB30.JSON.SIMPLE_JSON_VERSION_CONTEXT.asFileResource()); if(verbose) PrintHelper.print(report, true); - assertHasValidProbeID(report, ContextPropertyProbe.ID); + assertHasProbeID(report, ContextPropertyProbe.ID, true); }); } @@ -342,7 +351,6 @@ public class OB30Tests { }); } - @Disabled //TODO IssuanceVerifierProbe is not run because FATAL: InvalidSignature terminates @Test void testSimpleJsonNotIssued() { //"issuanceDate": "2040-01-01T00:00:00Z", diff --git a/inspector-vc/src/test/java/org/oneedtech/inspect/vc/Samples.java b/inspector-vc/src/test/java/org/oneedtech/inspect/vc/Samples.java index b0ab19e..b64faae 100644 --- a/inspector-vc/src/test/java/org/oneedtech/inspect/vc/Samples.java +++ b/inspector-vc/src/test/java/org/oneedtech/inspect/vc/Samples.java @@ -10,7 +10,9 @@ public class Samples { } public static final class JSON { public final static Sample COMPLETE_JSON = new Sample("ob30/complete.json", false); + public final static Sample BUG_JSON = new Sample("ob30/bug.json", false); public final static Sample SIMPLE_JSON = new Sample("ob30/simple.json", true); + public final static Sample SIMPLE_V1_JSON = new Sample("ob30/simple_v1.json", true); public final static Sample SIMPLE_EDDSA_20222_JSON = new Sample("ob30/simple-eddsa-2022.json", true); public final static Sample SIMPLE_DID_KEY_METHOD_JSON = new Sample("ob30/simple-did-key-method.json", true); public final static Sample SIMPLE_DID_WEB_METHOD_JSON = new Sample("ob30/simple-did-web-method.json", true);