summaryrefslogtreecommitdiffstats
path: root/packages/arquillian-unit-tests/src/test/resources/arquillian.xml
diff options
context:
space:
mode:
authorChrisC <cc697w@intl.att.com>2017-01-31 11:40:03 +0100
committerChrisC <cc697w@intl.att.com>2017-01-31 12:59:33 +0100
commit025301d08b061482c1f046d562bf017c8cbcfe8d (patch)
tree68a2a549736c9bf0f7cd4e71c76e40ef7e2606f2 /packages/arquillian-unit-tests/src/test/resources/arquillian.xml
parent2754ad52f833278a5c925bd788a16d1dce16a598 (diff)
Initial OpenECOMP MSO commit
Change-Id: Ia6a7574859480717402cc2f22534d9973a78fa6d Signed-off-by: ChrisC <cc697w@intl.att.com>
Diffstat (limited to 'packages/arquillian-unit-tests/src/test/resources/arquillian.xml')
-rw-r--r--packages/arquillian-unit-tests/src/test/resources/arquillian.xml102
1 files changed, 102 insertions, 0 deletions
diff --git a/packages/arquillian-unit-tests/src/test/resources/arquillian.xml b/packages/arquillian-unit-tests/src/test/resources/arquillian.xml
new file mode 100644
index 0000000000..ea07bc5a42
--- /dev/null
+++ b/packages/arquillian-unit-tests/src/test/resources/arquillian.xml
@@ -0,0 +1,102 @@
+<arquillian xmlns="http://jboss.org/schema/arquillian"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="
+ http://jboss.org/schema/arquillian
+ http://jboss.org/schema/arquillian/arquillian_1_0.xsd">
+
+ <defaultProtocol type="Servlet 3.0" />
+
+ <extension qualifier="cube">
+ <property name="connectionMode">STARTANDSTOP</property>
+ </extension>
+
+ <extension qualifier="docker">
+
+ <property name="serverVersion">1.23</property>
+
+ <property name="serverUri">${docker.url}</property>
+ <property name="definitionFormat">CUBE</property>
+ <property name="dockerContainers">
+ mso:
+ image: ecomp/mso-arquillian:${images.version}
+ beforeStop:
+ - copy:
+ from: /opt/jboss/standalone/log/
+ to: ${target.folder}/mso-automated-tests/jboss-logs
+ - copy:
+ from: /var/log/ecomp/MSO
+ to: ${target.folder}/mso-automated-tests/mso-logs
+ - copy:
+ from: /tmp/mso-log-checker.log
+ to: ${target.folder}/mso-automated-tests/
+ hostName: mso
+ await:
+ strategy: http
+ match: 'regexp:(.*)Welcome to WildFly 10(.*)'
+ responseCode: 200
+ url: http://dockerHost:18080
+ sleepPollingTime: 30 s
+ iterations: 20
+ portBindings: [18080->8080/tcp, 9990/tcp, 9999/tcp]
+ volumes: [/shared]
+ binds:
+ - ${target.folder}/test-classes/docker/mso:/shared
+ links:
+ - mariadb:mariadb
+ - jacoco-shared:jacoco-shared
+ jacoco-shared:
+ image: ecomp/jacoco:1.0
+ beforeStop:
+ - copy:
+ from: /shared/jacoco-it.exec
+ to: ${target.folder}/mso-automated-tests/
+ hostName: jacoco
+ volumes: [/shared]
+ binds:
+ - ${target.folder}/test-classes/docker/mso:/shared:ro
+ mariadb:
+ image: mariadb:10.1.11
+ beforeStop:
+ - log:
+ to: ${target.folder}/mso-automated-tests/db/mariadb.log
+ follow: false
+ stdout: true
+ stderr: true
+ timestamps: true
+ exposedPorts: [3306/tcp]
+ await:
+ strategy: polling
+ ports: [3306]
+ sleepPollingTime: 5 s
+ iterations: 24
+ env: [MYSQL_ROOT_PASSWORD=Etoile19_]
+ portBindings: [3306/tcp]
+ hostName: mariadb
+ volumes: [/etc/mysql/conf.d,/docker-entrypoint-initdb.d]
+ binds:
+ - ${target.folder}/test-classes/docker/mariadb/conf1:/etc/mysql/conf.d:ro
+ - ${target.folder}/../../root-pack-extras/config-resources/mariadb:/docker-entrypoint-initdb.d:ro
+
+ </property>
+ <property name="shouldAllowToConnectToRunningContainers">false</property>
+ <property name="clean">true</property>
+ <property name="removeVolumes">true</property>
+ <property name="autoStartContainers">mso</property>
+ </extension>
+
+
+ <container qualifier="jboss-as" default="true">
+ <configuration>
+ <property name="managementAddress">${docker.hostname}</property>
+ <property name="managementPort">9990</property>
+ <property name="username">admin</property>
+ <property name="password">Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U</property>
+ </configuration>
+ <protocol type="Servlet 3.0">
+ <property name="host">${docker.hostname}</property>
+ <property name="port">18080</property>
+ </protocol>
+ </container>
+
+
+</arquillian> \ No newline at end of file