Skip to content

Commit

Permalink
chore(testing):[#358] fix data upload script
Browse files Browse the repository at this point in the history
  • Loading branch information
ds-jhartmann committed May 6, 2024
1 parent b5eaecd commit 410b3ae
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions local/testing/testdata/transform-and-upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ def create_registry_asset(edc_upload_urls_, edc_asset_path_, edc_contract_defini
if response_.status_code == 200 and len(catalog_response_['dcat:dataset']) >= 1:
first_offer_ = catalog_response_['dcat:dataset']
print(
f"Offer with type {first_offer_['edc:type']} already exists. Skipping creation.")
f"Offer with type {first_offer_['type']} already exists. Skipping creation.")
else:
payload_ = create_edc_registry_asset_payload(aas_url_, registry_asset_id_)
response_ = session_.request(method="POST", url=asset_url_,
Expand Down Expand Up @@ -517,10 +517,9 @@ def search_for_asset_in_catalog(edc_catalog_path_, edc_upload_url_, edc_url_, he
"@context": {
"odrl": "http://www.w3.org/ns/odrl/2/"
},
"@type": "odrl:Set",
"@id": "default-policy",
"policy": {
"@type": "Policy",
"@type": "odrl:Set",
"odrl:permission": []
}
}
Expand Down

0 comments on commit 410b3ae

Please sign in to comment.