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

docs: technical interoperability testing #86

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 4 additions & 11 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,15 @@
{
"root": true,
"plugins": [
"@typescript-eslint",
"prettier"
],
"plugins": ["@typescript-eslint", "prettier"],
"ignorePatterns": ["documentation"],
"parser": "@typescript-eslint/parser",
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking"
],
"parserOptions": {
"project": [
"./packages/tsconfig.settings.json",
"./packages/*/tsconfig.json"
]
"project": ["./packages/tsconfig.settings.json", "./packages/*/tsconfig.json"]
},
"rules": {
"no-console": "warn",
Expand All @@ -30,9 +25,7 @@
},
"overrides": [
{
"files": [
"*.js"
],
"files": ["*.js"],
"rules": {
"@typescript-eslint/no-var-requires": "off"
}
Expand Down
36 changes: 36 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Deploy to GitHub Pages

on:
push:
branches:
- docs/initialise_documentation_site

jobs:
deploy:
name: Deploy to GitHub Pages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 20
cache: yarn

- name: Install dependencies
run: cd website && yarn install --frozen-lockfile
- name: Build website
run: cd website && yarn build

# Popular action to deploy to GitHub Pages:
# Docs: https://github.com/peaceiris/actions-gh-pages#%EF%B8%8F-docusaurus
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
# Build output to publish to the `gh-pages` branch:
publish_dir: ./website/build
# The following lines assign commit authorship to the official
# GH-Actions bot for deploys to `gh-pages` branch:
# https://github.com/actions/checkout/issues/13#issuecomment-724415212
# The GH actions bot is used by default if you didn't specify the two fields.
# You can swap them out with your own user credentials.
24 changes: 24 additions & 0 deletions documentation/docs/test-suites/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
sidebar_position: 1
title: Test Suites
---

import Disclaimer from '../\_disclaimer.mdx';

<Disclaimer />

The UNTP Test Suite comprises three test suites:

1. [**Technical Interoperability**](/docs/test-suites/technical-interoperability): Validates the technical aspects of implementations against UNTP protocol requirements.

2. [**Semantic Interoperability**](/docs/test-suites/semantic-interoperability): Ensures credentials produced by an implementation are semantically consistent with the UNTP protocol, allowing for conformance while permitting extensions.

3. **Graph Validation**: Assesses the entire trust graph produced by an implementation, verifying the integrity and validity of relationships.

The Test Suite follows a tiered approach:

- [**Tier 1**](/docs/test-suites/technical-interoperability): Technical interoperability
- [**Tier 2**](/docs/test-suites/semantic-interoperability): Semantic interoperability
- **Tier 3**: Graph validation

This structure enables progressive validation of UNTP implementations. The Semantic Interoperability and Graph Validation components are extensible, allowing customisation for specific industry needs whilst maintaining core UNTP compliance.
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
sidebar_position: 2
title: Getting Started
---

import Disclaimer from '../../\_disclaimer.mdx';

<Disclaimer />

The Getting Started section covers the following topics for technical interoperability testing:

1. **Installation**: Learn how to set up the necessary environment for technical interoperability testing. This includes installing required software, setting up test environments, and preparing your system for running the various test suites.

2. **Configuration**: Understand how to configure the different components of the technical interoperability test suite. We'll cover:

- Setting up the W3C V2 VCDM test suite for Verifiable Credentials
- Configuring UNTP-specific extension tests
- Preparing for Identity Resolution (IDR) testing
- Setting up storage service testing
- Configuring transparency graph validation tests

3. **Usage**: Learn how to run the various components of the technical interoperability test suite and interpret the results. This section will guide you through:
- Running the W3C V2 VCDM tests
- Executing UNTP extension tests
- Performing IDR compliance checks
- Conducting storage and data retrieval tests
- Validating transparency graphs

By the end of this section, you will have a solid foundation for installing, configuring, and using the UNTP Technical Interoperability Test Suite. You'll be able to validate your UNTP implementation's technical components against the required standards.
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
sidebar_position: 10
title: Identity Resolution (IDR)
---

import Disclaimer from '../../../\_disclaimer.mdx';

<Disclaimer />

## Overview

The Identity Resolution (IDR) component of the UNTP ecosystem ensures that identifiers used within the system are properly managed, resolved, and interoperable. This includes:

- Data carriers (e.g., barcodes, QR codes, RFID tags)
- Identifier structure
- IDR ISO compliance

Proper implementation of IDR is crucial for maintaining the integrity and traceability of products and entities within the UNTP system.

For testing procedures, please refer to the [Testing](./testing) page.
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
sidebar_position: 11
title: Testing Identity Resolution
---

import Disclaimer from '../../../\_disclaimer.mdx';

<Disclaimer />

Detailed testing procedures for the Identity Resolution component will be provided in future updates. These tests will cover:

1. Data carrier compatibility and readability
2. Correct implementation of identifier structures
3. Compliance with relevant ISO standards

Please check back later for specific testing instructions and requirements.
20 changes: 20 additions & 0 deletions documentation/docs/test-suites/technical-interoperability/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
sidebar_position: 1
title: Technical Interoperability
---

import Disclaimer from '../../\_disclaimer.mdx';

<Disclaimer />

The [United Nations Transparency Protocol (UNTP)](https://uncefact.github.io/spec-untp/) Technical Interoperability test suite ensures that implementations of the UNTP protocol meet the required standards for interoperability. This suite comprises both internal tests developed by the UNTP community and external tests created by other communities.

The test suite covers five main areas:

1. [Verifiable Credential Interoperability](./verifiable-credentials)
2. [UNTP-specific Extensions](./untp-extensions)
3. [Identity Resolution (IDR)](./identity-resolution)
4. [Storage](./storage)
5. [Transparency Graphs](./transparency-graphs)

Each section of the test suite focuses on different aspects of the UNTP implementation, ensuring comprehensive coverage of all technical interoperability requirements. Please refer to the individual sections for more detailed information and testing procedures.
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
---
sidebar_position: 3
title: Installation
---

import Disclaimer from '../../\_disclaimer.mdx';

<Disclaimer />

Before you begin installing the Tier 1 test suite, ensure that you have the [dependant services](/docs/mock-apps/dependent-services/) and the following prerequisites in place:

### Prerequisites

1. Clone the repository:

```
git clone https://github.com/uncefact/tests-untp.git
```

2. Node.js version 20.12.2: Make sure you have Node.js version 20.12.2 installed on your system. You can download it from the official Node.js website: [https://nodejs.org](https://nodejs.org)

3. Yarn version 1.22.22: Ensure that you have Yarn version 1.22.22 installed. You can install it by running the following command:
```
npm install -g [email protected]
```

### Installation Steps

Once you have met the prerequisites, follow these steps to install the test suite dependencies:

1. Navigate to the cloned repository directory:

```
cd tests-untp/packages/vc-test-suite
```

2. Install the dependencies using Yarn:

```
yarn install
```

3. Create a folder named reports:
```
mkdir reports
```

After completing these steps, you will have all the necessary dependencies for the internal test suite installed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
sidebar_position: 8
title: Storage
---

import Disclaimer from '../../../\_disclaimer.mdx';

<Disclaimer />

## Overview

The Storage component of the UNTP ecosystem ensures that credentials and related data are securely stored and easily retrievable. This section covers the testing procedures for implementing storage solutions that are compatible with the UNTP protocol.

Key aspects of the storage system that will be tested include:

1. Data security and encryption
2. Accessibility and retrieval mechanisms

Proper implementation and testing of the Storage component are crucial for maintaining the security, integrity, and accessibility of credentials within the UNTP system.

For specific testing procedures, please refer to the [Testing](./testing) page.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
sidebar_position: 9
title: Testing Storage
---

import Disclaimer from '../../../\_disclaimer.mdx';

<Disclaimer />

The Storage component testing suite focuses on verifying the security and accessibility of stored credentials and related data.

Detailed testing procedures and instructions for running the test suite will be provided in future updates. These tests will ensure that your Storage implementation meets the necessary standards for the UNTP ecosystem.

Please check back later for specific testing instructions and requirements.
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
sidebar_position: 12
title: Transparency Graphs
---

import Disclaimer from '../../../\_disclaimer.mdx';

<Disclaimer />

## Overview

Transparency Graphs are a key component of the UNTP ecosystem, providing a mechanism to verify the contextual scope of linked credentials and create a comprehensive view of a product's ESG footprint throughout its value chain.

Key aspects of Transparency Graphs include:

1. **Linked Credentials**: Assessing bundles of linked credentials drawn from all or part of a value chain.
2. **Contextual Verification**: Verifying the context of related credentials to prevent fraudulent or mismatched attestations.
3. **UNTP Core Vocabulary**: Utilizing uniquely identified linked data entities such as Product, Location, Facility, Party, Standard, Regulation, Criteria, Declaration, Attestation, and Endorsement.

Transparency Graphs enable the construction of Digital Product Passports and Digital Conformity Credentials, allowing for a comprehensive and verifiable representation of a product's journey and characteristics.

For testing procedures and more detailed information, please refer to the [Testing](./testing) page.
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
sidebar_position: 13
title: Testing Transparency Graphs
---

import Disclaimer from '../../../\_disclaimer.mdx';

<Disclaimer />

Detailed testing procedures for Transparency Graphs will be provided in future updates. These tests will cover:

1. Correct linking of credentials within the graph
2. Verification of contextual scope for linked credentials
3. Proper implementation of the UNTP core vocabulary

Please check back later for specific testing instructions and requirements.
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
sidebar_position: 5
title: UNTP Extensions
---

import Disclaimer from '../../../\_disclaimer.mdx';

<Disclaimer />

## Overview

The UNTP Extensions section covers specific features and functionalities that extend the core Verifiable Credentials model to meet the needs of the UNTP ecosystem. These extensions include:

1. [QR Link / Encryption](./qr-link-encryption)
2. [Rendering](./rendering)

These extensions are crucial for ensuring that UNTP implementations can effectively manage, verify, and display credentials in a standardised manner across different systems and applications.
Loading
Loading