Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Method has non-conform DID Core Datetime #5

Open
BernhardFuchs opened this issue May 20, 2021 · 1 comment
Open

Method has non-conform DID Core Datetime #5

BernhardFuchs opened this issue May 20, 2021 · 1 comment

Comments

@BernhardFuchs
Copy link
Member

When running the did-test-suite the method has 4 failing tests, all related to DID Core Datetime:

  ● 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ccp:3CzQLF3qfFVQ1CjGVzVRZaFXrjAd (expected outcome: defaultOutcomes) › DID Document Metadata › created › 7.1.3 DID Document Metadata - The value of the property MUST be a string formatted as an XML Datetime normalized to UTC 00:00:00 and without sub-second decimal precision.

    expect(received).toBeDidCoreDatetime()

    Expected value to be of a valid DID Core Datetime:
      "a valid DID Core Datetime"
    Received:
      "2019-10-23T09:14:17.961Z"

      185 |     if (didDocumentMetadata.hasOwnProperty('created')) {
      186 |       it('7.1.3 DID Document Metadata - The value of the property MUST be a string formatted as an XML Datetime normalized to UTC 00:00:00 and without sub-second decimal precision.', async () => {
    > 187 |         expect(didDocumentMetadata['created']).toBeDidCoreDatetime();
          |                                                ^
      188 |       });
      189 |     }
      190 |   });

      at Object.<anonymous> (suites/did-resolution/did-resolution.js:187:48)

  ● 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ccp:3CzQLF3qfFVQ1CjGVzVRZaFXrjAd (expected outcome: defaultOutcomes) › DID Document Metadata › updated › 7.1.3 DID Document Metadata - The value of the property MUST follow the same formatting rules as the created property.

    expect(received).toBeDidCoreDatetime()

    Expected value to be of a valid DID Core Datetime:
      "a valid DID Core Datetime"
    Received:
      "2019-10-23T09:14:17.961Z"

      192 |     if (didDocumentMetadata.hasOwnProperty('updated')) {
      193 |       it('7.1.3 DID Document Metadata - The value of the property MUST follow the same formatting rules as the created property.', async () => {
    > 194 |         expect(didDocumentMetadata['updated']).toBeDidCoreDatetime();
          |                                                ^
      195 |       });
      196 |       if (didDocumentMetadata.hasOwnProperty('created')) {
      197 |         it('7.1.3 DID Document Metadata - updated is later or equal than created.', async () => {

      at Object.<anonymous> (suites/did-resolution/did-resolution.js:194:48)

  ● 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ccp:ceNobbK6Me9F5zwyE3MKY88QZLw (expected outcome: defaultOutcomes) › DID Document Metadata › created › 7.1.3 DID Document Metadata - The value of the property MUST be a string formatted as an XML Datetime normalized to UTC 00:00:00 and without sub-second decimal precision.

    expect(received).toBeDidCoreDatetime()

    Expected value to be of a valid DID Core Datetime:
      "a valid DID Core Datetime"
    Received:
      "2019-10-21T11:12:13.065Z"

      185 |     if (didDocumentMetadata.hasOwnProperty('created')) {
      186 |       it('7.1.3 DID Document Metadata - The value of the property MUST be a string formatted as an XML Datetime normalized to UTC 00:00:00 and without sub-second decimal precision.', async () => {
    > 187 |         expect(didDocumentMetadata['created']).toBeDidCoreDatetime();
          |                                                ^
      188 |       });
      189 |     }
      190 |   });

      at Object.<anonymous> (suites/did-resolution/did-resolution.js:187:48)

  ● 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ccp:ceNobbK6Me9F5zwyE3MKY88QZLw (expected outcome: defaultOutcomes) › DID Document Metadata › updated › 7.1.3 DID Document Metadata - The value of the property MUST follow the same formatting rules as the created property.

    expect(received).toBeDidCoreDatetime()

    Expected value to be of a valid DID Core Datetime:
      "a valid DID Core Datetime"
    Received:
      "2019-10-21T11:17:49.379Z"

      192 |     if (didDocumentMetadata.hasOwnProperty('updated')) {
      193 |       it('7.1.3 DID Document Metadata - The value of the property MUST follow the same formatting rules as the created property.', async () => {
    > 194 |         expect(didDocumentMetadata['updated']).toBeDidCoreDatetime();
          |                                                ^
      195 |       });
      196 |       if (didDocumentMetadata.hasOwnProperty('created')) {
      197 |         it('7.1.3 DID Document Metadata - updated is later or equal than created.', async () => {

      at Object.<anonymous> (suites/did-resolution/did-resolution.js:194:48)
@BernhardFuchs
Copy link
Member Author

BernhardFuchs commented May 26, 2021

@hello2mao @yjjnls Are you aware of this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant