Informatievlaanderen / VSDS-LDES-E2E-testing

End-to-end tests and tooling needed for testing LDES components build as part of VSDS
European Union Public License 1.2
5 stars 2 forks source link

Test 034: Negotiate a contract - Consumer ID, and provider ID #417

Open xdxxxdx opened 6 months ago

xdxxxdx commented 6 months ago

https://github.com/Informatievlaanderen/VSDS-LDES-E2E-testing/blob/32df2065d0dad4794c3cb88b2a783bea52551e41/tests/034.dataspace-connector-consumer-and-provider/README.md?plain=1#L585

https://github.com/Informatievlaanderen/VSDS-LDES-E2E-testing/blob/32df2065d0dad4794c3cb88b2a783bea52551e41/tests/034.dataspace-connector-consumer-and-provider/README.md?plain=1#L586

Consumer ID and Provider ID need to be set to DID

{
  "@context": {
    "edc": "https://w3id.org/edc/v0.0.1/ns/",
    "odrl": "http://www.w3.org/ns/odrl/2/"
  },
  "@type": "NegotiationInitiateRequestDto",
  "connectorId": "provider",
  "connectorAddress": "http://provider-connector:19194/protocol",
  "consumerId": "did:web:did-server:consumer",
  "providerId": "did:web:did-server:provider",
  "protocol": "dataspace-protocol-http",
  "offer": {
   "offerId": "MQ==:ZGV2aWNlcw==:NDFiZTI1OGYtMDQyOC00MTQ4LTlmMDgtZDE3Mzg4ZjZlOTZm",
   "assetId": "devices",
   "policy": {
     "@id": "MQ==:ZGV2aWNlcw==:NDFiZTI1OGYtMDQyOC00MTQ4LTlmMDgtZDE3Mzg4ZjZlOTZm",
     "@type": "Set",
     "odrl:permission": [],
     "odrl:prohibition": [],
     "odrl:obligation": [],
     "odrl:target": "devices"
   }
  }
}

Without setting to DID: We can see the DID is not resolved, from consumer image The status of the contract never arrives to Finalized mode, always stays at Verified.

image