[ 
https://issues.apache.org/jira/browse/CAMEL-19834?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17762083#comment-17762083
 ] 

Andrea Tarocchi commented on CAMEL-19834:
-----------------------------------------

I think that it is wrong to call sslContext = 
getContainer().createSslContextFromCa(); outside the scope of .ifPresent . 
Here there is the PR that you can review and discuss: 
https://github.com/apache/camel/pull/11302

> camel-test-infra-elasticsearch container start fails if ca cert is not present
> ------------------------------------------------------------------------------
>
>                 Key: CAMEL-19834
>                 URL: https://issues.apache.org/jira/browse/CAMEL-19834
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-elasticsearch
>    Affects Versions: 4.0.0
>            Reporter: Andrea Tarocchi
>            Assignee: Andrea Tarocchi
>            Priority: Major
>
> It is possible to configure elasticsearch container to not generate a self 
> signed CA certificate by basically disabling SSL. In this case the container 
> init would fail with {{java.util.NoSuchElementException: No value present}}
> this is due to 
> https://github.com/apache/camel/blob/camel-4.0.x/test-infra/camel-test-infra-elasticsearch/src/test/java/org/apache/camel/test/infra/elasticsearch/services/ElasticSearchLocalContainerService.java#L99
>  being called even if CA cert is not present.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to