Skip to main content

Testing Storage

info

Please note that this content is under development and is not ready for implementation. This status message will be updated as content development progresses.

The Storage component is a critical part of the UNTP ecosystem, responsible for securely storing and retrieving credentials and related data. This test suite verifies the functionality, security, and accessibility of your storage implementation.

Testing Instructions

To test your Storage implementation, follow these steps:

  1. Update the Configuration:

    • Navigate to the config file: packages/vc-test-suite/config.ts

    • Update the Storage section with your implementation details. The file should look similar to this:

      export default {
      implementationName: 'UNTP ACME',
      testSuites: {
      Storage: {
      url: 'http://localhost:3334/v1/documents',
      encryptionUrl: 'http://localhost:3334/v1/credentials',
      headers: {},
      additionalParams: {},
      additionalPayload: { bucket: 'verifiable-credentials' },
      },
      },
      };

    Adjust the url, encryptionUrl, headers, additionalParams, and additionalPayload as necessary for your implementation.

  2. Run the Test:

    • Navigate to packages/vc-test-suite
    • In your terminal, run the command: yarn test
  3. View Test Results:

    • Navigate to packages/vc-test-suite/reports/index.html
    • Open this file in a web browser
    • Look for the "Storage Service" section to view your test results