blob: c990ef2836404f392b05976bc0bb3b9ba9bee504 [file] [log] [blame]
sebdet056998c2020-08-13 10:32:41 -07001<!--
2============LICENSE_START=======================================================
3SDC
4================================================================================
5Copyright (C) 2020 AT&T Intellectual Property. All rights reserved.
6================================================================================
7Licensed under the Apache License, Version 2.0 (the "License");
8you may not use this file except in compliance with the License.
9You may obtain a copy of the License at
10 *
11 http://www.apache.org/licenses/LICENSE-2.0
12 *
13Unless required by applicable law or agreed to in writing, software
14distributed under the License is distributed on an "AS IS" BASIS,
15WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16See the License for the specific language governing permissions and
17limitations under the License.
18============LICENSE_END=========================================================
19================================================================================
20-->
sebdet591810d2020-09-17 15:07:23 +020021
sebdet056998c2020-08-13 10:32:41 -070022<project xmlns="http://maven.apache.org/POM/4.0.0"
23 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
24 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
25 <modelVersion>4.0.0</modelVersion>
26
sebdet056998c2020-08-13 10:32:41 -070027 <artifactId>sdc-integration-tests</artifactId>
JulienBeb1679462020-08-19 11:12:59 +020028 <packaging>jar</packaging>
sebdet056998c2020-08-13 10:32:41 -070029 <name>sdc-integration-tests</name>
30
31 <parent>
32 <groupId>org.openecomp.sdc</groupId>
33 <artifactId>sdc-main</artifactId>
ChrisCe407cea2020-10-30 16:44:46 +010034 <version>1.8.0-SNAPSHOT</version>
sebdet056998c2020-08-13 10:32:41 -070035 </parent>
36
37 <properties>
JulienBe930ed252020-08-25 22:20:30 +020038 <selenium.version>3.141.59</selenium.version>
39 <gecko.driver.version>0.27.0</gecko.driver.version>
sebdetc5c60bf2020-08-25 12:31:39 +020040 <!-- SDC Startup parameters -->
sebdet056998c2020-08-13 10:32:41 -070041 <it.env.name>integration-test</it.env.name>
42 <it.cassandra.port>9042</it.cassandra.port>
43 <it.cassandra.password>onap123#@!</it.cassandra.password>
44 <it.cassandra.ssl.enabled>false</it.cassandra.ssl.enabled>
45 <it.sdc.cluster.name>SDC-CS-${it.env.name}</it.sdc.cluster.name>
46 <it.sdc.user>asdc_user</it.sdc.user>
47 <it.sdc.password>Aa1234%^!</it.sdc.password>
48 <it.chef.config>${project.build.directory}/chef-config</it.chef.config>
andre.schmid662fcba2020-08-21 11:31:47 +010049 <it.sdc-be.plugins>${project.build.directory}/plugins/sdc-be</it.sdc-be.plugins>
sebdet056998c2020-08-13 10:32:41 -070050 <it.shared.volume>/tmp/sdc-integration-tests</it.shared.volume>
sebdetb988cb62020-09-25 15:48:10 +020051 <it.docker.version>latest</it.docker.version>
JulienBe930ed252020-08-25 22:20:30 +020052 <it.ui.firefox.version>2.53.1</it.ui.firefox.version>
53
vasraz97149612020-10-19 16:33:00 +010054 <!-- parser-->
55 <sdc-tosca-parser.version>1.6.5</sdc-tosca-parser.version>
sebdet056998c2020-08-13 10:32:41 -070056 </properties>
57
58 <dependencies>
JulienBeb1679462020-08-19 11:12:59 +020059 <dependency>
JulienBe61663b92020-09-03 17:09:46 +020060 <groupId>ch.qos.logback</groupId>
61 <artifactId>logback-classic</artifactId>
62 <version>${logback.version}</version>
63 </dependency>
64
65 <dependency>
JulienBeb1679462020-08-19 11:12:59 +020066 <groupId>org.yaml</groupId>
67 <artifactId>snakeyaml</artifactId>
68 <version>${snakeyaml.version}</version>
69 <scope>test</scope>
70 </dependency>
71 <dependency>
72 <groupId>com.google.guava</groupId>
73 <artifactId>guava</artifactId>
JulienBe930ed252020-08-25 22:20:30 +020074 <version>25.0-jre</version>
75 <scope>compile</scope>
JulienBeb1679462020-08-19 11:12:59 +020076 </dependency>
77 <dependency>
78 <groupId>junit</groupId>
79 <artifactId>junit</artifactId>
80 <version>${junit.version}</version>
81 <scope>test</scope>
82 </dependency>
83 <dependency>
84 <groupId>org.testng</groupId>
85 <artifactId>testng</artifactId>
86 <version>${testng.version}</version>
87 <scope>test</scope>
88 </dependency>
89 <dependency>
90 <groupId>com.google.code.gson</groupId>
91 <artifactId>gson</artifactId>
92 <version>${gson.version}</version>
93 <scope>test</scope>
94 </dependency>
95 <dependency>
96 <groupId>org.openecomp.sdc.be</groupId>
97 <artifactId>catalog-model</artifactId>
98 <version>${project.version}</version>
99 <scope>test</scope>
100 </dependency>
101 <dependency>
102 <groupId>org.openecomp.sdc.be</groupId>
103 <artifactId>catalog-dao</artifactId>
104 <version>${project.version}</version>
105 <scope>test</scope>
106 </dependency>
107 <dependency>
108 <groupId>com.aventstack</groupId>
109 <artifactId>extentreports</artifactId>
110 <version>3.0.6</version>
JulienBeb1679462020-08-19 11:12:59 +0200111 <scope>test</scope>
112 </dependency>
113 <dependency>
114 <groupId>org.janusgraph</groupId>
115 <artifactId>janusgraph-core</artifactId>
116 <version>${janusgraph.version}</version>
117 <scope>test</scope>
118 <exclusions>
119 <exclusion>
120 <artifactId>slf4j-log4j12</artifactId>
121 <groupId>org.slf4j</groupId>
122 </exclusion>
123 <exclusion>
124 <artifactId>commons-collections</artifactId>
125 <groupId>commons-collections</groupId>
126 </exclusion>
127 <exclusion>
128 <artifactId>groovy</artifactId>
129 <groupId>org.codehaus.groovy</groupId>
130 </exclusion>
131 <exclusion>
132 <groupId>org.apache.thrift</groupId>
133 <artifactId>libthrift</artifactId>
134 </exclusion>
135 </exclusions>
136 </dependency>
137 <dependency>
138 <groupId>org.assertj</groupId>
139 <artifactId>assertj-core</artifactId>
140 <version>${assertj.version}</version>
141 <scope>test</scope>
142 </dependency>
143 <dependency>
144 <groupId>com.clearspring.analytics</groupId>
145 <artifactId>stream</artifactId>
146 <version>${clearspring.version}</version>
147 <scope>test</scope>
148 </dependency>
149 <dependency>
150 <groupId>org.apache.httpcomponents</groupId>
151 <artifactId>httpclient</artifactId>
152 <version>${httpclient.version}</version>
153 <scope>test</scope>
154 </dependency>
155 <dependency>
156 <groupId>org.apache.httpcomponents</groupId>
157 <artifactId>httpcore</artifactId>
158 <version>${httpcore.version}</version>
159 <scope>test</scope>
160 </dependency>
161 <dependency>
162 <groupId>com.fasterxml.jackson.core</groupId>
163 <artifactId>jackson-core</artifactId>
164 <version>${jackson.version}</version>
165 <scope>test</scope>
166 </dependency>
167 <dependency>
168 <groupId>org.codehaus.jackson</groupId>
169 <artifactId>jackson-mapper-asl</artifactId>
170 <version>1.9.2</version>
171 <scope>test</scope>
172 </dependency>
173 <dependency>
174 <groupId>com.fasterxml.jackson.core</groupId>
175 <artifactId>jackson-databind</artifactId>
176 <version>${jackson.version}</version>
177 <scope>test</scope>
178 <exclusions>
179 <exclusion>
180 <groupId>com.fasterxml.jackson.core</groupId>
181 <artifactId>jackson-core</artifactId>
182 </exclusion>
183 </exclusions>
184 </dependency>
sebdetc5c60bf2020-08-25 12:31:39 +0200185
vasraz97149612020-10-19 16:33:00 +0100186 <dependency>
187 <groupId>org.onap.sdc.sdc-tosca</groupId>
188 <artifactId>sdc-tosca</artifactId>
189 <version>${sdc-tosca-parser.version}</version>
190 </dependency>
191
sebdetc5c60bf2020-08-25 12:31:39 +0200192 <!--FOR the Frontend -->
193 <dependency>
194 <groupId>org.seleniumhq.selenium</groupId>
195 <artifactId>selenium-java</artifactId>
196 <scope>test</scope>
JulienBe930ed252020-08-25 22:20:30 +0200197 <version>${selenium.version}</version>
sebdetc5c60bf2020-08-25 12:31:39 +0200198 </dependency>
199 <dependency>
JulienBe930ed252020-08-25 22:20:30 +0200200 <groupId>org.seleniumhq.selenium</groupId>
201 <artifactId>selenium-server</artifactId>
202 <version>4.0.0-alpha-2</version>
203 <scope>test</scope>
204 </dependency>
205 <dependency>
206 <groupId>org.seleniumhq.selenium</groupId>
207 <artifactId>selenium-firefox-driver</artifactId>
208 <version>${selenium.version}</version>
209 <scope>test</scope>
210 </dependency>
211
212 <dependency>
sebdetc5c60bf2020-08-25 12:31:39 +0200213 <groupId>net.lightbody.bmp</groupId>
214 <!-- To use the legacy, Jetty-based implementation, change the artifactId
215 to browsermob-core -->
216 <artifactId>browsermob-core</artifactId>
217 <version>2.1.4</version>
218 <scope>test</scope>
219 <exclusions>
220 <exclusion>
221 <groupId>com.fasterxml.jackson.core</groupId>
222 <artifactId>jackson-core</artifactId>
223 </exclusion>
224 </exclusions>
225 </dependency>
226 <dependency>
227 <groupId>com.paulhammant</groupId>
228 <artifactId>ngwebdriver</artifactId>
229 <version>0.9.7</version>
230 <scope>test</scope>
231 </dependency>
232 <dependency>
233 <groupId>com.github.markusbernhardt</groupId>
234 <artifactId>proxy-vole</artifactId>
235 <version>1.0.2</version>
236 <scope>test</scope>
237 </dependency>
238 <dependency>
239 <groupId>org.hamcrest</groupId>
240 <artifactId>hamcrest</artifactId>
241 <version>${hamcrest.version}</version>
242 <scope>test</scope>
243 </dependency>
244 <dependency>
245 <groupId>commons-net</groupId>
246 <artifactId>commons-net</artifactId>
247 <version>3.3</version>
248 <scope>test</scope>
249 </dependency>
sebdeta9fffd22020-10-08 13:28:36 +0200250 <dependency>
251 <groupId>org.apache.logging.log4j</groupId>
252 <artifactId>log4j-api</artifactId>
253 <version>2.13.1</version>
254 <scope>test</scope>
255 </dependency>
sebdet056998c2020-08-13 10:32:41 -0700256 </dependencies>
257
258 <build>
259 <plugins>
260 <!-- Section for Integration tests -->
261 <plugin>
262 <artifactId>maven-resources-plugin</artifactId>
263 <executions>
264 <execution>
sebdet5b057082020-09-01 23:47:27 +0200265 <id>copy-chef-resources</id>
sebdet056998c2020-08-13 10:32:41 -0700266 <phase>pre-integration-test</phase>
267 <goals>
268 <goal>copy-resources</goal>
269 </goals>
270 <configuration>
271 <outputDirectory>${it.chef.config}</outputDirectory>
272 <resources>
273 <resource>
JulienBeb1679462020-08-19 11:12:59 +0200274 <directory>environments</directory>
sebdet056998c2020-08-13 10:32:41 -0700275 <filtering>true</filtering>
276 <includes>
277 <include>integration-test.json</include>
JulienBe930ed252020-08-25 22:20:30 +0200278 <include>plugins-configuration.yaml</include>
sebdet056998c2020-08-13 10:32:41 -0700279 </includes>
280 </resource>
281 </resources>
282 </configuration>
283 </execution>
andre.schmid662fcba2020-08-21 11:31:47 +0100284 <execution>
285 <id>copy-sdc-be-plugins</id>
286 <phase>pre-integration-test</phase>
287 <goals>
288 <goal>copy-resources</goal>
289 </goals>
290 <configuration>
291 <outputDirectory>${it.sdc-be.plugins}</outputDirectory>
292 <resources>
293 <resource>
294 <directory>../catalog-be-plugins/etsi-nfv-nsd-csar-plugin/target</directory>
295 <filtering>false</filtering>
296 <includes>
vasraz97149612020-10-19 16:33:00 +0100297 <include>etsi-nfv-nsd-csar-plugin-${project.version}.jar</include>
andre.schmid662fcba2020-08-21 11:31:47 +0100298 </includes>
299 </resource>
300 </resources>
301 </configuration>
302 </execution>
sebdet056998c2020-08-13 10:32:41 -0700303 </executions>
304 </plugin>
305 <plugin>
JulienBe930ed252020-08-25 22:20:30 +0200306 <groupId>org.codehaus.mojo</groupId>
307 <artifactId>wagon-maven-plugin</artifactId>
308 <version>2.0.0</version>
309 <executions>
310 <execution>
311 <id>download-gecko</id>
312 <phase>validate</phase>
313 <goals>
314 <goal>download-single</goal>
315 </goals>
316 <configuration>
317 <url>https://github.com</url>
318 <fromFile>
319 mozilla/geckodriver/releases/download/v${gecko.driver.version}/geckodriver-v${gecko.driver.version}-linux64.tar.gz
320 </fromFile>
321 <toDir>${project.build.directory}/gecko</toDir>
322 </configuration>
323 </execution>
324 </executions>
325 </plugin>
326 <plugin>
sebdet056998c2020-08-13 10:32:41 -0700327 <artifactId>maven-antrun-plugin</artifactId>
328 <version>1.8</version>
sebdet056998c2020-08-13 10:32:41 -0700329 <executions>
330 <execution>
JulienBe930ed252020-08-25 22:20:30 +0200331 <id>set-folder-permission</id>
sebdet056998c2020-08-13 10:32:41 -0700332 <phase>pre-integration-test</phase>
333 <configuration>
334 <target>
sebdet5b057082020-09-01 23:47:27 +0200335 <mkdir dir="/tmp/sdc-integration-tests"/>
336 <chmod dir="/tmp/sdc-integration-tests" type="dir" perm="ugo+rwx"/>
337 <mkdir dir="/tmp/sdc-integration-tests/downloadAutomation"/>
338 <chmod dir="/tmp/sdc-integration-tests/downloadAutomation" type="dir" perm="ugo+rwx"/>
JulienBe930ed252020-08-25 22:20:30 +0200339 </target>
340 </configuration>
341 <goals>
342 <goal>run</goal>
343 </goals>
344 </execution>
345 <execution>
346 <id>untar-gecko</id>
347 <phase>pre-integration-test</phase>
348 <configuration>
349 <target>
350 <untar src="${project.build.directory}/gecko/geckodriver-v${gecko.driver.version}-linux64.tar.gz"
351 compression="gzip" dest="${project.build.directory}/gecko/"/>
352 <chmod dir="${project.build.directory}/gecko/geckodriver" type="dir" perm="ugo+rwx"/>
sebdet056998c2020-08-13 10:32:41 -0700353 </target>
354 </configuration>
355 <goals>
356 <goal>run</goal>
357 </goals>
358 </execution>
359 </executions>
360 </plugin>
361 <plugin>
362 <groupId>org.codehaus.mojo</groupId>
363 <artifactId>build-helper-maven-plugin</artifactId>
sebdet056998c2020-08-13 10:32:41 -0700364 <executions>
365 <execution>
366 <id>reserve-port-for-tests</id>
367 <phase>validate</phase>
368 <goals>
369 <goal>reserve-network-port</goal>
370 </goals>
371 <configuration>
372 <portNames>
373 <portName>sdc.it.docker.cassandra.port</portName>
374 </portNames>
375 </configuration>
376 </execution>
377 </executions>
378 </plugin>
379 <plugin>
380 <groupId>io.fabric8</groupId>
381 <artifactId>docker-maven-plugin</artifactId>
sebdet056998c2020-08-13 10:32:41 -0700382 <dependencies>
383 <dependency>
384 <groupId>org.apache.httpcomponents</groupId>
385 <artifactId>httpclient</artifactId>
386 <version>4.5.5</version>
387 </dependency>
388 </dependencies>
389 <configuration>
390 <verbose>true</verbose>
sebdet591810d2020-09-17 15:07:23 +0200391 <apiVersion>${docker.api.version}</apiVersion>
sebdet056998c2020-08-13 10:32:41 -0700392 <autoCreateCustomNetworks>true</autoCreateCustomNetworks>
393 <images>
394 <image>
395 <name>onap/sdc-cassandra:${it.docker.version}</name>
396 <alias>sdc-cassandra</alias>
397 <run>
398 <env>
399 <RELEASE>${project.version}</RELEASE>
400 <CS_PASSWORD>${it.cassandra.password}</CS_PASSWORD>
401 <ENVNAME>${it.env.name}</ENVNAME>
402 <MAX_HEAP_SIZE>1536M</MAX_HEAP_SIZE>
403 <HEAP_NEWSIZE>512M</HEAP_NEWSIZE>
404 </env>
405 <hostname>sdc-cs</hostname>
406 <volumes>
407 <bind>
408 <volume>${it.chef.config}:/root/chef-solo/environments</volume>
409 </bind>
410 </volumes>
411 <ulimits>
412 <ulimit>
413 <name>memlock</name>
414 <hard>-1</hard>
415 <soft>-1</soft>
416 </ulimit>
417 <ulimit>
418 <name>nofile</name>
419 <hard>100000</hard>
420 <soft>100000</soft>
421 </ulimit>
422 </ulimits>
423 <wait>
424 <time>120000</time>
425 <tcp>
426 <host>sdc-cs</host>
427 <mode>direct</mode>
428 <ports>
429 <port>9042</port>
430 </ports>
431 </tcp>
432 </wait>
433 <ports>
434 <port>9042:9042</port>
435 </ports>
436 <network>
437 <mode>custom</mode>
438 <name>sdc-network</name>
439 <alias>sdc-cs</alias>
440 </network>
441 </run>
442 </image>
443 <image>
444 <name>onap/sdc-cassandra-init:${it.docker.version}</name>
445 <alias>sdc-cassandra-init</alias>
446 <run>
447 <dependsOn>
448 <container>sdc-cassandra</container>
449 </dependsOn>
450 <env>
451 <RELEASE>${project.version}</RELEASE>
452 <SDC_USER>${it.sdc.user}</SDC_USER>
453 <SDC_PASSWORD>${it.sdc.password}</SDC_PASSWORD>
454 <CS_PASSWORD>${it.cassandra.password}</CS_PASSWORD>
455 <ENVNAME>${it.env.name}</ENVNAME>
456 </env>
457 <hostname>sdc-cs-init</hostname>
458 <volumes>
459 <bind>
460 <volume>${it.chef.config}:/home/sdc/chef-solo/environments</volume>
461 </bind>
462 </volumes>
463 <wait>
464 <time>300000</time>
465 <log>SdcSchemaFileImport successfully completed</log>
466 </wait>
467 <network>
468 <mode>custom</mode>
469 <name>sdc-network</name>
470 <alias>sdc-cs-init</alias>
471 </network>
472 </run>
473 </image>
474 <image>
475 <name>onap/sdc-onboard-cassandra-init:${it.docker.version}</name>
476 <alias>sdc-cassandra-onboard-init</alias>
477 <run>
478 <dependsOn>
sebdet5b057082020-09-01 23:47:27 +0200479 <container>sdc-cassandra</container>
sebdet056998c2020-08-13 10:32:41 -0700480 </dependsOn>
481 <env>
482 <RELEASE>${project.version}</RELEASE>
483 <SDC_USER>${it.sdc.user}</SDC_USER>
484 <SDC_PASSWORD>${it.sdc.password}</SDC_PASSWORD>
485 <CS_PASSWORD>${it.cassandra.password}</CS_PASSWORD>
486 <CS_HOST_PORT>${it.cassandra.port}</CS_HOST_PORT>
487 <ENVNAME>${it.env.name}</ENVNAME>
488 <CS_HOST_IP>sdc-cs</CS_HOST_IP>
489 </env>
490 <hostname>sdc-cs-onboard-init</hostname>
491 <volumes>
492 <bind>
493 <volume>${it.chef.config}:/home/sdc/chef-solo/environments</volume>
494 </bind>
495 </volumes>
496 <wait>
497 <time>30000</time>
498 <log>Initializing onboard schemas</log>
499 </wait>
500 <network>
501 <mode>custom</mode>
502 <name>sdc-network</name>
503 <alias>sdc-cs-onboard-init</alias>
504 </network>
505 </run>
506 </image>
507 <image>
508 <name>onap/sdc-onboard-backend:${it.docker.version}</name>
509 <alias>sdc-onboard-backend</alias>
510 <run>
511 <dependsOn>
512 <container>sdc-cassandra-onboard-init</container>
513 </dependsOn>
514 <env>
515 <cassandra_ssl_enabled>${it.cassandra.ssl.enabled}</cassandra_ssl_enabled>
516 <SDC_CLUSTER_NAME>${it.sdc.cluster.name}</SDC_CLUSTER_NAME>
517 <SDC_USER>${it.sdc.user}</SDC_USER>
518 <SDC_PASSWORD>${it.sdc.password}</SDC_PASSWORD>
519 <ENVNAME>${it.env.name}</ENVNAME>
520 <SDC_CERT_DIR>onap/cert</SDC_CERT_DIR>
sebdet30670ac2020-08-04 14:16:00 +0200521 <JAVA_OPTIONS>-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:4001 -Xmx1g -Xms1g</JAVA_OPTIONS>
sebdet056998c2020-08-13 10:32:41 -0700522 </env>
523 <hostname>sdc-onboard-BE</hostname>
524 <volumes>
525 <bind>
526 <volume>${it.chef.config}:/var/lib/jetty/chef-solo/environments</volume>
JulienBe930ed252020-08-25 22:20:30 +0200527 <volume>${project.basedir}/src/test/resources/cert:/var/lib/jetty/onap/cert
528 </volume>
sebdete0433832020-10-08 11:39:32 +0200529 <volume>${it.shared.volume}:/var/lib/jetty/logs</volume>
sebdet056998c2020-08-13 10:32:41 -0700530 </bind>
531 </volumes>
532 <wait>
sebdet30670ac2020-08-04 14:16:00 +0200533 <time>300000</time>
sebdet056998c2020-08-13 10:32:41 -0700534 <tcp>
535 <host>sdc-onboard-BE</host>
536 <mode>direct</mode>
537 <ports>
538 <port>8445</port>
539 <port>8081</port>
JulienBeb1679462020-08-19 11:12:59 +0200540 <port>4001</port>
sebdet056998c2020-08-13 10:32:41 -0700541 </ports>
542 </tcp>
543 </wait>
544 <ports>
545 <port>8445:8445</port>
546 <port>8081:8081</port>
JulienBeb1679462020-08-19 11:12:59 +0200547 <port>4001:4001</port>
sebdet056998c2020-08-13 10:32:41 -0700548 </ports>
549 <network>
550 <mode>custom</mode>
551 <name>sdc-network</name>
552 <alias>sdc-onboard-BE</alias>
553 </network>
554 </run>
555 </image>
556 <image>
sebdet591810d2020-09-17 15:07:23 +0200557 <name>onap/sdc-backend-all-plugins:${it.docker.version}</name>
sebdet056998c2020-08-13 10:32:41 -0700558 <alias>sdc-backend</alias>
559 <run>
560 <dependsOn>
sebdet5b057082020-09-01 23:47:27 +0200561 <container>sdc-cassandra-init</container>
sebdet056998c2020-08-13 10:32:41 -0700562 </dependsOn>
563 <env>
564 <cassandra_ssl_enabled>${it.cassandra.ssl.enabled}</cassandra_ssl_enabled>
565 <ENVNAME>${it.env.name}</ENVNAME>
sebdet30670ac2020-08-04 14:16:00 +0200566 <JAVA_OPTIONS>-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:4000
567 -Xmx1536m -Xms1536m</JAVA_OPTIONS>
sebdet056998c2020-08-13 10:32:41 -0700568 </env>
569 <hostname>sdc-BE</hostname>
570 <volumes>
571 <bind>
572 <volume>${it.chef.config}:/var/lib/jetty/chef-solo/environments</volume>
573 <volume>${it.shared.volume}:/var/lib/jetty/logs</volume>
574 </bind>
575 </volumes>
576 <wait>
577 <time>60000</time>
578 <tcp>
579 <host>sdc-BE</host>
580 <mode>direct</mode>
581 <ports>
582 <port>8443</port>
583 <port>8080</port>
JulienBeb1679462020-08-19 11:12:59 +0200584 <port>4000</port>
sebdet056998c2020-08-13 10:32:41 -0700585 </ports>
586 </tcp>
587 </wait>
588 <ports>
589 <port>8443:8443</port>
590 <port>8080:8080</port>
JulienBeb1679462020-08-19 11:12:59 +0200591 <port>4000:4000</port>
sebdet056998c2020-08-13 10:32:41 -0700592 </ports>
593 <network>
594 <mode>custom</mode>
595 <name>sdc-network</name>
596 <alias>sdc-BE</alias>
597 </network>
598 </run>
599 </image>
600 <image>
601 <name>onap/sdc-backend-init:${it.docker.version}</name>
602 <alias>sdc-backend-init</alias>
603 <run>
604 <dependsOn>
605 <container>sdc-backend</container>
606 </dependsOn>
607 <env>
608 <ENVNAME>${it.env.name}</ENVNAME>
609 </env>
610 <hostname>sdc-BE-init</hostname>
611 <volumes>
612 <bind>
613 <volume>${it.chef.config}:/home/onap/chef-solo/environments</volume>
614 <volume>${it.shared.volume}:/var/lib/jetty/logs</volume>
615 </bind>
616 </volumes>
617 <wait>
618 <time>600000</time>
619 <log>Chef Client finished</log>
620 </wait>
621 <network>
622 <mode>custom</mode>
623 <name>sdc-network</name>
624 <alias>sdc-BE-init</alias>
625 </network>
626 </run>
627 </image>
628 <image>
629 <name>onap/sdc-frontend:${it.docker.version}</name>
630 <alias>sdc-frontend</alias>
631 <run>
sebdet056998c2020-08-13 10:32:41 -0700632 <env>
633 <ENVNAME>${it.env.name}</ENVNAME>
sebdet30670ac2020-08-04 14:16:00 +0200634 <JAVA_OPTIONS>-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:6000
635 -Xmx256m -Xms256m</JAVA_OPTIONS>
sebdet056998c2020-08-13 10:32:41 -0700636 </env>
637 <hostname>sdc-FE</hostname>
638 <volumes>
639 <bind>
640 <volume>${it.chef.config}:/var/lib/jetty/chef-solo/environments</volume>
641 <volume>${it.shared.volume}:/var/lib/jetty/logs</volume>
642 <volume>
JulienBe930ed252020-08-25 22:20:30 +0200643 ${it.chef.config}/plugins-configuration.yaml:/var/lib/jetty/config/catalog-fe/plugins-configuration.yaml
sebdet056998c2020-08-13 10:32:41 -0700644 </volume>
645 </bind>
646 </volumes>
647 <wait>
648 <time>60000</time>
649 <tcp>
650 <host>sdc-FE</host>
651 <mode>direct</mode>
652 <ports>
653 <port>9443</port>
654 <port>8181</port>
JulienBeb1679462020-08-19 11:12:59 +0200655 <port>6000</port>
sebdet056998c2020-08-13 10:32:41 -0700656 </ports>
657 </tcp>
658 </wait>
659 <ports>
660 <port>9443:9443</port>
661 <port>8181:8181</port>
JulienBeb1679462020-08-19 11:12:59 +0200662 <port>6000:6000</port>
sebdet056998c2020-08-13 10:32:41 -0700663 </ports>
664 <network>
665 <mode>custom</mode>
666 <name>sdc-network</name>
667 <alias>sdc-FE</alias>
668 </network>
669 </run>
670 </image>
JulienBeb1679462020-08-19 11:12:59 +0200671 <image>
672 <name>onap/sdc-simulator:${it.docker.version}</name>
673 <alias>sdc-simulator</alias>
674 <run>
675 <dependsOn>
676 <container>sdc-frontend</container>
677 </dependsOn>
678 <env>
679 <!--<FE_URL>${it.env.name}</FE_URL>-->
680 <JAVA_OPTIONS>-Xmx128m -Xms128m -Xss1m</JAVA_OPTIONS>
681 <ENVNAME>${it.env.name}</ENVNAME>
682 </env>
683 <hostname>sdc-sim</hostname>
684 <volumes>
685 <bind>
686 <volume>${it.chef.config}:/root/chef-solo/environments</volume>
687 </bind>
688 </volumes>
689 <wait>
690 <time>60000</time>
691 <tcp>
692 <host>sdc-sim</host>
693 <mode>direct</mode>
694 <ports>
695 <port>8080</port>
696 <port>8443</port>
697 </ports>
698 </tcp>
699 </wait>
700 <ports>
JulienBe930ed252020-08-25 22:20:30 +0200701 <!-- http://localhost:8285/login to access SDC -->
JulienBeb1679462020-08-19 11:12:59 +0200702 <port>8285:8080</port>
703 <port>8286:8443</port>
704 </ports>
705 <network>
706 <mode>custom</mode>
707 <name>sdc-network</name>
708 <alias>sdc-sim</alias>
709 </network>
710 </run>
711 </image>
JulienBe930ed252020-08-25 22:20:30 +0200712
713 <image>
714 <name>selenium/standalone-firefox:${it.ui.firefox.version}</name>
715 <alias>firefox-standalone</alias>
716 <run>
717 <hostname>firefox-standalone</hostname>
718 <wait>
719 <time>20000</time>
720 <tcp>
721 <host>firefox-standalone</host>
722 <mode>direct</mode>
723 <ports>
724 <!-- Selenium remote automation port -->
725 <port>4444</port>
726 <!--<port>5900</port>-->
727 <!-- VNC port for viewing the browser result -->
728 <!-- password to access is "secret" -->
729
730 </ports>
731 </tcp>
732 </wait>
733 <env>
734 <SE_OPTS>-debug</SE_OPTS>
735 <JAVA_OPTS>-Xmx512m</JAVA_OPTS>
736 <!--<START_XVFB>false</START_XVFB>-->
737 <SCREEN_WIDTH>1920</SCREEN_WIDTH>
738 <SCREEN_HEIGHT>1440</SCREEN_HEIGHT>
739 </env>
740 <ports>
741 <port>4444:4444</port>
742 <!--<port>5900:5900</port>-->
743 </ports>
744 <network>
745 <mode>custom</mode>
746 <name>sdc-network</name>
747 <alias>firefox-standalone</alias>
748 </network>
749 <volumes>
750 <bind>
751 <volume>
sebdet5b057082020-09-01 23:47:27 +0200752 /tmp/sdc-integration-tests/downloadAutomation/:/home/seluser/Desktop
JulienBe930ed252020-08-25 22:20:30 +0200753 </volume>
754 <volume>/dev/shm:/dev/shm</volume>
755 </bind>
756 </volumes>
757 </run>
758 </image>
sebdet056998c2020-08-13 10:32:41 -0700759 </images>
760 </configuration>
sebdet056998c2020-08-13 10:32:41 -0700761 <executions>
762 <execution>
763 <id>docker-start-for-it</id>
764 <phase>pre-integration-test</phase>
765 <goals>
766 <goal>start</goal>
767 </goals>
768 </execution>
769 <execution>
770 <id>docker-stop-for-it</id>
771 <phase>post-integration-test</phase>
772 <goals>
773 <goal>stop</goal>
774 </goals>
775 </execution>
776 </executions>
777 </plugin>
JulienBeb1679462020-08-19 11:12:59 +0200778
779 <plugin>
780 <groupId>org.apache.maven.plugins</groupId>
781 <artifactId>maven-surefire-plugin</artifactId>
782 <configuration>
783 <skip>true</skip>
784 </configuration>
785 </plugin>
JulienBe930ed252020-08-25 22:20:30 +0200786
JulienBeb1679462020-08-19 11:12:59 +0200787 <plugin>
788 <groupId>org.apache.maven.plugins</groupId>
789 <artifactId>maven-failsafe-plugin</artifactId>
790 <configuration>
sebdet5b057082020-09-01 23:47:27 +0200791 <forkCount>1</forkCount>
792 <reuseForks>true</reuseForks>
amohamad44c6c0d2020-08-09 20:27:40 -0400793 <systemProperties>
794 <property>
795 <name>testng.dtd.http</name>
796 <value>true</value>
797 </property>
798 </systemProperties>
JulienBeb1679462020-08-19 11:12:59 +0200799 <suiteXmlFiles>
sebdetc5c60bf2020-08-25 12:31:39 +0200800 <file>src/test/resources/ci/testSuites/backend/onapApiSanity.xml</file>
JulienBe930ed252020-08-25 22:20:30 +0200801 <file>src/test/resources/ci/testSuites/frontend/onapUiSanity.xml</file>
JulienBeb1679462020-08-19 11:12:59 +0200802 <!--<file>src/test/resources/ci/testSuites/artifacts.xml</file>-->
803 <!--<file>src/test/resources/ci/testSuites/cap_req.xml</file>-->
804 <!--<file>src/test/resources/ci/testSuites/category.xml</file>-->
805 <!--<file>src/test/resources/ci/testSuites/ciFull.xml</file>-->
806 <!--<file>src/test/resources/ci/testSuites/CRUDArtifacts.xml</file>-->
807 <!--<file>src/test/resources/ci/testSuites/externalAPIs.xml</file>-->
808 <!--<file>src/test/resources/ci/testSuites/ExternalApiSanity.xml</file>-->
JulienBe930ed252020-08-25 22:20:30 +0200809 <!-- <file>src/test/resources/ci/testSuites/general.xml</file>-->
810 <!-- <file>src/test/resources/ci/testSuites/imports.xml</file>-->
JulienBeb1679462020-08-19 11:12:59 +0200811 <!--<file>src/test/resources/ci/testSuites/normatives.xml</file>-->
812 <!--<file>src/test/resources/ci/testSuites/onapApiSanity.xml</file>-->
813 <!--<file>src/test/resources/ci/testSuites/pass.xml</file>-->
JulienBe930ed252020-08-25 22:20:30 +0200814 <!-- <file>src/test/resources/ci/testSuites/product.xml</file>-->
JulienBeb1679462020-08-19 11:12:59 +0200815 <!--<file>src/test/resources/ci/testSuites/productAPIs.xml</file>-->
JulienBe930ed252020-08-25 22:20:30 +0200816 <!-- <file>src/test/resources/ci/testSuites/property.xml</file>-->
817 <!-- <file>src/test/resources/ci/testSuites/resource.xml</file>-->
JulienBeb1679462020-08-19 11:12:59 +0200818 <!--<file>src/test/resources/ci/testSuites/sanity.xml</file>-->
819 <!--<file>src/test/resources/ci/testSuites/SearchExternalAPI.xml</file>-->
JulienBe930ed252020-08-25 22:20:30 +0200820 <!-- <file>src/test/resources/ci/testSuites/service.xml</file>-->
JulienBeb1679462020-08-19 11:12:59 +0200821 <!--<file>src/test/resources/ci/testSuites/testngLifeCycle.xml</file>-->
JulienBe930ed252020-08-25 22:20:30 +0200822 <!-- <file>src/test/resources/ci/testSuites/user.xml</file>-->
JulienBeb1679462020-08-19 11:12:59 +0200823 </suiteXmlFiles>
JulienBeb1679462020-08-19 11:12:59 +0200824 </configuration>
825 </plugin>
sebdet056998c2020-08-13 10:32:41 -0700826 </plugins>
827 </build>
828</project>