Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
HAWKULAR-258 Add integration tests WildFly profile
Browse files Browse the repository at this point in the history
  • Loading branch information
ppalaga committed May 27, 2015
1 parent 346e1b6 commit 55a62f6
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 188 deletions.
7 changes: 0 additions & 7 deletions dist/assembly.xml
Expand Up @@ -41,13 +41,6 @@
<filtered>false</filtered>
<fileMode>0644</fileMode>
<directoryMode>0755</directoryMode>
</fileSet>
<fileSet>
<directory>src/main/resources/wildfly/bin</directory>
<outputDirectory>${wildfly.dist.zip.root.dir}/bin</outputDirectory>
<filtered>false</filtered>
<fileMode>0744</fileMode>
<directoryMode>0755</directoryMode>
</fileSet>
<!-- non-binary files -->
<fileSet>
Expand Down
28 changes: 27 additions & 1 deletion dist/pom.xml
Expand Up @@ -262,6 +262,7 @@
</goals>
<configuration>
<transformationSets>
<!-- standalone.xml -->
<transformationSet>
<dir>${project.build.directory}/wildfly/${wildfly.dist.zip.root.dir}/standalone/configuration</dir>
<stylesheet>src/main/resources/wildfly/patches/standalone.xsl</stylesheet>
Expand All @@ -272,7 +273,32 @@
<parameters>
<parameter>
<name>kettle.build.type</name>
<value>${kettle.build.type}</value>
<value>production</value>
</parameter>
<parameter>
<name>uuid.hawkular.accounts.backend</name>
<value>${uuid.hawkular.accounts.backend}</value>
</parameter>
</parameters>
</transformationSet>
<!-- standalone-itest.xml -->
<transformationSet>
<dir>${project.build.directory}/wildfly/${wildfly.dist.zip.root.dir}/standalone/configuration</dir>
<stylesheet>src/main/resources/wildfly/patches/standalone.xsl</stylesheet>
<fileMappers>
<fileMapper implementation="org.codehaus.plexus.components.io.filemappers.RegExpFileMapper">
<pattern>\.xml$</pattern>
<replacement>-itest.xml</replacement>
</fileMapper>
</fileMappers>
<includes>
<include>standalone.xml</include>
</includes>
<outputDir>${assembly.dir}/${wildfly.dist.zip.root.dir}/standalone/configuration</outputDir>
<parameters>
<parameter>
<name>kettle.build.type</name>
<value>dev</value>
</parameter>
<parameter>
<name>uuid.hawkular.accounts.backend</name>
Expand Down
90 changes: 0 additions & 90 deletions dist/src/main/resources/wildfly/bin/standalone.conf

This file was deleted.

87 changes: 0 additions & 87 deletions dist/src/main/resources/wildfly/bin/standalone.conf.bat

This file was deleted.

27 changes: 24 additions & 3 deletions dist/src/main/resources/wildfly/patches/standalone.xsl
Expand Up @@ -210,9 +210,30 @@
<!-- add system properties -->
<xsl:template name="system-properties">
<system-properties>
<xsl:text disable-output-escaping="yes">
&lt;property name="hawkular-metrics.backend" value="${hawkular-metrics.backend:embedded_cass}" /&gt;
</xsl:text>
<property>
<xsl:attribute name="name">hawkular-metrics.backend</xsl:attribute>
<xsl:attribute name="value">&#36;{hawkular-metrics.backend:embedded_cass}</xsl:attribute>
</property>

<xsl:choose>
<xsl:when test="$kettle.build.type='dev'">
<property>
<xsl:attribute name="name">keycloak.import</xsl:attribute>
<xsl:attribute name="value">&#36;{jboss.home.dir}/standalone/configuration/hawkular-realm-for-dev.json</xsl:attribute>
</property>
</xsl:when>
<xsl:when test="$kettle.build.type='production'">
<property>
<xsl:attribute name="name">keycloak.import</xsl:attribute>
<xsl:attribute name="value">&#36;{jboss.home.dir}/standalone/configuration/hawkular-realm.json</xsl:attribute>
</property>
</xsl:when>
<xsl:otherwise>
<xsl:message terminate="yes">
Unexpected value of &#36;kettle.build.type: '$kettle.build.type'. Expected 'dev' or 'production'
</xsl:message>
</xsl:otherwise>
</xsl:choose>
</system-properties>
</xsl:template>

Expand Down

0 comments on commit 55a62f6

Please sign in to comment.