blob: 6da80f2093ed861f148be7ce7b88a76566d28dce [file] [log] [blame]
ChrisC025301d2017-01-31 11:40:03 +01001<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
Determe, Sebastien (sd378r)5c53fcf2017-10-02 13:09:14 +020015 <property name="serverVersion">1.24</property>
xg353y2136b612017-02-14 11:44:27 +010016
17 <property name="serverUri">${docker.url}</property>
ChrisC025301d2017-01-31 11:40:03 +010018 <property name="definitionFormat">CUBE</property>
19 <property name="dockerContainers">
20 mso:
xg353yb6b7bef2017-04-11 13:30:42 +020021 image: openecomp/mso-arquillian:${images.version}
ChrisC025301d2017-01-31 11:40:03 +010022 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:
xg353yb6b7bef2017-04-11 13:30:42 +020048 image: openecomp/jacoco:1.0
ChrisC025301d2017-01-31 11:40:03 +010049 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:
xg353y2136b612017-02-14 11:44:27 +010061 to: ${target.folder}/mso-automated-tests/db/mariadb.log
ChrisC025301d2017-01-31 11:40:03 +010062 follow: false
63 stdout: true
64 stderr: true
65 timestamps: true
66 exposedPorts: [3306/tcp]
67 await:
68 strategy: polling
69 ports: [3306]
Determe, Sebastien (sd378r)c36fb6e2017-10-02 19:44:13 +020070 sleepPollingTime: 15 s
71 iterations: 80
ChrisC025301d2017-01-31 11:40:03 +010072 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
xg353y2136b612017-02-14 11:44:27 +010079
ChrisC025301d2017-01-31 11:40:03 +010080 </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>
xg353y2136b612017-02-14 11:44:27 +010086
ChrisC025301d2017-01-31 11:40:03 +010087
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>