Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Status entry fixtures #38

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,10 @@ npm run generate-vcs
## Implementation

To add your implementation to this test suite see the
`w3c-ccg/vc-test-suite-implementations` [README](https://github.com/w3c-ccg/vc-test-suite-implementations/blob/main/README.md). Add the tags
`BitstringStatusList` along with `Revocation` or `Suspension` to run your
issuer and verifier against this test suite.
`w3c-ccg/vc-test-suite-implementations` [README](https://github.com/w3c-ccg/vc-test-suite-implementations/blob/main/README.md). Add the tag
`BitstringStatusList` to run your issuer and verifier against this test suite.

This test-suite leverages static status credential fixtures for testing verifiers implementations. These status credentials have the following indexes set to 1 `201` `94023` `57444`.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
This test-suite leverages static status credential fixtures for testing verifiers implementations. These status credentials have the following indexes set to 1 `201` `94023` `57444`.
This test-suite leverages static status credential fixtures for testing verifiers implementations. These status credentials have the following indexes set to `1`: `201`, `94023`, and `57444`.


Note: To run the tests, some implementations require client secrets that can be
passed as env variables to the test script. To see which ones require client
Expand Down
17 changes: 17 additions & 0 deletions fixtures/should-be-revoked.jsonld
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"@context": [
"https://www.w3.org/ns/credentials/v2"
],
"type": [
"VerifiableCredential"
],
"credentialSubject": {
"name": "Alice"
},
"credentialStatus": {
"type": "BitstringStatusListEntry",
"statusPurpose": "revocation",
"statusListIndex": "201",
"statusListCredential": "https://w3c-ccg.github.io/vc-api/fixtures/credentials/status/purpose-single-ok.jsonld"
}
}
17 changes: 17 additions & 0 deletions fixtures/should-be-suspended.jsonld
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"@context": [
"https://www.w3.org/ns/credentials/v2"
],
"type": [
"VerifiableCredential"
],
"credentialSubject": {
"name": "Alice"
},
"credentialStatus": {
"type": "BitstringStatusListEntry",
"statusPurpose": "suspension",
"statusListIndex": "201",
"statusListCredential": "https://w3c-ccg.github.io/vc-api/fixtures/credentials/status/purpose-multi-ok.jsonld"
}
}
17 changes: 17 additions & 0 deletions fixtures/sl-date-expired-fail.jsonld
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"@context": [
"https://www.w3.org/ns/credentials/v2"
],
"type": [
"VerifiableCredential"
],
"credentialSubject": {
"name": "Alice"
},
"credentialStatus": {
"type": "BitstringStatusListEntry",
"statusPurpose": "revocation",
"statusListIndex": "201",
"statusListCredential": "https://w3c-ccg.github.io/vc-api/fixtures/credentials/status/date-expired-fail.jsonld"
}
}
17 changes: 17 additions & 0 deletions fixtures/sl-encoded-list-invalid-fail.jsonld
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"@context": [
"https://www.w3.org/ns/credentials/v2"
],
"type": [
"VerifiableCredential"
],
"credentialSubject": {
"name": "Alice"
},
"credentialStatus": {
"type": "BitstringStatusListEntry",
"statusPurpose": "revocation",
"statusListIndex": "201",
"statusListCredential": "https://w3c-ccg.github.io/vc-api/fixtures/credentials/status/encoded-list-invalid-fail.jsonld"
}
}
17 changes: 17 additions & 0 deletions fixtures/sl-encoded-list-short-fail.jsonld
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"@context": [
"https://www.w3.org/ns/credentials/v2"
],
"type": [
"VerifiableCredential"
],
"credentialSubject": {
"name": "Alice"
},
"credentialStatus": {
"type": "BitstringStatusListEntry",
"statusPurpose": "revocation",
"statusListIndex": "201",
"statusListCredential": "https://w3c-ccg.github.io/vc-api/fixtures/credentials/status/encoded-list-short-fail.jsonld"
}
}
17 changes: 17 additions & 0 deletions fixtures/sl-purpose-multi-ok.jsonld
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"@context": [
"https://www.w3.org/ns/credentials/v2"
],
"type": [
"VerifiableCredential"
],
"credentialSubject": {
"name": "Alice"
},
"credentialStatus": {
"type": "BitstringStatusListEntry",
"statusPurpose": "revocation",
"statusListIndex": "1",
"statusListCredential": "https://w3c-ccg.github.io/vc-api/fixtures/credentials/status/purpose-multi-ok.jsonld"
}
}
17 changes: 17 additions & 0 deletions fixtures/sl-purpose-single-ok.jsonld
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"@context": [
"https://www.w3.org/ns/credentials/v2"
],
"type": [
"VerifiableCredential"
],
"credentialSubject": {
"name": "Alice"
},
"credentialStatus": {
"type": "BitstringStatusListEntry",
"statusPurpose": "revocation",
"statusListIndex": "1",
"statusListCredential": "https://w3c-ccg.github.io/vc-api/fixtures/credentials/status/purpose-single-ok.jsonld"
}
}
17 changes: 17 additions & 0 deletions fixtures/sl-vc-type-missing-fail.jsonld
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"@context": [
"https://www.w3.org/ns/credentials/v2"
],
"type": [
"VerifiableCredential"
],
"credentialSubject": {
"name": "Alice"
},
"credentialStatus": {
"type": "BitstringStatusListEntry",
"statusPurpose": "revocation",
"statusListIndex": "201",
"statusListCredential": "https://w3c-ccg.github.io/vc-api/fixtures/credentials/status/vc-type-missing-fail.jsonld"
}
}
17 changes: 17 additions & 0 deletions fixtures/sl-vc-type-wrong-fail.jsonld
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"@context": [
"https://www.w3.org/ns/credentials/v2"
],
"type": [
"VerifiableCredential"
],
"credentialSubject": {
"name": "Alice"
},
"credentialStatus": {
"type": "BitstringStatusListEntry",
"statusPurpose": "revocation",
"statusListIndex": "201",
"statusListCredential": "https://w3c-ccg.github.io/vc-api/fixtures/credentials/status/vc-type-wrong-fail.jsonld"
}
}