Skip to content

Commit 577877a

Browse files
committed
update tests with new oidf registry section
1 parent 05abc13 commit 577877a

File tree

5 files changed

+223
-210
lines changed

5 files changed

+223
-210
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@digitalcredentials/verifier-core",
33
"description": "For verifying Verifiable Credentials in the browser, Node.js, and React Native.",
4-
"version": "1.0.0-beta.3",
4+
"version": "1.0.0-beta.4",
55
"scripts": {
66
"build-esm": "tsc -p tsconfig.esm.json",
77
"build-types": "tsc -p tsconfig.types.json",
@@ -29,7 +29,7 @@
2929
"@digitalcredentials/data-integrity": "^2.6.0",
3030
"@digitalcredentials/ed25519-signature-2020": "^7.0.0",
3131
"@digitalcredentials/eddsa-rdfc-2022-cryptosuite": "^1.3.0",
32-
"@digitalcredentials/issuer-registry-client": "^3.2.0-beta.2",
32+
"@digitalcredentials/issuer-registry-client": "^3.2.0-beta.3",
3333
"@digitalcredentials/jsonld-signatures": "^12.0.1",
3434
"@digitalcredentials/security-document-loader": "^7.0.0",
3535
"@digitalcredentials/vc": "^10.0.0",

src/test-fixtures/expectedResults.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,13 @@ const expectedResult = {
2929
}
3030
},
3131
"registry": {
32-
"name": "DCC Sandbox Registry",
3332
"type": "dcc-legacy",
34-
"url": "https://digitalcredentials.github.io/sandbox-registry/registry.json"
33+
"federation_entity": {
34+
"organization_name": "DCC Sandbox Registry"
35+
},
36+
"institution_additional_information": {
37+
"legacy_list": "https://digitalcredentials.github.io/sandbox-registry/registry.json"
38+
}
3539
}
3640
}
3741
],
Lines changed: 23 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,27 @@
1-
export const knownDIDRegistries : object = [
1+
export const knownDIDRegistries: object = [
22
{
33
"name": "Test DCC Member Registry",
44
"type": "oidf",
5-
"governanceUrl": "https://test.registry.docconsortium.org/governance",
65
"trustAnchorEC": "https://test.registry.dcconsortium.org/.well-known/openid-federation"
7-
},
8-
{
9-
name: 'DCC Pilot Registry',
10-
type: 'dcc-legacy',
11-
url: 'https://digitalcredentials.github.io/issuer-registry/registry.json'
12-
},
13-
{
14-
name: 'DCC Sandbox Registry',
15-
type: 'dcc-legacy',
16-
url: 'https://digitalcredentials.github.io/sandbox-registry/registry.json'
17-
},
18-
{
19-
name: 'DCC Community Registry',
20-
type: 'dcc-legacy',
21-
url: 'https://digitalcredentials.github.io/community-registry/registry.json'
22-
},
23-
{
24-
name: 'DCC Registry',
25-
type: 'dcc-legacy',
26-
url: 'https://digitalcredentials.github.io/dcc-registry/registry.json'
27-
}
28-
]
6+
},
7+
{
8+
name: 'DCC Pilot Registry',
9+
type: 'dcc-legacy',
10+
url: 'https://digitalcredentials.github.io/issuer-registry/registry.json'
11+
},
12+
{
13+
name: 'DCC Sandbox Registry',
14+
type: 'dcc-legacy',
15+
url: 'https://digitalcredentials.github.io/sandbox-registry/registry.json'
16+
},
17+
{
18+
name: 'DCC Community Registry',
19+
type: 'dcc-legacy',
20+
url: 'https://digitalcredentials.github.io/community-registry/registry.json'
21+
},
22+
{
23+
name: 'DCC Registry',
24+
type: 'dcc-legacy',
25+
url: 'https://digitalcredentials.github.io/dcc-registry/registry.json'
26+
}
27+
]

test/Verify.v1.spec.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,6 @@ describe('Verify', () => {
119119
const credential : any = getVCv1ValidStatus()
120120
const expectedResult = getExpectedVerifiedResult({credential, withStatus: true})
121121
const result = await verifyCredential({credential, knownDIDRegistries})
122-
// console.log("THE RESULT COMING BACK")
123-
// console.log(JSON.stringify(result,null,2))
124122
expect(result).to.deep.equalInAnyOrder(expectedResult) // eslint-disable-line no-use-before-define
125123
})
126124
})

0 commit comments

Comments
 (0)