The scheme MUST be the value `did` |
✓
|
✓
|
✓
|
✓
|
MUST raise `invalidDid` error if scheme is not `did` |
✓
|
✓
|
✓
|
❌
{
"name": "AssertionError",
"message": "Expected an error with data: expected undefined to exist",
"stack": "AssertionError: Expected an error with data: expected undefined to exist\n at should.exist (node_modules/chai/lib/chai/interface/should.js:144:34)\n at shouldErrorWithData (file:///home/runner/work/did-key-test-suite/did-key-test-suite/tests/assertions.js:34:10)\n at Context. (file:///home/runner/work/did-key-test-suite/did-key-test-suite/tests/10-create.js:67:11)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)"
}
|
The method MUST be the value `key` |
✓
|
✓
|
✓
|
✓
|
MUST raise `methodNotSupported` error if method is not `key` |
✓
|
❌
{
"name": "AssertionError",
"message": "expected 'invalidDid' to equal 'methodNotSupported'",
"stack": "AssertionError: expected 'invalidDid' to equal 'methodNotSupported'\n at _shouldHaveMetadataError (file:///home/runner/work/did-key-test-suite/did-key-test-suite/tests/assertions.js:85:31)\n at shouldHaveDidResolutionError (file:///home/runner/work/did-key-test-suite/did-key-test-suite/tests/assertions.js:38:10)\n at Context. (file:///home/runner/work/did-key-test-suite/did-key-test-suite/tests/10-create.js:93:11)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)"
}
|
✓
|
❌
{
"name": "AssertionError",
"message": "Expected no response: expected Response { status: 200, statusText: 'OK', headers: Headers { authorization: '** SANITIZED TO PREVENT EXPOSING OF SECRETS ***', 'cf-cache-status': 'DYNAMIC', 'cf-ray': '8a68b8068f1310c2-ORD', connection: 'keep-alive', 'content-length': '42', 'content-type': 'application/ld+json;profile=\"https://w3id.org/did-resolution\"', date: 'Sun, 21 Jul 2024 05:16:26 GMT', server: 'cloudflare' }, body: ReadableStream { locked: false, state: 'readable', supportsBYOB: true }, bodyUsed: false, ok: true, redirected: false, type: 'default', url: '' } to not exist",
"stack": "AssertionError: Expected no response: expected Response { status: 200, statusText: 'OK', headers: Headers { authorization: '** SANITIZED TO PREVENT EXPOSING OF SECRETS ***', 'cf-cache-status': 'DYNAMIC', 'cf-ray': '8a68b8068f1310c2-ORD', connection: 'keep-alive', 'content-length': '42', 'content-type': 'application/ld+json;profile=\"https://w3id.org/did-resolution\"', date: 'Sun, 21 Jul 2024 05:16:26 GMT', server: 'cloudflare' }, body: ReadableStream { locked: false, state: 'readable', supportsBYOB: true }, bodyUsed: false, ok: true, redirected: false, type: 'default', url: '' } to not exist\n at should.not.exist (node_modules/chai/lib/chai/interface/should.js:208:38)\n at shouldErrorWithData (file:///home/runner/work/did-key-test-suite/did-key-test-suite/tests/assertions.js:32:14)\n at Context. (file:///home/runner/work/did-key-test-suite/did-key-test-suite/tests/10-create.js:90:11)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)"
}
|
The version MUST be convertible to a positive integer value. |
✓
|
✓
|
✓
|
✓
|
MUST raise `invalidDid` if version is not convertible to a positive integer value. |
❌
{
"name": "AssertionError",
"message": "expected 'methodNotSupported' to equal 'invalidDid'",
"stack": "AssertionError: expected 'methodNotSupported' to equal 'invalidDid'\n at _shouldHaveMetadataError (file:///home/runner/work/did-key-test-suite/did-key-test-suite/tests/assertions.js:85:31)\n at shouldHaveDidResolutionError (file:///home/runner/work/did-key-test-suite/did-key-test-suite/tests/assertions.js:38:10)\n at Context. (file:///home/runner/work/did-key-test-suite/did-key-test-suite/tests/10-create.js:115:9)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)"
}
|
✓
|
✓
|
❌
{
"name": "AssertionError",
"message": "Expected no response: expected Response { status: 200, statusText: 'OK', headers: Headers { authorization: '** SANITIZED TO PREVENT EXPOSING OF SECRETS ***', 'cf-cache-status': 'DYNAMIC', 'cf-ray': '8a68b806cf8310c2-ORD', connection: 'keep-alive', 'content-length': '34', 'content-type': 'application/ld+json;profile=\"https://w3id.org/did-resolution\"', date: 'Sun, 21 Jul 2024 05:16:26 GMT', server: 'cloudflare' }, body: ReadableStream { locked: false, state: 'readable', supportsBYOB: true }, bodyUsed: false, ok: true, redirected: false, type: 'default', url: '' } to not exist",
"stack": "AssertionError: Expected no response: expected Response { status: 200, statusText: 'OK', headers: Headers { authorization: '** SANITIZED TO PREVENT EXPOSING OF SECRETS ***', 'cf-cache-status': 'DYNAMIC', 'cf-ray': '8a68b806cf8310c2-ORD', connection: 'keep-alive', 'content-length': '34', 'content-type': 'application/ld+json;profile=\"https://w3id.org/did-resolution\"', date: 'Sun, 21 Jul 2024 05:16:26 GMT', server: 'cloudflare' }, body: ReadableStream { locked: false, state: 'readable', supportsBYOB: true }, bodyUsed: false, ok: true, redirected: false, type: 'default', url: '' } to not exist\n at should.not.exist (node_modules/chai/lib/chai/interface/should.js:208:38)\n at shouldErrorWithData (file:///home/runner/work/did-key-test-suite/did-key-test-suite/tests/assertions.js:32:14)\n at Context. (file:///home/runner/work/did-key-test-suite/did-key-test-suite/tests/10-create.js:112:9)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)"
}
|
The multibaseValue MUST be a string and begin with the letter `z` |
✓
|
✓
|
✓
|
✓
|
MUST raise `invalidDid` if the multibaseValue does not begin with the letter `z`. |
❌
{
"name": "AssertionError",
"message": "expected 'methodNotSupported' to equal 'invalidDid'",
"stack": "AssertionError: expected 'methodNotSupported' to equal 'invalidDid'\n at _shouldHaveMetadataError (file:///home/runner/work/did-key-test-suite/did-key-test-suite/tests/assertions.js:85:31)\n at shouldHaveDidResolutionError (file:///home/runner/work/did-key-test-suite/did-key-test-suite/tests/assertions.js:38:10)\n at Context. (file:///home/runner/work/did-key-test-suite/did-key-test-suite/tests/10-create.js:141:9)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)"
}
|
✓
|
✓
|
❌
{
"name": "AssertionError",
"message": "Expected no response: expected Response { status: 200, statusText: 'OK', headers: Headers { authorization: '** SANITIZED TO PREVENT EXPOSING OF SECRETS ***', 'cf-cache-status': 'DYNAMIC', 'cf-ray': '8a68b8071fe610c2-ORD', connection: 'keep-alive', 'content-length': '34', 'content-type': 'application/ld+json;profile=\"https://w3id.org/did-resolution\"', date: 'Sun, 21 Jul 2024 05:16:26 GMT', server: 'cloudflare' }, body: ReadableStream { locked: false, state: 'readable', supportsBYOB: true }, bodyUsed: false, ok: true, redirected: false, type: 'default', url: '' } to not exist",
"stack": "AssertionError: Expected no response: expected Response { status: 200, statusText: 'OK', headers: Headers { authorization: '** SANITIZED TO PREVENT EXPOSING OF SECRETS ***', 'cf-cache-status': 'DYNAMIC', 'cf-ray': '8a68b8071fe610c2-ORD', connection: 'keep-alive', 'content-length': '34', 'content-type': 'application/ld+json;profile=\"https://w3id.org/did-resolution\"', date: 'Sun, 21 Jul 2024 05:16:26 GMT', server: 'cloudflare' }, body: ReadableStream { locked: false, state: 'readable', supportsBYOB: true }, bodyUsed: false, ok: true, redirected: false, type: 'default', url: '' } to not exist\n at should.not.exist (node_modules/chai/lib/chai/interface/should.js:208:38)\n at shouldErrorWithData (file:///home/runner/work/did-key-test-suite/did-key-test-suite/tests/assertions.js:32:14)\n at Context. (file:///home/runner/work/did-key-test-suite/did-key-test-suite/tests/10-create.js:138:9)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)"
}
|
If "didDocument.id" is not a valid DID, an `invalidDid` error MUST be raised |
❌
{
"name": "AssertionError",
"message": "Expected a didDocument: expected null to exist",
"stack": "AssertionError: Expected a didDocument: expected null to exist\n at should.exist (node_modules/chai/lib/chai/interface/should.js:144:34)\n at Context. (file:///home/runner/work/did-key-test-suite/did-key-test-suite/tests/10-create.js:161:16)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)"
}
|
✓
|
❌
{
"name": "AssertionError",
"message": "Expected a didDocument: expected null to exist",
"stack": "AssertionError: Expected a didDocument: expected null to exist\n at should.exist (node_modules/chai/lib/chai/interface/should.js:144:34)\n at Context. (file:///home/runner/work/did-key-test-suite/did-key-test-suite/tests/10-create.js:161:16)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)"
}
|
❌
{
"name": "AssertionError",
"message": "Expected resolution of did:key:@ to return a response: expected undefined to exist",
"stack": "AssertionError: Expected resolution of did:key:@ to return a response: expected undefined to exist\n at should.exist (node_modules/chai/lib/chai/interface/should.js:144:34)\n at Context. (file:///home/runner/work/did-key-test-suite/did-key-test-suite/tests/10-create.js:154:16)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)"
}
|
If the byte length of rawPublicKeyBytes does not match the expected public key length for the associated multicodecValue, an `invalidPublicKeyLength` error MUST be raised. |
❌
{
"name": "AssertionError",
"message": "expected 'methodNotSupported' to equal 'invalidPublicKeyLength'",
"stack": "AssertionError: expected 'methodNotSupported' to equal 'invalidPublicKeyLength'\n at _shouldHaveMetadataError (file:///home/runner/work/did-key-test-suite/did-key-test-suite/tests/assertions.js:85:31)\n at shouldHaveDidResolutionError (file:///home/runner/work/did-key-test-suite/did-key-test-suite/tests/assertions.js:38:10)\n at Context. (file:///home/runner/work/did-key-test-suite/did-key-test-suite/tests/10-create.js:174:9)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)"
}
|
✓
|
❌
{
"name": "AssertionError",
"message": "expected 'invalidDid' to equal 'invalidPublicKeyLength'",
"stack": "AssertionError: expected 'invalidDid' to equal 'invalidPublicKeyLength'\n at _shouldHaveMetadataError (file:///home/runner/work/did-key-test-suite/did-key-test-suite/tests/assertions.js:85:31)\n at shouldHaveDidResolutionError (file:///home/runner/work/did-key-test-suite/did-key-test-suite/tests/assertions.js:38:10)\n at Context. (file:///home/runner/work/did-key-test-suite/did-key-test-suite/tests/10-create.js:174:9)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)"
}
|
❌
{
"name": "AssertionError",
"message": "Expected no response: expected Response { status: 200, statusText: 'OK', headers: Headers { authorization: '** SANITIZED TO PREVENT EXPOSING OF SECRETS ***', 'cf-cache-status': 'DYNAMIC', 'cf-ray': '8a68b807a8a210c2-ORD', connection: 'keep-alive', 'content-encoding': 'gzip', 'content-type': 'application/ld+json;profile=\"https://w3id.org/did-resolution\"', date: 'Sun, 21 Jul 2024 05:16:26 GMT', server: 'cloudflare', 'transfer-encoding': 'chunked' }, body: ReadableStream { locked: false, state: 'readable', supportsBYOB: true }, bodyUsed: false, ok: true, redirected: false, type: 'default', url: '' } to not exist",
"stack": "AssertionError: Expected no response: expected Response { status: 200, statusText: 'OK', headers: Headers { authorization: '** SANITIZED TO PREVENT EXPOSING OF SECRETS ***', 'cf-cache-status': 'DYNAMIC', 'cf-ray': '8a68b807a8a210c2-ORD', connection: 'keep-alive', 'content-encoding': 'gzip', 'content-type': 'application/ld+json;profile=\"https://w3id.org/did-resolution\"', date: 'Sun, 21 Jul 2024 05:16:26 GMT', server: 'cloudflare', 'transfer-encoding': 'chunked' }, body: ReadableStream { locked: false, state: 'readable', supportsBYOB: true }, bodyUsed: false, ok: true, redirected: false, type: 'default', url: '' } to not exist\n at should.not.exist (node_modules/chai/lib/chai/interface/should.js:208:38)\n at shouldErrorWithData (file:///home/runner/work/did-key-test-suite/did-key-test-suite/tests/assertions.js:32:14)\n at Context. (file:///home/runner/work/did-key-test-suite/did-key-test-suite/tests/10-create.js:172:9)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)"
}
|
If verificationMethod.id is not a valid DID URL, an `invalidDidUrl` error MUST be raised. |
❌
{
"name": "AssertionError",
"message": "expected { …(4) } to have property 'didDocument'",
"stack": "AssertionError: expected { …(4) } to have property 'didDocument'\n at shouldBeDidResolverResponse (file:///home/runner/work/did-key-test-suite/did-key-test-suite/tests/assertions.js:22:20)\n at Context. (file:///home/runner/work/did-key-test-suite/did-key-test-suite/tests/10-create.js:199:9)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)"
}
|
✓
|
❌
{
"name": "AssertionError",
"message": "expected { detail: 'Not Found' } to have property 'didDocument'",
"stack": "AssertionError: expected { detail: 'Not Found' } to have property 'didDocument'\n at shouldBeDidResolverResponse (file:///home/runner/work/did-key-test-suite/did-key-test-suite/tests/assertions.js:22:20)\n at Context. (file:///home/runner/work/did-key-test-suite/did-key-test-suite/tests/10-create.js:199:9)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)"
}
|
❌
{
"name": "AssertionError",
"message": "Expected an error with data: expected undefined to exist",
"stack": "AssertionError: Expected an error with data: expected undefined to exist\n at should.exist (node_modules/chai/lib/chai/interface/should.js:144:34)\n at shouldErrorWithData (file:///home/runner/work/did-key-test-suite/did-key-test-suite/tests/assertions.js:34:10)\n at Context. (file:///home/runner/work/did-key-test-suite/did-key-test-suite/tests/10-create.js:198:9)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)"
}
|
If publicKeyFormat is not known to the implementation, an `unsupportedPublicKeyType` error MUST be raised. |
❌
{
"name": "AssertionError",
"message": "Expected no response: expected Response { status: 200, statusText: 'OK', headers: Headers { 'access-control-allow-origin': '*', authorization: '** SANITIZED TO PREVENT EXPOSING OF SECRETS ***', connection: 'keep-alive', 'content-type': 'application/ld+json;profile=\"https://w3id.org/did-resolution\";charset=utf-8', date: 'Sun, 21 Jul 2024 05:16:24 GMT', 'transfer-encoding': 'chunked' }, body: ReadableStream { locked: false, state: 'readable', supportsBYOB: true }, bodyUsed: false, ok: true, redirected: false, type: 'default', url: '' } to not exist",
"stack": "AssertionError: Expected no response: expected Response { status: 200, statusText: 'OK', headers: Headers { 'access-control-allow-origin': '*', authorization: '** SANITIZED TO PREVENT EXPOSING OF SECRETS ***', connection: 'keep-alive', 'content-type': 'application/ld+json;profile=\"https://w3id.org/did-resolution\";charset=utf-8', date: 'Sun, 21 Jul 2024 05:16:24 GMT', 'transfer-encoding': 'chunked' }, body: ReadableStream { locked: false, state: 'readable', supportsBYOB: true }, bodyUsed: false, ok: true, redirected: false, type: 'default', url: '' } to not exist\n at should.not.exist (node_modules/chai/lib/chai/interface/should.js:208:38)\n at shouldErrorWithData (file:///home/runner/work/did-key-test-suite/did-key-test-suite/tests/assertions.js:32:14)\n at Context. (file:///home/runner/work/did-key-test-suite/did-key-test-suite/tests/10-create.js:212:9)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)"
}
|
✓
|
❌
{
"name": "AssertionError",
"message": "expected 'invalidDid' to equal 'unsupportedPublicKeyType'",
"stack": "AssertionError: expected 'invalidDid' to equal 'unsupportedPublicKeyType'\n at _shouldHaveMetadataError (file:///home/runner/work/did-key-test-suite/did-key-test-suite/tests/assertions.js:85:31)\n at shouldHaveDidResolutionError (file:///home/runner/work/did-key-test-suite/did-key-test-suite/tests/assertions.js:38:10)\n at Context. (file:///home/runner/work/did-key-test-suite/did-key-test-suite/tests/10-create.js:213:9)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)"
}
|
❌
{
"name": "AssertionError",
"message": "Expected no response: expected Response { status: 200, statusText: 'OK', headers: Headers { authorization: '** SANITIZED TO PREVENT EXPOSING OF SECRETS ***', 'cf-cache-status': 'DYNAMIC', 'cf-ray': '8a68b808395910c2-ORD', connection: 'keep-alive', 'content-length': '37', 'content-type': 'application/ld+json;profile=\"https://w3id.org/did-resolution\"', date: 'Sun, 21 Jul 2024 05:16:26 GMT', server: 'cloudflare' }, body: ReadableStream { locked: false, state: 'readable', supportsBYOB: true }, bodyUsed: false, ok: true, redirected: false, type: 'default', url: '' } to not exist",
"stack": "AssertionError: Expected no response: expected Response { status: 200, statusText: 'OK', headers: Headers { authorization: '** SANITIZED TO PREVENT EXPOSING OF SECRETS ***', 'cf-cache-status': 'DYNAMIC', 'cf-ray': '8a68b808395910c2-ORD', connection: 'keep-alive', 'content-length': '37', 'content-type': 'application/ld+json;profile=\"https://w3id.org/did-resolution\"', date: 'Sun, 21 Jul 2024 05:16:26 GMT', server: 'cloudflare' }, body: ReadableStream { locked: false, state: 'readable', supportsBYOB: true }, bodyUsed: false, ok: true, redirected: false, type: 'default', url: '' } to not exist\n at should.not.exist (node_modules/chai/lib/chai/interface/should.js:208:38)\n at shouldErrorWithData (file:///home/runner/work/did-key-test-suite/did-key-test-suite/tests/assertions.js:32:14)\n at Context. (file:///home/runner/work/did-key-test-suite/did-key-test-suite/tests/10-create.js:212:9)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)"
}
|
For Signature Verification Methods, if options.enableExperimentalPublicKeyTypes is set to false and publicKeyFormat is not Multikey, JsonWebKey2020, or Ed25519VerificationKey2020, an `invalidPublicKeyType` error MUST be raised. |
❌
{
"name": "AssertionError",
"message": "Expected property didDereferencingMetadata to exist: expected undefined to exist",
"stack": "AssertionError: Expected property didDereferencingMetadata to exist: expected undefined to exist\n at should.exist (node_modules/chai/lib/chai/interface/should.js:144:34)\n at _shouldHaveMetadataError (file:///home/runner/work/did-key-test-suite/did-key-test-suite/tests/assertions.js:81:10)\n at shouldHaveDidDereferencingError (file:///home/runner/work/did-key-test-suite/did-key-test-suite/tests/assertions.js:42:10)\n at Context. (file:///home/runner/work/did-key-test-suite/did-key-test-suite/tests/10-create.js:230:9)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)"
}
|
✓
|
❌
{
"name": "AssertionError",
"message": "Expected property didDereferencingMetadata to exist: expected undefined to exist",
"stack": "AssertionError: Expected property didDereferencingMetadata to exist: expected undefined to exist\n at should.exist (node_modules/chai/lib/chai/interface/should.js:144:34)\n at _shouldHaveMetadataError (file:///home/runner/work/did-key-test-suite/did-key-test-suite/tests/assertions.js:81:10)\n at shouldHaveDidDereferencingError (file:///home/runner/work/did-key-test-suite/did-key-test-suite/tests/assertions.js:42:10)\n at Context. (file:///home/runner/work/did-key-test-suite/did-key-test-suite/tests/10-create.js:230:9)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)"
}
|
❌
{
"name": "AssertionError",
"message": "Expected no response: expected Response { status: 200, statusText: 'OK', headers: Headers { authorization: '** SANITIZED TO PREVENT EXPOSING OF SECRETS ***', 'cf-cache-status': 'DYNAMIC', 'cf-ray': '8a68b80889a410c2-ORD', connection: 'keep-alive', 'content-encoding': 'gzip', 'content-type': 'application/ld+json;profile=\"https://w3id.org/did-resolution\"', date: 'Sun, 21 Jul 2024 05:16:26 GMT', server: 'cloudflare', 'transfer-encoding': 'chunked' }, body: ReadableStream { locked: false, state: 'readable', supportsBYOB: true }, bodyUsed: false, ok: true, redirected: false, type: 'default', url: '' } to not exist",
"stack": "AssertionError: Expected no response: expected Response { status: 200, statusText: 'OK', headers: Headers { authorization: '** SANITIZED TO PREVENT EXPOSING OF SECRETS ***', 'cf-cache-status': 'DYNAMIC', 'cf-ray': '8a68b80889a410c2-ORD', connection: 'keep-alive', 'content-encoding': 'gzip', 'content-type': 'application/ld+json;profile=\"https://w3id.org/did-resolution\"', date: 'Sun, 21 Jul 2024 05:16:26 GMT', server: 'cloudflare', 'transfer-encoding': 'chunked' }, body: ReadableStream { locked: false, state: 'readable', supportsBYOB: true }, bodyUsed: false, ok: true, redirected: false, type: 'default', url: '' } to not exist\n at should.not.exist (node_modules/chai/lib/chai/interface/should.js:208:38)\n at shouldErrorWithData (file:///home/runner/work/did-key-test-suite/did-key-test-suite/tests/assertions.js:32:14)\n at Context. (file:///home/runner/work/did-key-test-suite/did-key-test-suite/tests/10-create.js:229:9)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)"
}
|
For Encryption Verification Methods, if options.enableExperimentalPublicKeyTypes is set to false and publicKeyFormat is not Multikey, JsonWebKey2020, or X25519KeyAgreementKey2020, an `invalidPublicKeyType` error MUST be raised. |
❌
{
"name": "AssertionError",
"message": "Expected property didDereferencingMetadata to exist: expected undefined to exist",
"stack": "AssertionError: Expected property didDereferencingMetadata to exist: expected undefined to exist\n at should.exist (node_modules/chai/lib/chai/interface/should.js:144:34)\n at _shouldHaveMetadataError (file:///home/runner/work/did-key-test-suite/did-key-test-suite/tests/assertions.js:81:10)\n at shouldHaveDidDereferencingError (file:///home/runner/work/did-key-test-suite/did-key-test-suite/tests/assertions.js:42:10)\n at Context. (file:///home/runner/work/did-key-test-suite/did-key-test-suite/tests/10-create.js:247:9)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)"
}
|
✓
|
❌
{
"name": "AssertionError",
"message": "Expected property didDereferencingMetadata to exist: expected undefined to exist",
"stack": "AssertionError: Expected property didDereferencingMetadata to exist: expected undefined to exist\n at should.exist (node_modules/chai/lib/chai/interface/should.js:144:34)\n at _shouldHaveMetadataError (file:///home/runner/work/did-key-test-suite/did-key-test-suite/tests/assertions.js:81:10)\n at shouldHaveDidDereferencingError (file:///home/runner/work/did-key-test-suite/did-key-test-suite/tests/assertions.js:42:10)\n at Context. (file:///home/runner/work/did-key-test-suite/did-key-test-suite/tests/10-create.js:247:9)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)"
}
|
❌
{
"name": "AssertionError",
"message": "Expected no response: expected Response { status: 200, statusText: 'OK', headers: Headers { authorization: '** SANITIZED TO PREVENT EXPOSING OF SECRETS ***', 'cf-cache-status': 'DYNAMIC', 'cf-ray': '8a68b808ca0410c2-ORD', connection: 'keep-alive', 'content-length': '32', 'content-type': 'application/ld+json;profile=\"https://w3id.org/did-resolution\"', date: 'Sun, 21 Jul 2024 05:16:26 GMT', server: 'cloudflare' }, body: ReadableStream { locked: false, state: 'readable', supportsBYOB: true }, bodyUsed: false, ok: true, redirected: false, type: 'default', url: '' } to not exist",
"stack": "AssertionError: Expected no response: expected Response { status: 200, statusText: 'OK', headers: Headers { authorization: '** SANITIZED TO PREVENT EXPOSING OF SECRETS ***', 'cf-cache-status': 'DYNAMIC', 'cf-ray': '8a68b808ca0410c2-ORD', connection: 'keep-alive', 'content-length': '32', 'content-type': 'application/ld+json;profile=\"https://w3id.org/did-resolution\"', date: 'Sun, 21 Jul 2024 05:16:26 GMT', server: 'cloudflare' }, body: ReadableStream { locked: false, state: 'readable', supportsBYOB: true }, bodyUsed: false, ok: true, redirected: false, type: 'default', url: '' } to not exist\n at should.not.exist (node_modules/chai/lib/chai/interface/should.js:208:38)\n at shouldErrorWithData (file:///home/runner/work/did-key-test-suite/did-key-test-suite/tests/assertions.js:32:14)\n at Context. (file:///home/runner/work/did-key-test-suite/did-key-test-suite/tests/10-create.js:246:9)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)"
}
|
If verificationMethod.controller is not a valid DID, an `invalidDid` error MUST be raised. |
❌
{
"name": "AssertionError",
"message": "Expected a result: expected undefined to exist",
"stack": "AssertionError: Expected a result: expected undefined to exist\n at should.exist (node_modules/chai/lib/chai/interface/should.js:144:34)\n at Context. (file:///home/runner/work/did-key-test-suite/did-key-test-suite/tests/10-create.js:258:16)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)"
}
|
✓
|
❌
{
"name": "AssertionError",
"message": "Expected a result: expected undefined to exist",
"stack": "AssertionError: Expected a result: expected undefined to exist\n at should.exist (node_modules/chai/lib/chai/interface/should.js:144:34)\n at Context. (file:///home/runner/work/did-key-test-suite/did-key-test-suite/tests/10-create.js:258:16)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)"
}
|
❌
{
"name": "AssertionError",
"message": "expected { Success: { …(3) } } to have property 'didDocument'",
"stack": "AssertionError: expected { Success: { …(3) } } to have property 'didDocument'\n at shouldBeDidResolverResponse (file:///home/runner/work/did-key-test-suite/did-key-test-suite/tests/assertions.js:22:20)\n at Context. (file:///home/runner/work/did-key-test-suite/did-key-test-suite/tests/10-create.js:260:9)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)"
}
|