ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 1 | <arquillian xmlns="http://jboss.org/schema/arquillian" |
| 2 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 3 | xsi:schemaLocation=" |
| 4 | http://jboss.org/schema/arquillian |
| 5 | http://jboss.org/schema/arquillian/arquillian_1_0.xsd"> |
| 6 | |
| 7 | <defaultProtocol type="Servlet 3.0" /> |
| 8 | |
| 9 | <extension qualifier="cube"> |
| 10 | <property name="connectionMode">STARTANDSTOP</property> |
| 11 | </extension> |
| 12 | |
| 13 | <extension qualifier="docker"> |
| 14 | |
| 15 | <property name="serverVersion">1.23</property> |
xg353y | 2136b61 | 2017-02-14 11:44:27 +0100 | [diff] [blame] | 16 | |
| 17 | <property name="serverUri">${docker.url}</property> |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 18 | <property name="definitionFormat">CUBE</property> |
| 19 | <property name="dockerContainers"> |
| 20 | mso: |
| 21 | image: ecomp/mso-arquillian:${images.version} |
| 22 | beforeStop: |
| 23 | - copy: |
| 24 | from: /opt/jboss/standalone/log/ |
| 25 | to: ${target.folder}/mso-automated-tests/jboss-logs |
| 26 | - copy: |
| 27 | from: /var/log/ecomp/MSO |
| 28 | to: ${target.folder}/mso-automated-tests/mso-logs |
| 29 | - copy: |
| 30 | from: /tmp/mso-log-checker.log |
| 31 | to: ${target.folder}/mso-automated-tests/ |
| 32 | hostName: mso |
| 33 | await: |
| 34 | strategy: http |
| 35 | match: 'regexp:(.*)Welcome to WildFly 10(.*)' |
| 36 | responseCode: 200 |
| 37 | url: http://dockerHost:18080 |
| 38 | sleepPollingTime: 30 s |
| 39 | iterations: 20 |
| 40 | portBindings: [18080->8080/tcp, 9990/tcp, 9999/tcp] |
| 41 | volumes: [/shared] |
| 42 | binds: |
| 43 | - ${target.folder}/test-classes/docker/mso:/shared |
| 44 | links: |
| 45 | - mariadb:mariadb |
| 46 | - jacoco-shared:jacoco-shared |
| 47 | jacoco-shared: |
| 48 | image: ecomp/jacoco:1.0 |
| 49 | beforeStop: |
| 50 | - copy: |
| 51 | from: /shared/jacoco-it.exec |
| 52 | to: ${target.folder}/mso-automated-tests/ |
| 53 | hostName: jacoco |
| 54 | volumes: [/shared] |
| 55 | binds: |
| 56 | - ${target.folder}/test-classes/docker/mso:/shared:ro |
| 57 | mariadb: |
| 58 | image: mariadb:10.1.11 |
| 59 | beforeStop: |
| 60 | - log: |
xg353y | 2136b61 | 2017-02-14 11:44:27 +0100 | [diff] [blame] | 61 | to: ${target.folder}/mso-automated-tests/db/mariadb.log |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 62 | follow: false |
| 63 | stdout: true |
| 64 | stderr: true |
| 65 | timestamps: true |
| 66 | exposedPorts: [3306/tcp] |
| 67 | await: |
| 68 | strategy: polling |
| 69 | ports: [3306] |
| 70 | sleepPollingTime: 5 s |
| 71 | iterations: 24 |
| 72 | env: [MYSQL_ROOT_PASSWORD=Etoile19_] |
| 73 | portBindings: [3306/tcp] |
| 74 | hostName: mariadb |
| 75 | volumes: [/etc/mysql/conf.d,/docker-entrypoint-initdb.d] |
| 76 | binds: |
| 77 | - ${target.folder}/test-classes/docker/mariadb/conf1:/etc/mysql/conf.d:ro |
| 78 | - ${target.folder}/../../root-pack-extras/config-resources/mariadb:/docker-entrypoint-initdb.d:ro |
xg353y | 2136b61 | 2017-02-14 11:44:27 +0100 | [diff] [blame] | 79 | |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 80 | </property> |
| 81 | <property name="shouldAllowToConnectToRunningContainers">false</property> |
| 82 | <property name="clean">true</property> |
| 83 | <property name="removeVolumes">true</property> |
| 84 | <property name="autoStartContainers">mso</property> |
| 85 | </extension> |
xg353y | 2136b61 | 2017-02-14 11:44:27 +0100 | [diff] [blame] | 86 | |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 87 | |
| 88 | <container qualifier="jboss-as" default="true"> |
| 89 | <configuration> |
| 90 | <property name="managementAddress">${docker.hostname}</property> |
| 91 | <property name="managementPort">9990</property> |
| 92 | <property name="username">admin</property> |
| 93 | <property name="password">Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U</property> |
| 94 | </configuration> |
| 95 | <protocol type="Servlet 3.0"> |
| 96 | <property name="host">${docker.hostname}</property> |
| 97 | <property name="port">18080</property> |
| 98 | </protocol> |
| 99 | </container> |
| 100 | |
| 101 | |
| 102 | </arquillian> |