0 Replies Latest reply on Apr 12, 2019 8:52 AM by nicolas duminil

    org.apache.http.HttpException: Scheme 'unix' not registered

    nicolas duminil Master

      Hello,

      I'm trying to run a couple of integration tests with Arquillian Cube 1.18. My configuration is as follows:

       

      <?xml version="1.0"?>
      <arquillian xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xmlns="http://jboss.org/schema/arquillian"
         xsi:schemaLocation="http://jboss.org/schema/arquillian
        http://jboss.org/schema/arquillian/arquillian_1_0.xsd">

        <extension qualifier="docker">

         <property name="serverVersion">1.18</property>

         <property name="definitionFormat">COMPOSE</property>

         <property name="dockerContainersFile">src/main/docker/docker-compose.yml</property>

       

         <property name="tlsVerify">false</property>

        </extension>

        <extension qualifier="cube">

         <property name="connectionMode">STARTORCONNECTANDLEAVE</property>

        </extension>

      </arquillian>

       

      The following exception is being raised while running the test:

       

      Caused by: org.apache.http.client.ClientProtocolException

          at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:867)

          at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)

          at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:57)

          at org.jboss.resteasy.client.jaxrs.engines.ApacheHttpClient4Engine.invoke(ApacheHttpClient4Engine.java:283)

          ... 39 more

      Caused by: org.apache.http.HttpException: Scheme 'unix' not registered.

          at org.apache.http.impl.conn.DefaultHttpRoutePlanner.determineRoute(DefaultHttpRoutePlanner.java:109)

          at org.apache.http.impl.client.DefaultRequestDirector.determineRoute(DefaultRequestDirector.java:762)

          at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:381)

          at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:863)

          ... 42 more

       

      I'm on Ubuntu 16.04 LTS and the docker server URI is unix://var/run/docker.sock. What might be the problem here ?

       

      Many thanks in advance,

      Nicolas