diff --git a/README.md b/README.md index 8d3b2ac..84b8d07 100644 --- a/README.md +++ b/README.md @@ -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`. 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 diff --git a/fixtures/should-be-revoked.jsonld b/fixtures/should-be-revoked.jsonld new file mode 100644 index 0000000..d484905 --- /dev/null +++ b/fixtures/should-be-revoked.jsonld @@ -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" + } +} \ No newline at end of file diff --git a/fixtures/should-be-suspended.jsonld b/fixtures/should-be-suspended.jsonld new file mode 100644 index 0000000..2198cfa --- /dev/null +++ b/fixtures/should-be-suspended.jsonld @@ -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" + } +} \ No newline at end of file diff --git a/fixtures/sl-date-expired-fail.jsonld b/fixtures/sl-date-expired-fail.jsonld new file mode 100644 index 0000000..38a6cab --- /dev/null +++ b/fixtures/sl-date-expired-fail.jsonld @@ -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" + } +} \ No newline at end of file diff --git a/fixtures/sl-encoded-list-invalid-fail.jsonld b/fixtures/sl-encoded-list-invalid-fail.jsonld new file mode 100644 index 0000000..1a1495b --- /dev/null +++ b/fixtures/sl-encoded-list-invalid-fail.jsonld @@ -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" + } +} \ No newline at end of file diff --git a/fixtures/sl-encoded-list-short-fail.jsonld b/fixtures/sl-encoded-list-short-fail.jsonld new file mode 100644 index 0000000..0f03192 --- /dev/null +++ b/fixtures/sl-encoded-list-short-fail.jsonld @@ -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" + } +} \ No newline at end of file diff --git a/fixtures/sl-purpose-multi-ok.jsonld b/fixtures/sl-purpose-multi-ok.jsonld new file mode 100644 index 0000000..5101900 --- /dev/null +++ b/fixtures/sl-purpose-multi-ok.jsonld @@ -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" + } +} \ No newline at end of file diff --git a/fixtures/sl-purpose-single-ok.jsonld b/fixtures/sl-purpose-single-ok.jsonld new file mode 100644 index 0000000..f8a520f --- /dev/null +++ b/fixtures/sl-purpose-single-ok.jsonld @@ -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" + } +} \ No newline at end of file diff --git a/fixtures/sl-vc-type-missing-fail.jsonld b/fixtures/sl-vc-type-missing-fail.jsonld new file mode 100644 index 0000000..40f5c0c --- /dev/null +++ b/fixtures/sl-vc-type-missing-fail.jsonld @@ -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" + } +} \ No newline at end of file diff --git a/fixtures/sl-vc-type-wrong-fail.jsonld b/fixtures/sl-vc-type-wrong-fail.jsonld new file mode 100644 index 0000000..d35aa22 --- /dev/null +++ b/fixtures/sl-vc-type-wrong-fail.jsonld @@ -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" + } +} \ No newline at end of file