Added basic json test resource
This commit is contained in:
parent
b5ab04da4c
commit
21fe60f21b
@ -40,4 +40,12 @@ public class Samples {
|
|||||||
public final static Sample SIMPLE_JWT = new Sample("clr20/simple.jwt", true);
|
public final static Sample SIMPLE_JWT = new Sample("clr20/simple.jwt", true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static final class OB20 {
|
||||||
|
public static final class JSON {
|
||||||
|
public final static Sample SIMPLE_ASSERTION_JSON = new Sample("ob20/basic-assertion.json", true);
|
||||||
|
public final static Sample SIMPLE_BADGECLASS_JSON = new Sample("ob20/basic-badgeclass.json", true);
|
||||||
|
public final static Sample SIMPLE_ISSUER_JSON = new Sample("ob20/basic-issuer.json", true);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
18
inspector-vc/src/test/resources/ob20/basic-assertion.json
Normal file
18
inspector-vc/src/test/resources/ob20/basic-assertion.json
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
{
|
||||||
|
"@context": "https://w3id.org/openbadges/v2",
|
||||||
|
"type": "Assertion",
|
||||||
|
"id": "https://example.org/beths-robotics-badge.json",
|
||||||
|
"recipient": {
|
||||||
|
"type": "email",
|
||||||
|
"hashed": true,
|
||||||
|
"salt": "deadsea",
|
||||||
|
"identity": "sha256$ecf5409f3f4b91ab60cc5ef4c02aef7032354375e70cf4d8e43f6a1d29891942"
|
||||||
|
},
|
||||||
|
"image": "https://example.org/beths-robot-badge.png",
|
||||||
|
"evidence": "https://example.org/beths-robot-work.html",
|
||||||
|
"issuedOn": "2016-12-31T23:59:59Z",
|
||||||
|
"badge": "https://example.org/robotics-badge.json",
|
||||||
|
"verification": {
|
||||||
|
"type": "hosted"
|
||||||
|
}
|
||||||
|
}
|
10
inspector-vc/src/test/resources/ob20/basic-badgeclass.json
Normal file
10
inspector-vc/src/test/resources/ob20/basic-badgeclass.json
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"@context": "https://w3id.org/openbadges/v2",
|
||||||
|
"type": "BadgeClass",
|
||||||
|
"id": "https://example.org/robotics-badge.json",
|
||||||
|
"name": "Awesome Robotics Badge",
|
||||||
|
"description": "For doing awesome things with robots that people think is pretty great.",
|
||||||
|
"image": "https://example.org/robotics-badge.png",
|
||||||
|
"criteria": "https://example.org/robotics-badge.html",
|
||||||
|
"issuer": "https://example.org/organization.json"
|
||||||
|
}
|
8
inspector-vc/src/test/resources/ob20/basic-issuer.json
Normal file
8
inspector-vc/src/test/resources/ob20/basic-issuer.json
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
"@context": "https://w3id.org/openbadges/v2",
|
||||||
|
"type": "Issuer",
|
||||||
|
"id": "https://example.org/organization.json",
|
||||||
|
"name": "An Example Badge Issuer",
|
||||||
|
"url": "https://example.org",
|
||||||
|
"email": "contact@example.org"
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user