-
Notifications
You must be signed in to change notification settings - Fork 209
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
[KOGITO-9231] Configure RestWorkItemHandler SSL behaviour through pro… #3185
base: main
Are you sure you want to change the base?
Conversation
public static WebClientOptions sslQuarkusWebClientOptions() { | ||
WebClientOptions webClientOptions = new WebClientOptions(); | ||
|
||
String certificateFilePath = ConfigProvider.getConfig().getOptionalValue(QUARKUS_HTTP_SSL_CERTIFICATE_FILE, String.class).orElse(null); |
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.
I think is better to call ConfigProvider.getConfig(), just once
Also, rather than using orElse(null) and later check if the variable is null, use Optional.ifPresent to set the options accordingly
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.
Please move the quarkus specific stuff from RestWorkItemHandlerUtils to SSLWebClientOptionsProducer
(tests) - kogito-runtimes job Reproducerexport BUILD_MVN_OPTS_CURRENT=-T 1C -Dvalidate-formatting -Prun-code-coverage NOTE: To install the build-chain tool, please refer to https://github.com/kiegroup/github-action-build-chain#local-execution Test results:
Those are the test failures: org.kie.kogito.persistence.kafka.KafkaProcessInstancesIT.testFindByIdReadModeexpected: 5 but was: 0 org.kie.kogito.integrationtests.SecureResourceTest.testSecureResourcejava.lang.RuntimeException: Failed to start quarkus |
<dependency> | ||
<groupId>org.eclipse.microprofile.config</groupId> | ||
<artifactId>microprofile-config-api</artifactId> | ||
<version>2.0</version> |
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.
Version should be handled by bom, so it can be removed
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.
Probably this POM does not need to be modified once utils is moved to quarkus extension
|
||
@Produces | ||
@Named("quarkusWebClientOptions") | ||
public WebClientOptions quarkusWebClientOptions() { |
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.
Actuallly, I think this should be the default bean, there is not need to have two
SonarCloud Quality Gate failed. 0 Bugs 0.0% Coverage Catch issues before they fail your Quality Gate with our IDE extension SonarLint |
(tests) - kogito-runtimes job Reproducerexport BUILD_MVN_OPTS_CURRENT=-T 1C -Dvalidate-formatting -Prun-code-coverage NOTE: To install the build-chain tool, please refer to https://github.com/kiegroup/github-action-build-chain#local-execution Test results:
Those are the test failures: org.kie.kogito.persistence.kafka.KafkaProcessInstancesIT.testFindByIdReadModeexpected: 5 but was: 0 org.kie.kogito.integrationtests.SecureResourceTest.testSecureResourcejava.lang.RuntimeException: Failed to start quarkus |
Jira: https://issues.redhat.com/browse/KOGITO-9231