-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IRS Policy Validation accepts subset of AND constraint #649
Comments
…adjust-tavern-tests-to-http-206-code feature/eclipse-tractusx#279: Added and adjusted tavern tests to http code 206 for running jobs
Planning 2Check for policies is done here Lines 46 to 58 in 72b0396
Make sure that and constraints match for all constraints This Test should validate that the check is working as expected: https://github.com/eclipse-tractusx/item-relationship-service/blob/a45960ba21905403ef6d55883709ad0e817221ac/irs-edc-client/src/test/java/org/eclipse/tractusx/irs/edc/client/policy/ConstraintCheckerServiceTest.java
|
@ds-jhartmann: shouldn't it be the other way around: andConstraint one constraint more than acceptedPolicy?
|
Oh, you're right. The bug describes your behavior. However, the Test example I provided should also fail, since the Policy does not match exactly |
- but results in failures in PolicyCheckerServiceTest
…NameGenerator in order to make test names more readable when executed in the IDE
…constraints (must have same amount of constraints to ensure that there isn't any subset match in any direction)
Outcome
PR |
Successfully tested: IRS accepted policy has 3 constraints: syntax and value match EDC policy |
LGFM. PO acceptance in behalf of @jzbmw . |
Description
Current behaviour
When IRS accepted policy has a AND constraint with 2 constraints and the EDC offer policy has a AND constraint with 1 constraint, IRS accepts the Policy if one of the IRS accepted policies matches the EDC offer policy AND constraint.
Expected behavior
Steps to reproduce the Bug
The text was updated successfully, but these errors were encountered: