blob: e6e1bba3114473d1f3b366efd7d603603543da23 [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>
Remigiusz Janeczekfcebea12021-05-21 14:50:40 +020054 <it.helm-validator.disabled>true</it.helm-validator.disabled>
55 <it.helm-validator.version>1.2.0</it.helm-validator.version>
JulienBe930ed252020-08-25 22:20:30 +020056
vasraz97149612020-10-19 16:33:00 +010057 <!-- parser-->
58 <sdc-tosca-parser.version>1.6.5</sdc-tosca-parser.version>
sebdet056998c2020-08-13 10:32:41 -070059 </properties>
60
61 <dependencies>
JulienBeb1679462020-08-19 11:12:59 +020062 <dependency>
JulienBe61663b92020-09-03 17:09:46 +020063 <groupId>ch.qos.logback</groupId>
64 <artifactId>logback-classic</artifactId>
65 <version>${logback.version}</version>
66 </dependency>
67
68 <dependency>
JulienBeb1679462020-08-19 11:12:59 +020069 <groupId>org.yaml</groupId>
70 <artifactId>snakeyaml</artifactId>
71 <version>${snakeyaml.version}</version>
72 <scope>test</scope>
73 </dependency>
74 <dependency>
andre.schmidf72d59b2021-02-25 18:00:48 +000075 <groupId>org.hamcrest</groupId>
76 <artifactId>hamcrest</artifactId>
77 <version>${hamcrest.version}</version>
78 <scope>test</scope>
JulienBeb1679462020-08-19 11:12:59 +020079 </dependency>
80 <dependency>
81 <groupId>junit</groupId>
82 <artifactId>junit</artifactId>
83 <version>${junit.version}</version>
84 <scope>test</scope>
andre.schmidf72d59b2021-02-25 18:00:48 +000085 <exclusions>
86 <exclusion>
87 <groupId>org.hamcrest</groupId>
88 <artifactId>hamcrest-core</artifactId>
89 </exclusion>
90 </exclusions>
JulienBeb1679462020-08-19 11:12:59 +020091 </dependency>
92 <dependency>
93 <groupId>org.testng</groupId>
94 <artifactId>testng</artifactId>
95 <version>${testng.version}</version>
96 <scope>test</scope>
97 </dependency>
98 <dependency>
99 <groupId>com.google.code.gson</groupId>
100 <artifactId>gson</artifactId>
101 <version>${gson.version}</version>
102 <scope>test</scope>
103 </dependency>
104 <dependency>
105 <groupId>org.openecomp.sdc.be</groupId>
106 <artifactId>catalog-model</artifactId>
107 <version>${project.version}</version>
108 <scope>test</scope>
109 </dependency>
110 <dependency>
111 <groupId>org.openecomp.sdc.be</groupId>
112 <artifactId>catalog-dao</artifactId>
113 <version>${project.version}</version>
114 <scope>test</scope>
115 </dependency>
116 <dependency>
Maciej Malewski1b441342020-12-10 14:38:00 +0100117 <groupId>org.openecomp.sdc</groupId>
118 <artifactId>openecomp-sdc-vendor-software-product-manager</artifactId>
119 <version>${project.version}</version>
120 <scope>test</scope>
121 </dependency>
122 <dependency>
JulienBeb1679462020-08-19 11:12:59 +0200123 <groupId>com.aventstack</groupId>
124 <artifactId>extentreports</artifactId>
125 <version>3.0.6</version>
JulienBeb1679462020-08-19 11:12:59 +0200126 <scope>test</scope>
127 </dependency>
128 <dependency>
129 <groupId>org.janusgraph</groupId>
130 <artifactId>janusgraph-core</artifactId>
131 <version>${janusgraph.version}</version>
132 <scope>test</scope>
133 <exclusions>
134 <exclusion>
vasraz086406a2021-02-22 09:50:07 +0000135 <artifactId>gremlin-groovy</artifactId>
136 <groupId>org.apache.tinkerpop</groupId>
137 </exclusion>
138 <exclusion>
JulienBeb1679462020-08-19 11:12:59 +0200139 <artifactId>slf4j-log4j12</artifactId>
140 <groupId>org.slf4j</groupId>
141 </exclusion>
142 <exclusion>
143 <artifactId>commons-collections</artifactId>
144 <groupId>commons-collections</groupId>
145 </exclusion>
146 <exclusion>
147 <artifactId>groovy</artifactId>
148 <groupId>org.codehaus.groovy</groupId>
149 </exclusion>
150 <exclusion>
151 <groupId>org.apache.thrift</groupId>
152 <artifactId>libthrift</artifactId>
153 </exclusion>
vasrazb7ea3ef2021-05-12 13:56:51 +0100154 <exclusion>
vasraz30b974a2021-05-19 18:22:12 +0100155 <groupId>org.apache.commons</groupId>
156 <artifactId>commons-text</artifactId>
vasrazb7ea3ef2021-05-12 13:56:51 +0100157 </exclusion>
JulienBeb1679462020-08-19 11:12:59 +0200158 </exclusions>
159 </dependency>
160 <dependency>
161 <groupId>org.assertj</groupId>
162 <artifactId>assertj-core</artifactId>
163 <version>${assertj.version}</version>
164 <scope>test</scope>
165 </dependency>
166 <dependency>
vasraz30b974a2021-05-19 18:22:12 +0100167 <groupId>org.apache.commons</groupId>
168 <artifactId>commons-text</artifactId>
169 <version>${apache-commons-text.version}</version>
170 <scope>test</scope>
171 </dependency>
172 <dependency>
JulienBeb1679462020-08-19 11:12:59 +0200173 <groupId>com.clearspring.analytics</groupId>
174 <artifactId>stream</artifactId>
175 <version>${clearspring.version}</version>
176 <scope>test</scope>
177 </dependency>
178 <dependency>
179 <groupId>org.apache.httpcomponents</groupId>
180 <artifactId>httpclient</artifactId>
181 <version>${httpclient.version}</version>
182 <scope>test</scope>
183 </dependency>
184 <dependency>
185 <groupId>org.apache.httpcomponents</groupId>
186 <artifactId>httpcore</artifactId>
187 <version>${httpcore.version}</version>
188 <scope>test</scope>
189 </dependency>
190 <dependency>
191 <groupId>com.fasterxml.jackson.core</groupId>
192 <artifactId>jackson-core</artifactId>
193 <version>${jackson.version}</version>
194 <scope>test</scope>
195 </dependency>
196 <dependency>
197 <groupId>org.codehaus.jackson</groupId>
198 <artifactId>jackson-mapper-asl</artifactId>
199 <version>1.9.2</version>
200 <scope>test</scope>
201 </dependency>
202 <dependency>
203 <groupId>com.fasterxml.jackson.core</groupId>
204 <artifactId>jackson-databind</artifactId>
205 <version>${jackson.version}</version>
206 <scope>test</scope>
207 <exclusions>
208 <exclusion>
209 <groupId>com.fasterxml.jackson.core</groupId>
210 <artifactId>jackson-core</artifactId>
211 </exclusion>
212 </exclusions>
213 </dependency>
sebdetc5c60bf2020-08-25 12:31:39 +0200214
vasraz97149612020-10-19 16:33:00 +0100215 <dependency>
216 <groupId>org.onap.sdc.sdc-tosca</groupId>
217 <artifactId>sdc-tosca</artifactId>
218 <version>${sdc-tosca-parser.version}</version>
219 </dependency>
220
sebdetc5c60bf2020-08-25 12:31:39 +0200221 <!--FOR the Frontend -->
222 <dependency>
223 <groupId>org.seleniumhq.selenium</groupId>
224 <artifactId>selenium-java</artifactId>
225 <scope>test</scope>
JulienBe930ed252020-08-25 22:20:30 +0200226 <version>${selenium.version}</version>
sebdetc5c60bf2020-08-25 12:31:39 +0200227 </dependency>
228 <dependency>
JulienBe930ed252020-08-25 22:20:30 +0200229 <groupId>org.seleniumhq.selenium</groupId>
230 <artifactId>selenium-server</artifactId>
andre.schmida64494f2021-03-15 16:51:12 +0000231 <version>${selenium.version}</version>
JulienBe930ed252020-08-25 22:20:30 +0200232 <scope>test</scope>
233 </dependency>
234 <dependency>
235 <groupId>org.seleniumhq.selenium</groupId>
236 <artifactId>selenium-firefox-driver</artifactId>
237 <version>${selenium.version}</version>
238 <scope>test</scope>
239 </dependency>
240
241 <dependency>
sebdetc5c60bf2020-08-25 12:31:39 +0200242 <groupId>net.lightbody.bmp</groupId>
243 <!-- To use the legacy, Jetty-based implementation, change the artifactId
244 to browsermob-core -->
245 <artifactId>browsermob-core</artifactId>
246 <version>2.1.4</version>
247 <scope>test</scope>
248 <exclusions>
249 <exclusion>
250 <groupId>com.fasterxml.jackson.core</groupId>
251 <artifactId>jackson-core</artifactId>
252 </exclusion>
253 </exclusions>
254 </dependency>
255 <dependency>
256 <groupId>com.paulhammant</groupId>
257 <artifactId>ngwebdriver</artifactId>
258 <version>0.9.7</version>
259 <scope>test</scope>
260 </dependency>
261 <dependency>
262 <groupId>com.github.markusbernhardt</groupId>
263 <artifactId>proxy-vole</artifactId>
264 <version>1.0.2</version>
265 <scope>test</scope>
266 </dependency>
267 <dependency>
sebdetc5c60bf2020-08-25 12:31:39 +0200268 <groupId>commons-net</groupId>
269 <artifactId>commons-net</artifactId>
270 <version>3.3</version>
271 <scope>test</scope>
272 </dependency>
sebdeta9fffd22020-10-08 13:28:36 +0200273 <dependency>
274 <groupId>org.apache.logging.log4j</groupId>
275 <artifactId>log4j-api</artifactId>
276 <version>2.13.1</version>
277 <scope>test</scope>
278 </dependency>
sebdet056998c2020-08-13 10:32:41 -0700279 </dependencies>
280
281 <build>
282 <plugins>
283 <!-- Section for Integration tests -->
284 <plugin>
285 <artifactId>maven-resources-plugin</artifactId>
286 <executions>
287 <execution>
sebdet5b057082020-09-01 23:47:27 +0200288 <id>copy-chef-resources</id>
sebdet056998c2020-08-13 10:32:41 -0700289 <phase>pre-integration-test</phase>
290 <goals>
291 <goal>copy-resources</goal>
292 </goals>
293 <configuration>
294 <outputDirectory>${it.chef.config}</outputDirectory>
295 <resources>
296 <resource>
JulienBeb1679462020-08-19 11:12:59 +0200297 <directory>environments</directory>
sebdet056998c2020-08-13 10:32:41 -0700298 <filtering>true</filtering>
299 <includes>
300 <include>integration-test.json</include>
JulienBe930ed252020-08-25 22:20:30 +0200301 <include>plugins-configuration.yaml</include>
sebdet056998c2020-08-13 10:32:41 -0700302 </includes>
303 </resource>
304 </resources>
305 </configuration>
306 </execution>
andre.schmid662fcba2020-08-21 11:31:47 +0100307 <execution>
308 <id>copy-sdc-be-plugins</id>
309 <phase>pre-integration-test</phase>
310 <goals>
311 <goal>copy-resources</goal>
312 </goals>
313 <configuration>
314 <outputDirectory>${it.sdc-be.plugins}</outputDirectory>
315 <resources>
316 <resource>
vasraz787cfd52021-03-23 17:47:51 +0000317 <directory>
318 ../catalog-be-plugins/etsi-nfv-nsd-csar-plugin/target
319 </directory>
andre.schmid662fcba2020-08-21 11:31:47 +0100320 <filtering>false</filtering>
321 <includes>
vasraz787cfd52021-03-23 17:47:51 +0000322 <include>etsi-nfv-nsd-csar-plugin-${project.version}.jar
323 </include>
andre.schmid662fcba2020-08-21 11:31:47 +0100324 </includes>
325 </resource>
326 </resources>
327 </configuration>
328 </execution>
sebdet056998c2020-08-13 10:32:41 -0700329 </executions>
330 </plugin>
331 <plugin>
JulienBe930ed252020-08-25 22:20:30 +0200332 <groupId>org.codehaus.mojo</groupId>
333 <artifactId>wagon-maven-plugin</artifactId>
334 <version>2.0.0</version>
335 <executions>
336 <execution>
337 <id>download-gecko</id>
338 <phase>validate</phase>
339 <goals>
340 <goal>download-single</goal>
341 </goals>
342 <configuration>
343 <url>https://github.com</url>
344 <fromFile>
345 mozilla/geckodriver/releases/download/v${gecko.driver.version}/geckodriver-v${gecko.driver.version}-linux64.tar.gz
346 </fromFile>
347 <toDir>${project.build.directory}/gecko</toDir>
348 </configuration>
349 </execution>
350 </executions>
351 </plugin>
352 <plugin>
vasraz787cfd52021-03-23 17:47:51 +0000353 <groupId>org.apache.maven.plugins</groupId>
sebdet056998c2020-08-13 10:32:41 -0700354 <artifactId>maven-antrun-plugin</artifactId>
vasraz787cfd52021-03-23 17:47:51 +0000355 <version>${maven-antrun-plugin.version}</version>
sebdet056998c2020-08-13 10:32:41 -0700356 <executions>
357 <execution>
JulienBe930ed252020-08-25 22:20:30 +0200358 <id>set-folder-permission</id>
sebdet056998c2020-08-13 10:32:41 -0700359 <phase>pre-integration-test</phase>
360 <configuration>
361 <target>
sebdet5b057082020-09-01 23:47:27 +0200362 <mkdir dir="/tmp/sdc-integration-tests"/>
363 <chmod dir="/tmp/sdc-integration-tests" type="dir" perm="ugo+rwx"/>
364 <mkdir dir="/tmp/sdc-integration-tests/downloadAutomation"/>
vasraz787cfd52021-03-23 17:47:51 +0000365 <chmod dir="/tmp/sdc-integration-tests/downloadAutomation"
366 type="dir"
367 perm="ugo+rwx"/>
JulienBe930ed252020-08-25 22:20:30 +0200368 </target>
369 </configuration>
370 <goals>
371 <goal>run</goal>
372 </goals>
373 </execution>
374 <execution>
375 <id>untar-gecko</id>
376 <phase>pre-integration-test</phase>
377 <configuration>
378 <target>
vasraz787cfd52021-03-23 17:47:51 +0000379 <untar
380 src="${project.build.directory}/gecko/geckodriver-v${gecko.driver.version}-linux64.tar.gz"
381 compression="gzip" dest="${project.build.directory}/gecko/"/>
382 <chmod dir="${project.build.directory}/gecko/geckodriver" type="dir"
383 perm="ugo+rwx"/>
sebdet056998c2020-08-13 10:32:41 -0700384 </target>
385 </configuration>
386 <goals>
387 <goal>run</goal>
388 </goals>
389 </execution>
390 </executions>
391 </plugin>
392 <plugin>
393 <groupId>org.codehaus.mojo</groupId>
394 <artifactId>build-helper-maven-plugin</artifactId>
sebdet056998c2020-08-13 10:32:41 -0700395 <executions>
396 <execution>
397 <id>reserve-port-for-tests</id>
398 <phase>validate</phase>
399 <goals>
400 <goal>reserve-network-port</goal>
401 </goals>
402 <configuration>
403 <portNames>
404 <portName>sdc.it.docker.cassandra.port</portName>
405 </portNames>
406 </configuration>
407 </execution>
408 </executions>
409 </plugin>
410 <plugin>
411 <groupId>io.fabric8</groupId>
412 <artifactId>docker-maven-plugin</artifactId>
sebdet056998c2020-08-13 10:32:41 -0700413 <dependencies>
414 <dependency>
415 <groupId>org.apache.httpcomponents</groupId>
416 <artifactId>httpclient</artifactId>
417 <version>4.5.5</version>
418 </dependency>
419 </dependencies>
420 <configuration>
sebdetdf353be2020-09-21 22:13:05 +0200421 <verbose>${verbose}</verbose>
sebdet591810d2020-09-17 15:07:23 +0200422 <apiVersion>${docker.api.version}</apiVersion>
sebdet056998c2020-08-13 10:32:41 -0700423 <autoCreateCustomNetworks>true</autoCreateCustomNetworks>
424 <images>
425 <image>
426 <name>onap/sdc-cassandra:${it.docker.version}</name>
427 <alias>sdc-cassandra</alias>
428 <run>
429 <env>
430 <RELEASE>${project.version}</RELEASE>
431 <CS_PASSWORD>${it.cassandra.password}</CS_PASSWORD>
432 <ENVNAME>${it.env.name}</ENVNAME>
433 <MAX_HEAP_SIZE>1536M</MAX_HEAP_SIZE>
434 <HEAP_NEWSIZE>512M</HEAP_NEWSIZE>
435 </env>
436 <hostname>sdc-cs</hostname>
437 <volumes>
438 <bind>
vasraz787cfd52021-03-23 17:47:51 +0000439 <volume>${it.chef.config}:/root/chef-solo/environments
440 </volume>
sebdet056998c2020-08-13 10:32:41 -0700441 </bind>
442 </volumes>
443 <ulimits>
444 <ulimit>
445 <name>memlock</name>
446 <hard>-1</hard>
447 <soft>-1</soft>
448 </ulimit>
449 <ulimit>
450 <name>nofile</name>
451 <hard>100000</hard>
452 <soft>100000</soft>
453 </ulimit>
454 </ulimits>
455 <wait>
456 <time>120000</time>
457 <tcp>
458 <host>sdc-cs</host>
459 <mode>direct</mode>
460 <ports>
461 <port>9042</port>
462 </ports>
463 </tcp>
464 </wait>
465 <ports>
466 <port>9042:9042</port>
467 </ports>
468 <network>
469 <mode>custom</mode>
470 <name>sdc-network</name>
471 <alias>sdc-cs</alias>
472 </network>
473 </run>
474 </image>
475 <image>
476 <name>onap/sdc-cassandra-init:${it.docker.version}</name>
477 <alias>sdc-cassandra-init</alias>
478 <run>
479 <dependsOn>
480 <container>sdc-cassandra</container>
481 </dependsOn>
482 <env>
483 <RELEASE>${project.version}</RELEASE>
484 <SDC_USER>${it.sdc.user}</SDC_USER>
485 <SDC_PASSWORD>${it.sdc.password}</SDC_PASSWORD>
486 <CS_PASSWORD>${it.cassandra.password}</CS_PASSWORD>
487 <ENVNAME>${it.env.name}</ENVNAME>
488 </env>
489 <hostname>sdc-cs-init</hostname>
490 <volumes>
491 <bind>
vasraz787cfd52021-03-23 17:47:51 +0000492 <volume>${it.chef.config}:/home/sdc/chef-solo/environments
493 </volume>
sebdetdf353be2020-09-21 22:13:05 +0200494
sebdet056998c2020-08-13 10:32:41 -0700495 </bind>
496 </volumes>
497 <wait>
498 <time>300000</time>
499 <log>SdcSchemaFileImport successfully completed</log>
500 </wait>
501 <network>
502 <mode>custom</mode>
503 <name>sdc-network</name>
504 <alias>sdc-cs-init</alias>
505 </network>
506 </run>
507 </image>
508 <image>
509 <name>onap/sdc-onboard-cassandra-init:${it.docker.version}</name>
510 <alias>sdc-cassandra-onboard-init</alias>
511 <run>
512 <dependsOn>
sebdet5b057082020-09-01 23:47:27 +0200513 <container>sdc-cassandra</container>
sebdet056998c2020-08-13 10:32:41 -0700514 </dependsOn>
515 <env>
516 <RELEASE>${project.version}</RELEASE>
517 <SDC_USER>${it.sdc.user}</SDC_USER>
518 <SDC_PASSWORD>${it.sdc.password}</SDC_PASSWORD>
519 <CS_PASSWORD>${it.cassandra.password}</CS_PASSWORD>
520 <CS_HOST_PORT>${it.cassandra.port}</CS_HOST_PORT>
521 <ENVNAME>${it.env.name}</ENVNAME>
522 <CS_HOST_IP>sdc-cs</CS_HOST_IP>
523 </env>
524 <hostname>sdc-cs-onboard-init</hostname>
525 <volumes>
526 <bind>
vasraz787cfd52021-03-23 17:47:51 +0000527 <volume>${it.chef.config}:/home/sdc/chef-solo/environments
528 </volume>
sebdet056998c2020-08-13 10:32:41 -0700529 </bind>
530 </volumes>
531 <wait>
532 <time>30000</time>
533 <log>Initializing onboard schemas</log>
534 </wait>
535 <network>
536 <mode>custom</mode>
537 <name>sdc-network</name>
538 <alias>sdc-cs-onboard-init</alias>
539 </network>
540 </run>
541 </image>
542 <image>
543 <name>onap/sdc-onboard-backend:${it.docker.version}</name>
544 <alias>sdc-onboard-backend</alias>
545 <run>
546 <dependsOn>
547 <container>sdc-cassandra-onboard-init</container>
548 </dependsOn>
549 <env>
vasraz787cfd52021-03-23 17:47:51 +0000550 <cassandra_ssl_enabled>${it.cassandra.ssl.enabled}
551 </cassandra_ssl_enabled>
sebdet056998c2020-08-13 10:32:41 -0700552 <SDC_CLUSTER_NAME>${it.sdc.cluster.name}</SDC_CLUSTER_NAME>
553 <SDC_USER>${it.sdc.user}</SDC_USER>
554 <SDC_PASSWORD>${it.sdc.password}</SDC_PASSWORD>
555 <ENVNAME>${it.env.name}</ENVNAME>
556 <SDC_CERT_DIR>onap/cert</SDC_CERT_DIR>
vasraz787cfd52021-03-23 17:47:51 +0000557 <JAVA_OPTIONS>
558 -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:4001
559 -Xmx1g -Xms1g
560 </JAVA_OPTIONS>
sebdet056998c2020-08-13 10:32:41 -0700561 </env>
562 <hostname>sdc-onboard-BE</hostname>
563 <volumes>
564 <bind>
sebdetdf353be2020-09-21 22:13:05 +0200565 <volume>${it.chef.config}:/app/jetty/chef-solo/environments</volume>
566 <volume>${project.basedir}/src/test/resources/cert/onboarding-be:/app/jetty/onap/cert
vasraz787cfd52021-03-23 17:47:51 +0000567 </volume>
sebdetdf353be2020-09-21 22:13:05 +0200568 <volume>${it.shared.volume}:/app/jetty/logs</volume>
sebdet056998c2020-08-13 10:32:41 -0700569 </bind>
570 </volumes>
571 <wait>
sebdet30670ac2020-08-04 14:16:00 +0200572 <time>300000</time>
sebdet056998c2020-08-13 10:32:41 -0700573 <tcp>
574 <host>sdc-onboard-BE</host>
575 <mode>direct</mode>
576 <ports>
577 <port>8445</port>
578 <port>8081</port>
JulienBeb1679462020-08-19 11:12:59 +0200579 <port>4001</port>
sebdet056998c2020-08-13 10:32:41 -0700580 </ports>
581 </tcp>
582 </wait>
583 <ports>
584 <port>8445:8445</port>
585 <port>8081:8081</port>
JulienBeb1679462020-08-19 11:12:59 +0200586 <port>4001:4001</port>
sebdet056998c2020-08-13 10:32:41 -0700587 </ports>
588 <network>
589 <mode>custom</mode>
590 <name>sdc-network</name>
591 <alias>sdc-onboard-BE</alias>
592 </network>
593 </run>
594 </image>
595 <image>
sebdet591810d2020-09-17 15:07:23 +0200596 <name>onap/sdc-backend-all-plugins:${it.docker.version}</name>
sebdet056998c2020-08-13 10:32:41 -0700597 <alias>sdc-backend</alias>
598 <run>
599 <dependsOn>
sebdet5b057082020-09-01 23:47:27 +0200600 <container>sdc-cassandra-init</container>
sebdet056998c2020-08-13 10:32:41 -0700601 </dependsOn>
602 <env>
vasraz787cfd52021-03-23 17:47:51 +0000603 <cassandra_ssl_enabled>${it.cassandra.ssl.enabled}
604 </cassandra_ssl_enabled>
sebdet056998c2020-08-13 10:32:41 -0700605 <ENVNAME>${it.env.name}</ENVNAME>
vasraz787cfd52021-03-23 17:47:51 +0000606 <JAVA_OPTIONS>
607 -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:4000
608 -Xmx1536m -Xms1536m
609 </JAVA_OPTIONS>
andre.schmid13b39122021-01-28 17:53:22 +0000610 <SDC_CERT_DIR>onap/cert</SDC_CERT_DIR>
611 <SDC_NSD_CERT_NAME>nsdCert</SDC_NSD_CERT_NAME>
sebdet056998c2020-08-13 10:32:41 -0700612 </env>
613 <hostname>sdc-BE</hostname>
614 <volumes>
615 <bind>
sebdetdf353be2020-09-21 22:13:05 +0200616 <volume>${it.chef.config}:/app/jetty/chef-solo/environments</volume>
617 <volume>${it.shared.volume}:/app/jetty/logs</volume>
vasraz787cfd52021-03-23 17:47:51 +0000618 <volume>
sebdetdf353be2020-09-21 22:13:05 +0200619 ${project.basedir}/src/test/resources/cert/catalog-be:/app/jetty/onap/cert
vasraz787cfd52021-03-23 17:47:51 +0000620 </volume>
sebdet056998c2020-08-13 10:32:41 -0700621 </bind>
622 </volumes>
623 <wait>
624 <time>60000</time>
625 <tcp>
626 <host>sdc-BE</host>
627 <mode>direct</mode>
628 <ports>
629 <port>8443</port>
630 <port>8080</port>
JulienBeb1679462020-08-19 11:12:59 +0200631 <port>4000</port>
sebdet056998c2020-08-13 10:32:41 -0700632 </ports>
633 </tcp>
634 </wait>
635 <ports>
636 <port>8443:8443</port>
637 <port>8080:8080</port>
JulienBeb1679462020-08-19 11:12:59 +0200638 <port>4000:4000</port>
sebdet056998c2020-08-13 10:32:41 -0700639 </ports>
640 <network>
641 <mode>custom</mode>
642 <name>sdc-network</name>
643 <alias>sdc-BE</alias>
644 </network>
645 </run>
646 </image>
647 <image>
648 <name>onap/sdc-backend-init:${it.docker.version}</name>
649 <alias>sdc-backend-init</alias>
650 <run>
651 <dependsOn>
652 <container>sdc-backend</container>
653 </dependsOn>
654 <env>
655 <ENVNAME>${it.env.name}</ENVNAME>
656 </env>
657 <hostname>sdc-BE-init</hostname>
658 <volumes>
659 <bind>
vasraz787cfd52021-03-23 17:47:51 +0000660 <volume>
661 ${it.chef.config}:/home/onap/chef-solo/environments
662 </volume>
sebdetdf353be2020-09-21 22:13:05 +0200663 <volume>${it.shared.volume}:/home/onap/logs</volume>
sebdet056998c2020-08-13 10:32:41 -0700664 </bind>
665 </volumes>
666 <wait>
xuegaoa856d542020-12-18 10:37:23 +0100667 <time>660000</time>
sebdet056998c2020-08-13 10:32:41 -0700668 <log>Chef Client finished</log>
669 </wait>
670 <network>
671 <mode>custom</mode>
672 <name>sdc-network</name>
673 <alias>sdc-BE-init</alias>
674 </network>
675 </run>
676 </image>
677 <image>
678 <name>onap/sdc-frontend:${it.docker.version}</name>
679 <alias>sdc-frontend</alias>
680 <run>
sebdet056998c2020-08-13 10:32:41 -0700681 <env>
682 <ENVNAME>${it.env.name}</ENVNAME>
vasraz787cfd52021-03-23 17:47:51 +0000683 <JAVA_OPTIONS>
684 -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:6000
685 -Xmx256m -Xms256m
686 </JAVA_OPTIONS>
sebdet056998c2020-08-13 10:32:41 -0700687 </env>
688 <hostname>sdc-FE</hostname>
689 <volumes>
690 <bind>
sebdetdf353be2020-09-21 22:13:05 +0200691 <volume>${it.chef.config}:/app/jetty/chef-solo/environments</volume>
692 <volume>${it.shared.volume}:/app/jetty/logs</volume>
vasraz787cfd52021-03-23 17:47:51 +0000693 <volume>
sebdetdf353be2020-09-21 22:13:05 +0200694 ${it.chef.config}/plugins-configuration.yaml:/app/jetty/config/catalog-fe/plugins-configuration.yaml
vasraz787cfd52021-03-23 17:47:51 +0000695 </volume>
sebdetdf353be2020-09-21 22:13:05 +0200696
sebdet056998c2020-08-13 10:32:41 -0700697 </bind>
698 </volumes>
699 <wait>
700 <time>60000</time>
701 <tcp>
702 <host>sdc-FE</host>
703 <mode>direct</mode>
704 <ports>
705 <port>9443</port>
706 <port>8181</port>
JulienBeb1679462020-08-19 11:12:59 +0200707 <port>6000</port>
sebdet056998c2020-08-13 10:32:41 -0700708 </ports>
709 </tcp>
710 </wait>
711 <ports>
712 <port>9443:9443</port>
713 <port>8181:8181</port>
JulienBeb1679462020-08-19 11:12:59 +0200714 <port>6000:6000</port>
sebdet056998c2020-08-13 10:32:41 -0700715 </ports>
716 <network>
717 <mode>custom</mode>
718 <name>sdc-network</name>
719 <alias>sdc-FE</alias>
720 </network>
721 </run>
722 </image>
JulienBeb1679462020-08-19 11:12:59 +0200723 <image>
724 <name>onap/sdc-simulator:${it.docker.version}</name>
725 <alias>sdc-simulator</alias>
726 <run>
727 <dependsOn>
728 <container>sdc-frontend</container>
729 </dependsOn>
730 <env>
731 <!--<FE_URL>${it.env.name}</FE_URL>-->
732 <JAVA_OPTIONS>-Xmx128m -Xms128m -Xss1m</JAVA_OPTIONS>
733 <ENVNAME>${it.env.name}</ENVNAME>
734 </env>
735 <hostname>sdc-sim</hostname>
736 <volumes>
737 <bind>
sebdetdf353be2020-09-21 22:13:05 +0200738 <volume>${it.chef.config}:/app/jetty/chef-solo/environments</volume>
739 <volume>${it.shared.volume}:/app/jetty/logs</volume>
JulienBeb1679462020-08-19 11:12:59 +0200740 </bind>
741 </volumes>
742 <wait>
743 <time>60000</time>
744 <tcp>
745 <host>sdc-sim</host>
746 <mode>direct</mode>
747 <ports>
748 <port>8080</port>
749 <port>8443</port>
750 </ports>
751 </tcp>
752 </wait>
753 <ports>
JulienBe930ed252020-08-25 22:20:30 +0200754 <!-- http://localhost:8285/login to access SDC -->
JulienBeb1679462020-08-19 11:12:59 +0200755 <port>8285:8080</port>
756 <port>8286:8443</port>
757 </ports>
758 <network>
759 <mode>custom</mode>
760 <name>sdc-network</name>
761 <alias>sdc-sim</alias>
762 </network>
763 </run>
764 </image>
JulienBe930ed252020-08-25 22:20:30 +0200765
766 <image>
767 <name>selenium/standalone-firefox:${it.ui.firefox.version}</name>
768 <alias>firefox-standalone</alias>
769 <run>
770 <hostname>firefox-standalone</hostname>
771 <wait>
772 <time>20000</time>
773 <tcp>
774 <host>firefox-standalone</host>
775 <mode>direct</mode>
776 <ports>
777 <!-- Selenium remote automation port -->
778 <port>4444</port>
779 <!--<port>5900</port>-->
780 <!-- VNC port for viewing the browser result -->
781 <!-- password to access is "secret" -->
JulienBe930ed252020-08-25 22:20:30 +0200782 </ports>
783 </tcp>
784 </wait>
785 <env>
JulienBe930ed252020-08-25 22:20:30 +0200786 <JAVA_OPTS>-Xmx512m</JAVA_OPTS>
787 <!--<START_XVFB>false</START_XVFB>-->
788 <SCREEN_WIDTH>1920</SCREEN_WIDTH>
789 <SCREEN_HEIGHT>1440</SCREEN_HEIGHT>
790 </env>
791 <ports>
792 <port>4444:4444</port>
793 <!--<port>5900:5900</port>-->
794 </ports>
795 <network>
796 <mode>custom</mode>
797 <name>sdc-network</name>
798 <alias>firefox-standalone</alias>
799 </network>
800 <volumes>
801 <bind>
802 <volume>
sebdet5b057082020-09-01 23:47:27 +0200803 /tmp/sdc-integration-tests/downloadAutomation/:/home/seluser/Desktop
JulienBe930ed252020-08-25 22:20:30 +0200804 </volume>
805 <volume>/dev/shm:/dev/shm</volume>
806 </bind>
807 </volumes>
808 </run>
809 </image>
Remigiusz Janeczekfcebea12021-05-21 14:50:40 +0200810 <image>
811 <name>onap/org.onap.sdc.sdc-helm-validator:${it.helm-validator.version}</name>
812 <alias>helm-validator</alias>
813 <run>
814 <skip>${it.helm-validator.disabled}</skip>
815 <hostname>helm-validator</hostname>
816 <wait>
817 <time>20000</time>
818 <tcp>
819 <host>helm-validator</host>
820 <mode>direct</mode>
821 <ports>
822 <port>8080</port>
823 </ports>
824 </tcp>
825 </wait>
826 <ports>
827 <port>8085:8080</port>
828 </ports>
829 <network>
830 <mode>custom</mode>
831 <name>sdc-network</name>
832 <alias>helm-validator</alias>
833 </network>
834 </run>
835 </image>
sebdet056998c2020-08-13 10:32:41 -0700836 </images>
837 </configuration>
sebdet056998c2020-08-13 10:32:41 -0700838 <executions>
839 <execution>
840 <id>docker-start-for-it</id>
841 <phase>pre-integration-test</phase>
842 <goals>
843 <goal>start</goal>
844 </goals>
845 </execution>
846 <execution>
847 <id>docker-stop-for-it</id>
848 <phase>post-integration-test</phase>
849 <goals>
850 <goal>stop</goal>
851 </goals>
852 </execution>
853 </executions>
854 </plugin>
JulienBeb1679462020-08-19 11:12:59 +0200855
856 <plugin>
857 <groupId>org.apache.maven.plugins</groupId>
858 <artifactId>maven-surefire-plugin</artifactId>
859 <configuration>
860 <skip>true</skip>
861 </configuration>
862 </plugin>
JulienBe930ed252020-08-25 22:20:30 +0200863
JulienBeb1679462020-08-19 11:12:59 +0200864 <plugin>
865 <groupId>org.apache.maven.plugins</groupId>
866 <artifactId>maven-failsafe-plugin</artifactId>
867 <configuration>
sebdet5b057082020-09-01 23:47:27 +0200868 <forkCount>1</forkCount>
869 <reuseForks>true</reuseForks>
amohamad44c6c0d2020-08-09 20:27:40 -0400870 <systemProperties>
871 <property>
872 <name>testng.dtd.http</name>
873 <value>true</value>
874 </property>
875 </systemProperties>
JulienBeb1679462020-08-19 11:12:59 +0200876 <suiteXmlFiles>
sebdetc5c60bf2020-08-25 12:31:39 +0200877 <file>src/test/resources/ci/testSuites/backend/onapApiSanity.xml</file>
JulienBe930ed252020-08-25 22:20:30 +0200878 <file>src/test/resources/ci/testSuites/frontend/onapUiSanity.xml</file>
JulienBeb1679462020-08-19 11:12:59 +0200879 <!--<file>src/test/resources/ci/testSuites/artifacts.xml</file>-->
880 <!--<file>src/test/resources/ci/testSuites/cap_req.xml</file>-->
881 <!--<file>src/test/resources/ci/testSuites/category.xml</file>-->
882 <!--<file>src/test/resources/ci/testSuites/ciFull.xml</file>-->
883 <!--<file>src/test/resources/ci/testSuites/CRUDArtifacts.xml</file>-->
884 <!--<file>src/test/resources/ci/testSuites/externalAPIs.xml</file>-->
885 <!--<file>src/test/resources/ci/testSuites/ExternalApiSanity.xml</file>-->
JulienBe930ed252020-08-25 22:20:30 +0200886 <!-- <file>src/test/resources/ci/testSuites/general.xml</file>-->
887 <!-- <file>src/test/resources/ci/testSuites/imports.xml</file>-->
JulienBeb1679462020-08-19 11:12:59 +0200888 <!--<file>src/test/resources/ci/testSuites/normatives.xml</file>-->
889 <!--<file>src/test/resources/ci/testSuites/onapApiSanity.xml</file>-->
890 <!--<file>src/test/resources/ci/testSuites/pass.xml</file>-->
JulienBe930ed252020-08-25 22:20:30 +0200891 <!-- <file>src/test/resources/ci/testSuites/product.xml</file>-->
JulienBeb1679462020-08-19 11:12:59 +0200892 <!--<file>src/test/resources/ci/testSuites/productAPIs.xml</file>-->
JulienBe930ed252020-08-25 22:20:30 +0200893 <!-- <file>src/test/resources/ci/testSuites/property.xml</file>-->
894 <!-- <file>src/test/resources/ci/testSuites/resource.xml</file>-->
JulienBeb1679462020-08-19 11:12:59 +0200895 <!--<file>src/test/resources/ci/testSuites/sanity.xml</file>-->
896 <!--<file>src/test/resources/ci/testSuites/SearchExternalAPI.xml</file>-->
JulienBe930ed252020-08-25 22:20:30 +0200897 <!-- <file>src/test/resources/ci/testSuites/service.xml</file>-->
JulienBeb1679462020-08-19 11:12:59 +0200898 <!--<file>src/test/resources/ci/testSuites/testngLifeCycle.xml</file>-->
JulienBe930ed252020-08-25 22:20:30 +0200899 <!-- <file>src/test/resources/ci/testSuites/user.xml</file>-->
JulienBeb1679462020-08-19 11:12:59 +0200900 </suiteXmlFiles>
JulienBeb1679462020-08-19 11:12:59 +0200901 </configuration>
902 </plugin>
sebdet056998c2020-08-13 10:32:41 -0700903 </plugins>
904 </build>
sebdet9d724fe2021-02-03 15:05:54 +0100905 <profiles>
906 <profile>
907 <id>all-for-integration-tests-only</id>
908 <properties>
909 <surefire.skip.tests>true</surefire.skip.tests>
910 <skipTest>false</skipTest>
911 </properties>
912 </profile>
Remigiusz Janeczekfcebea12021-05-21 14:50:40 +0200913 <profile>
914 <id>integration-tests-with-helm-validator</id>
915 <properties>
916 <it.helm-validator.disabled>false</it.helm-validator.disabled>
917 </properties>
918 <build>
919 <plugins>
920 <plugin>
921 <groupId>org.apache.maven.plugins</groupId>
922 <artifactId>maven-failsafe-plugin</artifactId>
923 <configuration>
924 <forkCount>1</forkCount>
925 <reuseForks>true</reuseForks>
926 <systemProperties>
927 <property>
928 <name>testng.dtd.http</name>
929 <value>true</value>
930 </property>
931 </systemProperties>
932 <suiteXmlFiles>
933 <file>src/test/resources/ci/testSuites/backend/onapApiSanity.xml</file>
934 <file>src/test/resources/ci/testSuites/frontend/onapUiSanity.xml</file>
935 <file>src/test/resources/ci/testSuites/backend/helmValidatorTests.xml</file>
936 <file>src/test/resources/ci/testSuites/frontend/helmValidatorTests.xml</file>
937 </suiteXmlFiles>
938 </configuration>
939 </plugin>
940 </plugins>
941 </build>
942 </profile>
sebdet9d724fe2021-02-03 15:05:54 +0100943 </profiles>
sebdet056998c2020-08-13 10:32:41 -0700944</project>