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

refactor(test): make Participant lazy #4723

Merged
merged 2 commits into from
Jan 15, 2025

Conversation

ndr-brt
Copy link
Member

@ndr-brt ndr-brt commented Jan 14, 2025

What this PR changes/adds

Completes the work done in #4712 by making Participant class lazy in creating port configurations.

Why it does that

avoid testcontainers flaky tests

Further notes

  • Endpoint class has been deprecated, as it was just an unnecessary wrapper around RestAssured's RequestSpecification. with the addition of a enrichManagementRequest adopters can eventually enrich the management request used by tests object (e.g. by adding authentication headers, as it is currently done in the tractusx-edc tests).
  • no need to keep a request object for protocol endpoint, as it is not supposed to be called in E2E tests that are meant to be "management api user" facing.
  • had to raise the EmbeddedRuntime startup timeout because the "restart data flows" activity is making data-plane slower to start

Linked Issue(s)

Closes #4710

Please be sure to take a look at the contributing guidelines and our etiquette for pull requests.

@ndr-brt ndr-brt added refactoring Cleaning up code and dependencies flaky test labels Jan 14, 2025
@ndr-brt ndr-brt force-pushed the 4710-make-participant-lazy branch 2 times, most recently from c54b5a3 to f4c5484 Compare January 14, 2025 12:45
@ndr-brt ndr-brt force-pushed the 4710-make-participant-lazy branch 3 times, most recently from d0086b5 to 565df03 Compare January 15, 2025 08:35
@ndr-brt ndr-brt force-pushed the 4710-make-participant-lazy branch from 565df03 to 39e88f1 Compare January 15, 2025 09:30
@ndr-brt ndr-brt marked this pull request as draft January 15, 2025 10:01
@ndr-brt ndr-brt marked this pull request as ready for review January 15, 2025 10:01
@ndr-brt ndr-brt merged commit c547e75 into eclipse-edc:main Jan 15, 2025
24 checks passed
@ndr-brt ndr-brt deleted the 4710-make-participant-lazy branch January 15, 2025 14:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flaky test refactoring Cleaning up code and dependencies
Projects
None yet
Development

Successfully merging this pull request may close these issues.

flaky testcontainers tests
2 participants