blob: 5a80dcd26c896a91a61f177a4d1be6201effcd9b [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.
Joanna Jeremicz0f7ce922021-08-04 10:37:32 +02006Modifications copyright (c) 2020-2021 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>
Joanna Jeremicz0f7ce922021-08-04 10:37:32 +020055 <it.helm-validator.version>1.2.2</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>
JulienBeb1679462020-08-19 11:12:59 +020081 <groupId>org.testng</groupId>
82 <artifactId>testng</artifactId>
83 <version>${testng.version}</version>
84 <scope>test</scope>
85 </dependency>
86 <dependency>
87 <groupId>com.google.code.gson</groupId>
88 <artifactId>gson</artifactId>
89 <version>${gson.version}</version>
90 <scope>test</scope>
91 </dependency>
92 <dependency>
93 <groupId>org.openecomp.sdc.be</groupId>
94 <artifactId>catalog-model</artifactId>
95 <version>${project.version}</version>
96 <scope>test</scope>
97 </dependency>
98 <dependency>
99 <groupId>org.openecomp.sdc.be</groupId>
100 <artifactId>catalog-dao</artifactId>
101 <version>${project.version}</version>
102 <scope>test</scope>
103 </dependency>
104 <dependency>
Maciej Malewski1b441342020-12-10 14:38:00 +0100105 <groupId>org.openecomp.sdc</groupId>
106 <artifactId>openecomp-sdc-vendor-software-product-manager</artifactId>
107 <version>${project.version}</version>
108 <scope>test</scope>
vasraz8dbc7322021-06-26 14:23:12 +0100109 <exclusions>
110 <exclusion>
111 <groupId>org.springframework</groupId>
112 <artifactId>spring-core</artifactId>
113 </exclusion>
114 </exclusions>
Maciej Malewski1b441342020-12-10 14:38:00 +0100115 </dependency>
116 <dependency>
JulienBeb1679462020-08-19 11:12:59 +0200117 <groupId>com.aventstack</groupId>
118 <artifactId>extentreports</artifactId>
119 <version>3.0.6</version>
JulienBeb1679462020-08-19 11:12:59 +0200120 <scope>test</scope>
121 </dependency>
122 <dependency>
123 <groupId>org.janusgraph</groupId>
124 <artifactId>janusgraph-core</artifactId>
125 <version>${janusgraph.version}</version>
126 <scope>test</scope>
127 <exclusions>
128 <exclusion>
vasraz086406a2021-02-22 09:50:07 +0000129 <artifactId>gremlin-groovy</artifactId>
130 <groupId>org.apache.tinkerpop</groupId>
131 </exclusion>
132 <exclusion>
JulienBeb1679462020-08-19 11:12:59 +0200133 <artifactId>slf4j-log4j12</artifactId>
134 <groupId>org.slf4j</groupId>
135 </exclusion>
136 <exclusion>
137 <artifactId>commons-collections</artifactId>
138 <groupId>commons-collections</groupId>
139 </exclusion>
140 <exclusion>
141 <artifactId>groovy</artifactId>
142 <groupId>org.codehaus.groovy</groupId>
143 </exclusion>
144 <exclusion>
145 <groupId>org.apache.thrift</groupId>
146 <artifactId>libthrift</artifactId>
147 </exclusion>
vasrazb7ea3ef2021-05-12 13:56:51 +0100148 <exclusion>
vasraz30b974a2021-05-19 18:22:12 +0100149 <groupId>org.apache.commons</groupId>
150 <artifactId>commons-text</artifactId>
vasrazb7ea3ef2021-05-12 13:56:51 +0100151 </exclusion>
vasraz66af7c52021-07-20 23:22:45 +0100152 <exclusion>
153 <groupId>commons-codec</groupId>
154 <artifactId>commons-codec</artifactId>
155 </exclusion>
vasrazb65fcbf2021-07-26 15:01:06 +0100156 <exclusion>
157 <groupId>dom4j</groupId>
158 <artifactId>dom4j</artifactId>
159 </exclusion>
JulienBeb1679462020-08-19 11:12:59 +0200160 </exclusions>
161 </dependency>
162 <dependency>
163 <groupId>org.assertj</groupId>
164 <artifactId>assertj-core</artifactId>
165 <version>${assertj.version}</version>
166 <scope>test</scope>
167 </dependency>
168 <dependency>
vasraz30b974a2021-05-19 18:22:12 +0100169 <groupId>org.apache.commons</groupId>
170 <artifactId>commons-text</artifactId>
171 <version>${apache-commons-text.version}</version>
172 <scope>test</scope>
173 </dependency>
174 <dependency>
JulienBeb1679462020-08-19 11:12:59 +0200175 <groupId>com.clearspring.analytics</groupId>
176 <artifactId>stream</artifactId>
177 <version>${clearspring.version}</version>
178 <scope>test</scope>
179 </dependency>
180 <dependency>
181 <groupId>org.apache.httpcomponents</groupId>
182 <artifactId>httpclient</artifactId>
183 <version>${httpclient.version}</version>
184 <scope>test</scope>
vasraz66af7c52021-07-20 23:22:45 +0100185 <exclusions>
186 <exclusion>
187 <groupId>commons-codec</groupId>
188 <artifactId>commons-codec</artifactId>
189 </exclusion>
190 </exclusions>
JulienBeb1679462020-08-19 11:12:59 +0200191 </dependency>
192 <dependency>
193 <groupId>org.apache.httpcomponents</groupId>
194 <artifactId>httpcore</artifactId>
195 <version>${httpcore.version}</version>
196 <scope>test</scope>
197 </dependency>
198 <dependency>
199 <groupId>com.fasterxml.jackson.core</groupId>
200 <artifactId>jackson-core</artifactId>
201 <version>${jackson.version}</version>
202 <scope>test</scope>
203 </dependency>
204 <dependency>
205 <groupId>org.codehaus.jackson</groupId>
206 <artifactId>jackson-mapper-asl</artifactId>
207 <version>1.9.2</version>
208 <scope>test</scope>
209 </dependency>
210 <dependency>
211 <groupId>com.fasterxml.jackson.core</groupId>
212 <artifactId>jackson-databind</artifactId>
213 <version>${jackson.version}</version>
214 <scope>test</scope>
215 <exclusions>
216 <exclusion>
217 <groupId>com.fasterxml.jackson.core</groupId>
218 <artifactId>jackson-core</artifactId>
219 </exclusion>
220 </exclusions>
221 </dependency>
sebdetc5c60bf2020-08-25 12:31:39 +0200222
vasraz97149612020-10-19 16:33:00 +0100223 <dependency>
224 <groupId>org.onap.sdc.sdc-tosca</groupId>
225 <artifactId>sdc-tosca</artifactId>
226 <version>${sdc-tosca-parser.version}</version>
227 </dependency>
228
sebdetc5c60bf2020-08-25 12:31:39 +0200229 <!--FOR the Frontend -->
230 <dependency>
231 <groupId>org.seleniumhq.selenium</groupId>
232 <artifactId>selenium-java</artifactId>
233 <scope>test</scope>
JulienBe930ed252020-08-25 22:20:30 +0200234 <version>${selenium.version}</version>
sebdetc5c60bf2020-08-25 12:31:39 +0200235 </dependency>
236 <dependency>
JulienBe930ed252020-08-25 22:20:30 +0200237 <groupId>org.seleniumhq.selenium</groupId>
238 <artifactId>selenium-server</artifactId>
andre.schmida64494f2021-03-15 16:51:12 +0000239 <version>${selenium.version}</version>
JulienBe930ed252020-08-25 22:20:30 +0200240 <scope>test</scope>
241 </dependency>
242 <dependency>
243 <groupId>org.seleniumhq.selenium</groupId>
244 <artifactId>selenium-firefox-driver</artifactId>
245 <version>${selenium.version}</version>
246 <scope>test</scope>
247 </dependency>
248
249 <dependency>
sebdetc5c60bf2020-08-25 12:31:39 +0200250 <groupId>net.lightbody.bmp</groupId>
251 <!-- To use the legacy, Jetty-based implementation, change the artifactId
252 to browsermob-core -->
253 <artifactId>browsermob-core</artifactId>
254 <version>2.1.4</version>
255 <scope>test</scope>
256 <exclusions>
257 <exclusion>
258 <groupId>com.fasterxml.jackson.core</groupId>
259 <artifactId>jackson-core</artifactId>
260 </exclusion>
261 </exclusions>
262 </dependency>
263 <dependency>
264 <groupId>com.paulhammant</groupId>
265 <artifactId>ngwebdriver</artifactId>
266 <version>0.9.7</version>
267 <scope>test</scope>
268 </dependency>
269 <dependency>
270 <groupId>com.github.markusbernhardt</groupId>
271 <artifactId>proxy-vole</artifactId>
272 <version>1.0.2</version>
273 <scope>test</scope>
274 </dependency>
275 <dependency>
sebdetc5c60bf2020-08-25 12:31:39 +0200276 <groupId>commons-net</groupId>
277 <artifactId>commons-net</artifactId>
278 <version>3.3</version>
279 <scope>test</scope>
280 </dependency>
sebdeta9fffd22020-10-08 13:28:36 +0200281 <dependency>
282 <groupId>org.apache.logging.log4j</groupId>
283 <artifactId>log4j-api</artifactId>
284 <version>2.13.1</version>
285 <scope>test</scope>
286 </dependency>
vasraz8dbc7322021-06-26 14:23:12 +0100287 <dependency>
288 <groupId>org.springframework</groupId>
289 <artifactId>spring-core</artifactId>
290 <version>${spring.version}</version>
291 <scope>test</scope>
292 </dependency>
sebdet056998c2020-08-13 10:32:41 -0700293 </dependencies>
294
295 <build>
296 <plugins>
297 <!-- Section for Integration tests -->
298 <plugin>
299 <artifactId>maven-resources-plugin</artifactId>
300 <executions>
301 <execution>
sebdet5b057082020-09-01 23:47:27 +0200302 <id>copy-chef-resources</id>
sebdet056998c2020-08-13 10:32:41 -0700303 <phase>pre-integration-test</phase>
304 <goals>
305 <goal>copy-resources</goal>
306 </goals>
307 <configuration>
308 <outputDirectory>${it.chef.config}</outputDirectory>
309 <resources>
310 <resource>
JulienBeb1679462020-08-19 11:12:59 +0200311 <directory>environments</directory>
sebdet056998c2020-08-13 10:32:41 -0700312 <filtering>true</filtering>
313 <includes>
314 <include>integration-test.json</include>
JulienBe930ed252020-08-25 22:20:30 +0200315 <include>plugins-configuration.yaml</include>
sebdet056998c2020-08-13 10:32:41 -0700316 </includes>
317 </resource>
318 </resources>
319 </configuration>
320 </execution>
andre.schmid662fcba2020-08-21 11:31:47 +0100321 <execution>
322 <id>copy-sdc-be-plugins</id>
323 <phase>pre-integration-test</phase>
324 <goals>
325 <goal>copy-resources</goal>
326 </goals>
327 <configuration>
328 <outputDirectory>${it.sdc-be.plugins}</outputDirectory>
329 <resources>
330 <resource>
vasraz787cfd52021-03-23 17:47:51 +0000331 <directory>
332 ../catalog-be-plugins/etsi-nfv-nsd-csar-plugin/target
333 </directory>
andre.schmid662fcba2020-08-21 11:31:47 +0100334 <filtering>false</filtering>
335 <includes>
vasraz787cfd52021-03-23 17:47:51 +0000336 <include>etsi-nfv-nsd-csar-plugin-${project.version}.jar
337 </include>
andre.schmid662fcba2020-08-21 11:31:47 +0100338 </includes>
339 </resource>
340 </resources>
341 </configuration>
342 </execution>
sebdet056998c2020-08-13 10:32:41 -0700343 </executions>
344 </plugin>
345 <plugin>
JulienBe930ed252020-08-25 22:20:30 +0200346 <groupId>org.codehaus.mojo</groupId>
347 <artifactId>wagon-maven-plugin</artifactId>
348 <version>2.0.0</version>
349 <executions>
350 <execution>
351 <id>download-gecko</id>
352 <phase>validate</phase>
353 <goals>
354 <goal>download-single</goal>
355 </goals>
356 <configuration>
357 <url>https://github.com</url>
358 <fromFile>
359 mozilla/geckodriver/releases/download/v${gecko.driver.version}/geckodriver-v${gecko.driver.version}-linux64.tar.gz
360 </fromFile>
361 <toDir>${project.build.directory}/gecko</toDir>
362 </configuration>
363 </execution>
364 </executions>
365 </plugin>
366 <plugin>
vasraz787cfd52021-03-23 17:47:51 +0000367 <groupId>org.apache.maven.plugins</groupId>
sebdet056998c2020-08-13 10:32:41 -0700368 <artifactId>maven-antrun-plugin</artifactId>
vasraz787cfd52021-03-23 17:47:51 +0000369 <version>${maven-antrun-plugin.version}</version>
sebdet056998c2020-08-13 10:32:41 -0700370 <executions>
371 <execution>
JulienBe930ed252020-08-25 22:20:30 +0200372 <id>set-folder-permission</id>
sebdet056998c2020-08-13 10:32:41 -0700373 <phase>pre-integration-test</phase>
374 <configuration>
375 <target>
sebdet5b057082020-09-01 23:47:27 +0200376 <mkdir dir="/tmp/sdc-integration-tests"/>
377 <chmod dir="/tmp/sdc-integration-tests" type="dir" perm="ugo+rwx"/>
378 <mkdir dir="/tmp/sdc-integration-tests/downloadAutomation"/>
vasraz787cfd52021-03-23 17:47:51 +0000379 <chmod dir="/tmp/sdc-integration-tests/downloadAutomation"
380 type="dir"
381 perm="ugo+rwx"/>
JulienBe930ed252020-08-25 22:20:30 +0200382 </target>
383 </configuration>
384 <goals>
385 <goal>run</goal>
386 </goals>
387 </execution>
388 <execution>
389 <id>untar-gecko</id>
390 <phase>pre-integration-test</phase>
391 <configuration>
392 <target>
vasraz787cfd52021-03-23 17:47:51 +0000393 <untar
394 src="${project.build.directory}/gecko/geckodriver-v${gecko.driver.version}-linux64.tar.gz"
395 compression="gzip" dest="${project.build.directory}/gecko/"/>
396 <chmod dir="${project.build.directory}/gecko/geckodriver" type="dir"
397 perm="ugo+rwx"/>
sebdet056998c2020-08-13 10:32:41 -0700398 </target>
399 </configuration>
400 <goals>
401 <goal>run</goal>
402 </goals>
403 </execution>
404 </executions>
405 </plugin>
406 <plugin>
407 <groupId>org.codehaus.mojo</groupId>
408 <artifactId>build-helper-maven-plugin</artifactId>
sebdet056998c2020-08-13 10:32:41 -0700409 <executions>
410 <execution>
411 <id>reserve-port-for-tests</id>
412 <phase>validate</phase>
413 <goals>
414 <goal>reserve-network-port</goal>
415 </goals>
416 <configuration>
417 <portNames>
418 <portName>sdc.it.docker.cassandra.port</portName>
419 </portNames>
420 </configuration>
421 </execution>
422 </executions>
423 </plugin>
424 <plugin>
425 <groupId>io.fabric8</groupId>
426 <artifactId>docker-maven-plugin</artifactId>
sebdet056998c2020-08-13 10:32:41 -0700427 <dependencies>
428 <dependency>
429 <groupId>org.apache.httpcomponents</groupId>
430 <artifactId>httpclient</artifactId>
vasraz66af7c52021-07-20 23:22:45 +0100431 <version>${httpclient.version}</version>
sebdet056998c2020-08-13 10:32:41 -0700432 </dependency>
433 </dependencies>
434 <configuration>
sebdetdf353be2020-09-21 22:13:05 +0200435 <verbose>${verbose}</verbose>
sebdet591810d2020-09-17 15:07:23 +0200436 <apiVersion>${docker.api.version}</apiVersion>
sebdet056998c2020-08-13 10:32:41 -0700437 <autoCreateCustomNetworks>true</autoCreateCustomNetworks>
438 <images>
439 <image>
440 <name>onap/sdc-cassandra:${it.docker.version}</name>
441 <alias>sdc-cassandra</alias>
442 <run>
443 <env>
444 <RELEASE>${project.version}</RELEASE>
445 <CS_PASSWORD>${it.cassandra.password}</CS_PASSWORD>
446 <ENVNAME>${it.env.name}</ENVNAME>
447 <MAX_HEAP_SIZE>1536M</MAX_HEAP_SIZE>
448 <HEAP_NEWSIZE>512M</HEAP_NEWSIZE>
449 </env>
450 <hostname>sdc-cs</hostname>
451 <volumes>
452 <bind>
vasraz787cfd52021-03-23 17:47:51 +0000453 <volume>${it.chef.config}:/root/chef-solo/environments
454 </volume>
sebdet056998c2020-08-13 10:32:41 -0700455 </bind>
456 </volumes>
457 <ulimits>
458 <ulimit>
459 <name>memlock</name>
460 <hard>-1</hard>
461 <soft>-1</soft>
462 </ulimit>
463 <ulimit>
464 <name>nofile</name>
465 <hard>100000</hard>
466 <soft>100000</soft>
467 </ulimit>
468 </ulimits>
469 <wait>
470 <time>120000</time>
471 <tcp>
472 <host>sdc-cs</host>
473 <mode>direct</mode>
474 <ports>
475 <port>9042</port>
476 </ports>
477 </tcp>
478 </wait>
479 <ports>
480 <port>9042:9042</port>
481 </ports>
482 <network>
483 <mode>custom</mode>
484 <name>sdc-network</name>
485 <alias>sdc-cs</alias>
486 </network>
487 </run>
488 </image>
489 <image>
490 <name>onap/sdc-cassandra-init:${it.docker.version}</name>
491 <alias>sdc-cassandra-init</alias>
492 <run>
493 <dependsOn>
494 <container>sdc-cassandra</container>
495 </dependsOn>
496 <env>
497 <RELEASE>${project.version}</RELEASE>
498 <SDC_USER>${it.sdc.user}</SDC_USER>
499 <SDC_PASSWORD>${it.sdc.password}</SDC_PASSWORD>
500 <CS_PASSWORD>${it.cassandra.password}</CS_PASSWORD>
501 <ENVNAME>${it.env.name}</ENVNAME>
502 </env>
503 <hostname>sdc-cs-init</hostname>
504 <volumes>
505 <bind>
vasraz787cfd52021-03-23 17:47:51 +0000506 <volume>${it.chef.config}:/home/sdc/chef-solo/environments
507 </volume>
sebdetdf353be2020-09-21 22:13:05 +0200508
sebdet056998c2020-08-13 10:32:41 -0700509 </bind>
510 </volumes>
511 <wait>
512 <time>300000</time>
513 <log>SdcSchemaFileImport successfully completed</log>
514 </wait>
515 <network>
516 <mode>custom</mode>
517 <name>sdc-network</name>
518 <alias>sdc-cs-init</alias>
519 </network>
520 </run>
521 </image>
522 <image>
523 <name>onap/sdc-onboard-cassandra-init:${it.docker.version}</name>
524 <alias>sdc-cassandra-onboard-init</alias>
525 <run>
526 <dependsOn>
sebdet5b057082020-09-01 23:47:27 +0200527 <container>sdc-cassandra</container>
sebdet056998c2020-08-13 10:32:41 -0700528 </dependsOn>
529 <env>
530 <RELEASE>${project.version}</RELEASE>
531 <SDC_USER>${it.sdc.user}</SDC_USER>
532 <SDC_PASSWORD>${it.sdc.password}</SDC_PASSWORD>
533 <CS_PASSWORD>${it.cassandra.password}</CS_PASSWORD>
534 <CS_HOST_PORT>${it.cassandra.port}</CS_HOST_PORT>
535 <ENVNAME>${it.env.name}</ENVNAME>
536 <CS_HOST_IP>sdc-cs</CS_HOST_IP>
537 </env>
538 <hostname>sdc-cs-onboard-init</hostname>
539 <volumes>
540 <bind>
vasraz787cfd52021-03-23 17:47:51 +0000541 <volume>${it.chef.config}:/home/sdc/chef-solo/environments
542 </volume>
sebdet056998c2020-08-13 10:32:41 -0700543 </bind>
544 </volumes>
545 <wait>
546 <time>30000</time>
547 <log>Initializing onboard schemas</log>
548 </wait>
549 <network>
550 <mode>custom</mode>
551 <name>sdc-network</name>
552 <alias>sdc-cs-onboard-init</alias>
553 </network>
554 </run>
555 </image>
556 <image>
557 <name>onap/sdc-onboard-backend:${it.docker.version}</name>
558 <alias>sdc-onboard-backend</alias>
559 <run>
marine84f4b052021-07-08 11:57:27 +0200560 <dependsOn>
sebdet056998c2020-08-13 10:32:41 -0700561 <container>sdc-cassandra-onboard-init</container>
562 </dependsOn>
563 <env>
vasraz787cfd52021-03-23 17:47:51 +0000564 <cassandra_ssl_enabled>${it.cassandra.ssl.enabled}
565 </cassandra_ssl_enabled>
sebdet056998c2020-08-13 10:32:41 -0700566 <SDC_CLUSTER_NAME>${it.sdc.cluster.name}</SDC_CLUSTER_NAME>
567 <SDC_USER>${it.sdc.user}</SDC_USER>
568 <SDC_PASSWORD>${it.sdc.password}</SDC_PASSWORD>
569 <ENVNAME>${it.env.name}</ENVNAME>
570 <SDC_CERT_DIR>onap/cert</SDC_CERT_DIR>
vasraz787cfd52021-03-23 17:47:51 +0000571 <JAVA_OPTIONS>
572 -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:4001
573 -Xmx1g -Xms1g
574 </JAVA_OPTIONS>
sebdet056998c2020-08-13 10:32:41 -0700575 </env>
576 <hostname>sdc-onboard-BE</hostname>
577 <volumes>
578 <bind>
sebdetdf353be2020-09-21 22:13:05 +0200579 <volume>${it.chef.config}:/app/jetty/chef-solo/environments</volume>
580 <volume>${project.basedir}/src/test/resources/cert/onboarding-be:/app/jetty/onap/cert
vasraz787cfd52021-03-23 17:47:51 +0000581 </volume>
sebdetdf353be2020-09-21 22:13:05 +0200582 <volume>${it.shared.volume}:/app/jetty/logs</volume>
sebdet056998c2020-08-13 10:32:41 -0700583 </bind>
584 </volumes>
585 <wait>
sebdet30670ac2020-08-04 14:16:00 +0200586 <time>300000</time>
sebdet056998c2020-08-13 10:32:41 -0700587 <tcp>
588 <host>sdc-onboard-BE</host>
589 <mode>direct</mode>
590 <ports>
591 <port>8445</port>
592 <port>8081</port>
JulienBeb1679462020-08-19 11:12:59 +0200593 <port>4001</port>
sebdet056998c2020-08-13 10:32:41 -0700594 </ports>
595 </tcp>
596 </wait>
597 <ports>
598 <port>8445:8445</port>
599 <port>8081:8081</port>
JulienBeb1679462020-08-19 11:12:59 +0200600 <port>4001:4001</port>
sebdet056998c2020-08-13 10:32:41 -0700601 </ports>
602 <network>
603 <mode>custom</mode>
604 <name>sdc-network</name>
605 <alias>sdc-onboard-BE</alias>
606 </network>
607 </run>
608 </image>
609 <image>
sebdet591810d2020-09-17 15:07:23 +0200610 <name>onap/sdc-backend-all-plugins:${it.docker.version}</name>
sebdet056998c2020-08-13 10:32:41 -0700611 <alias>sdc-backend</alias>
612 <run>
613 <dependsOn>
sebdet5b057082020-09-01 23:47:27 +0200614 <container>sdc-cassandra-init</container>
sebdet056998c2020-08-13 10:32:41 -0700615 </dependsOn>
616 <env>
vasraz787cfd52021-03-23 17:47:51 +0000617 <cassandra_ssl_enabled>${it.cassandra.ssl.enabled}
618 </cassandra_ssl_enabled>
sebdet056998c2020-08-13 10:32:41 -0700619 <ENVNAME>${it.env.name}</ENVNAME>
vasraz787cfd52021-03-23 17:47:51 +0000620 <JAVA_OPTIONS>
621 -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:4000
622 -Xmx1536m -Xms1536m
623 </JAVA_OPTIONS>
andre.schmid13b39122021-01-28 17:53:22 +0000624 <SDC_CERT_DIR>onap/cert</SDC_CERT_DIR>
625 <SDC_NSD_CERT_NAME>nsdCert</SDC_NSD_CERT_NAME>
sebdet056998c2020-08-13 10:32:41 -0700626 </env>
627 <hostname>sdc-BE</hostname>
628 <volumes>
629 <bind>
sebdetdf353be2020-09-21 22:13:05 +0200630 <volume>${it.chef.config}:/app/jetty/chef-solo/environments</volume>
631 <volume>${it.shared.volume}:/app/jetty/logs</volume>
vasraz787cfd52021-03-23 17:47:51 +0000632 <volume>
sebdetdf353be2020-09-21 22:13:05 +0200633 ${project.basedir}/src/test/resources/cert/catalog-be:/app/jetty/onap/cert
vasraz787cfd52021-03-23 17:47:51 +0000634 </volume>
sebdet056998c2020-08-13 10:32:41 -0700635 </bind>
636 </volumes>
637 <wait>
638 <time>60000</time>
639 <tcp>
640 <host>sdc-BE</host>
641 <mode>direct</mode>
642 <ports>
643 <port>8443</port>
644 <port>8080</port>
JulienBeb1679462020-08-19 11:12:59 +0200645 <port>4000</port>
sebdet056998c2020-08-13 10:32:41 -0700646 </ports>
647 </tcp>
648 </wait>
649 <ports>
650 <port>8443:8443</port>
651 <port>8080:8080</port>
JulienBeb1679462020-08-19 11:12:59 +0200652 <port>4000:4000</port>
sebdet056998c2020-08-13 10:32:41 -0700653 </ports>
654 <network>
655 <mode>custom</mode>
656 <name>sdc-network</name>
657 <alias>sdc-BE</alias>
658 </network>
659 </run>
660 </image>
661 <image>
662 <name>onap/sdc-backend-init:${it.docker.version}</name>
663 <alias>sdc-backend-init</alias>
664 <run>
665 <dependsOn>
666 <container>sdc-backend</container>
667 </dependsOn>
668 <env>
669 <ENVNAME>${it.env.name}</ENVNAME>
670 </env>
671 <hostname>sdc-BE-init</hostname>
672 <volumes>
673 <bind>
vasraz787cfd52021-03-23 17:47:51 +0000674 <volume>
675 ${it.chef.config}:/home/onap/chef-solo/environments
676 </volume>
sebdetdf353be2020-09-21 22:13:05 +0200677 <volume>${it.shared.volume}:/home/onap/logs</volume>
sebdet056998c2020-08-13 10:32:41 -0700678 </bind>
679 </volumes>
680 <wait>
xuegaoa856d542020-12-18 10:37:23 +0100681 <time>660000</time>
sebdet056998c2020-08-13 10:32:41 -0700682 <log>Chef Client finished</log>
683 </wait>
684 <network>
685 <mode>custom</mode>
686 <name>sdc-network</name>
687 <alias>sdc-BE-init</alias>
688 </network>
689 </run>
690 </image>
691 <image>
692 <name>onap/sdc-frontend:${it.docker.version}</name>
693 <alias>sdc-frontend</alias>
694 <run>
sebdet056998c2020-08-13 10:32:41 -0700695 <env>
696 <ENVNAME>${it.env.name}</ENVNAME>
vasraz787cfd52021-03-23 17:47:51 +0000697 <JAVA_OPTIONS>
698 -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:6000
699 -Xmx256m -Xms256m
700 </JAVA_OPTIONS>
sebdet056998c2020-08-13 10:32:41 -0700701 </env>
702 <hostname>sdc-FE</hostname>
703 <volumes>
704 <bind>
sebdetdf353be2020-09-21 22:13:05 +0200705 <volume>${it.chef.config}:/app/jetty/chef-solo/environments</volume>
706 <volume>${it.shared.volume}:/app/jetty/logs</volume>
vasraz787cfd52021-03-23 17:47:51 +0000707 <volume>
sebdetdf353be2020-09-21 22:13:05 +0200708 ${it.chef.config}/plugins-configuration.yaml:/app/jetty/config/catalog-fe/plugins-configuration.yaml
vasraz787cfd52021-03-23 17:47:51 +0000709 </volume>
sebdetdf353be2020-09-21 22:13:05 +0200710
sebdet056998c2020-08-13 10:32:41 -0700711 </bind>
712 </volumes>
713 <wait>
714 <time>60000</time>
715 <tcp>
716 <host>sdc-FE</host>
717 <mode>direct</mode>
718 <ports>
719 <port>9443</port>
720 <port>8181</port>
JulienBeb1679462020-08-19 11:12:59 +0200721 <port>6000</port>
sebdet056998c2020-08-13 10:32:41 -0700722 </ports>
723 </tcp>
724 </wait>
725 <ports>
726 <port>9443:9443</port>
727 <port>8181:8181</port>
JulienBeb1679462020-08-19 11:12:59 +0200728 <port>6000:6000</port>
sebdet056998c2020-08-13 10:32:41 -0700729 </ports>
730 <network>
731 <mode>custom</mode>
732 <name>sdc-network</name>
733 <alias>sdc-FE</alias>
734 </network>
735 </run>
736 </image>
JulienBeb1679462020-08-19 11:12:59 +0200737 <image>
738 <name>onap/sdc-simulator:${it.docker.version}</name>
739 <alias>sdc-simulator</alias>
740 <run>
741 <dependsOn>
742 <container>sdc-frontend</container>
743 </dependsOn>
744 <env>
745 <!--<FE_URL>${it.env.name}</FE_URL>-->
746 <JAVA_OPTIONS>-Xmx128m -Xms128m -Xss1m</JAVA_OPTIONS>
747 <ENVNAME>${it.env.name}</ENVNAME>
748 </env>
749 <hostname>sdc-sim</hostname>
750 <volumes>
751 <bind>
sebdetdf353be2020-09-21 22:13:05 +0200752 <volume>${it.chef.config}:/app/jetty/chef-solo/environments</volume>
753 <volume>${it.shared.volume}:/app/jetty/logs</volume>
JulienBeb1679462020-08-19 11:12:59 +0200754 </bind>
755 </volumes>
756 <wait>
757 <time>60000</time>
758 <tcp>
759 <host>sdc-sim</host>
760 <mode>direct</mode>
761 <ports>
762 <port>8080</port>
763 <port>8443</port>
764 </ports>
765 </tcp>
766 </wait>
767 <ports>
JulienBe930ed252020-08-25 22:20:30 +0200768 <!-- http://localhost:8285/login to access SDC -->
marine84f4b052021-07-08 11:57:27 +0200769 <port>8285:8080</port>
JulienBeb1679462020-08-19 11:12:59 +0200770 <port>8286:8443</port>
771 </ports>
772 <network>
773 <mode>custom</mode>
774 <name>sdc-network</name>
775 <alias>sdc-sim</alias>
776 </network>
777 </run>
778 </image>
JulienBe930ed252020-08-25 22:20:30 +0200779
780 <image>
781 <name>selenium/standalone-firefox:${it.ui.firefox.version}</name>
782 <alias>firefox-standalone</alias>
783 <run>
784 <hostname>firefox-standalone</hostname>
785 <wait>
786 <time>20000</time>
787 <tcp>
788 <host>firefox-standalone</host>
789 <mode>direct</mode>
790 <ports>
791 <!-- Selenium remote automation port -->
792 <port>4444</port>
793 <!--<port>5900</port>-->
794 <!-- VNC port for viewing the browser result -->
795 <!-- password to access is "secret" -->
JulienBe930ed252020-08-25 22:20:30 +0200796 </ports>
797 </tcp>
798 </wait>
799 <env>
JulienBe930ed252020-08-25 22:20:30 +0200800 <JAVA_OPTS>-Xmx512m</JAVA_OPTS>
801 <!--<START_XVFB>false</START_XVFB>-->
802 <SCREEN_WIDTH>1920</SCREEN_WIDTH>
803 <SCREEN_HEIGHT>1440</SCREEN_HEIGHT>
804 </env>
805 <ports>
806 <port>4444:4444</port>
807 <!--<port>5900:5900</port>-->
808 </ports>
809 <network>
810 <mode>custom</mode>
811 <name>sdc-network</name>
812 <alias>firefox-standalone</alias>
813 </network>
814 <volumes>
815 <bind>
816 <volume>
sebdet5b057082020-09-01 23:47:27 +0200817 /tmp/sdc-integration-tests/downloadAutomation/:/home/seluser/Desktop
JulienBe930ed252020-08-25 22:20:30 +0200818 </volume>
819 <volume>/dev/shm:/dev/shm</volume>
820 </bind>
821 </volumes>
822 </run>
823 </image>
Remigiusz Janeczekfcebea12021-05-21 14:50:40 +0200824 <image>
825 <name>onap/org.onap.sdc.sdc-helm-validator:${it.helm-validator.version}</name>
826 <alias>helm-validator</alias>
827 <run>
828 <skip>${it.helm-validator.disabled}</skip>
829 <hostname>helm-validator</hostname>
830 <wait>
831 <time>20000</time>
832 <tcp>
833 <host>helm-validator</host>
834 <mode>direct</mode>
835 <ports>
836 <port>8080</port>
837 </ports>
838 </tcp>
839 </wait>
840 <ports>
841 <port>8085:8080</port>
842 </ports>
843 <network>
844 <mode>custom</mode>
845 <name>sdc-network</name>
846 <alias>helm-validator</alias>
847 </network>
848 </run>
849 </image>
sebdet056998c2020-08-13 10:32:41 -0700850 </images>
851 </configuration>
sebdet056998c2020-08-13 10:32:41 -0700852 <executions>
853 <execution>
854 <id>docker-start-for-it</id>
855 <phase>pre-integration-test</phase>
856 <goals>
857 <goal>start</goal>
858 </goals>
859 </execution>
860 <execution>
861 <id>docker-stop-for-it</id>
862 <phase>post-integration-test</phase>
863 <goals>
864 <goal>stop</goal>
865 </goals>
866 </execution>
867 </executions>
868 </plugin>
JulienBeb1679462020-08-19 11:12:59 +0200869
870 <plugin>
871 <groupId>org.apache.maven.plugins</groupId>
872 <artifactId>maven-surefire-plugin</artifactId>
873 <configuration>
874 <skip>true</skip>
875 </configuration>
876 </plugin>
JulienBe930ed252020-08-25 22:20:30 +0200877
JulienBeb1679462020-08-19 11:12:59 +0200878 <plugin>
879 <groupId>org.apache.maven.plugins</groupId>
880 <artifactId>maven-failsafe-plugin</artifactId>
881 <configuration>
sebdet5b057082020-09-01 23:47:27 +0200882 <forkCount>1</forkCount>
883 <reuseForks>true</reuseForks>
amohamad44c6c0d2020-08-09 20:27:40 -0400884 <systemProperties>
885 <property>
886 <name>testng.dtd.http</name>
887 <value>true</value>
888 </property>
889 </systemProperties>
JulienBeb1679462020-08-19 11:12:59 +0200890 <suiteXmlFiles>
sebdetc5c60bf2020-08-25 12:31:39 +0200891 <file>src/test/resources/ci/testSuites/backend/onapApiSanity.xml</file>
JulienBe930ed252020-08-25 22:20:30 +0200892 <file>src/test/resources/ci/testSuites/frontend/onapUiSanity.xml</file>
JulienBeb1679462020-08-19 11:12:59 +0200893 <!--<file>src/test/resources/ci/testSuites/artifacts.xml</file>-->
894 <!--<file>src/test/resources/ci/testSuites/cap_req.xml</file>-->
895 <!--<file>src/test/resources/ci/testSuites/category.xml</file>-->
896 <!--<file>src/test/resources/ci/testSuites/ciFull.xml</file>-->
897 <!--<file>src/test/resources/ci/testSuites/CRUDArtifacts.xml</file>-->
898 <!--<file>src/test/resources/ci/testSuites/externalAPIs.xml</file>-->
899 <!--<file>src/test/resources/ci/testSuites/ExternalApiSanity.xml</file>-->
JulienBe930ed252020-08-25 22:20:30 +0200900 <!-- <file>src/test/resources/ci/testSuites/general.xml</file>-->
901 <!-- <file>src/test/resources/ci/testSuites/imports.xml</file>-->
JulienBeb1679462020-08-19 11:12:59 +0200902 <!--<file>src/test/resources/ci/testSuites/normatives.xml</file>-->
903 <!--<file>src/test/resources/ci/testSuites/onapApiSanity.xml</file>-->
904 <!--<file>src/test/resources/ci/testSuites/pass.xml</file>-->
JulienBe930ed252020-08-25 22:20:30 +0200905 <!-- <file>src/test/resources/ci/testSuites/product.xml</file>-->
JulienBeb1679462020-08-19 11:12:59 +0200906 <!--<file>src/test/resources/ci/testSuites/productAPIs.xml</file>-->
JulienBe930ed252020-08-25 22:20:30 +0200907 <!-- <file>src/test/resources/ci/testSuites/property.xml</file>-->
908 <!-- <file>src/test/resources/ci/testSuites/resource.xml</file>-->
JulienBeb1679462020-08-19 11:12:59 +0200909 <!--<file>src/test/resources/ci/testSuites/sanity.xml</file>-->
910 <!--<file>src/test/resources/ci/testSuites/SearchExternalAPI.xml</file>-->
JulienBe930ed252020-08-25 22:20:30 +0200911 <!-- <file>src/test/resources/ci/testSuites/service.xml</file>-->
JulienBeb1679462020-08-19 11:12:59 +0200912 <!--<file>src/test/resources/ci/testSuites/testngLifeCycle.xml</file>-->
JulienBe930ed252020-08-25 22:20:30 +0200913 <!-- <file>src/test/resources/ci/testSuites/user.xml</file>-->
JulienBeb1679462020-08-19 11:12:59 +0200914 </suiteXmlFiles>
JulienBeb1679462020-08-19 11:12:59 +0200915 </configuration>
916 </plugin>
sebdet056998c2020-08-13 10:32:41 -0700917 </plugins>
918 </build>
sebdet9d724fe2021-02-03 15:05:54 +0100919 <profiles>
920 <profile>
921 <id>all-for-integration-tests-only</id>
922 <properties>
923 <surefire.skip.tests>true</surefire.skip.tests>
924 <skipTest>false</skipTest>
925 </properties>
926 </profile>
Remigiusz Janeczekfcebea12021-05-21 14:50:40 +0200927 <profile>
928 <id>integration-tests-with-helm-validator</id>
929 <properties>
930 <it.helm-validator.disabled>false</it.helm-validator.disabled>
931 </properties>
932 <build>
933 <plugins>
934 <plugin>
935 <groupId>org.apache.maven.plugins</groupId>
936 <artifactId>maven-failsafe-plugin</artifactId>
937 <configuration>
938 <forkCount>1</forkCount>
939 <reuseForks>true</reuseForks>
940 <systemProperties>
941 <property>
942 <name>testng.dtd.http</name>
943 <value>true</value>
944 </property>
945 </systemProperties>
946 <suiteXmlFiles>
947 <file>src/test/resources/ci/testSuites/backend/onapApiSanity.xml</file>
948 <file>src/test/resources/ci/testSuites/frontend/onapUiSanity.xml</file>
949 <file>src/test/resources/ci/testSuites/backend/helmValidatorTests.xml</file>
950 <file>src/test/resources/ci/testSuites/frontend/helmValidatorTests.xml</file>
951 </suiteXmlFiles>
952 </configuration>
953 </plugin>
954 </plugins>
955 </build>
956 </profile>
sebdet9d724fe2021-02-03 15:05:54 +0100957 </profiles>
sebdet056998c2020-08-13 10:32:41 -0700958</project>