<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Faiza Aslam on Medium]]></title>
        <description><![CDATA[Stories by Faiza Aslam on Medium]]></description>
        <link>https://medium.com/@Fayeza_Aslam?source=rss-4aa4c253b306------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*W6zumM4JakDfhdzVaBMZRw.jpeg</url>
            <title>Stories by Faiza Aslam on Medium</title>
            <link>https://medium.com/@Fayeza_Aslam?source=rss-4aa4c253b306------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 21:47:31 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@Fayeza_Aslam/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Run Dockerized Arquillian Tests in Bitbucket Pipelines]]></title>
            <link>https://medium.com/@Fayeza_Aslam/run-dockerized-arquillian-tests-in-bitbucket-pipelines-9c6c37969c0b?source=rss-4aa4c253b306------2</link>
            <guid isPermaLink="false">https://medium.com/p/9c6c37969c0b</guid>
            <category><![CDATA[bitbucket]]></category>
            <category><![CDATA[arquillian]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[arquilliancube]]></category>
            <category><![CDATA[testing]]></category>
            <dc:creator><![CDATA[Faiza Aslam]]></dc:creator>
            <pubDate>Mon, 25 Feb 2019 16:04:51 GMT</pubDate>
            <atom:updated>2019-02-26T06:33:49.002Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4exLlMna6uDhjoVXWHeFpw.jpeg" /><figcaption>Arquillian + Docker + Bitbucket</figcaption></figure><p>This blog post would take you through a series of steps required to build a bitbucket pipeline that would run Arquillian Tests in a Docker container using Arquillian Cube. Rather than going here and there, let’s jump directly into the code.</p><p>The source code can be found <a href="https://github.com/faiza-aslam/arquillian-docker-bitbucket-showcase">here</a>.</p><h4><strong>Arquillian Cube Configuration</strong></h4><p>In order to run my Java EE tests, I would require <strong><em>WildFly</em></strong> container. This is specified as a Docker container in my arquillian.xml<strong>. </strong>You can also specify the image directly using image property. If you wish to use private images, then username &amp; password need to be added in the configuration as described <a href="http://arquillian.org/arquillian-cube/#_configuration">here</a>.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3398240e82a8ca82a2740852a9ec56b1/href">https://medium.com/media/3398240e82a8ca82a2740852a9ec56b1/href</a></iframe><p>Here H2 database is used for persistence that is embedded in WildFly. Persistence.xml will be included in our test deployment.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9cc9772355a14a821e9c7f116418c833/href">https://medium.com/media/9cc9772355a14a821e9c7f116418c833/href</a></iframe><h4>Bitbucket Pipeline Configuration</h4><p>Bitbucket pipeline would start running as soon as the code is pushed into a branch. We can also specify the branch name or wildcard that would trigger the pipeline. We deliberately need to create and start the docker container before running arquillian tests, otherwise we would be stuck in the following issue from bitbucket:</p><pre>level=info msg=&quot;Pipelines plugin request authorization.&quot; allowed=false method=POST plugin=pipelines uri=&quot;/v1.29/containers/create?name=wildfly10&quot;</pre><pre>level=error msg=&quot;AuthZRequest for POST /v1.29/containers/create?name=wildfly10 returned error: <strong>authorization denied by plugin pipelines: Invalid content length provided</strong>&quot;</pre><pre>level=info msg=&quot;Pipelines plugin request authorization.&quot; allowed=true method=POST plugin=pipelines uri=&quot;/v1.29/containers/wildfly10/stop?t=10&quot;</pre><pre>level=error msg=&quot;Handler for POST /v1.29/containers/wildfly10/stop?t=10 returned error: No such container: wildfly10&quot;</pre><pre>level=info msg=&quot;Pipelines plugin request authorization.&quot; allowed=true method=DELETE plugin=pipelines uri=&quot;/v1.29/containers/wildfly10?v=true&quot;</pre><pre>level=error msg=&quot;Handler for DELETE /v1.29/containers/wildfly10?v=true returned error: No such container: wildfly10&quot;</pre><p>In order to solve this issue, docker container is created and run within the pipeline itself, as shown below:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/74bb96eb0323290ee52429e18d379ade/href">https://medium.com/media/74bb96eb0323290ee52429e18d379ade/href</a></iframe><p>This looks a bit weird at first glance, because docker container life cycle is controlled by Arquillian Cube, but docker-java (used by Arquillian Cube) does not send Content-Length in request header and we ultimately end up with the issue stated above. This is kinda heck I tried resolving the issue. If you guys have a better solution, feel free to comment 😉. Also, don’t forget to clap 👏 here.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9c6c37969c0b" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>