Skip to content

Commit

Permalink
Rename vc-api-test-suite-implementations to
Browse files Browse the repository at this point in the history
`vc-test-suite-implementations` and update `README.md`.
  • Loading branch information
JSAssassin committed Dec 12, 2023
1 parent 5472f07 commit 05cee8b
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 8 deletions.
13 changes: 9 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# vc-api-verifier-test-suite

Test Suite for Verifiers that implement the VC HTTP API

## Table of Contents
Expand Down Expand Up @@ -30,8 +31,12 @@ Note: The default issuer is set to `Digital Bazaar`, you can change the
issuer by setting the `ISSUER_NAME` env variable.

## Implementation
To add your implementation to this test suite see the [README here.](https://github.com/w3c-ccg/vc-api-test-suite-implementations)
Add the tag `vc-api` to the issuers and verifiers you want tested.
To run the tests, some implementations require client secrets that can be

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 tag `vc-api` to the verifiers you want
to run the tests against.

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
secrets, you can check the `vc-api-test-suite-implementations` library.
secrets, you can check configs in the `w3c-ccg/vc-test-suite-implementations`
repo.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"klona": "^2.0.5",
"mocha": "^10.0.0",
"uuid": "^9.0.1",
"vc-api-test-suite-implementations": "github:w3c-ccg/vc-api-test-suite-implementations"
"vc-test-suite-implementations": "github:w3c-ccg/vc-test-suite-implementations#rename-package"
},
"devDependencies": {
"eslint": "^8.54.0",
Expand Down
4 changes: 2 additions & 2 deletions tests/10-vc-di.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
testBadRequestError
} from './helpers.js';
import chai from 'chai';
import {filterByTag} from 'vc-api-test-suite-implementations';
import {filterByTag} from 'vc-test-suite-implementations';
import {issuerName} from './test-config.js';
import {klona} from 'klona';

Expand Down Expand Up @@ -43,7 +43,7 @@ describe('Verify Credential - Data Integrity', function() {
let validVc;
before(async function() {
const issuer = matchingIssuers.get(issuerName).issuers.find(
issuer => issuer.tags.has('Ed25519Signature2020'));
issuer => issuer.tags.has('vc-api'));
validVc = await createInitialVc({issuer});
});
it('MUST verify a valid VC.', async function() {
Expand Down
2 changes: 1 addition & 1 deletion tests/11-vc-jwt.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
testBadRequestError
} from './helpers.js';
import chai from 'chai';
import {filterByTag} from 'vc-api-test-suite-implementations';
import {filterByTag} from 'vc-test-suite-implementations';
import {issuerNameJWT} from './test-config.js';
import {klona} from 'klona';

Expand Down

0 comments on commit 05cee8b

Please sign in to comment.