Skip to content

Commit

Permalink
fix: add mising dependencies for provider and consumer in Sample03 an…
Browse files Browse the repository at this point in the history
…d update the format of json files for the same sample
  • Loading branch information
majadlymhmd committed Oct 10, 2023
1 parent cd92e2f commit c6670dd
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 43 deletions.
47 changes: 14 additions & 33 deletions transfer/transfer-04-open-telemetry/contractoffer.json
Original file line number Diff line number Diff line change
@@ -1,43 +1,24 @@
{
"@context": {
"edc": "https://w3id.org/edc/v0.0.1/ns/",
"odrl": "http://www.w3.org/ns/odrl/2/"
},
"@type": "NegotiationInitiateRequestDto",
"connectorId": "provider",
"consumerId": "consumer",
"providerId": "provider",
"connectorAddress": "http://provider:8282/protocol",
"protocol": "dataspace-protocol-http",
"offer": {
"offerId": "1:3a75736e-001d-4364-8bd4-9888490edb58",
"offerId": "1:test-document:3a75736e-001d-4364-8bd4-9888490edb58",
"assetId": "test-document",
"policy": {
"uid": "956e172f-2de1-4501-8881-057a57fd0e69",
"permissions": [
{
"edctype": "dataspaceconnector:permission",
"uid": null,
"target": "test-document",
"action": {
"type": "USE",
"includedIn": null,
"constraint": null
},
"assignee": null,
"assigner": null,
"constraints": [],
"duties": []
}
],
"prohibitions": [],
"obligations": [],
"extensibleProperties": {},
"inheritsFrom": null,
"assigner": null,
"assignee": null,
"target": null,
"@type": {
"@policytype": "set"
}
},
"asset": {
"properties": {
"asset:prop:id": "test-document"
}
"@id": "1:test-document:956e172f-2de1-4501-8881-057a57fd0e69",
"@type": "set",
"odrl:permission": [],
"odrl:prohibition": [],
"odrl:obligation": [],
"odrl:target": "test-document"
}
}
}
21 changes: 11 additions & 10 deletions transfer/transfer-04-open-telemetry/filetransfer.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
{
"protocol": "dataspace-protocol-http",
"assetId": "test-document",
"contractId": "{agreement ID}",
"@context": {
"edc": "https://w3id.org/edc/v0.0.1/ns/"
},
"@type": "TransferRequestDto",
"dataDestination": {
"type": "File",
"path": "/samples/output-file.txt",
"keyName": "keyName",
"type": "File"
},
"transferType": {
"contentType": "application/octet-stream",
"isFinite": true
"keyName": "keyName"
},
"protocol": "dataspace-protocol-http",
"assetId": "test-document",
"contractId": "{agreement ID}",
"connectorId": "consumer",
"connectorAddress": "http://provider:8282/protocol",
"connectorId": "consumer"
"privateProperties": {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ dependencies {

implementation(libs.edc.auth.tokenbased)
implementation(libs.edc.management.api)
implementation(libs.edc.data.plane.selector.core)

implementation(libs.edc.dsp)
runtimeOnly(libs.edc.jersey.micrometer)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ dependencies {

implementation(libs.edc.auth.tokenbased)
implementation(libs.edc.management.api)
implementation(libs.edc.control.plane.api.client)

implementation(libs.edc.dsp)

Expand Down

0 comments on commit c6670dd

Please sign in to comment.