-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat(irs-api):[#199] register policy definition for certain bpnls #802
feat(irs-api):[#199] register policy definition for certain bpnls #802
Conversation
CHANGELOG file was not updated! Make sure to include important changes. |
...lient/src/test/java/org/eclipse/tractusx/irs/edc/client/policy/PolicyCheckerServiceTest.java
Outdated
Show resolved
Hide resolved
irs-api/src/main/java/org/eclipse/tractusx/irs/configuration/RegistryConfiguration.java
Outdated
Show resolved
Hide resolved
...istry-client/src/main/java/org/eclipse/tractusx/irs/registryclient/DefaultConfiguration.java
Outdated
Show resolved
Hide resolved
...-store/src/main/java/org/eclipse/tractusx/irs/policystore/persistence/PolicyPersistence.java
Outdated
Show resolved
Hide resolved
...dc-client/src/main/java/org/eclipse/tractusx/irs/edc/client/policy/PolicyCheckerService.java
Outdated
Show resolved
Hide resolved
...tore/src/test/java/org/eclipse/tractusx/irs/policystore/services/PolicyStoreServiceTest.java
Outdated
Show resolved
Hide resolved
1) harden test PolicyStoreServiceTest#whenUpdate by asserting that the creation timestamp is not changed and that the validUntil timestamp is changed as expected 2) clean method signature by moving loop from controller to the service method
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
- updatePolicies_shouldAddPolicyToEachBpn - updatePolicies_shouldAddBpnsToEachPolicy
Hey, please comment out code so I can reply in relevant topics. According to:
|
…certian-bpnls # Conflicts: # CHANGELOG.md
merged main again because of new conflict |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @ds-psosnowski and @ds-jhartmann ,
There are open questions concerning the "default" and why apiAllowedBpn was removed. This may be fine, but I simply don't understand this. Maybe you can clarify this?
|
||
// assert | ||
verify(persistence).delete("bpn2", "testId"); | ||
verify(persistence).save(eq(List.of("bpn1")), any()); | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @ds-psosnowski , I think we should also add the following tests:
- updatePolicies_shouldAddPolicyToEachBpn
- updatePolicies_shouldAddBpnsToEachPolicy
See my review branch: https://github.com/catenax-ng/tx-item-relationship-service/tree/feature/%23199-register-policy-definition-for-certian-bpnls--REVIEW in commit id c999b0a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok looks good now
void putBlob(String targetBlobName, byte[] blob) throws BlobPersistenceException; | ||
|
||
Optional<byte[]> getBlob(String sourceBlobName) throws BlobPersistenceException; | ||
|
||
Map<String, byte[]> getAllBlobs() throws BlobPersistenceException; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @ds-psosnowski , Something similar like my suggestion above in PolicyPersistence?
...dc-client/src/main/java/org/eclipse/tractusx/irs/edc/client/policy/PolicyCheckerService.java
Outdated
Show resolved
Hide resolved
...-store/src/main/java/org/eclipse/tractusx/irs/policystore/persistence/PolicyPersistence.java
Outdated
Show resolved
Hide resolved
irs-api/src/main/java/org/eclipse/tractusx/irs/configuration/RegistryConfiguration.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Clarified apiAllowedBpn and default handling with @ds-psosnowski via msteams. Makes sense to me now. Therefore approved from my side.
Quality Gate passedIssues Measures |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
story: eclipse-tractusx#199