blob: 9b9569bc71ea29948925a0078cf9376c30e66348 [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.
Maciej Malewski1b441342020-12-10 14:38:00 +01006Modifications copyright (c) 2020 Nokia
sebdet056998c2020-08-13 10:32:41 -07007================================================================================
8Licensed under the Apache License, Version 2.0 (the "License");
9you may not use this file except in compliance with the License.
10You may obtain a copy of the License at
11 *
12 http://www.apache.org/licenses/LICENSE-2.0
13 *
14Unless required by applicable law or agreed to in writing, software
15distributed under the License is distributed on an "AS IS" BASIS,
16WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17See the License for the specific language governing permissions and
18limitations under the License.
19============LICENSE_END=========================================================
20================================================================================
21-->
sebdet591810d2020-09-17 15:07:23 +020022
sebdet056998c2020-08-13 10:32:41 -070023<project xmlns="http://maven.apache.org/POM/4.0.0"
24 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
25 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
26 <modelVersion>4.0.0</modelVersion>
27
sebdet056998c2020-08-13 10:32:41 -070028 <artifactId>sdc-integration-tests</artifactId>
JulienBeb1679462020-08-19 11:12:59 +020029 <packaging>jar</packaging>
sebdet056998c2020-08-13 10:32:41 -070030 <name>sdc-integration-tests</name>
31
32 <parent>
33 <groupId>org.openecomp.sdc</groupId>
34 <artifactId>sdc-main</artifactId>
ChrisCe407cea2020-10-30 16:44:46 +010035 <version>1.8.0-SNAPSHOT</version>
sebdet056998c2020-08-13 10:32:41 -070036 </parent>
37
38 <properties>
JulienBe930ed252020-08-25 22:20:30 +020039 <selenium.version>3.141.59</selenium.version>
40 <gecko.driver.version>0.27.0</gecko.driver.version>
sebdetc5c60bf2020-08-25 12:31:39 +020041 <!-- SDC Startup parameters -->
sebdet056998c2020-08-13 10:32:41 -070042 <it.env.name>integration-test</it.env.name>
43 <it.cassandra.port>9042</it.cassandra.port>
44 <it.cassandra.password>onap123#@!</it.cassandra.password>
45 <it.cassandra.ssl.enabled>false</it.cassandra.ssl.enabled>
46 <it.sdc.cluster.name>SDC-CS-${it.env.name}</it.sdc.cluster.name>
47 <it.sdc.user>asdc_user</it.sdc.user>
48 <it.sdc.password>Aa1234%^!</it.sdc.password>
49 <it.chef.config>${project.build.directory}/chef-config</it.chef.config>
andre.schmid662fcba2020-08-21 11:31:47 +010050 <it.sdc-be.plugins>${project.build.directory}/plugins/sdc-be</it.sdc-be.plugins>
sebdet056998c2020-08-13 10:32:41 -070051 <it.shared.volume>/tmp/sdc-integration-tests</it.shared.volume>
sebdetb988cb62020-09-25 15:48:10 +020052 <it.docker.version>latest</it.docker.version>
JulienBe930ed252020-08-25 22:20:30 +020053 <it.ui.firefox.version>2.53.1</it.ui.firefox.version>
54
vasraz97149612020-10-19 16:33:00 +010055 <!-- parser-->
56 <sdc-tosca-parser.version>1.6.5</sdc-tosca-parser.version>
sebdet056998c2020-08-13 10:32:41 -070057 </properties>
58
59 <dependencies>
JulienBeb1679462020-08-19 11:12:59 +020060 <dependency>
JulienBe61663b92020-09-03 17:09:46 +020061 <groupId>ch.qos.logback</groupId>
62 <artifactId>logback-classic</artifactId>
63 <version>${logback.version}</version>
64 </dependency>
65
66 <dependency>
JulienBeb1679462020-08-19 11:12:59 +020067 <groupId>org.yaml</groupId>
68 <artifactId>snakeyaml</artifactId>
69 <version>${snakeyaml.version}</version>
70 <scope>test</scope>
71 </dependency>
72 <dependency>
73 <groupId>com.google.guava</groupId>
74 <artifactId>guava</artifactId>
JulienBe930ed252020-08-25 22:20:30 +020075 <version>25.0-jre</version>
76 <scope>compile</scope>
JulienBeb1679462020-08-19 11:12:59 +020077 </dependency>
78 <dependency>
79 <groupId>junit</groupId>
80 <artifactId>junit</artifactId>
81 <version>${junit.version}</version>
82 <scope>test</scope>
83 </dependency>
84 <dependency>
85 <groupId>org.testng</groupId>
86 <artifactId>testng</artifactId>
87 <version>${testng.version}</version>
88 <scope>test</scope>
89 </dependency>
90 <dependency>
91 <groupId>com.google.code.gson</groupId>
92 <artifactId>gson</artifactId>
93 <version>${gson.version}</version>
94 <scope>test</scope>
95 </dependency>
96 <dependency>
97 <groupId>org.openecomp.sdc.be</groupId>
98 <artifactId>catalog-model</artifactId>
99 <version>${project.version}</version>
100 <scope>test</scope>
101 </dependency>
102 <dependency>
103 <groupId>org.openecomp.sdc.be</groupId>
104 <artifactId>catalog-dao</artifactId>
105 <version>${project.version}</version>
106 <scope>test</scope>
107 </dependency>
108 <dependency>
Maciej Malewski1b441342020-12-10 14:38:00 +0100109 <groupId>org.openecomp.sdc</groupId>
110 <artifactId>openecomp-sdc-vendor-software-product-manager</artifactId>
111 <version>${project.version}</version>
112 <scope>test</scope>
113 </dependency>
114 <dependency>
JulienBeb1679462020-08-19 11:12:59 +0200115 <groupId>com.aventstack</groupId>
116 <artifactId>extentreports</artifactId>
117 <version>3.0.6</version>
JulienBeb1679462020-08-19 11:12:59 +0200118 <scope>test</scope>
119 </dependency>
120 <dependency>
121 <groupId>org.janusgraph</groupId>
122 <artifactId>janusgraph-core</artifactId>
123 <version>${janusgraph.version}</version>
124 <scope>test</scope>
125 <exclusions>
126 <exclusion>
127 <artifactId>slf4j-log4j12</artifactId>
128 <groupId>org.slf4j</groupId>
129 </exclusion>
130 <exclusion>
131 <artifactId>commons-collections</artifactId>
132 <groupId>commons-collections</groupId>
133 </exclusion>
134 <exclusion>
135 <artifactId>groovy</artifactId>
136 <groupId>org.codehaus.groovy</groupId>
137 </exclusion>
138 <exclusion>
139 <groupId>org.apache.thrift</groupId>
140 <artifactId>libthrift</artifactId>
141 </exclusion>
142 </exclusions>
143 </dependency>
144 <dependency>
145 <groupId>org.assertj</groupId>
146 <artifactId>assertj-core</artifactId>
147 <version>${assertj.version}</version>
148 <scope>test</scope>
149 </dependency>
150 <dependency>
151 <groupId>com.clearspring.analytics</groupId>
152 <artifactId>stream</artifactId>
153 <version>${clearspring.version}</version>
154 <scope>test</scope>
155 </dependency>
156 <dependency>
157 <groupId>org.apache.httpcomponents</groupId>
158 <artifactId>httpclient</artifactId>
159 <version>${httpclient.version}</version>
160 <scope>test</scope>
161 </dependency>
162 <dependency>
163 <groupId>org.apache.httpcomponents</groupId>
164 <artifactId>httpcore</artifactId>
165 <version>${httpcore.version}</version>
166 <scope>test</scope>
167 </dependency>
168 <dependency>
169 <groupId>com.fasterxml.jackson.core</groupId>
170 <artifactId>jackson-core</artifactId>
171 <version>${jackson.version}</version>
172 <scope>test</scope>
173 </dependency>
174 <dependency>
175 <groupId>org.codehaus.jackson</groupId>
176 <artifactId>jackson-mapper-asl</artifactId>
177 <version>1.9.2</version>
178 <scope>test</scope>
179 </dependency>
180 <dependency>
181 <groupId>com.fasterxml.jackson.core</groupId>
182 <artifactId>jackson-databind</artifactId>
183 <version>${jackson.version}</version>
184 <scope>test</scope>
185 <exclusions>
186 <exclusion>
187 <groupId>com.fasterxml.jackson.core</groupId>
188 <artifactId>jackson-core</artifactId>
189 </exclusion>
190 </exclusions>
191 </dependency>
sebdetc5c60bf2020-08-25 12:31:39 +0200192
vasraz97149612020-10-19 16:33:00 +0100193 <dependency>
194 <groupId>org.onap.sdc.sdc-tosca</groupId>
195 <artifactId>sdc-tosca</artifactId>
196 <version>${sdc-tosca-parser.version}</version>
197 </dependency>
198
sebdetc5c60bf2020-08-25 12:31:39 +0200199 <!--FOR the Frontend -->
200 <dependency>
201 <groupId>org.seleniumhq.selenium</groupId>
202 <artifactId>selenium-java</artifactId>
203 <scope>test</scope>
JulienBe930ed252020-08-25 22:20:30 +0200204 <version>${selenium.version}</version>
sebdetc5c60bf2020-08-25 12:31:39 +0200205 </dependency>
206 <dependency>
JulienBe930ed252020-08-25 22:20:30 +0200207 <groupId>org.seleniumhq.selenium</groupId>
208 <artifactId>selenium-server</artifactId>
209 <version>4.0.0-alpha-2</version>
210 <scope>test</scope>
211 </dependency>
212 <dependency>
213 <groupId>org.seleniumhq.selenium</groupId>
214 <artifactId>selenium-firefox-driver</artifactId>
215 <version>${selenium.version}</version>
216 <scope>test</scope>
217 </dependency>
218
219 <dependency>
sebdetc5c60bf2020-08-25 12:31:39 +0200220 <groupId>net.lightbody.bmp</groupId>
221 <!-- To use the legacy, Jetty-based implementation, change the artifactId
222 to browsermob-core -->
223 <artifactId>browsermob-core</artifactId>
224 <version>2.1.4</version>
225 <scope>test</scope>
226 <exclusions>
227 <exclusion>
228 <groupId>com.fasterxml.jackson.core</groupId>
229 <artifactId>jackson-core</artifactId>
230 </exclusion>
231 </exclusions>
232 </dependency>
233 <dependency>
234 <groupId>com.paulhammant</groupId>
235 <artifactId>ngwebdriver</artifactId>
236 <version>0.9.7</version>
237 <scope>test</scope>
238 </dependency>
239 <dependency>
240 <groupId>com.github.markusbernhardt</groupId>
241 <artifactId>proxy-vole</artifactId>
242 <version>1.0.2</version>
243 <scope>test</scope>
244 </dependency>
245 <dependency>
246 <groupId>org.hamcrest</groupId>
247 <artifactId>hamcrest</artifactId>
248 <version>${hamcrest.version}</version>
249 <scope>test</scope>
250 </dependency>
251 <dependency>
252 <groupId>commons-net</groupId>
253 <artifactId>commons-net</artifactId>
254 <version>3.3</version>
255 <scope>test</scope>
256 </dependency>
sebdeta9fffd22020-10-08 13:28:36 +0200257 <dependency>
258 <groupId>org.apache.logging.log4j</groupId>
259 <artifactId>log4j-api</artifactId>
260 <version>2.13.1</version>
261 <scope>test</scope>
262 </dependency>
sebdet056998c2020-08-13 10:32:41 -0700263 </dependencies>
264
265 <build>
266 <plugins>
267 <!-- Section for Integration tests -->
268 <plugin>
269 <artifactId>maven-resources-plugin</artifactId>
270 <executions>
271 <execution>
sebdet5b057082020-09-01 23:47:27 +0200272 <id>copy-chef-resources</id>
sebdet056998c2020-08-13 10:32:41 -0700273 <phase>pre-integration-test</phase>
274 <goals>
275 <goal>copy-resources</goal>
276 </goals>
277 <configuration>
278 <outputDirectory>${it.chef.config}</outputDirectory>
279 <resources>
280 <resource>
JulienBeb1679462020-08-19 11:12:59 +0200281 <directory>environments</directory>
sebdet056998c2020-08-13 10:32:41 -0700282 <filtering>true</filtering>
283 <includes>
284 <include>integration-test.json</include>
JulienBe930ed252020-08-25 22:20:30 +0200285 <include>plugins-configuration.yaml</include>
sebdet056998c2020-08-13 10:32:41 -0700286 </includes>
287 </resource>
288 </resources>
289 </configuration>
290 </execution>
andre.schmid662fcba2020-08-21 11:31:47 +0100291 <execution>
292 <id>copy-sdc-be-plugins</id>
293 <phase>pre-integration-test</phase>
294 <goals>
295 <goal>copy-resources</goal>
296 </goals>
297 <configuration>
298 <outputDirectory>${it.sdc-be.plugins}</outputDirectory>
299 <resources>
300 <resource>
301 <directory>../catalog-be-plugins/etsi-nfv-nsd-csar-plugin/target</directory>
302 <filtering>false</filtering>
303 <includes>
vasraz97149612020-10-19 16:33:00 +0100304 <include>etsi-nfv-nsd-csar-plugin-${project.version}.jar</include>
andre.schmid662fcba2020-08-21 11:31:47 +0100305 </includes>
306 </resource>
307 </resources>
308 </configuration>
309 </execution>
sebdet056998c2020-08-13 10:32:41 -0700310 </executions>
311 </plugin>
312 <plugin>
JulienBe930ed252020-08-25 22:20:30 +0200313 <groupId>org.codehaus.mojo</groupId>
314 <artifactId>wagon-maven-plugin</artifactId>
315 <version>2.0.0</version>
316 <executions>
317 <execution>
318 <id>download-gecko</id>
319 <phase>validate</phase>
320 <goals>
321 <goal>download-single</goal>
322 </goals>
323 <configuration>
324 <url>https://github.com</url>
325 <fromFile>
326 mozilla/geckodriver/releases/download/v${gecko.driver.version}/geckodriver-v${gecko.driver.version}-linux64.tar.gz
327 </fromFile>
328 <toDir>${project.build.directory}/gecko</toDir>
329 </configuration>
330 </execution>
331 </executions>
332 </plugin>
333 <plugin>
sebdet056998c2020-08-13 10:32:41 -0700334 <artifactId>maven-antrun-plugin</artifactId>
335 <version>1.8</version>
sebdet056998c2020-08-13 10:32:41 -0700336 <executions>
337 <execution>
JulienBe930ed252020-08-25 22:20:30 +0200338 <id>set-folder-permission</id>
sebdet056998c2020-08-13 10:32:41 -0700339 <phase>pre-integration-test</phase>
340 <configuration>
341 <target>
sebdet5b057082020-09-01 23:47:27 +0200342 <mkdir dir="/tmp/sdc-integration-tests"/>
343 <chmod dir="/tmp/sdc-integration-tests" type="dir" perm="ugo+rwx"/>
344 <mkdir dir="/tmp/sdc-integration-tests/downloadAutomation"/>
345 <chmod dir="/tmp/sdc-integration-tests/downloadAutomation" type="dir" perm="ugo+rwx"/>
JulienBe930ed252020-08-25 22:20:30 +0200346 </target>
347 </configuration>
348 <goals>
349 <goal>run</goal>
350 </goals>
351 </execution>
352 <execution>
353 <id>untar-gecko</id>
354 <phase>pre-integration-test</phase>
355 <configuration>
356 <target>
357 <untar src="${project.build.directory}/gecko/geckodriver-v${gecko.driver.version}-linux64.tar.gz"
358 compression="gzip" dest="${project.build.directory}/gecko/"/>
359 <chmod dir="${project.build.directory}/gecko/geckodriver" type="dir" perm="ugo+rwx"/>
sebdet056998c2020-08-13 10:32:41 -0700360 </target>
361 </configuration>
362 <goals>
363 <goal>run</goal>
364 </goals>
365 </execution>
366 </executions>
367 </plugin>
368 <plugin>
369 <groupId>org.codehaus.mojo</groupId>
370 <artifactId>build-helper-maven-plugin</artifactId>
sebdet056998c2020-08-13 10:32:41 -0700371 <executions>
372 <execution>
373 <id>reserve-port-for-tests</id>
374 <phase>validate</phase>
375 <goals>
376 <goal>reserve-network-port</goal>
377 </goals>
378 <configuration>
379 <portNames>
380 <portName>sdc.it.docker.cassandra.port</portName>
381 </portNames>
382 </configuration>
383 </execution>
384 </executions>
385 </plugin>
386 <plugin>
387 <groupId>io.fabric8</groupId>
388 <artifactId>docker-maven-plugin</artifactId>
sebdet056998c2020-08-13 10:32:41 -0700389 <dependencies>
390 <dependency>
391 <groupId>org.apache.httpcomponents</groupId>
392 <artifactId>httpclient</artifactId>
393 <version>4.5.5</version>
394 </dependency>
395 </dependencies>
396 <configuration>
397 <verbose>true</verbose>
sebdet591810d2020-09-17 15:07:23 +0200398 <apiVersion>${docker.api.version}</apiVersion>
sebdet056998c2020-08-13 10:32:41 -0700399 <autoCreateCustomNetworks>true</autoCreateCustomNetworks>
400 <images>
401 <image>
402 <name>onap/sdc-cassandra:${it.docker.version}</name>
403 <alias>sdc-cassandra</alias>
404 <run>
405 <env>
406 <RELEASE>${project.version}</RELEASE>
407 <CS_PASSWORD>${it.cassandra.password}</CS_PASSWORD>
408 <ENVNAME>${it.env.name}</ENVNAME>
409 <MAX_HEAP_SIZE>1536M</MAX_HEAP_SIZE>
410 <HEAP_NEWSIZE>512M</HEAP_NEWSIZE>
411 </env>
412 <hostname>sdc-cs</hostname>
413 <volumes>
414 <bind>
415 <volume>${it.chef.config}:/root/chef-solo/environments</volume>
416 </bind>
417 </volumes>
418 <ulimits>
419 <ulimit>
420 <name>memlock</name>
421 <hard>-1</hard>
422 <soft>-1</soft>
423 </ulimit>
424 <ulimit>
425 <name>nofile</name>
426 <hard>100000</hard>
427 <soft>100000</soft>
428 </ulimit>
429 </ulimits>
430 <wait>
431 <time>120000</time>
432 <tcp>
433 <host>sdc-cs</host>
434 <mode>direct</mode>
435 <ports>
436 <port>9042</port>
437 </ports>
438 </tcp>
439 </wait>
440 <ports>
441 <port>9042:9042</port>
442 </ports>
443 <network>
444 <mode>custom</mode>
445 <name>sdc-network</name>
446 <alias>sdc-cs</alias>
447 </network>
448 </run>
449 </image>
450 <image>
451 <name>onap/sdc-cassandra-init:${it.docker.version}</name>
452 <alias>sdc-cassandra-init</alias>
453 <run>
454 <dependsOn>
455 <container>sdc-cassandra</container>
456 </dependsOn>
457 <env>
458 <RELEASE>${project.version}</RELEASE>
459 <SDC_USER>${it.sdc.user}</SDC_USER>
460 <SDC_PASSWORD>${it.sdc.password}</SDC_PASSWORD>
461 <CS_PASSWORD>${it.cassandra.password}</CS_PASSWORD>
462 <ENVNAME>${it.env.name}</ENVNAME>
463 </env>
464 <hostname>sdc-cs-init</hostname>
465 <volumes>
466 <bind>
467 <volume>${it.chef.config}:/home/sdc/chef-solo/environments</volume>
468 </bind>
469 </volumes>
470 <wait>
471 <time>300000</time>
472 <log>SdcSchemaFileImport successfully completed</log>
473 </wait>
474 <network>
475 <mode>custom</mode>
476 <name>sdc-network</name>
477 <alias>sdc-cs-init</alias>
478 </network>
479 </run>
480 </image>
481 <image>
482 <name>onap/sdc-onboard-cassandra-init:${it.docker.version}</name>
483 <alias>sdc-cassandra-onboard-init</alias>
484 <run>
485 <dependsOn>
sebdet5b057082020-09-01 23:47:27 +0200486 <container>sdc-cassandra</container>
sebdet056998c2020-08-13 10:32:41 -0700487 </dependsOn>
488 <env>
489 <RELEASE>${project.version}</RELEASE>
490 <SDC_USER>${it.sdc.user}</SDC_USER>
491 <SDC_PASSWORD>${it.sdc.password}</SDC_PASSWORD>
492 <CS_PASSWORD>${it.cassandra.password}</CS_PASSWORD>
493 <CS_HOST_PORT>${it.cassandra.port}</CS_HOST_PORT>
494 <ENVNAME>${it.env.name}</ENVNAME>
495 <CS_HOST_IP>sdc-cs</CS_HOST_IP>
496 </env>
497 <hostname>sdc-cs-onboard-init</hostname>
498 <volumes>
499 <bind>
500 <volume>${it.chef.config}:/home/sdc/chef-solo/environments</volume>
501 </bind>
502 </volumes>
503 <wait>
504 <time>30000</time>
505 <log>Initializing onboard schemas</log>
506 </wait>
507 <network>
508 <mode>custom</mode>
509 <name>sdc-network</name>
510 <alias>sdc-cs-onboard-init</alias>
511 </network>
512 </run>
513 </image>
514 <image>
515 <name>onap/sdc-onboard-backend:${it.docker.version}</name>
516 <alias>sdc-onboard-backend</alias>
517 <run>
518 <dependsOn>
519 <container>sdc-cassandra-onboard-init</container>
520 </dependsOn>
521 <env>
522 <cassandra_ssl_enabled>${it.cassandra.ssl.enabled}</cassandra_ssl_enabled>
523 <SDC_CLUSTER_NAME>${it.sdc.cluster.name}</SDC_CLUSTER_NAME>
524 <SDC_USER>${it.sdc.user}</SDC_USER>
525 <SDC_PASSWORD>${it.sdc.password}</SDC_PASSWORD>
526 <ENVNAME>${it.env.name}</ENVNAME>
527 <SDC_CERT_DIR>onap/cert</SDC_CERT_DIR>
sebdet30670ac2020-08-04 14:16:00 +0200528 <JAVA_OPTIONS>-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:4001 -Xmx1g -Xms1g</JAVA_OPTIONS>
sebdet056998c2020-08-13 10:32:41 -0700529 </env>
530 <hostname>sdc-onboard-BE</hostname>
531 <volumes>
532 <bind>
533 <volume>${it.chef.config}:/var/lib/jetty/chef-solo/environments</volume>
JulienBe930ed252020-08-25 22:20:30 +0200534 <volume>${project.basedir}/src/test/resources/cert:/var/lib/jetty/onap/cert
535 </volume>
sebdete0433832020-10-08 11:39:32 +0200536 <volume>${it.shared.volume}:/var/lib/jetty/logs</volume>
sebdet056998c2020-08-13 10:32:41 -0700537 </bind>
538 </volumes>
539 <wait>
sebdet30670ac2020-08-04 14:16:00 +0200540 <time>300000</time>
sebdet056998c2020-08-13 10:32:41 -0700541 <tcp>
542 <host>sdc-onboard-BE</host>
543 <mode>direct</mode>
544 <ports>
545 <port>8445</port>
546 <port>8081</port>
JulienBeb1679462020-08-19 11:12:59 +0200547 <port>4001</port>
sebdet056998c2020-08-13 10:32:41 -0700548 </ports>
549 </tcp>
550 </wait>
551 <ports>
552 <port>8445:8445</port>
553 <port>8081:8081</port>
JulienBeb1679462020-08-19 11:12:59 +0200554 <port>4001:4001</port>
sebdet056998c2020-08-13 10:32:41 -0700555 </ports>
556 <network>
557 <mode>custom</mode>
558 <name>sdc-network</name>
559 <alias>sdc-onboard-BE</alias>
560 </network>
561 </run>
562 </image>
563 <image>
sebdet591810d2020-09-17 15:07:23 +0200564 <name>onap/sdc-backend-all-plugins:${it.docker.version}</name>
sebdet056998c2020-08-13 10:32:41 -0700565 <alias>sdc-backend</alias>
566 <run>
567 <dependsOn>
sebdet5b057082020-09-01 23:47:27 +0200568 <container>sdc-cassandra-init</container>
sebdet056998c2020-08-13 10:32:41 -0700569 </dependsOn>
570 <env>
571 <cassandra_ssl_enabled>${it.cassandra.ssl.enabled}</cassandra_ssl_enabled>
572 <ENVNAME>${it.env.name}</ENVNAME>
sebdet30670ac2020-08-04 14:16:00 +0200573 <JAVA_OPTIONS>-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:4000
574 -Xmx1536m -Xms1536m</JAVA_OPTIONS>
sebdet056998c2020-08-13 10:32:41 -0700575 </env>
576 <hostname>sdc-BE</hostname>
577 <volumes>
578 <bind>
579 <volume>${it.chef.config}:/var/lib/jetty/chef-solo/environments</volume>
580 <volume>${it.shared.volume}:/var/lib/jetty/logs</volume>
581 </bind>
582 </volumes>
583 <wait>
584 <time>60000</time>
585 <tcp>
586 <host>sdc-BE</host>
587 <mode>direct</mode>
588 <ports>
589 <port>8443</port>
590 <port>8080</port>
JulienBeb1679462020-08-19 11:12:59 +0200591 <port>4000</port>
sebdet056998c2020-08-13 10:32:41 -0700592 </ports>
593 </tcp>
594 </wait>
595 <ports>
596 <port>8443:8443</port>
597 <port>8080:8080</port>
JulienBeb1679462020-08-19 11:12:59 +0200598 <port>4000:4000</port>
sebdet056998c2020-08-13 10:32:41 -0700599 </ports>
600 <network>
601 <mode>custom</mode>
602 <name>sdc-network</name>
603 <alias>sdc-BE</alias>
604 </network>
605 </run>
606 </image>
607 <image>
608 <name>onap/sdc-backend-init:${it.docker.version}</name>
609 <alias>sdc-backend-init</alias>
610 <run>
611 <dependsOn>
612 <container>sdc-backend</container>
613 </dependsOn>
614 <env>
615 <ENVNAME>${it.env.name}</ENVNAME>
616 </env>
617 <hostname>sdc-BE-init</hostname>
618 <volumes>
619 <bind>
620 <volume>${it.chef.config}:/home/onap/chef-solo/environments</volume>
621 <volume>${it.shared.volume}:/var/lib/jetty/logs</volume>
622 </bind>
623 </volumes>
624 <wait>
xuegaoa856d542020-12-18 10:37:23 +0100625 <time>660000</time>
sebdet056998c2020-08-13 10:32:41 -0700626 <log>Chef Client finished</log>
627 </wait>
628 <network>
629 <mode>custom</mode>
630 <name>sdc-network</name>
631 <alias>sdc-BE-init</alias>
632 </network>
633 </run>
634 </image>
635 <image>
636 <name>onap/sdc-frontend:${it.docker.version}</name>
637 <alias>sdc-frontend</alias>
638 <run>
sebdet056998c2020-08-13 10:32:41 -0700639 <env>
640 <ENVNAME>${it.env.name}</ENVNAME>
sebdet30670ac2020-08-04 14:16:00 +0200641 <JAVA_OPTIONS>-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:6000
642 -Xmx256m -Xms256m</JAVA_OPTIONS>
sebdet056998c2020-08-13 10:32:41 -0700643 </env>
644 <hostname>sdc-FE</hostname>
645 <volumes>
646 <bind>
647 <volume>${it.chef.config}:/var/lib/jetty/chef-solo/environments</volume>
648 <volume>${it.shared.volume}:/var/lib/jetty/logs</volume>
649 <volume>
JulienBe930ed252020-08-25 22:20:30 +0200650 ${it.chef.config}/plugins-configuration.yaml:/var/lib/jetty/config/catalog-fe/plugins-configuration.yaml
sebdet056998c2020-08-13 10:32:41 -0700651 </volume>
652 </bind>
653 </volumes>
654 <wait>
655 <time>60000</time>
656 <tcp>
657 <host>sdc-FE</host>
658 <mode>direct</mode>
659 <ports>
660 <port>9443</port>
661 <port>8181</port>
JulienBeb1679462020-08-19 11:12:59 +0200662 <port>6000</port>
sebdet056998c2020-08-13 10:32:41 -0700663 </ports>
664 </tcp>
665 </wait>
666 <ports>
667 <port>9443:9443</port>
668 <port>8181:8181</port>
JulienBeb1679462020-08-19 11:12:59 +0200669 <port>6000:6000</port>
sebdet056998c2020-08-13 10:32:41 -0700670 </ports>
671 <network>
672 <mode>custom</mode>
673 <name>sdc-network</name>
674 <alias>sdc-FE</alias>
675 </network>
676 </run>
677 </image>
JulienBeb1679462020-08-19 11:12:59 +0200678 <image>
679 <name>onap/sdc-simulator:${it.docker.version}</name>
680 <alias>sdc-simulator</alias>
681 <run>
682 <dependsOn>
683 <container>sdc-frontend</container>
684 </dependsOn>
685 <env>
686 <!--<FE_URL>${it.env.name}</FE_URL>-->
687 <JAVA_OPTIONS>-Xmx128m -Xms128m -Xss1m</JAVA_OPTIONS>
688 <ENVNAME>${it.env.name}</ENVNAME>
689 </env>
690 <hostname>sdc-sim</hostname>
691 <volumes>
692 <bind>
693 <volume>${it.chef.config}:/root/chef-solo/environments</volume>
694 </bind>
695 </volumes>
696 <wait>
697 <time>60000</time>
698 <tcp>
699 <host>sdc-sim</host>
700 <mode>direct</mode>
701 <ports>
702 <port>8080</port>
703 <port>8443</port>
704 </ports>
705 </tcp>
706 </wait>
707 <ports>
JulienBe930ed252020-08-25 22:20:30 +0200708 <!-- http://localhost:8285/login to access SDC -->
JulienBeb1679462020-08-19 11:12:59 +0200709 <port>8285:8080</port>
710 <port>8286:8443</port>
711 </ports>
712 <network>
713 <mode>custom</mode>
714 <name>sdc-network</name>
715 <alias>sdc-sim</alias>
716 </network>
717 </run>
718 </image>
JulienBe930ed252020-08-25 22:20:30 +0200719
720 <image>
721 <name>selenium/standalone-firefox:${it.ui.firefox.version}</name>
722 <alias>firefox-standalone</alias>
723 <run>
724 <hostname>firefox-standalone</hostname>
725 <wait>
726 <time>20000</time>
727 <tcp>
728 <host>firefox-standalone</host>
729 <mode>direct</mode>
730 <ports>
731 <!-- Selenium remote automation port -->
732 <port>4444</port>
733 <!--<port>5900</port>-->
734 <!-- VNC port for viewing the browser result -->
735 <!-- password to access is "secret" -->
736
737 </ports>
738 </tcp>
739 </wait>
740 <env>
741 <SE_OPTS>-debug</SE_OPTS>
742 <JAVA_OPTS>-Xmx512m</JAVA_OPTS>
743 <!--<START_XVFB>false</START_XVFB>-->
744 <SCREEN_WIDTH>1920</SCREEN_WIDTH>
745 <SCREEN_HEIGHT>1440</SCREEN_HEIGHT>
746 </env>
747 <ports>
748 <port>4444:4444</port>
749 <!--<port>5900:5900</port>-->
750 </ports>
751 <network>
752 <mode>custom</mode>
753 <name>sdc-network</name>
754 <alias>firefox-standalone</alias>
755 </network>
756 <volumes>
757 <bind>
758 <volume>
sebdet5b057082020-09-01 23:47:27 +0200759 /tmp/sdc-integration-tests/downloadAutomation/:/home/seluser/Desktop
JulienBe930ed252020-08-25 22:20:30 +0200760 </volume>
761 <volume>/dev/shm:/dev/shm</volume>
762 </bind>
763 </volumes>
764 </run>
765 </image>
sebdet056998c2020-08-13 10:32:41 -0700766 </images>
767 </configuration>
sebdet056998c2020-08-13 10:32:41 -0700768 <executions>
769 <execution>
770 <id>docker-start-for-it</id>
771 <phase>pre-integration-test</phase>
772 <goals>
773 <goal>start</goal>
774 </goals>
775 </execution>
776 <execution>
777 <id>docker-stop-for-it</id>
778 <phase>post-integration-test</phase>
779 <goals>
780 <goal>stop</goal>
781 </goals>
782 </execution>
783 </executions>
784 </plugin>
JulienBeb1679462020-08-19 11:12:59 +0200785
786 <plugin>
787 <groupId>org.apache.maven.plugins</groupId>
788 <artifactId>maven-surefire-plugin</artifactId>
789 <configuration>
790 <skip>true</skip>
791 </configuration>
792 </plugin>
JulienBe930ed252020-08-25 22:20:30 +0200793
JulienBeb1679462020-08-19 11:12:59 +0200794 <plugin>
795 <groupId>org.apache.maven.plugins</groupId>
796 <artifactId>maven-failsafe-plugin</artifactId>
797 <configuration>
sebdet5b057082020-09-01 23:47:27 +0200798 <forkCount>1</forkCount>
799 <reuseForks>true</reuseForks>
amohamad44c6c0d2020-08-09 20:27:40 -0400800 <systemProperties>
801 <property>
802 <name>testng.dtd.http</name>
803 <value>true</value>
804 </property>
805 </systemProperties>
JulienBeb1679462020-08-19 11:12:59 +0200806 <suiteXmlFiles>
sebdetc5c60bf2020-08-25 12:31:39 +0200807 <file>src/test/resources/ci/testSuites/backend/onapApiSanity.xml</file>
JulienBe930ed252020-08-25 22:20:30 +0200808 <file>src/test/resources/ci/testSuites/frontend/onapUiSanity.xml</file>
JulienBeb1679462020-08-19 11:12:59 +0200809 <!--<file>src/test/resources/ci/testSuites/artifacts.xml</file>-->
810 <!--<file>src/test/resources/ci/testSuites/cap_req.xml</file>-->
811 <!--<file>src/test/resources/ci/testSuites/category.xml</file>-->
812 <!--<file>src/test/resources/ci/testSuites/ciFull.xml</file>-->
813 <!--<file>src/test/resources/ci/testSuites/CRUDArtifacts.xml</file>-->
814 <!--<file>src/test/resources/ci/testSuites/externalAPIs.xml</file>-->
815 <!--<file>src/test/resources/ci/testSuites/ExternalApiSanity.xml</file>-->
JulienBe930ed252020-08-25 22:20:30 +0200816 <!-- <file>src/test/resources/ci/testSuites/general.xml</file>-->
817 <!-- <file>src/test/resources/ci/testSuites/imports.xml</file>-->
JulienBeb1679462020-08-19 11:12:59 +0200818 <!--<file>src/test/resources/ci/testSuites/normatives.xml</file>-->
819 <!--<file>src/test/resources/ci/testSuites/onapApiSanity.xml</file>-->
820 <!--<file>src/test/resources/ci/testSuites/pass.xml</file>-->
JulienBe930ed252020-08-25 22:20:30 +0200821 <!-- <file>src/test/resources/ci/testSuites/product.xml</file>-->
JulienBeb1679462020-08-19 11:12:59 +0200822 <!--<file>src/test/resources/ci/testSuites/productAPIs.xml</file>-->
JulienBe930ed252020-08-25 22:20:30 +0200823 <!-- <file>src/test/resources/ci/testSuites/property.xml</file>-->
824 <!-- <file>src/test/resources/ci/testSuites/resource.xml</file>-->
JulienBeb1679462020-08-19 11:12:59 +0200825 <!--<file>src/test/resources/ci/testSuites/sanity.xml</file>-->
826 <!--<file>src/test/resources/ci/testSuites/SearchExternalAPI.xml</file>-->
JulienBe930ed252020-08-25 22:20:30 +0200827 <!-- <file>src/test/resources/ci/testSuites/service.xml</file>-->
JulienBeb1679462020-08-19 11:12:59 +0200828 <!--<file>src/test/resources/ci/testSuites/testngLifeCycle.xml</file>-->
JulienBe930ed252020-08-25 22:20:30 +0200829 <!-- <file>src/test/resources/ci/testSuites/user.xml</file>-->
JulienBeb1679462020-08-19 11:12:59 +0200830 </suiteXmlFiles>
JulienBeb1679462020-08-19 11:12:59 +0200831 </configuration>
832 </plugin>
sebdet056998c2020-08-13 10:32:41 -0700833 </plugins>
834 </build>
835</project>