-
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
Feature/179 scaffold #1
Conversation
This reverts commit be007f3.
} | ||
configurations { | ||
all { | ||
exclude(group = "com.fasterxml.jackson.jaxrs", module = "jackson-jaxrs-json-provider") |
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.
Do you know why is this required?
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.
no, but that's how it is in EDC and removing it gives a missing dependency error
@Produces({"application/json"}) | ||
@Consumes({"application/json"}) | ||
@Path("/health") | ||
public class HealthApiController { |
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.
Did you consider using EDC's ObservabilityApiController
?
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.
Good point, I did want to add a custom controller to show how it's done, but this can be a follow-up story after we have more controllers.
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.
|
||
@Target({ElementType.TYPE, ElementType.METHOD}) | ||
@Retention(RetentionPolicy.RUNTIME) | ||
@EnabledIfEnvironmentVariable(named = "INTEGRATION_TEST", matches = "true") |
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.
- we can add a follow up story to add doc about details on how to run integration test.
- And also, a system test README explaining that project needs to be build first to generate executable jar
./build/libs/app.jar
and then only docker-compose will work locally.
Both of these items can be done in a follow-up story.
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.
Added system test README.md
...in/java/org/eclipse/dataspaceconnector/registration/api/RegistrationServiceApiExtension.java
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.
Nice work!
|
||
@IntegrationTest | ||
public class HealthApiClientTest { | ||
static final String API_URL = "http://localhost:8181/api"; |
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.
very nit: maybe we can read it from environment variables and keep this one as default. or we can do it later as well when we extend the test to verify health endpoint of a deployed one.
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.
Yes I first had a version with env var, but then I removed it along the principle to only implement things once we have a clear need for them :)
Feature/178 reg repo migration
Creates scaffold Registry service web service as an EDC runtime with simple health endpoint.
CI pipeline builds the registration service and runs it in docker. A system test runs an HTTP request as a client to validate the build.
Closes https://github.com/agera-edc/MinimumViableDataspace/issues/179
On naming, we use
org.eclipse.dataspaceconnector.registration
since the repo will live in the https://github.com/eclipse-dataspaceconnector organization.