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 8575ca7..9e75372 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 @@ -95,6 +95,15 @@ public class OB30Tests { assertDoesNotThrow(()->{ Report report = validator.run(Samples.OB30.PNG.SIMPLE_JWT_PNG.asFileResource()); if(verbose) PrintHelper.print(report, true); + assertValid(report); + }); + } + + @Test + void testSimpleV1PNGJWTValid() { + assertDoesNotThrow(()->{ + Report report = validator.run(Samples.OB30.PNG.SIMPLE_V1_JWT_PNG.asFileResource()); + if(verbose) PrintHelper.print(report, true); // TODO: moved to warning due to: // - json schema validation error against canonical schema (json-ld schema validates) // - outdated context version @@ -117,10 +126,17 @@ public class OB30Tests { assertDoesNotThrow(()->{ Report report = validator.run(Samples.OB30.SVG.SIMPLE_JWT_SVG.asFileResource()); if(verbose) PrintHelper.print(report, true); - // TODO: moved to warning due to: + assertValid(report); + }); + } + + @Test + void testSimpleV1JsonSVGJWTValid() { + assertDoesNotThrow(()->{ + Report report = validator.run(Samples.OB30.SVG.SIMPLE_V1_JWT_SVG.asFileResource()); + if(verbose) PrintHelper.print(report, true); // - json schema validation error against canonical schema (json-ld schema validates) // - outdated context version - // assertValid(report); assertWarning(report); }); } 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 3a2176f..a2b174b 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 @@ -7,6 +7,7 @@ public class Samples { public static final class SVG { public final static Sample SIMPLE_JSON_SVG = new Sample("ob30/simple-json.svg", true); public final static Sample SIMPLE_JWT_SVG = new Sample("ob30/simple-jwt.svg", true); + public final static Sample SIMPLE_V1_JWT_SVG = new Sample("ob30/simple-jwt_v1.svg", true); } public static final class JSON { public final static Sample COMPLETE_JSON = new Sample("ob30/complete.json", false); @@ -45,6 +46,7 @@ public class Samples { public static final class PNG { public final static Sample SIMPLE_JWT_PNG = new Sample("ob30/simple-jwt.png", true); public final static Sample SIMPLE_JSON_PNG = new Sample("ob30/simple-json.png", true); + public final static Sample SIMPLE_V1_JWT_PNG = new Sample("ob30/simple-jwt_v1.png", true); } public static final class JWT { public final static Sample SIMPLE_JWT = new Sample("ob30/simple.jwt", true); diff --git a/inspector-vc/src/test/resources/ob30/simple-jwt.png b/inspector-vc/src/test/resources/ob30/simple-jwt.png index 7211f53..f410de8 100644 Binary files a/inspector-vc/src/test/resources/ob30/simple-jwt.png and b/inspector-vc/src/test/resources/ob30/simple-jwt.png differ diff --git a/inspector-vc/src/test/resources/ob30/simple-jwt.svg b/inspector-vc/src/test/resources/ob30/simple-jwt.svg index 1f1d17f..5e12b1e 100644 --- a/inspector-vc/src/test/resources/ob30/simple-jwt.svg +++ b/inspector-vc/src/test/resources/ob30/simple-jwt.svg @@ -1,7 +1,7 @@ - + diff --git a/inspector-vc/src/test/resources/ob30/simple-jwt_v1.png b/inspector-vc/src/test/resources/ob30/simple-jwt_v1.png new file mode 100644 index 0000000..5617872 Binary files /dev/null and b/inspector-vc/src/test/resources/ob30/simple-jwt_v1.png differ diff --git a/inspector-vc/src/test/resources/ob30/simple-jwt_v1.svg b/inspector-vc/src/test/resources/ob30/simple-jwt_v1.svg new file mode 100644 index 0000000..a071e48 --- /dev/null +++ b/inspector-vc/src/test/resources/ob30/simple-jwt_v1.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + \ No newline at end of file