blob: 87761e6f0c3aae58d52acc504a8fee97334606d4 [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"
vasraz787cfd52021-03-23 17:47:51 +000024 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">
sebdet056998c2020-08-13 10:32:41 -070026 <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>
ChrisC00acf3d2021-03-22 13:54:06 +010035 <version>1.9.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>
andre.schmida64494f2021-03-15 16:51:12 +000040 <gecko.driver.version>0.29.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>
andre.schmida64494f2021-03-15 16:51:12 +000053 <it.ui.firefox.version>86.0</it.ui.firefox.version>
JulienBe930ed252020-08-25 22:20:30 +020054
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>
andre.schmidf72d59b2021-02-25 18:00:48 +000073 <groupId>org.hamcrest</groupId>
74 <artifactId>hamcrest</artifactId>
75 <version>${hamcrest.version}</version>
76 <scope>test</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>
andre.schmidf72d59b2021-02-25 18:00:48 +000083 <exclusions>
84 <exclusion>
85 <groupId>org.hamcrest</groupId>
86 <artifactId>hamcrest-core</artifactId>
87 </exclusion>
88 </exclusions>
JulienBeb1679462020-08-19 11:12:59 +020089 </dependency>
90 <dependency>
91 <groupId>org.testng</groupId>
92 <artifactId>testng</artifactId>
93 <version>${testng.version}</version>
94 <scope>test</scope>
95 </dependency>
96 <dependency>
97 <groupId>com.google.code.gson</groupId>
98 <artifactId>gson</artifactId>
99 <version>${gson.version}</version>
100 <scope>test</scope>
101 </dependency>
102 <dependency>
103 <groupId>org.openecomp.sdc.be</groupId>
104 <artifactId>catalog-model</artifactId>
105 <version>${project.version}</version>
106 <scope>test</scope>
107 </dependency>
108 <dependency>
109 <groupId>org.openecomp.sdc.be</groupId>
110 <artifactId>catalog-dao</artifactId>
111 <version>${project.version}</version>
112 <scope>test</scope>
113 </dependency>
114 <dependency>
Maciej Malewski1b441342020-12-10 14:38:00 +0100115 <groupId>org.openecomp.sdc</groupId>
116 <artifactId>openecomp-sdc-vendor-software-product-manager</artifactId>
117 <version>${project.version}</version>
118 <scope>test</scope>
119 </dependency>
120 <dependency>
JulienBeb1679462020-08-19 11:12:59 +0200121 <groupId>com.aventstack</groupId>
122 <artifactId>extentreports</artifactId>
123 <version>3.0.6</version>
JulienBeb1679462020-08-19 11:12:59 +0200124 <scope>test</scope>
125 </dependency>
126 <dependency>
127 <groupId>org.janusgraph</groupId>
128 <artifactId>janusgraph-core</artifactId>
129 <version>${janusgraph.version}</version>
130 <scope>test</scope>
131 <exclusions>
132 <exclusion>
vasraz086406a2021-02-22 09:50:07 +0000133 <artifactId>gremlin-groovy</artifactId>
134 <groupId>org.apache.tinkerpop</groupId>
135 </exclusion>
136 <exclusion>
JulienBeb1679462020-08-19 11:12:59 +0200137 <artifactId>slf4j-log4j12</artifactId>
138 <groupId>org.slf4j</groupId>
139 </exclusion>
140 <exclusion>
141 <artifactId>commons-collections</artifactId>
142 <groupId>commons-collections</groupId>
143 </exclusion>
144 <exclusion>
145 <artifactId>groovy</artifactId>
146 <groupId>org.codehaus.groovy</groupId>
147 </exclusion>
148 <exclusion>
149 <groupId>org.apache.thrift</groupId>
150 <artifactId>libthrift</artifactId>
151 </exclusion>
152 </exclusions>
153 </dependency>
154 <dependency>
155 <groupId>org.assertj</groupId>
156 <artifactId>assertj-core</artifactId>
157 <version>${assertj.version}</version>
158 <scope>test</scope>
159 </dependency>
160 <dependency>
161 <groupId>com.clearspring.analytics</groupId>
162 <artifactId>stream</artifactId>
163 <version>${clearspring.version}</version>
164 <scope>test</scope>
165 </dependency>
166 <dependency>
167 <groupId>org.apache.httpcomponents</groupId>
168 <artifactId>httpclient</artifactId>
169 <version>${httpclient.version}</version>
170 <scope>test</scope>
171 </dependency>
172 <dependency>
173 <groupId>org.apache.httpcomponents</groupId>
174 <artifactId>httpcore</artifactId>
175 <version>${httpcore.version}</version>
176 <scope>test</scope>
177 </dependency>
178 <dependency>
179 <groupId>com.fasterxml.jackson.core</groupId>
180 <artifactId>jackson-core</artifactId>
181 <version>${jackson.version}</version>
182 <scope>test</scope>
183 </dependency>
184 <dependency>
185 <groupId>org.codehaus.jackson</groupId>
186 <artifactId>jackson-mapper-asl</artifactId>
187 <version>1.9.2</version>
188 <scope>test</scope>
189 </dependency>
190 <dependency>
191 <groupId>com.fasterxml.jackson.core</groupId>
192 <artifactId>jackson-databind</artifactId>
193 <version>${jackson.version}</version>
194 <scope>test</scope>
195 <exclusions>
196 <exclusion>
197 <groupId>com.fasterxml.jackson.core</groupId>
198 <artifactId>jackson-core</artifactId>
199 </exclusion>
200 </exclusions>
201 </dependency>
sebdetc5c60bf2020-08-25 12:31:39 +0200202
vasraz97149612020-10-19 16:33:00 +0100203 <dependency>
204 <groupId>org.onap.sdc.sdc-tosca</groupId>
205 <artifactId>sdc-tosca</artifactId>
206 <version>${sdc-tosca-parser.version}</version>
207 </dependency>
208
sebdetc5c60bf2020-08-25 12:31:39 +0200209 <!--FOR the Frontend -->
210 <dependency>
211 <groupId>org.seleniumhq.selenium</groupId>
212 <artifactId>selenium-java</artifactId>
213 <scope>test</scope>
JulienBe930ed252020-08-25 22:20:30 +0200214 <version>${selenium.version}</version>
sebdetc5c60bf2020-08-25 12:31:39 +0200215 </dependency>
216 <dependency>
JulienBe930ed252020-08-25 22:20:30 +0200217 <groupId>org.seleniumhq.selenium</groupId>
218 <artifactId>selenium-server</artifactId>
andre.schmida64494f2021-03-15 16:51:12 +0000219 <version>${selenium.version}</version>
JulienBe930ed252020-08-25 22:20:30 +0200220 <scope>test</scope>
221 </dependency>
222 <dependency>
223 <groupId>org.seleniumhq.selenium</groupId>
224 <artifactId>selenium-firefox-driver</artifactId>
225 <version>${selenium.version}</version>
226 <scope>test</scope>
227 </dependency>
228
229 <dependency>
sebdetc5c60bf2020-08-25 12:31:39 +0200230 <groupId>net.lightbody.bmp</groupId>
231 <!-- To use the legacy, Jetty-based implementation, change the artifactId
232 to browsermob-core -->
233 <artifactId>browsermob-core</artifactId>
234 <version>2.1.4</version>
235 <scope>test</scope>
236 <exclusions>
237 <exclusion>
238 <groupId>com.fasterxml.jackson.core</groupId>
239 <artifactId>jackson-core</artifactId>
240 </exclusion>
241 </exclusions>
242 </dependency>
243 <dependency>
244 <groupId>com.paulhammant</groupId>
245 <artifactId>ngwebdriver</artifactId>
246 <version>0.9.7</version>
247 <scope>test</scope>
248 </dependency>
249 <dependency>
250 <groupId>com.github.markusbernhardt</groupId>
251 <artifactId>proxy-vole</artifactId>
252 <version>1.0.2</version>
253 <scope>test</scope>
254 </dependency>
255 <dependency>
sebdetc5c60bf2020-08-25 12:31:39 +0200256 <groupId>commons-net</groupId>
257 <artifactId>commons-net</artifactId>
258 <version>3.3</version>
259 <scope>test</scope>
260 </dependency>
sebdeta9fffd22020-10-08 13:28:36 +0200261 <dependency>
262 <groupId>org.apache.logging.log4j</groupId>
263 <artifactId>log4j-api</artifactId>
264 <version>2.13.1</version>
265 <scope>test</scope>
266 </dependency>
sebdet056998c2020-08-13 10:32:41 -0700267 </dependencies>
268
269 <build>
270 <plugins>
271 <!-- Section for Integration tests -->
272 <plugin>
273 <artifactId>maven-resources-plugin</artifactId>
274 <executions>
275 <execution>
sebdet5b057082020-09-01 23:47:27 +0200276 <id>copy-chef-resources</id>
sebdet056998c2020-08-13 10:32:41 -0700277 <phase>pre-integration-test</phase>
278 <goals>
279 <goal>copy-resources</goal>
280 </goals>
281 <configuration>
282 <outputDirectory>${it.chef.config}</outputDirectory>
283 <resources>
284 <resource>
JulienBeb1679462020-08-19 11:12:59 +0200285 <directory>environments</directory>
sebdet056998c2020-08-13 10:32:41 -0700286 <filtering>true</filtering>
287 <includes>
288 <include>integration-test.json</include>
JulienBe930ed252020-08-25 22:20:30 +0200289 <include>plugins-configuration.yaml</include>
sebdet056998c2020-08-13 10:32:41 -0700290 </includes>
291 </resource>
292 </resources>
293 </configuration>
294 </execution>
andre.schmid662fcba2020-08-21 11:31:47 +0100295 <execution>
296 <id>copy-sdc-be-plugins</id>
297 <phase>pre-integration-test</phase>
298 <goals>
299 <goal>copy-resources</goal>
300 </goals>
301 <configuration>
302 <outputDirectory>${it.sdc-be.plugins}</outputDirectory>
303 <resources>
304 <resource>
vasraz787cfd52021-03-23 17:47:51 +0000305 <directory>
306 ../catalog-be-plugins/etsi-nfv-nsd-csar-plugin/target
307 </directory>
andre.schmid662fcba2020-08-21 11:31:47 +0100308 <filtering>false</filtering>
309 <includes>
vasraz787cfd52021-03-23 17:47:51 +0000310 <include>etsi-nfv-nsd-csar-plugin-${project.version}.jar
311 </include>
andre.schmid662fcba2020-08-21 11:31:47 +0100312 </includes>
313 </resource>
314 </resources>
315 </configuration>
316 </execution>
sebdet056998c2020-08-13 10:32:41 -0700317 </executions>
318 </plugin>
319 <plugin>
JulienBe930ed252020-08-25 22:20:30 +0200320 <groupId>org.codehaus.mojo</groupId>
321 <artifactId>wagon-maven-plugin</artifactId>
322 <version>2.0.0</version>
323 <executions>
324 <execution>
325 <id>download-gecko</id>
326 <phase>validate</phase>
327 <goals>
328 <goal>download-single</goal>
329 </goals>
330 <configuration>
331 <url>https://github.com</url>
332 <fromFile>
333 mozilla/geckodriver/releases/download/v${gecko.driver.version}/geckodriver-v${gecko.driver.version}-linux64.tar.gz
334 </fromFile>
335 <toDir>${project.build.directory}/gecko</toDir>
336 </configuration>
337 </execution>
338 </executions>
339 </plugin>
340 <plugin>
vasraz787cfd52021-03-23 17:47:51 +0000341 <groupId>org.apache.maven.plugins</groupId>
sebdet056998c2020-08-13 10:32:41 -0700342 <artifactId>maven-antrun-plugin</artifactId>
vasraz787cfd52021-03-23 17:47:51 +0000343 <version>${maven-antrun-plugin.version}</version>
sebdet056998c2020-08-13 10:32:41 -0700344 <executions>
345 <execution>
JulienBe930ed252020-08-25 22:20:30 +0200346 <id>set-folder-permission</id>
sebdet056998c2020-08-13 10:32:41 -0700347 <phase>pre-integration-test</phase>
348 <configuration>
349 <target>
sebdet5b057082020-09-01 23:47:27 +0200350 <mkdir dir="/tmp/sdc-integration-tests"/>
351 <chmod dir="/tmp/sdc-integration-tests" type="dir" perm="ugo+rwx"/>
352 <mkdir dir="/tmp/sdc-integration-tests/downloadAutomation"/>
vasraz787cfd52021-03-23 17:47:51 +0000353 <chmod dir="/tmp/sdc-integration-tests/downloadAutomation"
354 type="dir"
355 perm="ugo+rwx"/>
JulienBe930ed252020-08-25 22:20:30 +0200356 </target>
357 </configuration>
358 <goals>
359 <goal>run</goal>
360 </goals>
361 </execution>
362 <execution>
363 <id>untar-gecko</id>
364 <phase>pre-integration-test</phase>
365 <configuration>
366 <target>
vasraz787cfd52021-03-23 17:47:51 +0000367 <untar
368 src="${project.build.directory}/gecko/geckodriver-v${gecko.driver.version}-linux64.tar.gz"
369 compression="gzip" dest="${project.build.directory}/gecko/"/>
370 <chmod dir="${project.build.directory}/gecko/geckodriver" type="dir"
371 perm="ugo+rwx"/>
sebdet056998c2020-08-13 10:32:41 -0700372 </target>
373 </configuration>
374 <goals>
375 <goal>run</goal>
376 </goals>
377 </execution>
378 </executions>
379 </plugin>
380 <plugin>
381 <groupId>org.codehaus.mojo</groupId>
382 <artifactId>build-helper-maven-plugin</artifactId>
sebdet056998c2020-08-13 10:32:41 -0700383 <executions>
384 <execution>
385 <id>reserve-port-for-tests</id>
386 <phase>validate</phase>
387 <goals>
388 <goal>reserve-network-port</goal>
389 </goals>
390 <configuration>
391 <portNames>
392 <portName>sdc.it.docker.cassandra.port</portName>
393 </portNames>
394 </configuration>
395 </execution>
396 </executions>
397 </plugin>
398 <plugin>
399 <groupId>io.fabric8</groupId>
400 <artifactId>docker-maven-plugin</artifactId>
sebdet056998c2020-08-13 10:32:41 -0700401 <dependencies>
402 <dependency>
403 <groupId>org.apache.httpcomponents</groupId>
404 <artifactId>httpclient</artifactId>
405 <version>4.5.5</version>
406 </dependency>
407 </dependencies>
408 <configuration>
sebdetdf353be2020-09-21 22:13:05 +0200409 <verbose>${verbose}</verbose>
sebdet591810d2020-09-17 15:07:23 +0200410 <apiVersion>${docker.api.version}</apiVersion>
sebdet056998c2020-08-13 10:32:41 -0700411 <autoCreateCustomNetworks>true</autoCreateCustomNetworks>
412 <images>
413 <image>
414 <name>onap/sdc-cassandra:${it.docker.version}</name>
415 <alias>sdc-cassandra</alias>
416 <run>
417 <env>
418 <RELEASE>${project.version}</RELEASE>
419 <CS_PASSWORD>${it.cassandra.password}</CS_PASSWORD>
420 <ENVNAME>${it.env.name}</ENVNAME>
421 <MAX_HEAP_SIZE>1536M</MAX_HEAP_SIZE>
422 <HEAP_NEWSIZE>512M</HEAP_NEWSIZE>
423 </env>
424 <hostname>sdc-cs</hostname>
425 <volumes>
426 <bind>
vasraz787cfd52021-03-23 17:47:51 +0000427 <volume>${it.chef.config}:/root/chef-solo/environments
428 </volume>
sebdet056998c2020-08-13 10:32:41 -0700429 </bind>
430 </volumes>
431 <ulimits>
432 <ulimit>
433 <name>memlock</name>
434 <hard>-1</hard>
435 <soft>-1</soft>
436 </ulimit>
437 <ulimit>
438 <name>nofile</name>
439 <hard>100000</hard>
440 <soft>100000</soft>
441 </ulimit>
442 </ulimits>
443 <wait>
444 <time>120000</time>
445 <tcp>
446 <host>sdc-cs</host>
447 <mode>direct</mode>
448 <ports>
449 <port>9042</port>
450 </ports>
451 </tcp>
452 </wait>
453 <ports>
454 <port>9042:9042</port>
455 </ports>
456 <network>
457 <mode>custom</mode>
458 <name>sdc-network</name>
459 <alias>sdc-cs</alias>
460 </network>
461 </run>
462 </image>
463 <image>
464 <name>onap/sdc-cassandra-init:${it.docker.version}</name>
465 <alias>sdc-cassandra-init</alias>
466 <run>
467 <dependsOn>
468 <container>sdc-cassandra</container>
469 </dependsOn>
470 <env>
471 <RELEASE>${project.version}</RELEASE>
472 <SDC_USER>${it.sdc.user}</SDC_USER>
473 <SDC_PASSWORD>${it.sdc.password}</SDC_PASSWORD>
474 <CS_PASSWORD>${it.cassandra.password}</CS_PASSWORD>
475 <ENVNAME>${it.env.name}</ENVNAME>
476 </env>
477 <hostname>sdc-cs-init</hostname>
478 <volumes>
479 <bind>
vasraz787cfd52021-03-23 17:47:51 +0000480 <volume>${it.chef.config}:/home/sdc/chef-solo/environments
481 </volume>
sebdetdf353be2020-09-21 22:13:05 +0200482
sebdet056998c2020-08-13 10:32:41 -0700483 </bind>
484 </volumes>
485 <wait>
486 <time>300000</time>
487 <log>SdcSchemaFileImport successfully completed</log>
488 </wait>
489 <network>
490 <mode>custom</mode>
491 <name>sdc-network</name>
492 <alias>sdc-cs-init</alias>
493 </network>
494 </run>
495 </image>
496 <image>
497 <name>onap/sdc-onboard-cassandra-init:${it.docker.version}</name>
498 <alias>sdc-cassandra-onboard-init</alias>
499 <run>
500 <dependsOn>
sebdet5b057082020-09-01 23:47:27 +0200501 <container>sdc-cassandra</container>
sebdet056998c2020-08-13 10:32:41 -0700502 </dependsOn>
503 <env>
504 <RELEASE>${project.version}</RELEASE>
505 <SDC_USER>${it.sdc.user}</SDC_USER>
506 <SDC_PASSWORD>${it.sdc.password}</SDC_PASSWORD>
507 <CS_PASSWORD>${it.cassandra.password}</CS_PASSWORD>
508 <CS_HOST_PORT>${it.cassandra.port}</CS_HOST_PORT>
509 <ENVNAME>${it.env.name}</ENVNAME>
510 <CS_HOST_IP>sdc-cs</CS_HOST_IP>
511 </env>
512 <hostname>sdc-cs-onboard-init</hostname>
513 <volumes>
514 <bind>
vasraz787cfd52021-03-23 17:47:51 +0000515 <volume>${it.chef.config}:/home/sdc/chef-solo/environments
516 </volume>
sebdet056998c2020-08-13 10:32:41 -0700517 </bind>
518 </volumes>
519 <wait>
520 <time>30000</time>
521 <log>Initializing onboard schemas</log>
522 </wait>
523 <network>
524 <mode>custom</mode>
525 <name>sdc-network</name>
526 <alias>sdc-cs-onboard-init</alias>
527 </network>
528 </run>
529 </image>
530 <image>
531 <name>onap/sdc-onboard-backend:${it.docker.version}</name>
532 <alias>sdc-onboard-backend</alias>
533 <run>
534 <dependsOn>
535 <container>sdc-cassandra-onboard-init</container>
536 </dependsOn>
537 <env>
vasraz787cfd52021-03-23 17:47:51 +0000538 <cassandra_ssl_enabled>${it.cassandra.ssl.enabled}
539 </cassandra_ssl_enabled>
sebdet056998c2020-08-13 10:32:41 -0700540 <SDC_CLUSTER_NAME>${it.sdc.cluster.name}</SDC_CLUSTER_NAME>
541 <SDC_USER>${it.sdc.user}</SDC_USER>
542 <SDC_PASSWORD>${it.sdc.password}</SDC_PASSWORD>
543 <ENVNAME>${it.env.name}</ENVNAME>
544 <SDC_CERT_DIR>onap/cert</SDC_CERT_DIR>
vasraz787cfd52021-03-23 17:47:51 +0000545 <JAVA_OPTIONS>
546 -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:4001
547 -Xmx1g -Xms1g
548 </JAVA_OPTIONS>
sebdet056998c2020-08-13 10:32:41 -0700549 </env>
550 <hostname>sdc-onboard-BE</hostname>
551 <volumes>
552 <bind>
sebdetdf353be2020-09-21 22:13:05 +0200553 <volume>${it.chef.config}:/app/jetty/chef-solo/environments</volume>
554 <volume>${project.basedir}/src/test/resources/cert/onboarding-be:/app/jetty/onap/cert
vasraz787cfd52021-03-23 17:47:51 +0000555 </volume>
sebdetdf353be2020-09-21 22:13:05 +0200556 <volume>${it.shared.volume}:/app/jetty/logs</volume>
sebdet056998c2020-08-13 10:32:41 -0700557 </bind>
558 </volumes>
559 <wait>
sebdet30670ac2020-08-04 14:16:00 +0200560 <time>300000</time>
sebdet056998c2020-08-13 10:32:41 -0700561 <tcp>
562 <host>sdc-onboard-BE</host>
563 <mode>direct</mode>
564 <ports>
565 <port>8445</port>
566 <port>8081</port>
JulienBeb1679462020-08-19 11:12:59 +0200567 <port>4001</port>
sebdet056998c2020-08-13 10:32:41 -0700568 </ports>
569 </tcp>
570 </wait>
571 <ports>
572 <port>8445:8445</port>
573 <port>8081:8081</port>
JulienBeb1679462020-08-19 11:12:59 +0200574 <port>4001:4001</port>
sebdet056998c2020-08-13 10:32:41 -0700575 </ports>
576 <network>
577 <mode>custom</mode>
578 <name>sdc-network</name>
579 <alias>sdc-onboard-BE</alias>
580 </network>
581 </run>
582 </image>
583 <image>
sebdet591810d2020-09-17 15:07:23 +0200584 <name>onap/sdc-backend-all-plugins:${it.docker.version}</name>
sebdet056998c2020-08-13 10:32:41 -0700585 <alias>sdc-backend</alias>
586 <run>
587 <dependsOn>
sebdet5b057082020-09-01 23:47:27 +0200588 <container>sdc-cassandra-init</container>
sebdet056998c2020-08-13 10:32:41 -0700589 </dependsOn>
590 <env>
vasraz787cfd52021-03-23 17:47:51 +0000591 <cassandra_ssl_enabled>${it.cassandra.ssl.enabled}
592 </cassandra_ssl_enabled>
sebdet056998c2020-08-13 10:32:41 -0700593 <ENVNAME>${it.env.name}</ENVNAME>
vasraz787cfd52021-03-23 17:47:51 +0000594 <JAVA_OPTIONS>
595 -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:4000
596 -Xmx1536m -Xms1536m
597 </JAVA_OPTIONS>
andre.schmid13b39122021-01-28 17:53:22 +0000598 <SDC_CERT_DIR>onap/cert</SDC_CERT_DIR>
599 <SDC_NSD_CERT_NAME>nsdCert</SDC_NSD_CERT_NAME>
sebdet056998c2020-08-13 10:32:41 -0700600 </env>
601 <hostname>sdc-BE</hostname>
602 <volumes>
603 <bind>
sebdetdf353be2020-09-21 22:13:05 +0200604 <volume>${it.chef.config}:/app/jetty/chef-solo/environments</volume>
605 <volume>${it.shared.volume}:/app/jetty/logs</volume>
vasraz787cfd52021-03-23 17:47:51 +0000606 <volume>
sebdetdf353be2020-09-21 22:13:05 +0200607 ${project.basedir}/src/test/resources/cert/catalog-be:/app/jetty/onap/cert
vasraz787cfd52021-03-23 17:47:51 +0000608 </volume>
sebdet056998c2020-08-13 10:32:41 -0700609 </bind>
610 </volumes>
611 <wait>
612 <time>60000</time>
613 <tcp>
614 <host>sdc-BE</host>
615 <mode>direct</mode>
616 <ports>
617 <port>8443</port>
618 <port>8080</port>
JulienBeb1679462020-08-19 11:12:59 +0200619 <port>4000</port>
sebdet056998c2020-08-13 10:32:41 -0700620 </ports>
621 </tcp>
622 </wait>
623 <ports>
624 <port>8443:8443</port>
625 <port>8080:8080</port>
JulienBeb1679462020-08-19 11:12:59 +0200626 <port>4000:4000</port>
sebdet056998c2020-08-13 10:32:41 -0700627 </ports>
628 <network>
629 <mode>custom</mode>
630 <name>sdc-network</name>
631 <alias>sdc-BE</alias>
632 </network>
633 </run>
634 </image>
635 <image>
636 <name>onap/sdc-backend-init:${it.docker.version}</name>
637 <alias>sdc-backend-init</alias>
638 <run>
639 <dependsOn>
640 <container>sdc-backend</container>
641 </dependsOn>
642 <env>
643 <ENVNAME>${it.env.name}</ENVNAME>
644 </env>
645 <hostname>sdc-BE-init</hostname>
646 <volumes>
647 <bind>
vasraz787cfd52021-03-23 17:47:51 +0000648 <volume>
649 ${it.chef.config}:/home/onap/chef-solo/environments
650 </volume>
sebdetdf353be2020-09-21 22:13:05 +0200651 <volume>${it.shared.volume}:/home/onap/logs</volume>
sebdet056998c2020-08-13 10:32:41 -0700652 </bind>
653 </volumes>
654 <wait>
xuegaoa856d542020-12-18 10:37:23 +0100655 <time>660000</time>
sebdet056998c2020-08-13 10:32:41 -0700656 <log>Chef Client finished</log>
657 </wait>
658 <network>
659 <mode>custom</mode>
660 <name>sdc-network</name>
661 <alias>sdc-BE-init</alias>
662 </network>
663 </run>
664 </image>
665 <image>
666 <name>onap/sdc-frontend:${it.docker.version}</name>
667 <alias>sdc-frontend</alias>
668 <run>
sebdet056998c2020-08-13 10:32:41 -0700669 <env>
670 <ENVNAME>${it.env.name}</ENVNAME>
vasraz787cfd52021-03-23 17:47:51 +0000671 <JAVA_OPTIONS>
672 -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:6000
673 -Xmx256m -Xms256m
674 </JAVA_OPTIONS>
sebdet056998c2020-08-13 10:32:41 -0700675 </env>
676 <hostname>sdc-FE</hostname>
677 <volumes>
678 <bind>
sebdetdf353be2020-09-21 22:13:05 +0200679 <volume>${it.chef.config}:/app/jetty/chef-solo/environments</volume>
680 <volume>${it.shared.volume}:/app/jetty/logs</volume>
vasraz787cfd52021-03-23 17:47:51 +0000681 <volume>
sebdetdf353be2020-09-21 22:13:05 +0200682 ${it.chef.config}/plugins-configuration.yaml:/app/jetty/config/catalog-fe/plugins-configuration.yaml
vasraz787cfd52021-03-23 17:47:51 +0000683 </volume>
sebdetdf353be2020-09-21 22:13:05 +0200684
sebdet056998c2020-08-13 10:32:41 -0700685 </bind>
686 </volumes>
687 <wait>
688 <time>60000</time>
689 <tcp>
690 <host>sdc-FE</host>
691 <mode>direct</mode>
692 <ports>
693 <port>9443</port>
694 <port>8181</port>
JulienBeb1679462020-08-19 11:12:59 +0200695 <port>6000</port>
sebdet056998c2020-08-13 10:32:41 -0700696 </ports>
697 </tcp>
698 </wait>
699 <ports>
700 <port>9443:9443</port>
701 <port>8181:8181</port>
JulienBeb1679462020-08-19 11:12:59 +0200702 <port>6000:6000</port>
sebdet056998c2020-08-13 10:32:41 -0700703 </ports>
704 <network>
705 <mode>custom</mode>
706 <name>sdc-network</name>
707 <alias>sdc-FE</alias>
708 </network>
709 </run>
710 </image>
JulienBeb1679462020-08-19 11:12:59 +0200711 <image>
712 <name>onap/sdc-simulator:${it.docker.version}</name>
713 <alias>sdc-simulator</alias>
714 <run>
715 <dependsOn>
716 <container>sdc-frontend</container>
717 </dependsOn>
718 <env>
719 <!--<FE_URL>${it.env.name}</FE_URL>-->
720 <JAVA_OPTIONS>-Xmx128m -Xms128m -Xss1m</JAVA_OPTIONS>
721 <ENVNAME>${it.env.name}</ENVNAME>
722 </env>
723 <hostname>sdc-sim</hostname>
724 <volumes>
725 <bind>
sebdetdf353be2020-09-21 22:13:05 +0200726 <volume>${it.chef.config}:/app/jetty/chef-solo/environments</volume>
727 <volume>${it.shared.volume}:/app/jetty/logs</volume>
JulienBeb1679462020-08-19 11:12:59 +0200728 </bind>
729 </volumes>
730 <wait>
731 <time>60000</time>
732 <tcp>
733 <host>sdc-sim</host>
734 <mode>direct</mode>
735 <ports>
736 <port>8080</port>
737 <port>8443</port>
738 </ports>
739 </tcp>
740 </wait>
741 <ports>
JulienBe930ed252020-08-25 22:20:30 +0200742 <!-- http://localhost:8285/login to access SDC -->
JulienBeb1679462020-08-19 11:12:59 +0200743 <port>8285:8080</port>
744 <port>8286:8443</port>
745 </ports>
746 <network>
747 <mode>custom</mode>
748 <name>sdc-network</name>
749 <alias>sdc-sim</alias>
750 </network>
751 </run>
752 </image>
JulienBe930ed252020-08-25 22:20:30 +0200753
754 <image>
755 <name>selenium/standalone-firefox:${it.ui.firefox.version}</name>
756 <alias>firefox-standalone</alias>
757 <run>
758 <hostname>firefox-standalone</hostname>
759 <wait>
760 <time>20000</time>
761 <tcp>
762 <host>firefox-standalone</host>
763 <mode>direct</mode>
764 <ports>
765 <!-- Selenium remote automation port -->
766 <port>4444</port>
767 <!--<port>5900</port>-->
768 <!-- VNC port for viewing the browser result -->
769 <!-- password to access is "secret" -->
JulienBe930ed252020-08-25 22:20:30 +0200770 </ports>
771 </tcp>
772 </wait>
773 <env>
JulienBe930ed252020-08-25 22:20:30 +0200774 <JAVA_OPTS>-Xmx512m</JAVA_OPTS>
775 <!--<START_XVFB>false</START_XVFB>-->
776 <SCREEN_WIDTH>1920</SCREEN_WIDTH>
777 <SCREEN_HEIGHT>1440</SCREEN_HEIGHT>
778 </env>
779 <ports>
780 <port>4444:4444</port>
781 <!--<port>5900:5900</port>-->
782 </ports>
783 <network>
784 <mode>custom</mode>
785 <name>sdc-network</name>
786 <alias>firefox-standalone</alias>
787 </network>
788 <volumes>
789 <bind>
790 <volume>
sebdet5b057082020-09-01 23:47:27 +0200791 /tmp/sdc-integration-tests/downloadAutomation/:/home/seluser/Desktop
JulienBe930ed252020-08-25 22:20:30 +0200792 </volume>
793 <volume>/dev/shm:/dev/shm</volume>
794 </bind>
795 </volumes>
796 </run>
797 </image>
sebdet056998c2020-08-13 10:32:41 -0700798 </images>
799 </configuration>
sebdet056998c2020-08-13 10:32:41 -0700800 <executions>
801 <execution>
802 <id>docker-start-for-it</id>
803 <phase>pre-integration-test</phase>
804 <goals>
805 <goal>start</goal>
806 </goals>
807 </execution>
808 <execution>
809 <id>docker-stop-for-it</id>
810 <phase>post-integration-test</phase>
811 <goals>
812 <goal>stop</goal>
813 </goals>
814 </execution>
815 </executions>
816 </plugin>
JulienBeb1679462020-08-19 11:12:59 +0200817
818 <plugin>
819 <groupId>org.apache.maven.plugins</groupId>
820 <artifactId>maven-surefire-plugin</artifactId>
821 <configuration>
822 <skip>true</skip>
823 </configuration>
824 </plugin>
JulienBe930ed252020-08-25 22:20:30 +0200825
JulienBeb1679462020-08-19 11:12:59 +0200826 <plugin>
827 <groupId>org.apache.maven.plugins</groupId>
828 <artifactId>maven-failsafe-plugin</artifactId>
829 <configuration>
sebdet5b057082020-09-01 23:47:27 +0200830 <forkCount>1</forkCount>
831 <reuseForks>true</reuseForks>
amohamad44c6c0d2020-08-09 20:27:40 -0400832 <systemProperties>
833 <property>
834 <name>testng.dtd.http</name>
835 <value>true</value>
836 </property>
837 </systemProperties>
JulienBeb1679462020-08-19 11:12:59 +0200838 <suiteXmlFiles>
sebdetc5c60bf2020-08-25 12:31:39 +0200839 <file>src/test/resources/ci/testSuites/backend/onapApiSanity.xml</file>
JulienBe930ed252020-08-25 22:20:30 +0200840 <file>src/test/resources/ci/testSuites/frontend/onapUiSanity.xml</file>
JulienBeb1679462020-08-19 11:12:59 +0200841 <!--<file>src/test/resources/ci/testSuites/artifacts.xml</file>-->
842 <!--<file>src/test/resources/ci/testSuites/cap_req.xml</file>-->
843 <!--<file>src/test/resources/ci/testSuites/category.xml</file>-->
844 <!--<file>src/test/resources/ci/testSuites/ciFull.xml</file>-->
845 <!--<file>src/test/resources/ci/testSuites/CRUDArtifacts.xml</file>-->
846 <!--<file>src/test/resources/ci/testSuites/externalAPIs.xml</file>-->
847 <!--<file>src/test/resources/ci/testSuites/ExternalApiSanity.xml</file>-->
JulienBe930ed252020-08-25 22:20:30 +0200848 <!-- <file>src/test/resources/ci/testSuites/general.xml</file>-->
849 <!-- <file>src/test/resources/ci/testSuites/imports.xml</file>-->
JulienBeb1679462020-08-19 11:12:59 +0200850 <!--<file>src/test/resources/ci/testSuites/normatives.xml</file>-->
851 <!--<file>src/test/resources/ci/testSuites/onapApiSanity.xml</file>-->
852 <!--<file>src/test/resources/ci/testSuites/pass.xml</file>-->
JulienBe930ed252020-08-25 22:20:30 +0200853 <!-- <file>src/test/resources/ci/testSuites/product.xml</file>-->
JulienBeb1679462020-08-19 11:12:59 +0200854 <!--<file>src/test/resources/ci/testSuites/productAPIs.xml</file>-->
JulienBe930ed252020-08-25 22:20:30 +0200855 <!-- <file>src/test/resources/ci/testSuites/property.xml</file>-->
856 <!-- <file>src/test/resources/ci/testSuites/resource.xml</file>-->
JulienBeb1679462020-08-19 11:12:59 +0200857 <!--<file>src/test/resources/ci/testSuites/sanity.xml</file>-->
858 <!--<file>src/test/resources/ci/testSuites/SearchExternalAPI.xml</file>-->
JulienBe930ed252020-08-25 22:20:30 +0200859 <!-- <file>src/test/resources/ci/testSuites/service.xml</file>-->
JulienBeb1679462020-08-19 11:12:59 +0200860 <!--<file>src/test/resources/ci/testSuites/testngLifeCycle.xml</file>-->
JulienBe930ed252020-08-25 22:20:30 +0200861 <!-- <file>src/test/resources/ci/testSuites/user.xml</file>-->
JulienBeb1679462020-08-19 11:12:59 +0200862 </suiteXmlFiles>
JulienBeb1679462020-08-19 11:12:59 +0200863 </configuration>
864 </plugin>
sebdet056998c2020-08-13 10:32:41 -0700865 </plugins>
866 </build>
sebdet9d724fe2021-02-03 15:05:54 +0100867 <profiles>
868 <profile>
869 <id>all-for-integration-tests-only</id>
870 <properties>
871 <surefire.skip.tests>true</surefire.skip.tests>
872 <skipTest>false</skipTest>
873 </properties>
874 </profile>
875 </profiles>
sebdet056998c2020-08-13 10:32:41 -0700876</project>