blob: 2e6005b7b6e302454e253125b0f5c29e3a77182d [file] [log] [blame]
sebdet056998c2020-08-13 10:32:41 -07001<!--
2============LICENSE_START=======================================================
3SDC
4================================================================================
5Copyright (C) 2020 AT&T Intellectual Property. All rights reserved.
Maciej Malewski1b441342020-12-10 14:38:00 +01006Modifications copyright (c) 2020 Nokia
sebdet056998c2020-08-13 10:32:41 -07007================================================================================
8Licensed under the Apache License, Version 2.0 (the "License");
9you may not use this file except in compliance with the License.
10You may obtain a copy of the License at
11 *
12 http://www.apache.org/licenses/LICENSE-2.0
13 *
14Unless required by applicable law or agreed to in writing, software
15distributed under the License is distributed on an "AS IS" BASIS,
16WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17See the License for the specific language governing permissions and
18limitations under the License.
19============LICENSE_END=========================================================
20================================================================================
21-->
sebdet591810d2020-09-17 15:07:23 +020022
sebdet056998c2020-08-13 10:32:41 -070023<project xmlns="http://maven.apache.org/POM/4.0.0"
24 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
25 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
26 <modelVersion>4.0.0</modelVersion>
27
sebdet056998c2020-08-13 10:32:41 -070028 <artifactId>sdc-integration-tests</artifactId>
JulienBeb1679462020-08-19 11:12:59 +020029 <packaging>jar</packaging>
sebdet056998c2020-08-13 10:32:41 -070030 <name>sdc-integration-tests</name>
31
32 <parent>
33 <groupId>org.openecomp.sdc</groupId>
34 <artifactId>sdc-main</artifactId>
ChrisC00acf3d2021-03-22 13:54:06 +010035 <version>1.9.0-SNAPSHOT</version>
sebdet056998c2020-08-13 10:32:41 -070036 </parent>
37
38 <properties>
JulienBe930ed252020-08-25 22:20:30 +020039 <selenium.version>3.141.59</selenium.version>
andre.schmida64494f2021-03-15 16:51:12 +000040 <gecko.driver.version>0.29.0</gecko.driver.version>
sebdetc5c60bf2020-08-25 12:31:39 +020041 <!-- SDC Startup parameters -->
sebdet056998c2020-08-13 10:32:41 -070042 <it.env.name>integration-test</it.env.name>
43 <it.cassandra.port>9042</it.cassandra.port>
44 <it.cassandra.password>onap123#@!</it.cassandra.password>
45 <it.cassandra.ssl.enabled>false</it.cassandra.ssl.enabled>
46 <it.sdc.cluster.name>SDC-CS-${it.env.name}</it.sdc.cluster.name>
47 <it.sdc.user>asdc_user</it.sdc.user>
48 <it.sdc.password>Aa1234%^!</it.sdc.password>
49 <it.chef.config>${project.build.directory}/chef-config</it.chef.config>
andre.schmid662fcba2020-08-21 11:31:47 +010050 <it.sdc-be.plugins>${project.build.directory}/plugins/sdc-be</it.sdc-be.plugins>
sebdet056998c2020-08-13 10:32:41 -070051 <it.shared.volume>/tmp/sdc-integration-tests</it.shared.volume>
sebdetb988cb62020-09-25 15:48:10 +020052 <it.docker.version>latest</it.docker.version>
andre.schmida64494f2021-03-15 16:51:12 +000053 <it.ui.firefox.version>86.0</it.ui.firefox.version>
JulienBe930ed252020-08-25 22:20:30 +020054
vasraz97149612020-10-19 16:33:00 +010055 <!-- parser-->
56 <sdc-tosca-parser.version>1.6.5</sdc-tosca-parser.version>
sebdet056998c2020-08-13 10:32:41 -070057 </properties>
58
59 <dependencies>
JulienBeb1679462020-08-19 11:12:59 +020060 <dependency>
JulienBe61663b92020-09-03 17:09:46 +020061 <groupId>ch.qos.logback</groupId>
62 <artifactId>logback-classic</artifactId>
63 <version>${logback.version}</version>
64 </dependency>
65
66 <dependency>
JulienBeb1679462020-08-19 11:12:59 +020067 <groupId>org.yaml</groupId>
68 <artifactId>snakeyaml</artifactId>
69 <version>${snakeyaml.version}</version>
70 <scope>test</scope>
71 </dependency>
72 <dependency>
andre.schmidf72d59b2021-02-25 18:00:48 +000073 <groupId>org.hamcrest</groupId>
74 <artifactId>hamcrest</artifactId>
75 <version>${hamcrest.version}</version>
76 <scope>test</scope>
JulienBeb1679462020-08-19 11:12:59 +020077 </dependency>
78 <dependency>
79 <groupId>junit</groupId>
80 <artifactId>junit</artifactId>
81 <version>${junit.version}</version>
82 <scope>test</scope>
andre.schmidf72d59b2021-02-25 18:00:48 +000083 <exclusions>
84 <exclusion>
85 <groupId>org.hamcrest</groupId>
86 <artifactId>hamcrest-core</artifactId>
87 </exclusion>
88 </exclusions>
JulienBeb1679462020-08-19 11:12:59 +020089 </dependency>
90 <dependency>
91 <groupId>org.testng</groupId>
92 <artifactId>testng</artifactId>
93 <version>${testng.version}</version>
94 <scope>test</scope>
95 </dependency>
96 <dependency>
97 <groupId>com.google.code.gson</groupId>
98 <artifactId>gson</artifactId>
99 <version>${gson.version}</version>
100 <scope>test</scope>
101 </dependency>
102 <dependency>
103 <groupId>org.openecomp.sdc.be</groupId>
104 <artifactId>catalog-model</artifactId>
105 <version>${project.version}</version>
106 <scope>test</scope>
107 </dependency>
108 <dependency>
109 <groupId>org.openecomp.sdc.be</groupId>
110 <artifactId>catalog-dao</artifactId>
111 <version>${project.version}</version>
112 <scope>test</scope>
113 </dependency>
114 <dependency>
Maciej Malewski1b441342020-12-10 14:38:00 +0100115 <groupId>org.openecomp.sdc</groupId>
116 <artifactId>openecomp-sdc-vendor-software-product-manager</artifactId>
117 <version>${project.version}</version>
118 <scope>test</scope>
119 </dependency>
120 <dependency>
JulienBeb1679462020-08-19 11:12:59 +0200121 <groupId>com.aventstack</groupId>
122 <artifactId>extentreports</artifactId>
123 <version>3.0.6</version>
JulienBeb1679462020-08-19 11:12:59 +0200124 <scope>test</scope>
125 </dependency>
126 <dependency>
127 <groupId>org.janusgraph</groupId>
128 <artifactId>janusgraph-core</artifactId>
129 <version>${janusgraph.version}</version>
130 <scope>test</scope>
131 <exclusions>
132 <exclusion>
vasraz086406a2021-02-22 09:50:07 +0000133 <artifactId>gremlin-groovy</artifactId>
134 <groupId>org.apache.tinkerpop</groupId>
135 </exclusion>
136 <exclusion>
JulienBeb1679462020-08-19 11:12:59 +0200137 <artifactId>slf4j-log4j12</artifactId>
138 <groupId>org.slf4j</groupId>
139 </exclusion>
140 <exclusion>
141 <artifactId>commons-collections</artifactId>
142 <groupId>commons-collections</groupId>
143 </exclusion>
144 <exclusion>
145 <artifactId>groovy</artifactId>
146 <groupId>org.codehaus.groovy</groupId>
147 </exclusion>
148 <exclusion>
149 <groupId>org.apache.thrift</groupId>
150 <artifactId>libthrift</artifactId>
151 </exclusion>
152 </exclusions>
153 </dependency>
154 <dependency>
155 <groupId>org.assertj</groupId>
156 <artifactId>assertj-core</artifactId>
157 <version>${assertj.version}</version>
158 <scope>test</scope>
159 </dependency>
160 <dependency>
161 <groupId>com.clearspring.analytics</groupId>
162 <artifactId>stream</artifactId>
163 <version>${clearspring.version}</version>
164 <scope>test</scope>
165 </dependency>
166 <dependency>
167 <groupId>org.apache.httpcomponents</groupId>
168 <artifactId>httpclient</artifactId>
169 <version>${httpclient.version}</version>
170 <scope>test</scope>
171 </dependency>
172 <dependency>
173 <groupId>org.apache.httpcomponents</groupId>
174 <artifactId>httpcore</artifactId>
175 <version>${httpcore.version}</version>
176 <scope>test</scope>
177 </dependency>
178 <dependency>
179 <groupId>com.fasterxml.jackson.core</groupId>
180 <artifactId>jackson-core</artifactId>
181 <version>${jackson.version}</version>
182 <scope>test</scope>
183 </dependency>
184 <dependency>
185 <groupId>org.codehaus.jackson</groupId>
186 <artifactId>jackson-mapper-asl</artifactId>
187 <version>1.9.2</version>
188 <scope>test</scope>
189 </dependency>
190 <dependency>
191 <groupId>com.fasterxml.jackson.core</groupId>
192 <artifactId>jackson-databind</artifactId>
193 <version>${jackson.version}</version>
194 <scope>test</scope>
195 <exclusions>
196 <exclusion>
197 <groupId>com.fasterxml.jackson.core</groupId>
198 <artifactId>jackson-core</artifactId>
199 </exclusion>
200 </exclusions>
201 </dependency>
sebdetc5c60bf2020-08-25 12:31:39 +0200202
vasraz97149612020-10-19 16:33:00 +0100203 <dependency>
204 <groupId>org.onap.sdc.sdc-tosca</groupId>
205 <artifactId>sdc-tosca</artifactId>
206 <version>${sdc-tosca-parser.version}</version>
207 </dependency>
208
sebdetc5c60bf2020-08-25 12:31:39 +0200209 <!--FOR the Frontend -->
210 <dependency>
211 <groupId>org.seleniumhq.selenium</groupId>
212 <artifactId>selenium-java</artifactId>
213 <scope>test</scope>
JulienBe930ed252020-08-25 22:20:30 +0200214 <version>${selenium.version}</version>
sebdetc5c60bf2020-08-25 12:31:39 +0200215 </dependency>
216 <dependency>
JulienBe930ed252020-08-25 22:20:30 +0200217 <groupId>org.seleniumhq.selenium</groupId>
218 <artifactId>selenium-server</artifactId>
andre.schmida64494f2021-03-15 16:51:12 +0000219 <version>${selenium.version}</version>
JulienBe930ed252020-08-25 22:20:30 +0200220 <scope>test</scope>
221 </dependency>
222 <dependency>
223 <groupId>org.seleniumhq.selenium</groupId>
224 <artifactId>selenium-firefox-driver</artifactId>
225 <version>${selenium.version}</version>
226 <scope>test</scope>
227 </dependency>
228
229 <dependency>
sebdetc5c60bf2020-08-25 12:31:39 +0200230 <groupId>net.lightbody.bmp</groupId>
231 <!-- To use the legacy, Jetty-based implementation, change the artifactId
232 to browsermob-core -->
233 <artifactId>browsermob-core</artifactId>
234 <version>2.1.4</version>
235 <scope>test</scope>
236 <exclusions>
237 <exclusion>
238 <groupId>com.fasterxml.jackson.core</groupId>
239 <artifactId>jackson-core</artifactId>
240 </exclusion>
241 </exclusions>
242 </dependency>
243 <dependency>
244 <groupId>com.paulhammant</groupId>
245 <artifactId>ngwebdriver</artifactId>
246 <version>0.9.7</version>
247 <scope>test</scope>
248 </dependency>
249 <dependency>
250 <groupId>com.github.markusbernhardt</groupId>
251 <artifactId>proxy-vole</artifactId>
252 <version>1.0.2</version>
253 <scope>test</scope>
254 </dependency>
255 <dependency>
sebdetc5c60bf2020-08-25 12:31:39 +0200256 <groupId>commons-net</groupId>
257 <artifactId>commons-net</artifactId>
258 <version>3.3</version>
259 <scope>test</scope>
260 </dependency>
sebdeta9fffd22020-10-08 13:28:36 +0200261 <dependency>
262 <groupId>org.apache.logging.log4j</groupId>
263 <artifactId>log4j-api</artifactId>
264 <version>2.13.1</version>
265 <scope>test</scope>
266 </dependency>
sebdet056998c2020-08-13 10:32:41 -0700267 </dependencies>
268
269 <build>
270 <plugins>
271 <!-- Section for Integration tests -->
272 <plugin>
273 <artifactId>maven-resources-plugin</artifactId>
274 <executions>
275 <execution>
sebdet5b057082020-09-01 23:47:27 +0200276 <id>copy-chef-resources</id>
sebdet056998c2020-08-13 10:32:41 -0700277 <phase>pre-integration-test</phase>
278 <goals>
279 <goal>copy-resources</goal>
280 </goals>
281 <configuration>
282 <outputDirectory>${it.chef.config}</outputDirectory>
283 <resources>
284 <resource>
JulienBeb1679462020-08-19 11:12:59 +0200285 <directory>environments</directory>
sebdet056998c2020-08-13 10:32:41 -0700286 <filtering>true</filtering>
287 <includes>
288 <include>integration-test.json</include>
JulienBe930ed252020-08-25 22:20:30 +0200289 <include>plugins-configuration.yaml</include>
sebdet056998c2020-08-13 10:32:41 -0700290 </includes>
291 </resource>
292 </resources>
293 </configuration>
294 </execution>
andre.schmid662fcba2020-08-21 11:31:47 +0100295 <execution>
296 <id>copy-sdc-be-plugins</id>
297 <phase>pre-integration-test</phase>
298 <goals>
299 <goal>copy-resources</goal>
300 </goals>
301 <configuration>
302 <outputDirectory>${it.sdc-be.plugins}</outputDirectory>
303 <resources>
304 <resource>
305 <directory>../catalog-be-plugins/etsi-nfv-nsd-csar-plugin/target</directory>
306 <filtering>false</filtering>
307 <includes>
vasraz97149612020-10-19 16:33:00 +0100308 <include>etsi-nfv-nsd-csar-plugin-${project.version}.jar</include>
andre.schmid662fcba2020-08-21 11:31:47 +0100309 </includes>
310 </resource>
311 </resources>
312 </configuration>
313 </execution>
sebdet056998c2020-08-13 10:32:41 -0700314 </executions>
315 </plugin>
316 <plugin>
JulienBe930ed252020-08-25 22:20:30 +0200317 <groupId>org.codehaus.mojo</groupId>
318 <artifactId>wagon-maven-plugin</artifactId>
319 <version>2.0.0</version>
320 <executions>
321 <execution>
322 <id>download-gecko</id>
323 <phase>validate</phase>
324 <goals>
325 <goal>download-single</goal>
326 </goals>
327 <configuration>
328 <url>https://github.com</url>
329 <fromFile>
330 mozilla/geckodriver/releases/download/v${gecko.driver.version}/geckodriver-v${gecko.driver.version}-linux64.tar.gz
331 </fromFile>
332 <toDir>${project.build.directory}/gecko</toDir>
333 </configuration>
334 </execution>
335 </executions>
336 </plugin>
337 <plugin>
sebdet056998c2020-08-13 10:32:41 -0700338 <artifactId>maven-antrun-plugin</artifactId>
339 <version>1.8</version>
sebdet056998c2020-08-13 10:32:41 -0700340 <executions>
341 <execution>
JulienBe930ed252020-08-25 22:20:30 +0200342 <id>set-folder-permission</id>
sebdet056998c2020-08-13 10:32:41 -0700343 <phase>pre-integration-test</phase>
344 <configuration>
345 <target>
sebdet5b057082020-09-01 23:47:27 +0200346 <mkdir dir="/tmp/sdc-integration-tests"/>
347 <chmod dir="/tmp/sdc-integration-tests" type="dir" perm="ugo+rwx"/>
348 <mkdir dir="/tmp/sdc-integration-tests/downloadAutomation"/>
349 <chmod dir="/tmp/sdc-integration-tests/downloadAutomation" type="dir" perm="ugo+rwx"/>
JulienBe930ed252020-08-25 22:20:30 +0200350 </target>
351 </configuration>
352 <goals>
353 <goal>run</goal>
354 </goals>
355 </execution>
356 <execution>
357 <id>untar-gecko</id>
358 <phase>pre-integration-test</phase>
359 <configuration>
360 <target>
361 <untar src="${project.build.directory}/gecko/geckodriver-v${gecko.driver.version}-linux64.tar.gz"
362 compression="gzip" dest="${project.build.directory}/gecko/"/>
363 <chmod dir="${project.build.directory}/gecko/geckodriver" type="dir" perm="ugo+rwx"/>
sebdet056998c2020-08-13 10:32:41 -0700364 </target>
365 </configuration>
366 <goals>
367 <goal>run</goal>
368 </goals>
369 </execution>
370 </executions>
371 </plugin>
372 <plugin>
373 <groupId>org.codehaus.mojo</groupId>
374 <artifactId>build-helper-maven-plugin</artifactId>
sebdet056998c2020-08-13 10:32:41 -0700375 <executions>
376 <execution>
377 <id>reserve-port-for-tests</id>
378 <phase>validate</phase>
379 <goals>
380 <goal>reserve-network-port</goal>
381 </goals>
382 <configuration>
383 <portNames>
384 <portName>sdc.it.docker.cassandra.port</portName>
385 </portNames>
386 </configuration>
387 </execution>
388 </executions>
389 </plugin>
390 <plugin>
391 <groupId>io.fabric8</groupId>
392 <artifactId>docker-maven-plugin</artifactId>
sebdet056998c2020-08-13 10:32:41 -0700393 <dependencies>
394 <dependency>
395 <groupId>org.apache.httpcomponents</groupId>
396 <artifactId>httpclient</artifactId>
397 <version>4.5.5</version>
398 </dependency>
399 </dependencies>
400 <configuration>
401 <verbose>true</verbose>
sebdet591810d2020-09-17 15:07:23 +0200402 <apiVersion>${docker.api.version}</apiVersion>
sebdet056998c2020-08-13 10:32:41 -0700403 <autoCreateCustomNetworks>true</autoCreateCustomNetworks>
404 <images>
405 <image>
406 <name>onap/sdc-cassandra:${it.docker.version}</name>
407 <alias>sdc-cassandra</alias>
408 <run>
409 <env>
410 <RELEASE>${project.version}</RELEASE>
411 <CS_PASSWORD>${it.cassandra.password}</CS_PASSWORD>
412 <ENVNAME>${it.env.name}</ENVNAME>
413 <MAX_HEAP_SIZE>1536M</MAX_HEAP_SIZE>
414 <HEAP_NEWSIZE>512M</HEAP_NEWSIZE>
415 </env>
416 <hostname>sdc-cs</hostname>
417 <volumes>
418 <bind>
419 <volume>${it.chef.config}:/root/chef-solo/environments</volume>
420 </bind>
421 </volumes>
422 <ulimits>
423 <ulimit>
424 <name>memlock</name>
425 <hard>-1</hard>
426 <soft>-1</soft>
427 </ulimit>
428 <ulimit>
429 <name>nofile</name>
430 <hard>100000</hard>
431 <soft>100000</soft>
432 </ulimit>
433 </ulimits>
434 <wait>
435 <time>120000</time>
436 <tcp>
437 <host>sdc-cs</host>
438 <mode>direct</mode>
439 <ports>
440 <port>9042</port>
441 </ports>
442 </tcp>
443 </wait>
444 <ports>
445 <port>9042:9042</port>
446 </ports>
447 <network>
448 <mode>custom</mode>
449 <name>sdc-network</name>
450 <alias>sdc-cs</alias>
451 </network>
452 </run>
453 </image>
454 <image>
455 <name>onap/sdc-cassandra-init:${it.docker.version}</name>
456 <alias>sdc-cassandra-init</alias>
457 <run>
458 <dependsOn>
459 <container>sdc-cassandra</container>
460 </dependsOn>
461 <env>
462 <RELEASE>${project.version}</RELEASE>
463 <SDC_USER>${it.sdc.user}</SDC_USER>
464 <SDC_PASSWORD>${it.sdc.password}</SDC_PASSWORD>
465 <CS_PASSWORD>${it.cassandra.password}</CS_PASSWORD>
466 <ENVNAME>${it.env.name}</ENVNAME>
467 </env>
468 <hostname>sdc-cs-init</hostname>
469 <volumes>
470 <bind>
471 <volume>${it.chef.config}:/home/sdc/chef-solo/environments</volume>
472 </bind>
473 </volumes>
474 <wait>
475 <time>300000</time>
476 <log>SdcSchemaFileImport successfully completed</log>
477 </wait>
478 <network>
479 <mode>custom</mode>
480 <name>sdc-network</name>
481 <alias>sdc-cs-init</alias>
482 </network>
483 </run>
484 </image>
485 <image>
486 <name>onap/sdc-onboard-cassandra-init:${it.docker.version}</name>
487 <alias>sdc-cassandra-onboard-init</alias>
488 <run>
489 <dependsOn>
sebdet5b057082020-09-01 23:47:27 +0200490 <container>sdc-cassandra</container>
sebdet056998c2020-08-13 10:32:41 -0700491 </dependsOn>
492 <env>
493 <RELEASE>${project.version}</RELEASE>
494 <SDC_USER>${it.sdc.user}</SDC_USER>
495 <SDC_PASSWORD>${it.sdc.password}</SDC_PASSWORD>
496 <CS_PASSWORD>${it.cassandra.password}</CS_PASSWORD>
497 <CS_HOST_PORT>${it.cassandra.port}</CS_HOST_PORT>
498 <ENVNAME>${it.env.name}</ENVNAME>
499 <CS_HOST_IP>sdc-cs</CS_HOST_IP>
500 </env>
501 <hostname>sdc-cs-onboard-init</hostname>
502 <volumes>
503 <bind>
504 <volume>${it.chef.config}:/home/sdc/chef-solo/environments</volume>
505 </bind>
506 </volumes>
507 <wait>
508 <time>30000</time>
509 <log>Initializing onboard schemas</log>
510 </wait>
511 <network>
512 <mode>custom</mode>
513 <name>sdc-network</name>
514 <alias>sdc-cs-onboard-init</alias>
515 </network>
516 </run>
517 </image>
518 <image>
519 <name>onap/sdc-onboard-backend:${it.docker.version}</name>
520 <alias>sdc-onboard-backend</alias>
521 <run>
522 <dependsOn>
523 <container>sdc-cassandra-onboard-init</container>
524 </dependsOn>
525 <env>
526 <cassandra_ssl_enabled>${it.cassandra.ssl.enabled}</cassandra_ssl_enabled>
527 <SDC_CLUSTER_NAME>${it.sdc.cluster.name}</SDC_CLUSTER_NAME>
528 <SDC_USER>${it.sdc.user}</SDC_USER>
529 <SDC_PASSWORD>${it.sdc.password}</SDC_PASSWORD>
530 <ENVNAME>${it.env.name}</ENVNAME>
531 <SDC_CERT_DIR>onap/cert</SDC_CERT_DIR>
sebdet30670ac2020-08-04 14:16:00 +0200532 <JAVA_OPTIONS>-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:4001 -Xmx1g -Xms1g</JAVA_OPTIONS>
sebdet056998c2020-08-13 10:32:41 -0700533 </env>
534 <hostname>sdc-onboard-BE</hostname>
535 <volumes>
536 <bind>
537 <volume>${it.chef.config}:/var/lib/jetty/chef-solo/environments</volume>
andre.schmid13b39122021-01-28 17:53:22 +0000538 <volume>${project.basedir}/src/test/resources/cert/onboarding-be:/var/lib/jetty/onap/cert
JulienBe930ed252020-08-25 22:20:30 +0200539 </volume>
sebdete0433832020-10-08 11:39:32 +0200540 <volume>${it.shared.volume}:/var/lib/jetty/logs</volume>
sebdet056998c2020-08-13 10:32:41 -0700541 </bind>
542 </volumes>
543 <wait>
sebdet30670ac2020-08-04 14:16:00 +0200544 <time>300000</time>
sebdet056998c2020-08-13 10:32:41 -0700545 <tcp>
546 <host>sdc-onboard-BE</host>
547 <mode>direct</mode>
548 <ports>
549 <port>8445</port>
550 <port>8081</port>
JulienBeb1679462020-08-19 11:12:59 +0200551 <port>4001</port>
sebdet056998c2020-08-13 10:32:41 -0700552 </ports>
553 </tcp>
554 </wait>
555 <ports>
556 <port>8445:8445</port>
557 <port>8081:8081</port>
JulienBeb1679462020-08-19 11:12:59 +0200558 <port>4001:4001</port>
sebdet056998c2020-08-13 10:32:41 -0700559 </ports>
560 <network>
561 <mode>custom</mode>
562 <name>sdc-network</name>
563 <alias>sdc-onboard-BE</alias>
564 </network>
565 </run>
566 </image>
567 <image>
sebdet591810d2020-09-17 15:07:23 +0200568 <name>onap/sdc-backend-all-plugins:${it.docker.version}</name>
sebdet056998c2020-08-13 10:32:41 -0700569 <alias>sdc-backend</alias>
570 <run>
571 <dependsOn>
sebdet5b057082020-09-01 23:47:27 +0200572 <container>sdc-cassandra-init</container>
sebdet056998c2020-08-13 10:32:41 -0700573 </dependsOn>
574 <env>
575 <cassandra_ssl_enabled>${it.cassandra.ssl.enabled}</cassandra_ssl_enabled>
576 <ENVNAME>${it.env.name}</ENVNAME>
sebdet30670ac2020-08-04 14:16:00 +0200577 <JAVA_OPTIONS>-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:4000
578 -Xmx1536m -Xms1536m</JAVA_OPTIONS>
andre.schmid13b39122021-01-28 17:53:22 +0000579 <SDC_CERT_DIR>onap/cert</SDC_CERT_DIR>
580 <SDC_NSD_CERT_NAME>nsdCert</SDC_NSD_CERT_NAME>
sebdet056998c2020-08-13 10:32:41 -0700581 </env>
582 <hostname>sdc-BE</hostname>
583 <volumes>
584 <bind>
585 <volume>${it.chef.config}:/var/lib/jetty/chef-solo/environments</volume>
586 <volume>${it.shared.volume}:/var/lib/jetty/logs</volume>
andre.schmid13b39122021-01-28 17:53:22 +0000587 <volume>${project.basedir}/src/test/resources/cert/catalog-be:/var/lib/jetty/onap/cert</volume>
sebdet056998c2020-08-13 10:32:41 -0700588 </bind>
589 </volumes>
590 <wait>
591 <time>60000</time>
592 <tcp>
593 <host>sdc-BE</host>
594 <mode>direct</mode>
595 <ports>
596 <port>8443</port>
597 <port>8080</port>
JulienBeb1679462020-08-19 11:12:59 +0200598 <port>4000</port>
sebdet056998c2020-08-13 10:32:41 -0700599 </ports>
600 </tcp>
601 </wait>
602 <ports>
603 <port>8443:8443</port>
604 <port>8080:8080</port>
JulienBeb1679462020-08-19 11:12:59 +0200605 <port>4000:4000</port>
sebdet056998c2020-08-13 10:32:41 -0700606 </ports>
607 <network>
608 <mode>custom</mode>
609 <name>sdc-network</name>
610 <alias>sdc-BE</alias>
611 </network>
612 </run>
613 </image>
614 <image>
615 <name>onap/sdc-backend-init:${it.docker.version}</name>
616 <alias>sdc-backend-init</alias>
617 <run>
618 <dependsOn>
619 <container>sdc-backend</container>
620 </dependsOn>
621 <env>
622 <ENVNAME>${it.env.name}</ENVNAME>
623 </env>
624 <hostname>sdc-BE-init</hostname>
625 <volumes>
626 <bind>
627 <volume>${it.chef.config}:/home/onap/chef-solo/environments</volume>
628 <volume>${it.shared.volume}:/var/lib/jetty/logs</volume>
629 </bind>
630 </volumes>
631 <wait>
xuegaoa856d542020-12-18 10:37:23 +0100632 <time>660000</time>
sebdet056998c2020-08-13 10:32:41 -0700633 <log>Chef Client finished</log>
634 </wait>
635 <network>
636 <mode>custom</mode>
637 <name>sdc-network</name>
638 <alias>sdc-BE-init</alias>
639 </network>
640 </run>
641 </image>
642 <image>
643 <name>onap/sdc-frontend:${it.docker.version}</name>
644 <alias>sdc-frontend</alias>
645 <run>
sebdet056998c2020-08-13 10:32:41 -0700646 <env>
647 <ENVNAME>${it.env.name}</ENVNAME>
sebdet30670ac2020-08-04 14:16:00 +0200648 <JAVA_OPTIONS>-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:6000
649 -Xmx256m -Xms256m</JAVA_OPTIONS>
sebdet056998c2020-08-13 10:32:41 -0700650 </env>
651 <hostname>sdc-FE</hostname>
652 <volumes>
653 <bind>
654 <volume>${it.chef.config}:/var/lib/jetty/chef-solo/environments</volume>
655 <volume>${it.shared.volume}:/var/lib/jetty/logs</volume>
656 <volume>
JulienBe930ed252020-08-25 22:20:30 +0200657 ${it.chef.config}/plugins-configuration.yaml:/var/lib/jetty/config/catalog-fe/plugins-configuration.yaml
sebdet056998c2020-08-13 10:32:41 -0700658 </volume>
659 </bind>
660 </volumes>
661 <wait>
662 <time>60000</time>
663 <tcp>
664 <host>sdc-FE</host>
665 <mode>direct</mode>
666 <ports>
667 <port>9443</port>
668 <port>8181</port>
JulienBeb1679462020-08-19 11:12:59 +0200669 <port>6000</port>
sebdet056998c2020-08-13 10:32:41 -0700670 </ports>
671 </tcp>
672 </wait>
673 <ports>
674 <port>9443:9443</port>
675 <port>8181:8181</port>
JulienBeb1679462020-08-19 11:12:59 +0200676 <port>6000:6000</port>
sebdet056998c2020-08-13 10:32:41 -0700677 </ports>
678 <network>
679 <mode>custom</mode>
680 <name>sdc-network</name>
681 <alias>sdc-FE</alias>
682 </network>
683 </run>
684 </image>
JulienBeb1679462020-08-19 11:12:59 +0200685 <image>
686 <name>onap/sdc-simulator:${it.docker.version}</name>
687 <alias>sdc-simulator</alias>
688 <run>
689 <dependsOn>
690 <container>sdc-frontend</container>
691 </dependsOn>
692 <env>
693 <!--<FE_URL>${it.env.name}</FE_URL>-->
694 <JAVA_OPTIONS>-Xmx128m -Xms128m -Xss1m</JAVA_OPTIONS>
695 <ENVNAME>${it.env.name}</ENVNAME>
696 </env>
697 <hostname>sdc-sim</hostname>
698 <volumes>
699 <bind>
700 <volume>${it.chef.config}:/root/chef-solo/environments</volume>
701 </bind>
702 </volumes>
703 <wait>
704 <time>60000</time>
705 <tcp>
706 <host>sdc-sim</host>
707 <mode>direct</mode>
708 <ports>
709 <port>8080</port>
710 <port>8443</port>
711 </ports>
712 </tcp>
713 </wait>
714 <ports>
JulienBe930ed252020-08-25 22:20:30 +0200715 <!-- http://localhost:8285/login to access SDC -->
JulienBeb1679462020-08-19 11:12:59 +0200716 <port>8285:8080</port>
717 <port>8286:8443</port>
718 </ports>
719 <network>
720 <mode>custom</mode>
721 <name>sdc-network</name>
722 <alias>sdc-sim</alias>
723 </network>
724 </run>
725 </image>
JulienBe930ed252020-08-25 22:20:30 +0200726
727 <image>
728 <name>selenium/standalone-firefox:${it.ui.firefox.version}</name>
729 <alias>firefox-standalone</alias>
730 <run>
731 <hostname>firefox-standalone</hostname>
732 <wait>
733 <time>20000</time>
734 <tcp>
735 <host>firefox-standalone</host>
736 <mode>direct</mode>
737 <ports>
738 <!-- Selenium remote automation port -->
739 <port>4444</port>
740 <!--<port>5900</port>-->
741 <!-- VNC port for viewing the browser result -->
742 <!-- password to access is "secret" -->
JulienBe930ed252020-08-25 22:20:30 +0200743 </ports>
744 </tcp>
745 </wait>
746 <env>
JulienBe930ed252020-08-25 22:20:30 +0200747 <JAVA_OPTS>-Xmx512m</JAVA_OPTS>
748 <!--<START_XVFB>false</START_XVFB>-->
749 <SCREEN_WIDTH>1920</SCREEN_WIDTH>
750 <SCREEN_HEIGHT>1440</SCREEN_HEIGHT>
751 </env>
752 <ports>
753 <port>4444:4444</port>
754 <!--<port>5900:5900</port>-->
755 </ports>
756 <network>
757 <mode>custom</mode>
758 <name>sdc-network</name>
759 <alias>firefox-standalone</alias>
760 </network>
761 <volumes>
762 <bind>
763 <volume>
sebdet5b057082020-09-01 23:47:27 +0200764 /tmp/sdc-integration-tests/downloadAutomation/:/home/seluser/Desktop
JulienBe930ed252020-08-25 22:20:30 +0200765 </volume>
766 <volume>/dev/shm:/dev/shm</volume>
767 </bind>
768 </volumes>
769 </run>
770 </image>
sebdet056998c2020-08-13 10:32:41 -0700771 </images>
772 </configuration>
sebdet056998c2020-08-13 10:32:41 -0700773 <executions>
774 <execution>
775 <id>docker-start-for-it</id>
776 <phase>pre-integration-test</phase>
777 <goals>
778 <goal>start</goal>
779 </goals>
780 </execution>
781 <execution>
782 <id>docker-stop-for-it</id>
783 <phase>post-integration-test</phase>
784 <goals>
785 <goal>stop</goal>
786 </goals>
787 </execution>
788 </executions>
789 </plugin>
JulienBeb1679462020-08-19 11:12:59 +0200790
791 <plugin>
792 <groupId>org.apache.maven.plugins</groupId>
793 <artifactId>maven-surefire-plugin</artifactId>
794 <configuration>
795 <skip>true</skip>
796 </configuration>
797 </plugin>
JulienBe930ed252020-08-25 22:20:30 +0200798
JulienBeb1679462020-08-19 11:12:59 +0200799 <plugin>
800 <groupId>org.apache.maven.plugins</groupId>
801 <artifactId>maven-failsafe-plugin</artifactId>
802 <configuration>
sebdet5b057082020-09-01 23:47:27 +0200803 <forkCount>1</forkCount>
804 <reuseForks>true</reuseForks>
amohamad44c6c0d2020-08-09 20:27:40 -0400805 <systemProperties>
806 <property>
807 <name>testng.dtd.http</name>
808 <value>true</value>
809 </property>
810 </systemProperties>
JulienBeb1679462020-08-19 11:12:59 +0200811 <suiteXmlFiles>
sebdetc5c60bf2020-08-25 12:31:39 +0200812 <file>src/test/resources/ci/testSuites/backend/onapApiSanity.xml</file>
JulienBe930ed252020-08-25 22:20:30 +0200813 <file>src/test/resources/ci/testSuites/frontend/onapUiSanity.xml</file>
JulienBeb1679462020-08-19 11:12:59 +0200814 <!--<file>src/test/resources/ci/testSuites/artifacts.xml</file>-->
815 <!--<file>src/test/resources/ci/testSuites/cap_req.xml</file>-->
816 <!--<file>src/test/resources/ci/testSuites/category.xml</file>-->
817 <!--<file>src/test/resources/ci/testSuites/ciFull.xml</file>-->
818 <!--<file>src/test/resources/ci/testSuites/CRUDArtifacts.xml</file>-->
819 <!--<file>src/test/resources/ci/testSuites/externalAPIs.xml</file>-->
820 <!--<file>src/test/resources/ci/testSuites/ExternalApiSanity.xml</file>-->
JulienBe930ed252020-08-25 22:20:30 +0200821 <!-- <file>src/test/resources/ci/testSuites/general.xml</file>-->
822 <!-- <file>src/test/resources/ci/testSuites/imports.xml</file>-->
JulienBeb1679462020-08-19 11:12:59 +0200823 <!--<file>src/test/resources/ci/testSuites/normatives.xml</file>-->
824 <!--<file>src/test/resources/ci/testSuites/onapApiSanity.xml</file>-->
825 <!--<file>src/test/resources/ci/testSuites/pass.xml</file>-->
JulienBe930ed252020-08-25 22:20:30 +0200826 <!-- <file>src/test/resources/ci/testSuites/product.xml</file>-->
JulienBeb1679462020-08-19 11:12:59 +0200827 <!--<file>src/test/resources/ci/testSuites/productAPIs.xml</file>-->
JulienBe930ed252020-08-25 22:20:30 +0200828 <!-- <file>src/test/resources/ci/testSuites/property.xml</file>-->
829 <!-- <file>src/test/resources/ci/testSuites/resource.xml</file>-->
JulienBeb1679462020-08-19 11:12:59 +0200830 <!--<file>src/test/resources/ci/testSuites/sanity.xml</file>-->
831 <!--<file>src/test/resources/ci/testSuites/SearchExternalAPI.xml</file>-->
JulienBe930ed252020-08-25 22:20:30 +0200832 <!-- <file>src/test/resources/ci/testSuites/service.xml</file>-->
JulienBeb1679462020-08-19 11:12:59 +0200833 <!--<file>src/test/resources/ci/testSuites/testngLifeCycle.xml</file>-->
JulienBe930ed252020-08-25 22:20:30 +0200834 <!-- <file>src/test/resources/ci/testSuites/user.xml</file>-->
JulienBeb1679462020-08-19 11:12:59 +0200835 </suiteXmlFiles>
JulienBeb1679462020-08-19 11:12:59 +0200836 </configuration>
837 </plugin>
sebdet056998c2020-08-13 10:32:41 -0700838 </plugins>
839 </build>
sebdet9d724fe2021-02-03 15:05:54 +0100840 <profiles>
841 <profile>
842 <id>all-for-integration-tests-only</id>
843 <properties>
844 <surefire.skip.tests>true</surefire.skip.tests>
845 <skipTest>false</skipTest>
846 </properties>
847 </profile>
848 </profiles>
sebdet056998c2020-08-13 10:32:41 -0700849</project>