fix: adjust iat and nbf for id token signing #2043
sonarcloud.yml
on: pull_request
SonarCloud snap
2m 22s
SonarCloud datamanager
1m 24s
SonarCloud connector
51s
SonarCloud dapp
53s
SonarCloud docs
46s
SonarCloud did-provider-key
1m 24s
SonarCloud extended-verification-lib
1m 55s
Annotations
3 errors
tests/e2e/resolveDID.spec.ts > resolveDID > should resolve a 'cheqd' method:
packages/snap/tests/e2e/resolveDID.spec.ts#L48
AssertionError: expected null to deeply equal { '@context': [ …(2) ], …(4) }
- Expected:
Object {
"@context": Array [
"https://www.w3.org/ns/did/v1",
"https://w3id.org/security/suites/ed25519-2020/v1",
],
"authentication": Array [
"did:cheqd:mainnet:Ps1ysXP2Ae6GBfxNhNQNKN#key1",
],
"id": "did:cheqd:mainnet:Ps1ysXP2Ae6GBfxNhNQNKN",
"service": Array [
Object {
"id": "did:cheqd:mainnet:Ps1ysXP2Ae6GBfxNhNQNKN#website",
"serviceEndpoint": Array [
"https://www.cheqd.io",
],
"type": "LinkedDomains",
},
Object {
"id": "did:cheqd:mainnet:Ps1ysXP2Ae6GBfxNhNQNKN#non-fungible-image",
"serviceEndpoint": Array [
"https://gateway.ipfs.io/ipfs/bafybeihetj2ng3d74k7t754atv2s5dk76pcqtvxls6dntef3xa6rax25xe",
],
"type": "LinkedDomains",
},
Object {
"id": "did:cheqd:mainnet:Ps1ysXP2Ae6GBfxNhNQNKN#twitter",
"serviceEndpoint": Array [
"https://twitter.com/cheqd_io",
],
"type": "LinkedDomains",
},
Object {
"id": "did:cheqd:mainnet:Ps1ysXP2Ae6GBfxNhNQNKN#linkedin",
"serviceEndpoint": Array [
"https://www.linkedin.com/company/cheqd-identity/",
],
"type": "LinkedDomains",
},
],
"verificationMethod": Array [
Object {
"controller": "did:cheqd:mainnet:Ps1ysXP2Ae6GBfxNhNQNKN",
"id": "did:cheqd:mainnet:Ps1ysXP2Ae6GBfxNhNQNKN#key1",
"publicKeyMultibase": "z6Mkta7joRuvDh7UnoESdgpr9dDUMh5LvdoECDi3WGrJoscA",
"type": "Ed25519VerificationKey2020",
},
],
}
+ Received:
null
❯ tests/e2e/resolveDID.spec.ts:48:36
|
tests/unit/ceramic.spec.ts > Utils [ceramic] > ceramicVCStore > should fail saving wrong object on ceramic network:
packages/snap/tests/unit/ceramic.spec.ts#L72
AssertionError: expected [Function] to throw error including 'HTTP request to \'https://ceramic-cla…' but got 'HTTP request to \'https://ceramic-cla…'
- Expected
+ Received
- HTTP request to 'https://ceramic-clay.3boxlabs.com/api/v0/commits' failed with status 'Internal Server Error': {"error":"Validation Error: data/vcs/a665a45920422f9d417e4867efdc4fb8a04a1f3fff1fa07e998e86f7f7a27ae3 must be object, data/vcs/a665a45920422f9d417e4867efdc4fb8a04a1f3fff1fa07e998e86f7f7a27ae3 must be string, data/vcs/a665a45920422f9d417e4867efdc4fb8a04a1f3fff1fa07e998e86f7f7a27ae3 must match a schema in anyOf"}
+ HTTP request to 'https://ceramic-clay.3boxlabs.com/api/v0/commits' failed with status 'Internal Server Error': {"error":"Commit to stream k2t6wyfsu4pg2q7vm7y3wr4bvri4d0dzfwbb7ebirtes8rwundfjja0qnfmuai rejected because it builds on stale state. Calling 'sync()' on the stream handle will synchronize the stream state in the client with that on the Ceramic node. Rejected commit CID: bagcqceraplx5k6u6rbjioyhcdlvj35vf6u7d3ick3qmk6zxriis7ksddokga. Current tip: bagcqcerakoui4svbsnk5ef5e7dcrfzoyokfoedzmgrzb64kxlu5muxndofla"}
❯ tests/unit/ceramic.spec.ts:72:7
|
SonarCloud snap
Process completed with exit code 1.
|