Skip to content
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

Fix/841 fill bpn in tombstone #863

Merged

Conversation

dsmf
Copy link
Contributor

@dsmf dsmf commented Aug 1, 2024

Description

Pre-review checks

Please ensure to do as many of the following checks as possible, before asking for committer review:

dsmf added 13 commits July 30, 2024 13:28
…ods as deprecated

use builder instead, even though this will be more eloquent it will be more flexible and easier to understand and change
…erException

single field builder and private setters in the class are sufficient here and reduce amount of boilerplate code
…test

- Use the new EdcRetrieverException.Builder.
- Add endpoint url(s) and BPN in some places.
- Enhance tests.
- Remove the constructor methods Tombstone.from. Builder is used now.
- General code cleanup and formatting improvements across multiple test and implementation classes to enhance readability and maintainability including extraction of code to methods.
@dsmf dsmf marked this pull request as ready for review August 2, 2024 02:55
dsmf and others added 3 commits August 2, 2024 11:05
…emock/DiscoveryServiceWiremockSupport.java

Co-authored-by: Jaro Hartmann <57985712+ds-jhartmann@users.noreply.github.com>
assertThat(actualTombstone.getBusinessPartnerNumber()).isEqualTo(TEST_BPN);
assertThat(actualTombstone.getEndpointURL()).describedAs("Tombstone should contain all EDC URLs")
.isEqualTo(String.join("; ", edcUrls));

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@ds-jhartmann when I add the following assertions

        assertThat(rootCauses).hasSize(edcUrls.size());
        edcUrls.forEach(edcUrl -> assertThat(rootCauses).anyMatch(rootCause -> rootCause.contains(edcUrl)));

this fails. It seems that getting the root causes is somehow incomplete?!

@dsmf dsmf requested a review from ds-jhartmann August 2, 2024 11:52
Copy link
Contributor

@ds-jhartmann ds-jhartmann left a comment

Choose a reason for hiding this comment

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

LGTM

@ds-jhartmann ds-jhartmann merged commit 757974a into eclipse-tractusx:main Aug 5, 2024
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants