Skip to content

BPN-DID Resolution Service (BDRS): E2E test spec

A partner is found and its catalog is reached with nothing but its BPN, and it resolves to the right identity.

Repository: bpn-did-resolution-service · Spec 1.0 · Draft · Raw spec for your AI · All specs

Note

Not run end to end yet. The test proves the directory by its effect: a partner is reached with nothing but its BPN. The discovery steps are Saturn only.

1 · The product in brief

In the dataspace a company is known by its Business Partner Number (BPN), but connectors talk to each other by DID, a kind of web address for an identity. The BPN-DID Resolution Service (BDRS) is the directory between the two: give it a BPN and it returns the company's DID. Without it, a partner would need to know the other company's technical address in advance.

2 · The journey the test tells

Side Played by
Your side (SUT) The provider's connector, registered in the BDRS under its BPN
Partner side (engine) The partner's connector, where the tests run from
  1. The partner knows only the provider's BPN.
  2. The partner's connector asks for the provider's connector by that BPN.
  3. It gets back an address and an identity, and the identity is the provider's DID.
  4. The partner asks for the catalog by BPN and sees an offer the provider published.

3 · The TCK you deliver

tck/e2e/
├── index.yaml                # the manifest
└── tests/
    ├── bpn_resolves_to_the_provider.yaml
    ├── catalog_by_bpn.yaml
    └── unknown_offer_by_bpn_is_not_found.yaml

.tractusx                     # e2eTest: tck/e2e
.github/workflows/e2e-test.yml
Manifest field Value
kind · syntax tck · v1-alpha
id bpn-did-resolution-service-e2e
metadata.license Apache-2.0
metadata.standards []
dataspace ecosystem: Catena-X, version: saturn
infrastructure.engine connector
infrastructure.sut connector

Variables (env.variables)

id Kind What it is Example In the workflow
sut_bpnl variable/type/string, source: input, scope: sut BPN of the provider, the only thing the partner knows. BPNL000000000001 Filled from sut_bpnl.
product_internal_url variable/type/string, source: input, scope: sut Any data behind the asset of test 2. http://tck-echo Filled from product_internal_url, a traefik/whoami echo service.
access_policy config/connector/policy Who may see the offer: active members. – Written in the manifest
usage_policy config/connector/policy Copy it from the template. – Written in the manifest

Runs in the workshop: Yes. Workflow input run-in-toolbox: true.

4 · The tests

Every row is one step. Every ☐ is one validate entry. The step names are TestLab's own: look each one up in the IDE's block catalog for its inputs.

Test 1 · The provider's BPN resolves to the provider's identity

tests/bpn_resolves_to_the_provider.yaml · id bpn-resolves-to-the-provider · Positive · Contract

Proves: The directory entry is right. A BPN that resolved to another identity would send partners to the wrong company.

execution

# What happens Step Must be true
1 Discover the provider's connector from its BPN. connector/consumer/discover_connector ☐ An address is returned.
☐ The counter_party_id equals infrastructure.sut.connector.participant_id.

Test 2 · A partner reaches the provider's catalog with nothing but its BPN

tests/catalog_by_bpn.yaml · id catalog-by-bpn · Journey · Positive

Proves: The whole path works from a BPN to an offer, as a partner who knows nothing else would use it.

setup

# What happens Step Must be true
1 Create the access policy. connector/provider/create_policy –
2 Create the usage policy. connector/provider/create_policy –
3 Create an asset with id bpn-did-resolution-service-e2e-asset. connector/provider/create_asset –
4 Publish the offer under both policies. connector/provider/create_contract_definition –

execution

# What happens Step Must be true
1 Ask for the catalog by sut_bpnl, filtered to the asset id. connector/consumer/query_catalog_by_bpnl ☐ The list of datasets has exactly one entry.

teardown

# What happens Step Must be true
1 Delete the contract definition. connector/provider/delete_contract_definition –
2 Delete the asset. connector/provider/delete_asset –
3 Delete the usage policy. connector/provider/delete_policy –
4 Delete the access policy. connector/provider/delete_policy –

Test 3 · An offer that was never published is not found by BPN either

tests/unknown_offer_by_bpn_is_not_found.yaml · id unknown-offer-by-bpn-is-not-found · Negative

Proves: Reaching a partner by BPN shows its real catalog, not a guess.

execution

# What happens Step Must be true
1 Ask for the catalog by sut_bpnl, filtered to an asset id that was never published. connector/consumer/query_catalog_by_bpnl ☐ The list of datasets is empty.

5 · Break it on purpose

A check that cannot fail proves nothing. Make each change once, see the test go red for this reason, and change it back.

Test Change Expect
bpn_resolves_to_the_provider.yaml Compare counter_party_id with infrastructure.engine.connector.participant_id. The check fails, because the BPN resolves to the provider, not to the partner.
catalog_by_bpn.yaml Expect two datasets. The length check fails with one.

6 · Watch out

  • A red result can also be the connector's fault. Say so in the pull request.
  • participant_id is a DID. The BPN is the input variable sut_bpnl.
  • discover_connector and query_catalog_by_bpnl are registered for Saturn only. Keep dataspace.version saturn.

7 · Not in this spec

  • The BDRS management API (adding and removing entries). The toolbox fills the directory before the tests run.
  • An unknown BPN. How a connector reports a BPN it cannot resolve is still to be checked in a run; add the test once it is.

8 · Give it to your assistant

Attach or paste the raw spec, then send:

Build the E2E test project for BPN-DID Resolution Service (BDRS) in tck/e2e, exactly as the spec
bpn-did-resolution-service.yaml describes it. The manifest id is bpn-did-resolution-service-e2e; every test
file repeats it as namespace. Write the required tests first: bpn_resolves_to_the_provider.yaml, catalog_by_bpn.yaml, unknown_offer_by_bpn_is_not_found.yaml.
Use only the steps the spec names, and look each one up in the block catalog
before you write its inputs. Every check in the spec becomes one validate entry.
Addresses, BPNs and secrets are variables, never values in a test.
Compile after each file and fix what the compiler reports.

Done when

The definition of done for every product, and:

  • tests/bpn_resolves_to_the_provider.yaml is green.
  • tests/catalog_by_bpn.yaml is green.
  • tests/unknown_offer_by_bpn_is_not_found.yaml is green.

Sources

NOTICE

This work is licensed under the CC-BY-4.0.

About this tutorial

Version
v1.0
Added
Nov 2026
Updated
Nov 2026

Authors

Versions

  1. 1.0 Nov 2026 First published, for the Tractus-X Community Days 2026.