Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 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
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,24 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## v3.4.1

The following Changelog lists the changes. Please refer to the [documentation](docs/README.md) for configuration needs and understanding the concept changes.

The **need for configuration updates** is **marked bold**.

### Added

- /

### Changed

- /

### Fixes

- fixed invalid framwork policy in the bruno DTR setup and added missing namespaces for access policies ([#967](https://github.com/eclipse-tractusx/puris/pull/967))

## v3.4.0

The following Changelog lists the changes. Please refer to the [documentation](docs/README.md) for configuration needs and understanding the concept changes.
Expand Down
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't provide a migration in the documentation or somewhere. I would opt to exclude this change in this PR. How about you?

If we change it, we need some kind of guidance for migration + we then can enable the policy validation in the local deployment

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree with you. This should be handled and properly documented separately. I've removed the change for now

Original file line number Diff line number Diff line change
Expand Up @@ -167,13 +167,13 @@ public JsonNode buildBpnAndMembershipRestrictedPolicy(Partner partner) {
List<PolicyConstraint> constraints = new ArrayList<>();

constraints.add(new PolicyConstraint(
"BusinessPartnerNumber",
TX_NAMESPACE + "BusinessPartnerNumber",
"eq",
partner.getBpnl()
));

constraints.add(new PolicyConstraint(
"Membership",
CX_POLICY_NAMESPACE + "Membership",
"eq",
"active"
));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ body:json {
"@type" : "LogicalConstraint",
"and" : [ {
"@type" : "LogicalConstraint",
"leftOperand" : "cx-policy:Membership",
"leftOperand" : "cx-policy:FrameworkAgreement",
"operator" : "eq",
"rightOperand" : "active"
"rightOperand" : "DataExchangeGovernance:1.0"
}, {
"@type" : "LogicalConstraint",
"leftOperand" : "cx-policy:UsagePurpose",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,14 @@ tests {
expect(res.getStatus()).to.equal(200);
});

var jsonData = res.getBody();
let jsonData = res.getBody();

var catalog = jsonData['dcat:dataset'];
var itemStockOffer = '';
let catalog = jsonData['dcat:dataset'];
let itemStockOffer = '';

offer = catalog["odrl:hasPolicy"]
offerId = offer["@id"]
assetId = catalog['id']
let offer = catalog["odrl:hasPolicy"]
const offerId = offer["@id"]
const assetId = catalog['id']

offer["offerId"] = offerId
delete offer["@id"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ auth:apikey {

script:pre-request {
console.log("Waiting 5 seconds to let negotiation terminate");
await new Promise(resolve => setTimeout(resolve, 5000));
await (new Promise(resolve => setTimeout(resolve, 5000)));
}

tests {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,13 @@ body:json {
}

tests {
var jsonData = res.getBody();
let jsonData = res.getBody();

var catalog = jsonData['dcat:dataset'];
let catalog = jsonData['dcat:dataset'];

offer = catalog["odrl:hasPolicy"]
offerId = offer["@id"]
assetId = catalog['id']
let offer = catalog["odrl:hasPolicy"]
const offerId = offer["@id"]
const assetId = catalog['id']

const [encodedContractDefintionId] = offerId.split(':')
console.log(encodedContractDefintionId)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ puris.demandsubmodel.apiassetid=demandsubmodel-api-asset
puris.deliverysubmodel.apiassetid=deliverysubmodel-api-asset
puris.daysofsupplysubmodel.apiassetid=daysofsupplysubmodel-api-asset
puris.notification.apiassetid=notification-api-asset
puris.frameworkagreement.credential=Puris
puris.frameworkagreement.credential=DataExchangeGovernance
puris.frameworkagreement.version=1.0
puris.purpose.name=cx.puris.base
puris.purpose.version=1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ puris.demandsubmodel.apiassetid=demandsubmodel-api-asset
puris.deliverysubmodel.apiassetid=deliverysubmodel-api-asset
puris.daysofsupplysubmodel.apiassetid=daysofsupplysubmodel-api-asset
puris.notification.apiassetid=notification-api-asset
puris.frameworkagreement.credential=Puris
puris.frameworkagreement.credential=DataExchangeGovernance
puris.frameworkagreement.version=1.0
puris.purpose.name=cx.puris.base
puris.purpose.version=1
Expand Down
Loading