blob: 4fd4304f4bfee7b530bf3b68c444af9fa0ce61d9 [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>
vasrazb7ea3ef2021-05-12 13:56:51 +0100152 <exclusion>
153 <groupId>commons-io</groupId>
154 <artifactId>commons-io</artifactId>
155 </exclusion>
JulienBeb1679462020-08-19 11:12:59 +0200156 </exclusions>
157 </dependency>
158 <dependency>
159 <groupId>org.assertj</groupId>
160 <artifactId>assertj-core</artifactId>
161 <version>${assertj.version}</version>
162 <scope>test</scope>
163 </dependency>
164 <dependency>
165 <groupId>com.clearspring.analytics</groupId>
166 <artifactId>stream</artifactId>
167 <version>${clearspring.version}</version>
168 <scope>test</scope>
169 </dependency>
170 <dependency>
171 <groupId>org.apache.httpcomponents</groupId>
172 <artifactId>httpclient</artifactId>
173 <version>${httpclient.version}</version>
174 <scope>test</scope>
175 </dependency>
176 <dependency>
177 <groupId>org.apache.httpcomponents</groupId>
178 <artifactId>httpcore</artifactId>
179 <version>${httpcore.version}</version>
180 <scope>test</scope>
181 </dependency>
182 <dependency>
183 <groupId>com.fasterxml.jackson.core</groupId>
184 <artifactId>jackson-core</artifactId>
185 <version>${jackson.version}</version>
186 <scope>test</scope>
187 </dependency>
188 <dependency>
189 <groupId>org.codehaus.jackson</groupId>
190 <artifactId>jackson-mapper-asl</artifactId>
191 <version>1.9.2</version>
192 <scope>test</scope>
193 </dependency>
194 <dependency>
195 <groupId>com.fasterxml.jackson.core</groupId>
196 <artifactId>jackson-databind</artifactId>
197 <version>${jackson.version}</version>
198 <scope>test</scope>
199 <exclusions>
200 <exclusion>
201 <groupId>com.fasterxml.jackson.core</groupId>
202 <artifactId>jackson-core</artifactId>
203 </exclusion>
204 </exclusions>
205 </dependency>
sebdetc5c60bf2020-08-25 12:31:39 +0200206
vasraz97149612020-10-19 16:33:00 +0100207 <dependency>
208 <groupId>org.onap.sdc.sdc-tosca</groupId>
209 <artifactId>sdc-tosca</artifactId>
210 <version>${sdc-tosca-parser.version}</version>
211 </dependency>
212
sebdetc5c60bf2020-08-25 12:31:39 +0200213 <!--FOR the Frontend -->
214 <dependency>
215 <groupId>org.seleniumhq.selenium</groupId>
216 <artifactId>selenium-java</artifactId>
217 <scope>test</scope>
JulienBe930ed252020-08-25 22:20:30 +0200218 <version>${selenium.version}</version>
sebdetc5c60bf2020-08-25 12:31:39 +0200219 </dependency>
220 <dependency>
JulienBe930ed252020-08-25 22:20:30 +0200221 <groupId>org.seleniumhq.selenium</groupId>
222 <artifactId>selenium-server</artifactId>
andre.schmida64494f2021-03-15 16:51:12 +0000223 <version>${selenium.version}</version>
JulienBe930ed252020-08-25 22:20:30 +0200224 <scope>test</scope>
225 </dependency>
226 <dependency>
227 <groupId>org.seleniumhq.selenium</groupId>
228 <artifactId>selenium-firefox-driver</artifactId>
229 <version>${selenium.version}</version>
230 <scope>test</scope>
231 </dependency>
232
233 <dependency>
sebdetc5c60bf2020-08-25 12:31:39 +0200234 <groupId>net.lightbody.bmp</groupId>
235 <!-- To use the legacy, Jetty-based implementation, change the artifactId
236 to browsermob-core -->
237 <artifactId>browsermob-core</artifactId>
238 <version>2.1.4</version>
239 <scope>test</scope>
240 <exclusions>
241 <exclusion>
242 <groupId>com.fasterxml.jackson.core</groupId>
243 <artifactId>jackson-core</artifactId>
244 </exclusion>
245 </exclusions>
246 </dependency>
247 <dependency>
248 <groupId>com.paulhammant</groupId>
249 <artifactId>ngwebdriver</artifactId>
250 <version>0.9.7</version>
251 <scope>test</scope>
252 </dependency>
253 <dependency>
254 <groupId>com.github.markusbernhardt</groupId>
255 <artifactId>proxy-vole</artifactId>
256 <version>1.0.2</version>
257 <scope>test</scope>
258 </dependency>
259 <dependency>
sebdetc5c60bf2020-08-25 12:31:39 +0200260 <groupId>commons-net</groupId>
261 <artifactId>commons-net</artifactId>
262 <version>3.3</version>
263 <scope>test</scope>
264 </dependency>
sebdeta9fffd22020-10-08 13:28:36 +0200265 <dependency>
266 <groupId>org.apache.logging.log4j</groupId>
267 <artifactId>log4j-api</artifactId>
268 <version>2.13.1</version>
269 <scope>test</scope>
270 </dependency>
sebdet056998c2020-08-13 10:32:41 -0700271 </dependencies>
272
273 <build>
274 <plugins>
275 <!-- Section for Integration tests -->
276 <plugin>
277 <artifactId>maven-resources-plugin</artifactId>
278 <executions>
279 <execution>
sebdet5b057082020-09-01 23:47:27 +0200280 <id>copy-chef-resources</id>
sebdet056998c2020-08-13 10:32:41 -0700281 <phase>pre-integration-test</phase>
282 <goals>
283 <goal>copy-resources</goal>
284 </goals>
285 <configuration>
286 <outputDirectory>${it.chef.config}</outputDirectory>
287 <resources>
288 <resource>
JulienBeb1679462020-08-19 11:12:59 +0200289 <directory>environments</directory>
sebdet056998c2020-08-13 10:32:41 -0700290 <filtering>true</filtering>
291 <includes>
292 <include>integration-test.json</include>
JulienBe930ed252020-08-25 22:20:30 +0200293 <include>plugins-configuration.yaml</include>
sebdet056998c2020-08-13 10:32:41 -0700294 </includes>
295 </resource>
296 </resources>
297 </configuration>
298 </execution>
andre.schmid662fcba2020-08-21 11:31:47 +0100299 <execution>
300 <id>copy-sdc-be-plugins</id>
301 <phase>pre-integration-test</phase>
302 <goals>
303 <goal>copy-resources</goal>
304 </goals>
305 <configuration>
306 <outputDirectory>${it.sdc-be.plugins}</outputDirectory>
307 <resources>
308 <resource>
vasraz787cfd52021-03-23 17:47:51 +0000309 <directory>
310 ../catalog-be-plugins/etsi-nfv-nsd-csar-plugin/target
311 </directory>
andre.schmid662fcba2020-08-21 11:31:47 +0100312 <filtering>false</filtering>
313 <includes>
vasraz787cfd52021-03-23 17:47:51 +0000314 <include>etsi-nfv-nsd-csar-plugin-${project.version}.jar
315 </include>
andre.schmid662fcba2020-08-21 11:31:47 +0100316 </includes>
317 </resource>
318 </resources>
319 </configuration>
320 </execution>
sebdet056998c2020-08-13 10:32:41 -0700321 </executions>
322 </plugin>
323 <plugin>
JulienBe930ed252020-08-25 22:20:30 +0200324 <groupId>org.codehaus.mojo</groupId>
325 <artifactId>wagon-maven-plugin</artifactId>
326 <version>2.0.0</version>
327 <executions>
328 <execution>
329 <id>download-gecko</id>
330 <phase>validate</phase>
331 <goals>
332 <goal>download-single</goal>
333 </goals>
334 <configuration>
335 <url>https://github.com</url>
336 <fromFile>
337 mozilla/geckodriver/releases/download/v${gecko.driver.version}/geckodriver-v${gecko.driver.version}-linux64.tar.gz
338 </fromFile>
339 <toDir>${project.build.directory}/gecko</toDir>
340 </configuration>
341 </execution>
342 </executions>
343 </plugin>
344 <plugin>
vasraz787cfd52021-03-23 17:47:51 +0000345 <groupId>org.apache.maven.plugins</groupId>
sebdet056998c2020-08-13 10:32:41 -0700346 <artifactId>maven-antrun-plugin</artifactId>
vasraz787cfd52021-03-23 17:47:51 +0000347 <version>${maven-antrun-plugin.version}</version>
sebdet056998c2020-08-13 10:32:41 -0700348 <executions>
349 <execution>
JulienBe930ed252020-08-25 22:20:30 +0200350 <id>set-folder-permission</id>
sebdet056998c2020-08-13 10:32:41 -0700351 <phase>pre-integration-test</phase>
352 <configuration>
353 <target>
sebdet5b057082020-09-01 23:47:27 +0200354 <mkdir dir="/tmp/sdc-integration-tests"/>
355 <chmod dir="/tmp/sdc-integration-tests" type="dir" perm="ugo+rwx"/>
356 <mkdir dir="/tmp/sdc-integration-tests/downloadAutomation"/>
vasraz787cfd52021-03-23 17:47:51 +0000357 <chmod dir="/tmp/sdc-integration-tests/downloadAutomation"
358 type="dir"
359 perm="ugo+rwx"/>
JulienBe930ed252020-08-25 22:20:30 +0200360 </target>
361 </configuration>
362 <goals>
363 <goal>run</goal>
364 </goals>
365 </execution>
366 <execution>
367 <id>untar-gecko</id>
368 <phase>pre-integration-test</phase>
369 <configuration>
370 <target>
vasraz787cfd52021-03-23 17:47:51 +0000371 <untar
372 src="${project.build.directory}/gecko/geckodriver-v${gecko.driver.version}-linux64.tar.gz"
373 compression="gzip" dest="${project.build.directory}/gecko/"/>
374 <chmod dir="${project.build.directory}/gecko/geckodriver" type="dir"
375 perm="ugo+rwx"/>
sebdet056998c2020-08-13 10:32:41 -0700376 </target>
377 </configuration>
378 <goals>
379 <goal>run</goal>
380 </goals>
381 </execution>
382 </executions>
383 </plugin>
384 <plugin>
385 <groupId>org.codehaus.mojo</groupId>
386 <artifactId>build-helper-maven-plugin</artifactId>
sebdet056998c2020-08-13 10:32:41 -0700387 <executions>
388 <execution>
389 <id>reserve-port-for-tests</id>
390 <phase>validate</phase>
391 <goals>
392 <goal>reserve-network-port</goal>
393 </goals>
394 <configuration>
395 <portNames>
396 <portName>sdc.it.docker.cassandra.port</portName>
397 </portNames>
398 </configuration>
399 </execution>
400 </executions>
401 </plugin>
402 <plugin>
403 <groupId>io.fabric8</groupId>
404 <artifactId>docker-maven-plugin</artifactId>
sebdet056998c2020-08-13 10:32:41 -0700405 <dependencies>
406 <dependency>
407 <groupId>org.apache.httpcomponents</groupId>
408 <artifactId>httpclient</artifactId>
409 <version>4.5.5</version>
410 </dependency>
411 </dependencies>
412 <configuration>
sebdetdf353be2020-09-21 22:13:05 +0200413 <verbose>${verbose}</verbose>
sebdet591810d2020-09-17 15:07:23 +0200414 <apiVersion>${docker.api.version}</apiVersion>
sebdet056998c2020-08-13 10:32:41 -0700415 <autoCreateCustomNetworks>true</autoCreateCustomNetworks>
416 <images>
417 <image>
418 <name>onap/sdc-cassandra:${it.docker.version}</name>
419 <alias>sdc-cassandra</alias>
420 <run>
421 <env>
422 <RELEASE>${project.version}</RELEASE>
423 <CS_PASSWORD>${it.cassandra.password}</CS_PASSWORD>
424 <ENVNAME>${it.env.name}</ENVNAME>
425 <MAX_HEAP_SIZE>1536M</MAX_HEAP_SIZE>
426 <HEAP_NEWSIZE>512M</HEAP_NEWSIZE>
427 </env>
428 <hostname>sdc-cs</hostname>
429 <volumes>
430 <bind>
vasraz787cfd52021-03-23 17:47:51 +0000431 <volume>${it.chef.config}:/root/chef-solo/environments
432 </volume>
sebdet056998c2020-08-13 10:32:41 -0700433 </bind>
434 </volumes>
435 <ulimits>
436 <ulimit>
437 <name>memlock</name>
438 <hard>-1</hard>
439 <soft>-1</soft>
440 </ulimit>
441 <ulimit>
442 <name>nofile</name>
443 <hard>100000</hard>
444 <soft>100000</soft>
445 </ulimit>
446 </ulimits>
447 <wait>
448 <time>120000</time>
449 <tcp>
450 <host>sdc-cs</host>
451 <mode>direct</mode>
452 <ports>
453 <port>9042</port>
454 </ports>
455 </tcp>
456 </wait>
457 <ports>
458 <port>9042:9042</port>
459 </ports>
460 <network>
461 <mode>custom</mode>
462 <name>sdc-network</name>
463 <alias>sdc-cs</alias>
464 </network>
465 </run>
466 </image>
467 <image>
468 <name>onap/sdc-cassandra-init:${it.docker.version}</name>
469 <alias>sdc-cassandra-init</alias>
470 <run>
471 <dependsOn>
472 <container>sdc-cassandra</container>
473 </dependsOn>
474 <env>
475 <RELEASE>${project.version}</RELEASE>
476 <SDC_USER>${it.sdc.user}</SDC_USER>
477 <SDC_PASSWORD>${it.sdc.password}</SDC_PASSWORD>
478 <CS_PASSWORD>${it.cassandra.password}</CS_PASSWORD>
479 <ENVNAME>${it.env.name}</ENVNAME>
480 </env>
481 <hostname>sdc-cs-init</hostname>
482 <volumes>
483 <bind>
vasraz787cfd52021-03-23 17:47:51 +0000484 <volume>${it.chef.config}:/home/sdc/chef-solo/environments
485 </volume>
sebdetdf353be2020-09-21 22:13:05 +0200486
sebdet056998c2020-08-13 10:32:41 -0700487 </bind>
488 </volumes>
489 <wait>
490 <time>300000</time>
491 <log>SdcSchemaFileImport successfully completed</log>
492 </wait>
493 <network>
494 <mode>custom</mode>
495 <name>sdc-network</name>
496 <alias>sdc-cs-init</alias>
497 </network>
498 </run>
499 </image>
500 <image>
501 <name>onap/sdc-onboard-cassandra-init:${it.docker.version}</name>
502 <alias>sdc-cassandra-onboard-init</alias>
503 <run>
504 <dependsOn>
sebdet5b057082020-09-01 23:47:27 +0200505 <container>sdc-cassandra</container>
sebdet056998c2020-08-13 10:32:41 -0700506 </dependsOn>
507 <env>
508 <RELEASE>${project.version}</RELEASE>
509 <SDC_USER>${it.sdc.user}</SDC_USER>
510 <SDC_PASSWORD>${it.sdc.password}</SDC_PASSWORD>
511 <CS_PASSWORD>${it.cassandra.password}</CS_PASSWORD>
512 <CS_HOST_PORT>${it.cassandra.port}</CS_HOST_PORT>
513 <ENVNAME>${it.env.name}</ENVNAME>
514 <CS_HOST_IP>sdc-cs</CS_HOST_IP>
515 </env>
516 <hostname>sdc-cs-onboard-init</hostname>
517 <volumes>
518 <bind>
vasraz787cfd52021-03-23 17:47:51 +0000519 <volume>${it.chef.config}:/home/sdc/chef-solo/environments
520 </volume>
sebdet056998c2020-08-13 10:32:41 -0700521 </bind>
522 </volumes>
523 <wait>
524 <time>30000</time>
525 <log>Initializing onboard schemas</log>
526 </wait>
527 <network>
528 <mode>custom</mode>
529 <name>sdc-network</name>
530 <alias>sdc-cs-onboard-init</alias>
531 </network>
532 </run>
533 </image>
534 <image>
535 <name>onap/sdc-onboard-backend:${it.docker.version}</name>
536 <alias>sdc-onboard-backend</alias>
537 <run>
538 <dependsOn>
539 <container>sdc-cassandra-onboard-init</container>
540 </dependsOn>
541 <env>
vasraz787cfd52021-03-23 17:47:51 +0000542 <cassandra_ssl_enabled>${it.cassandra.ssl.enabled}
543 </cassandra_ssl_enabled>
sebdet056998c2020-08-13 10:32:41 -0700544 <SDC_CLUSTER_NAME>${it.sdc.cluster.name}</SDC_CLUSTER_NAME>
545 <SDC_USER>${it.sdc.user}</SDC_USER>
546 <SDC_PASSWORD>${it.sdc.password}</SDC_PASSWORD>
547 <ENVNAME>${it.env.name}</ENVNAME>
548 <SDC_CERT_DIR>onap/cert</SDC_CERT_DIR>
vasraz787cfd52021-03-23 17:47:51 +0000549 <JAVA_OPTIONS>
550 -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:4001
551 -Xmx1g -Xms1g
552 </JAVA_OPTIONS>
sebdet056998c2020-08-13 10:32:41 -0700553 </env>
554 <hostname>sdc-onboard-BE</hostname>
555 <volumes>
556 <bind>
sebdetdf353be2020-09-21 22:13:05 +0200557 <volume>${it.chef.config}:/app/jetty/chef-solo/environments</volume>
558 <volume>${project.basedir}/src/test/resources/cert/onboarding-be:/app/jetty/onap/cert
vasraz787cfd52021-03-23 17:47:51 +0000559 </volume>
sebdetdf353be2020-09-21 22:13:05 +0200560 <volume>${it.shared.volume}:/app/jetty/logs</volume>
sebdet056998c2020-08-13 10:32:41 -0700561 </bind>
562 </volumes>
563 <wait>
sebdet30670ac2020-08-04 14:16:00 +0200564 <time>300000</time>
sebdet056998c2020-08-13 10:32:41 -0700565 <tcp>
566 <host>sdc-onboard-BE</host>
567 <mode>direct</mode>
568 <ports>
569 <port>8445</port>
570 <port>8081</port>
JulienBeb1679462020-08-19 11:12:59 +0200571 <port>4001</port>
sebdet056998c2020-08-13 10:32:41 -0700572 </ports>
573 </tcp>
574 </wait>
575 <ports>
576 <port>8445:8445</port>
577 <port>8081:8081</port>
JulienBeb1679462020-08-19 11:12:59 +0200578 <port>4001:4001</port>
sebdet056998c2020-08-13 10:32:41 -0700579 </ports>
580 <network>
581 <mode>custom</mode>
582 <name>sdc-network</name>
583 <alias>sdc-onboard-BE</alias>
584 </network>
585 </run>
586 </image>
587 <image>
sebdet591810d2020-09-17 15:07:23 +0200588 <name>onap/sdc-backend-all-plugins:${it.docker.version}</name>
sebdet056998c2020-08-13 10:32:41 -0700589 <alias>sdc-backend</alias>
590 <run>
591 <dependsOn>
sebdet5b057082020-09-01 23:47:27 +0200592 <container>sdc-cassandra-init</container>
sebdet056998c2020-08-13 10:32:41 -0700593 </dependsOn>
594 <env>
vasraz787cfd52021-03-23 17:47:51 +0000595 <cassandra_ssl_enabled>${it.cassandra.ssl.enabled}
596 </cassandra_ssl_enabled>
sebdet056998c2020-08-13 10:32:41 -0700597 <ENVNAME>${it.env.name}</ENVNAME>
vasraz787cfd52021-03-23 17:47:51 +0000598 <JAVA_OPTIONS>
599 -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:4000
600 -Xmx1536m -Xms1536m
601 </JAVA_OPTIONS>
andre.schmid13b39122021-01-28 17:53:22 +0000602 <SDC_CERT_DIR>onap/cert</SDC_CERT_DIR>
603 <SDC_NSD_CERT_NAME>nsdCert</SDC_NSD_CERT_NAME>
sebdet056998c2020-08-13 10:32:41 -0700604 </env>
605 <hostname>sdc-BE</hostname>
606 <volumes>
607 <bind>
sebdetdf353be2020-09-21 22:13:05 +0200608 <volume>${it.chef.config}:/app/jetty/chef-solo/environments</volume>
609 <volume>${it.shared.volume}:/app/jetty/logs</volume>
vasraz787cfd52021-03-23 17:47:51 +0000610 <volume>
sebdetdf353be2020-09-21 22:13:05 +0200611 ${project.basedir}/src/test/resources/cert/catalog-be:/app/jetty/onap/cert
vasraz787cfd52021-03-23 17:47:51 +0000612 </volume>
sebdet056998c2020-08-13 10:32:41 -0700613 </bind>
614 </volumes>
615 <wait>
616 <time>60000</time>
617 <tcp>
618 <host>sdc-BE</host>
619 <mode>direct</mode>
620 <ports>
621 <port>8443</port>
622 <port>8080</port>
JulienBeb1679462020-08-19 11:12:59 +0200623 <port>4000</port>
sebdet056998c2020-08-13 10:32:41 -0700624 </ports>
625 </tcp>
626 </wait>
627 <ports>
628 <port>8443:8443</port>
629 <port>8080:8080</port>
JulienBeb1679462020-08-19 11:12:59 +0200630 <port>4000:4000</port>
sebdet056998c2020-08-13 10:32:41 -0700631 </ports>
632 <network>
633 <mode>custom</mode>
634 <name>sdc-network</name>
635 <alias>sdc-BE</alias>
636 </network>
637 </run>
638 </image>
639 <image>
640 <name>onap/sdc-backend-init:${it.docker.version}</name>
641 <alias>sdc-backend-init</alias>
642 <run>
643 <dependsOn>
644 <container>sdc-backend</container>
645 </dependsOn>
646 <env>
647 <ENVNAME>${it.env.name}</ENVNAME>
648 </env>
649 <hostname>sdc-BE-init</hostname>
650 <volumes>
651 <bind>
vasraz787cfd52021-03-23 17:47:51 +0000652 <volume>
653 ${it.chef.config}:/home/onap/chef-solo/environments
654 </volume>
sebdetdf353be2020-09-21 22:13:05 +0200655 <volume>${it.shared.volume}:/home/onap/logs</volume>
sebdet056998c2020-08-13 10:32:41 -0700656 </bind>
657 </volumes>
658 <wait>
xuegaoa856d542020-12-18 10:37:23 +0100659 <time>660000</time>
sebdet056998c2020-08-13 10:32:41 -0700660 <log>Chef Client finished</log>
661 </wait>
662 <network>
663 <mode>custom</mode>
664 <name>sdc-network</name>
665 <alias>sdc-BE-init</alias>
666 </network>
667 </run>
668 </image>
669 <image>
670 <name>onap/sdc-frontend:${it.docker.version}</name>
671 <alias>sdc-frontend</alias>
672 <run>
sebdet056998c2020-08-13 10:32:41 -0700673 <env>
674 <ENVNAME>${it.env.name}</ENVNAME>
vasraz787cfd52021-03-23 17:47:51 +0000675 <JAVA_OPTIONS>
676 -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:6000
677 -Xmx256m -Xms256m
678 </JAVA_OPTIONS>
sebdet056998c2020-08-13 10:32:41 -0700679 </env>
680 <hostname>sdc-FE</hostname>
681 <volumes>
682 <bind>
sebdetdf353be2020-09-21 22:13:05 +0200683 <volume>${it.chef.config}:/app/jetty/chef-solo/environments</volume>
684 <volume>${it.shared.volume}:/app/jetty/logs</volume>
vasraz787cfd52021-03-23 17:47:51 +0000685 <volume>
sebdetdf353be2020-09-21 22:13:05 +0200686 ${it.chef.config}/plugins-configuration.yaml:/app/jetty/config/catalog-fe/plugins-configuration.yaml
vasraz787cfd52021-03-23 17:47:51 +0000687 </volume>
sebdetdf353be2020-09-21 22:13:05 +0200688
sebdet056998c2020-08-13 10:32:41 -0700689 </bind>
690 </volumes>
691 <wait>
692 <time>60000</time>
693 <tcp>
694 <host>sdc-FE</host>
695 <mode>direct</mode>
696 <ports>
697 <port>9443</port>
698 <port>8181</port>
JulienBeb1679462020-08-19 11:12:59 +0200699 <port>6000</port>
sebdet056998c2020-08-13 10:32:41 -0700700 </ports>
701 </tcp>
702 </wait>
703 <ports>
704 <port>9443:9443</port>
705 <port>8181:8181</port>
JulienBeb1679462020-08-19 11:12:59 +0200706 <port>6000:6000</port>
sebdet056998c2020-08-13 10:32:41 -0700707 </ports>
708 <network>
709 <mode>custom</mode>
710 <name>sdc-network</name>
711 <alias>sdc-FE</alias>
712 </network>
713 </run>
714 </image>
JulienBeb1679462020-08-19 11:12:59 +0200715 <image>
716 <name>onap/sdc-simulator:${it.docker.version}</name>
717 <alias>sdc-simulator</alias>
718 <run>
719 <dependsOn>
720 <container>sdc-frontend</container>
721 </dependsOn>
722 <env>
723 <!--<FE_URL>${it.env.name}</FE_URL>-->
724 <JAVA_OPTIONS>-Xmx128m -Xms128m -Xss1m</JAVA_OPTIONS>
725 <ENVNAME>${it.env.name}</ENVNAME>
726 </env>
727 <hostname>sdc-sim</hostname>
728 <volumes>
729 <bind>
sebdetdf353be2020-09-21 22:13:05 +0200730 <volume>${it.chef.config}:/app/jetty/chef-solo/environments</volume>
731 <volume>${it.shared.volume}:/app/jetty/logs</volume>
JulienBeb1679462020-08-19 11:12:59 +0200732 </bind>
733 </volumes>
734 <wait>
735 <time>60000</time>
736 <tcp>
737 <host>sdc-sim</host>
738 <mode>direct</mode>
739 <ports>
740 <port>8080</port>
741 <port>8443</port>
742 </ports>
743 </tcp>
744 </wait>
745 <ports>
JulienBe930ed252020-08-25 22:20:30 +0200746 <!-- http://localhost:8285/login to access SDC -->
JulienBeb1679462020-08-19 11:12:59 +0200747 <port>8285:8080</port>
748 <port>8286:8443</port>
749 </ports>
750 <network>
751 <mode>custom</mode>
752 <name>sdc-network</name>
753 <alias>sdc-sim</alias>
754 </network>
755 </run>
756 </image>
JulienBe930ed252020-08-25 22:20:30 +0200757
758 <image>
759 <name>selenium/standalone-firefox:${it.ui.firefox.version}</name>
760 <alias>firefox-standalone</alias>
761 <run>
762 <hostname>firefox-standalone</hostname>
763 <wait>
764 <time>20000</time>
765 <tcp>
766 <host>firefox-standalone</host>
767 <mode>direct</mode>
768 <ports>
769 <!-- Selenium remote automation port -->
770 <port>4444</port>
771 <!--<port>5900</port>-->
772 <!-- VNC port for viewing the browser result -->
773 <!-- password to access is "secret" -->
JulienBe930ed252020-08-25 22:20:30 +0200774 </ports>
775 </tcp>
776 </wait>
777 <env>
JulienBe930ed252020-08-25 22:20:30 +0200778 <JAVA_OPTS>-Xmx512m</JAVA_OPTS>
779 <!--<START_XVFB>false</START_XVFB>-->
780 <SCREEN_WIDTH>1920</SCREEN_WIDTH>
781 <SCREEN_HEIGHT>1440</SCREEN_HEIGHT>
782 </env>
783 <ports>
784 <port>4444:4444</port>
785 <!--<port>5900:5900</port>-->
786 </ports>
787 <network>
788 <mode>custom</mode>
789 <name>sdc-network</name>
790 <alias>firefox-standalone</alias>
791 </network>
792 <volumes>
793 <bind>
794 <volume>
sebdet5b057082020-09-01 23:47:27 +0200795 /tmp/sdc-integration-tests/downloadAutomation/:/home/seluser/Desktop
JulienBe930ed252020-08-25 22:20:30 +0200796 </volume>
797 <volume>/dev/shm:/dev/shm</volume>
798 </bind>
799 </volumes>
800 </run>
801 </image>
sebdet056998c2020-08-13 10:32:41 -0700802 </images>
803 </configuration>
sebdet056998c2020-08-13 10:32:41 -0700804 <executions>
805 <execution>
806 <id>docker-start-for-it</id>
807 <phase>pre-integration-test</phase>
808 <goals>
809 <goal>start</goal>
810 </goals>
811 </execution>
812 <execution>
813 <id>docker-stop-for-it</id>
814 <phase>post-integration-test</phase>
815 <goals>
816 <goal>stop</goal>
817 </goals>
818 </execution>
819 </executions>
820 </plugin>
JulienBeb1679462020-08-19 11:12:59 +0200821
822 <plugin>
823 <groupId>org.apache.maven.plugins</groupId>
824 <artifactId>maven-surefire-plugin</artifactId>
825 <configuration>
826 <skip>true</skip>
827 </configuration>
828 </plugin>
JulienBe930ed252020-08-25 22:20:30 +0200829
JulienBeb1679462020-08-19 11:12:59 +0200830 <plugin>
831 <groupId>org.apache.maven.plugins</groupId>
832 <artifactId>maven-failsafe-plugin</artifactId>
833 <configuration>
sebdet5b057082020-09-01 23:47:27 +0200834 <forkCount>1</forkCount>
835 <reuseForks>true</reuseForks>
amohamad44c6c0d2020-08-09 20:27:40 -0400836 <systemProperties>
837 <property>
838 <name>testng.dtd.http</name>
839 <value>true</value>
840 </property>
841 </systemProperties>
JulienBeb1679462020-08-19 11:12:59 +0200842 <suiteXmlFiles>
sebdetc5c60bf2020-08-25 12:31:39 +0200843 <file>src/test/resources/ci/testSuites/backend/onapApiSanity.xml</file>
JulienBe930ed252020-08-25 22:20:30 +0200844 <file>src/test/resources/ci/testSuites/frontend/onapUiSanity.xml</file>
JulienBeb1679462020-08-19 11:12:59 +0200845 <!--<file>src/test/resources/ci/testSuites/artifacts.xml</file>-->
846 <!--<file>src/test/resources/ci/testSuites/cap_req.xml</file>-->
847 <!--<file>src/test/resources/ci/testSuites/category.xml</file>-->
848 <!--<file>src/test/resources/ci/testSuites/ciFull.xml</file>-->
849 <!--<file>src/test/resources/ci/testSuites/CRUDArtifacts.xml</file>-->
850 <!--<file>src/test/resources/ci/testSuites/externalAPIs.xml</file>-->
851 <!--<file>src/test/resources/ci/testSuites/ExternalApiSanity.xml</file>-->
JulienBe930ed252020-08-25 22:20:30 +0200852 <!-- <file>src/test/resources/ci/testSuites/general.xml</file>-->
853 <!-- <file>src/test/resources/ci/testSuites/imports.xml</file>-->
JulienBeb1679462020-08-19 11:12:59 +0200854 <!--<file>src/test/resources/ci/testSuites/normatives.xml</file>-->
855 <!--<file>src/test/resources/ci/testSuites/onapApiSanity.xml</file>-->
856 <!--<file>src/test/resources/ci/testSuites/pass.xml</file>-->
JulienBe930ed252020-08-25 22:20:30 +0200857 <!-- <file>src/test/resources/ci/testSuites/product.xml</file>-->
JulienBeb1679462020-08-19 11:12:59 +0200858 <!--<file>src/test/resources/ci/testSuites/productAPIs.xml</file>-->
JulienBe930ed252020-08-25 22:20:30 +0200859 <!-- <file>src/test/resources/ci/testSuites/property.xml</file>-->
860 <!-- <file>src/test/resources/ci/testSuites/resource.xml</file>-->
JulienBeb1679462020-08-19 11:12:59 +0200861 <!--<file>src/test/resources/ci/testSuites/sanity.xml</file>-->
862 <!--<file>src/test/resources/ci/testSuites/SearchExternalAPI.xml</file>-->
JulienBe930ed252020-08-25 22:20:30 +0200863 <!-- <file>src/test/resources/ci/testSuites/service.xml</file>-->
JulienBeb1679462020-08-19 11:12:59 +0200864 <!--<file>src/test/resources/ci/testSuites/testngLifeCycle.xml</file>-->
JulienBe930ed252020-08-25 22:20:30 +0200865 <!-- <file>src/test/resources/ci/testSuites/user.xml</file>-->
JulienBeb1679462020-08-19 11:12:59 +0200866 </suiteXmlFiles>
JulienBeb1679462020-08-19 11:12:59 +0200867 </configuration>
868 </plugin>
sebdet056998c2020-08-13 10:32:41 -0700869 </plugins>
870 </build>
sebdet9d724fe2021-02-03 15:05:54 +0100871 <profiles>
872 <profile>
873 <id>all-for-integration-tests-only</id>
874 <properties>
875 <surefire.skip.tests>true</surefire.skip.tests>
876 <skipTest>false</skipTest>
877 </properties>
878 </profile>
879 </profiles>
sebdet056998c2020-08-13 10:32:41 -0700880</project>