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

Marco Carletti edited comment on CAMEL-22149 at 2/17/26 1:33 PM:
-----------------------------------------------------------------

since running containers on Windows natively  is not possible (the base image 
is Fedora) and running container using WSL means testing Camel JBang on Linux, 
the only way is running camel commands in the Windows host, I excluded all the 
tests that use not-compatible Windows commands (such as curl) but there are 
some few tests to check if they work or not. What I did is implementing the 
service running the commands in the hosts and adapting the camel-jbang-it 
module so that we can run all the tests on Windows (or at least we can exclude 
testcontainers). About testcontainers there is a tag that allow us to exclude 
the tests from the host process execution. I added a 
[README|https://github.com/apache/camel/tree/main/dsl/camel-jbang/camel-jbang-it#run-tests-locally]
 file for more info


was (Author: JIRAUSER284142):
since running containers on Windows natively  is not possible (the base image 
is Fedora) and running container using WLS means testing Camel JBang on Linux, 
the only way is running camel commands in the Windows host, I excluded all the 
tests that use not-compatible Windows commands (such as curl) but there are 
some few tests to check if they work or not. What I did is implementing the 
service running the commands in the hosts and adapting the camel-jbang-it 
module so that we can run all the tests on Windows (or at least we can exclude 
testcontainers). About testcontainers there is a tag that allow us to exclude 
the tests from the host process execution. I added a 
[README|https://github.com/apache/camel/tree/main/dsl/camel-jbang/camel-jbang-it#run-tests-locally]
 file for more info

> Allow Camel JBang IT test to be built and launched on Windows
> -------------------------------------------------------------
>
>                 Key: CAMEL-22149
>                 URL: https://issues.apache.org/jira/browse/CAMEL-22149
>             Project: Camel
>          Issue Type: Test
>          Components: camel-jbang, tests
>    Affects Versions: 4.12.0
>            Reporter: Aurélien Pupier
>            Assignee: Marco Carletti
>            Priority: Minor
>             Fix For: 4.19.0
>
>
> current failure:
> {noformat}
> java.lang.ExceptionInInitializerError
>       at 
> org.apache.camel.test.infra.cli.services.CliLocalContainerService.<init>(CliLocalContainerService.java:62)
>       at 
> org.apache.camel.test.infra.cli.services.CliLocalContainerService.<init>(CliLocalContainerService.java:57)
>       at 
> org.apache.camel.test.infra.common.services.SimpleTestServiceBuilder.build(SimpleTestServiceBuilder.java:76)
>       at 
> org.apache.camel.test.infra.cli.services.CliServiceFactory.createService(CliServiceFactory.java:33)
>       at 
> org.apache.camel.test.infra.cli.it.AbstractTestSupport.execute(AbstractTestSupport.java:27)
>       at 
> org.apache.camel.test.infra.cli.it.CliConfigITCase.setJBangVersionTest(CliConfigITCase.java:36)
>       at java.base/java.lang.reflect.Method.invoke(Method.java:568)
>       at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
>       at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
> Caused by: java.lang.UnsupportedOperationException: View 'unix' not available
>       at 
> java.base/sun.nio.fs.AbstractFileSystemProvider.readAttributes(AbstractFileSystemProvider.java:93)
>       at java.base/java.nio.file.Files.readAttributes(Files.java:2084)
>       at java.base/java.nio.file.Files.getAttribute(Files.java:1983)
>       at 
> org.apache.camel.test.infra.cli.services.CliBuiltContainer.<clinit>(CliBuiltContainer.java:64)
>       ... 9 more
> {noformat}



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

Reply via email to