w3c-ccg / traceability-interop

Verifiable Credentials for Supply Chain Interoperability Specification for HTTP

Home Page:https://w3id.org/traceability/interoperability

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Incorrect interop testing for credential verification in revocation tutorial

brownoxford opened this issue · comments

The "Verify Credential" request test set in the "Credentials Revocation Tutorial" still tests against the legacy shape of a verification response:

// Checks should not have errors
pm.test("Checks should have no errors", function() {
    const { errors } = pm.response.json();
    pm.expect(errors).to.be.empty;
});

This should be updated to just ensure that the verified property is true:

// The verification should succeed.
pm.test("verification should be successful", function() {
    const { verified } = pm.response.json()
    pm.expect(verified).to.be.true;
});