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

Remove fixtures from the vc-api #411

Merged
merged 4 commits into from
Aug 13, 2024
Merged
Show file tree
Hide file tree
Changes from 3 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
6 changes: 2 additions & 4 deletions fixtures/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# Fixtures

This folder contains static test fixtures that are hosted by this test suite.
This folder contains static BitstringStatusList test fixtures referenced by external test-suites.

## revocationList.json

Is a Verifiable Credential based revocation list conforming to the [RevocationStatusList2020](https://w3c-ccg.github.io/vc-status-rl-2020/) spec, whereby the credential associated to index 1 is revoked and all other credentials described by the other indexes represented in the list are not revoked.
All status credentials have the following indexes set to 1 `201` `94023` `57444` and should be used for their respective purposes.
PatStLouis marked this conversation as resolved.
Show resolved Hide resolved
15 changes: 15 additions & 0 deletions fixtures/credentials/status/date-expired-fail.jsonld
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"@context": [
"https://www.w3.org/ns/credentials/v2"
],
"type": [
"VerifiableCredential",
"BitstringStatusListCredential"
],
"validUntil": "1984-01-01T00:00:00Z",
"credentialSubject": {
"type": "BitstringStatusList",
"statusPurpose": "revocation",
"encodedList": "H4sIACbOo2YC_-3QMREAMAgEsGerLPyrQgFjB-4SCUkWHQAAAAAAAOCwpwAAAADgrFIAAAAAAAAAAAAAAAAA3wxvOeOvqGEAAA"
}
}
16 changes: 16 additions & 0 deletions fixtures/credentials/status/encoded-list-invalid-fail.jsonld
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"@context": [
"https://www.w3.org/ns/credentials/v2"
],
"type": [
"VerifiableCredential",
"BitstringStatusListCredential"
],
"credentialSubject": {
"type": "BitstringStatusList",
"statusPurpose": [
"revocation"
],
"encodedList": "0000000000000000000000000000000000000000"
}
}
16 changes: 16 additions & 0 deletions fixtures/credentials/status/encoded-list-short-fail.jsonld
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"@context": [
"https://www.w3.org/ns/credentials/v2"
],
"type": [
"VerifiableCredential",
"BitstringStatusListCredential"
],
"credentialSubject": {
"type": "BitstringStatusList",
"statusPurpose": [
"revocation"
],
"encodedList": "H4sIAN7Lo2YC_2NgwAEAjw7P6RkAAAA"
}
}
17 changes: 17 additions & 0 deletions fixtures/credentials/status/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",
"BitstringStatusListCredential"
],
"credentialSubject": {
"type": "BitstringStatusList",
"statusPurpose": [
"revocation",
"suspension"
],
"encodedList": "H4sIACbOo2YC_-3QMREAMAgEsGerLPyrQgFjB-4SCUkWHQAAAAAAAOCwpwAAAADgrFIAAAAAAAAAAAAAAAAA3wxvOeOvqGEAAA"
}
}
14 changes: 14 additions & 0 deletions fixtures/credentials/status/purpose-single-ok.jsonld
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"@context": [
"https://www.w3.org/ns/credentials/v2"
],
"type": [
"VerifiableCredential",
"BitstringStatusListCredential"
],
"credentialSubject": {
"type": "BitstringStatusList",
"statusPurpose": "revocation",
"encodedList": "H4sIACbOo2YC_-3QMREAMAgEsGerLPyrQgFjB-4SCUkWHQAAAAAAAOCwpwAAAADgrFIAAAAAAAAAAAAAAAAA3wxvOeOvqGEAAA"
}
}
13 changes: 13 additions & 0 deletions fixtures/credentials/status/vc-type-missing-fail.jsonld
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"@context": [
"https://www.w3.org/ns/credentials/v2"
],
"type": [
"VerifiableCredential"
],
"credentialSubject": {
"type": "BitstringStatusList",
"statusPurpose": "revocation",
"encodedList": "H4sIACbOo2YC_-3QMREAMAgEsGerLPyrQgFjB-4SCUkWHQAAAAAAAOCwpwAAAADgrFIAAAAAAAAAAAAAAAAA3wxvOeOvqGEAAA"
}
}
14 changes: 14 additions & 0 deletions fixtures/credentials/status/vc-type-wrong-fail.jsonld
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"@context": [
"https://www.w3.org/ns/credentials/v2"
],
"type": [
"VerifiableCredential",
"StatusList2021Credential"
],
"credentialSubject": {
"type": "StatusList2021",
"statusPurpose": "revocation",
"encodedList": "H4sIACbOo2YC_-3QMREAMAgEsGerLPyrQgFjB-4SCUkWHQAAAAAAAOCwpwAAAADgrFIAAAAAAAAAAAAAAAAA3wxvOeOvqGEAAA"
}
}