Skip to content

Commit

Permalink
Cache test schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
olomix committed Oct 10, 2023
1 parent 8169c05 commit d039fc8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions json/parser_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,14 @@ func TestParser_ParseClaimWithDataSlots(t *testing.T) {
}

func TestParser_ParseClaimWithMerklizedRoot(t *testing.T) {
defer tst.MockHTTPClient(t,
map[string]string{
"https://www.w3.org/2018/credentials/v1": "../merklize/testdata/httpresp/credentials-v1.jsonld",
"https://raw.githubusercontent.com/iden3/claim-schema-vocab/main/schemas/json-ld/iden3credential-v2.json-ld": "../merklize/testdata/httpresp/iden3credential-v2.json-ld",
"https://raw.githubusercontent.com/iden3/claim-schema-vocab/main/schemas/json-ld/kyc-v3.json-ld": "../merklize/testdata/httpresp/kyc-v3.json-ld",
},
tst.IgnoreUntouchedURLs())()

credentialBytes, err := os.ReadFile("testdata/credential-merklized.json")
require.NoError(t, err)

Expand Down

0 comments on commit d039fc8

Please sign in to comment.