Update SDC version to 1.11.8-SNAPSHOT
[sdc.git] / integration-tests / pom.xml
1 <!--
2 ============LICENSE_START=======================================================
3 SDC
4 ================================================================================
5 Copyright (C) 2020 AT&T Intellectual Property. All rights reserved.
6 Modifications copyright (c) 2020-2021 Nokia
7 ================================================================================
8 Licensed under the Apache License, Version 2.0 (the "License");
9 you may not use this file except in compliance with the License.
10 You may obtain a copy of the License at
11         *
12      http://www.apache.org/licenses/LICENSE-2.0
13         *
14 Unless required by applicable law or agreed to in writing, software
15 distributed under the License is distributed on an "AS IS" BASIS,
16 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 See the License for the specific language governing permissions and
18 limitations under the License.
19 ============LICENSE_END=========================================================
20 ================================================================================
21 -->
22
23 <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
28     <artifactId>sdc-integration-tests</artifactId>
29     <packaging>jar</packaging>
30     <name>sdc-integration-tests</name>
31
32     <parent>
33         <groupId>org.openecomp.sdc</groupId>
34         <artifactId>sdc-main</artifactId>
35         <version>1.11.8-SNAPSHOT</version>
36     </parent>
37
38     <properties>
39         <selenium.version>3.141.59</selenium.version>
40         <gecko.driver.version>0.29.0</gecko.driver.version>
41         <!-- SDC Startup parameters -->
42         <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>
50         <it.sdc-be.plugins>${project.build.directory}/plugins/sdc-be</it.sdc-be.plugins>
51         <it.shared.volume>/tmp/sdc-integration-tests</it.shared.volume>
52         <it.docker.version>latest</it.docker.version>
53         <it.ui.firefox.version>86.0</it.ui.firefox.version>
54         <it.helm-validator.disabled>true</it.helm-validator.disabled>
55         <it.helm-validator.version>1.3.1</it.helm-validator.version>
56
57         <!-- parser-->
58         <sdc-tosca-parser.version>1.7.0</sdc-tosca-parser.version>
59     </properties>
60
61     <dependencies>
62         <dependency>
63             <groupId>ch.qos.logback</groupId>
64             <artifactId>logback-classic</artifactId>
65             <version>${logback.version}</version>
66         </dependency>
67
68         <dependency>
69             <groupId>org.yaml</groupId>
70             <artifactId>snakeyaml</artifactId>
71             <version>${snakeyaml.version}</version>
72             <scope>test</scope>
73         </dependency>
74         <dependency>
75             <groupId>org.hamcrest</groupId>
76             <artifactId>hamcrest</artifactId>
77             <version>${hamcrest.version}</version>
78             <scope>test</scope>
79         </dependency>
80         <dependency>
81             <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>
105             <groupId>org.openecomp.sdc</groupId>
106             <artifactId>openecomp-sdc-vendor-software-product-manager</artifactId>
107             <version>${project.version}</version>
108             <scope>test</scope>
109             <exclusions>
110                 <exclusion>
111                     <groupId>org.springframework</groupId>
112                     <artifactId>spring-core</artifactId>
113                 </exclusion>
114             </exclusions>
115         </dependency>
116         <dependency>
117             <groupId>com.aventstack</groupId>
118             <artifactId>extentreports</artifactId>
119             <version>3.0.6</version>
120             <scope>test</scope>
121             <exclusions>
122                 <exclusion>
123                     <groupId>org.jsoup</groupId>
124                     <artifactId>jsoup</artifactId>
125                 </exclusion>
126                 <exclusion>
127                     <groupId>org.apache.httpcomponents</groupId>
128                     <artifactId>httpmime</artifactId>
129                 </exclusion>
130                 <exclusion>
131                     <groupId>org.mongodb</groupId>
132                     <artifactId>mongodb-driver</artifactId>
133                 </exclusion>
134             </exclusions>
135         </dependency>
136         <dependency>
137             <groupId>org.mongodb</groupId>
138             <artifactId>mongodb-driver</artifactId>
139             <version>3.12.10</version>
140         </dependency>
141
142         <dependency>
143             <groupId>org.janusgraph</groupId>
144             <artifactId>janusgraph-core</artifactId>
145             <version>${janusgraph.version}</version>
146             <scope>test</scope>
147             <exclusions>
148                 <exclusion>
149                     <artifactId>gremlin-groovy</artifactId>
150                     <groupId>org.apache.tinkerpop</groupId>
151                 </exclusion>
152                 <exclusion>
153                     <artifactId>slf4j-log4j12</artifactId>
154                     <groupId>org.slf4j</groupId>
155                 </exclusion>
156                 <exclusion>
157                     <artifactId>commons-collections</artifactId>
158                     <groupId>commons-collections</groupId>
159                 </exclusion>
160                 <exclusion>
161                     <artifactId>groovy</artifactId>
162                     <groupId>org.codehaus.groovy</groupId>
163                 </exclusion>
164                 <exclusion>
165                     <groupId>org.apache.thrift</groupId>
166                     <artifactId>libthrift</artifactId>
167                 </exclusion>
168                 <exclusion>
169                     <groupId>org.apache.commons</groupId>
170                     <artifactId>commons-text</artifactId>
171                 </exclusion>
172                 <exclusion>
173                     <groupId>commons-codec</groupId>
174                     <artifactId>commons-codec</artifactId>
175                 </exclusion>
176                 <exclusion>
177                     <groupId>dom4j</groupId>
178                     <artifactId>dom4j</artifactId>
179                 </exclusion>
180                 <exclusion>
181                     <groupId>org.slf4j</groupId>
182                     <artifactId>jcl-over-slf4j</artifactId>
183                 </exclusion>
184             </exclusions>
185         </dependency>
186         <dependency>
187             <groupId>org.assertj</groupId>
188             <artifactId>assertj-core</artifactId>
189             <version>${assertj.version}</version>
190             <scope>test</scope>
191         </dependency>
192         <dependency>
193             <groupId>org.apache.commons</groupId>
194             <artifactId>commons-text</artifactId>
195             <version>${apache-commons-text.version}</version>
196             <scope>test</scope>
197         </dependency>
198         <dependency>
199             <groupId>com.clearspring.analytics</groupId>
200             <artifactId>stream</artifactId>
201             <version>${clearspring.version}</version>
202             <scope>test</scope>
203         </dependency>
204         <dependency>
205             <groupId>org.apache.httpcomponents</groupId>
206             <artifactId>httpclient</artifactId>
207             <version>${httpclient.version}</version>
208             <scope>test</scope>
209             <exclusions>
210                 <exclusion>
211                     <groupId>commons-codec</groupId>
212                     <artifactId>commons-codec</artifactId>
213                 </exclusion>
214                 <exclusion>
215                     <groupId>org.apache.httpcomponents</groupId>
216                     <artifactId>httpcore</artifactId>
217                 </exclusion>
218             </exclusions>
219         </dependency>
220         <dependency>
221             <groupId>org.apache.httpcomponents</groupId>
222             <artifactId>httpcore</artifactId>
223             <version>${httpcore.version}</version>
224             <scope>test</scope>
225         </dependency>
226         <dependency>
227             <groupId>com.fasterxml.jackson.core</groupId>
228             <artifactId>jackson-core</artifactId>
229             <version>${jackson.version}</version>
230             <scope>test</scope>
231         </dependency>
232         <dependency>
233             <groupId>org.codehaus.jackson</groupId>
234             <artifactId>jackson-mapper-asl</artifactId>
235             <version>1.9.2</version>
236             <scope>test</scope>
237         </dependency>
238         <dependency>
239             <groupId>com.fasterxml.jackson.core</groupId>
240             <artifactId>jackson-databind</artifactId>
241             <version>${jackson.version}</version>
242             <scope>test</scope>
243             <exclusions>
244                 <exclusion>
245                     <groupId>com.fasterxml.jackson.core</groupId>
246                     <artifactId>jackson-core</artifactId>
247                 </exclusion>
248             </exclusions>
249         </dependency>
250
251         <dependency>
252             <groupId>org.onap.sdc.sdc-tosca</groupId>
253             <artifactId>sdc-tosca</artifactId>
254             <version>${sdc-tosca-parser.version}</version>
255         </dependency>
256
257         <!--FOR the Frontend -->
258         <dependency>
259             <groupId>org.seleniumhq.selenium</groupId>
260             <artifactId>selenium-java</artifactId>
261             <scope>test</scope>
262             <version>${selenium.version}</version>
263         </dependency>
264         <dependency>
265             <groupId>org.seleniumhq.selenium</groupId>
266             <artifactId>selenium-server</artifactId>
267             <version>${selenium.version}</version>
268             <scope>test</scope>
269         </dependency>
270         <dependency>
271             <groupId>org.seleniumhq.selenium</groupId>
272             <artifactId>selenium-firefox-driver</artifactId>
273             <version>${selenium.version}</version>
274             <scope>test</scope>
275         </dependency>
276
277         <dependency>
278             <groupId>net.lightbody.bmp</groupId>
279             <!-- To use the legacy, Jetty-based implementation, change the artifactId
280               to browsermob-core -->
281             <artifactId>browsermob-core</artifactId>
282             <version>2.1.4</version>
283             <scope>test</scope>
284             <exclusions>
285                 <exclusion>
286                     <groupId>com.fasterxml.jackson.core</groupId>
287                     <artifactId>jackson-core</artifactId>
288                 </exclusion>
289                 <exclusion>
290                     <groupId>org.slf4j</groupId>
291                     <artifactId>jcl-over-slf4j</artifactId>
292                 </exclusion>
293             </exclusions>
294         </dependency>
295         <dependency>
296             <groupId>com.paulhammant</groupId>
297             <artifactId>ngwebdriver</artifactId>
298             <version>0.9.7</version>
299             <scope>test</scope>
300         </dependency>
301         <dependency>
302             <groupId>com.github.markusbernhardt</groupId>
303             <artifactId>proxy-vole</artifactId>
304             <version>1.0.2</version>
305             <scope>test</scope>
306             <exclusions>
307                 <exclusion>
308                     <groupId>net.java.dev.jna</groupId>
309                     <artifactId>jna</artifactId>
310                 </exclusion>
311                 <exclusion>
312                     <groupId>net.java.dev.jna</groupId>
313                     <artifactId>jna-platform</artifactId>
314                 </exclusion>
315             </exclusions>
316         </dependency>
317         <dependency>
318             <groupId>commons-net</groupId>
319             <artifactId>commons-net</artifactId>
320             <version>3.3</version>
321             <scope>test</scope>
322         </dependency>
323         <dependency>
324             <groupId>org.springframework</groupId>
325             <artifactId>spring-core</artifactId>
326             <version>${spring.version}</version>
327             <scope>test</scope>
328         </dependency>
329         <dependency>
330             <groupId>org.onap.portal.sdk</groupId>
331             <artifactId>epsdk-fw</artifactId>
332             <version>${ecomp.version}</version>
333             <scope>test</scope>
334             <exclusions>
335                 <exclusion>
336                     <groupId>log4j</groupId>
337                     <artifactId>log4j</artifactId>
338                 </exclusion>
339                 <exclusion>
340                     <groupId>org.owasp.esapi</groupId>
341                     <artifactId>esapi</artifactId>
342                 </exclusion>
343             </exclusions>
344         </dependency>
345         <dependency>
346             <groupId>org.functionaljava</groupId>
347             <artifactId>functionaljava</artifactId>
348             <version>${functionaljava.version}</version>
349             <scope>test</scope>
350         </dependency>
351     </dependencies>
352
353     <build>
354         <plugins>
355             <!-- Section for Integration tests -->
356             <plugin>
357                 <artifactId>maven-resources-plugin</artifactId>
358                 <executions>
359                     <execution>
360                         <id>copy-chef-resources</id>
361                         <phase>pre-integration-test</phase>
362                         <goals>
363                             <goal>copy-resources</goal>
364                         </goals>
365                         <configuration>
366                             <outputDirectory>${it.chef.config}</outputDirectory>
367                             <resources>
368                                 <resource>
369                                     <directory>environments</directory>
370                                     <filtering>true</filtering>
371                                     <includes>
372                                         <include>integration-test.json</include>
373                                         <include>plugins-configuration.yaml</include>
374                                     </includes>
375                                 </resource>
376                             </resources>
377                         </configuration>
378                     </execution>
379                     <execution>
380                         <id>copy-sdc-be-plugins</id>
381                         <phase>pre-integration-test</phase>
382                         <goals>
383                             <goal>copy-resources</goal>
384                         </goals>
385                         <configuration>
386                             <outputDirectory>${it.sdc-be.plugins}</outputDirectory>
387                             <resources>
388                                 <resource>
389                                     <directory>
390                                         ../catalog-be-plugins/etsi-nfv-nsd-csar-plugin/target
391                                     </directory>
392                                     <filtering>false</filtering>
393                                     <includes>
394                                         <include>etsi-nfv-nsd-csar-plugin-${project.version}.jar
395                                         </include>
396                                     </includes>
397                                 </resource>
398                             </resources>
399                         </configuration>
400                     </execution>
401                 </executions>
402             </plugin>
403             <plugin>
404                 <groupId>org.codehaus.mojo</groupId>
405                 <artifactId>wagon-maven-plugin</artifactId>
406                 <version>2.0.0</version>
407                 <executions>
408                     <execution>
409                         <id>download-gecko</id>
410                         <phase>validate</phase>
411                         <goals>
412                             <goal>download-single</goal>
413                         </goals>
414                         <configuration>
415                             <url>https://github.com</url>
416                             <fromFile>
417                                 mozilla/geckodriver/releases/download/v${gecko.driver.version}/geckodriver-v${gecko.driver.version}-linux64.tar.gz
418                             </fromFile>
419                             <toDir>${project.build.directory}/gecko</toDir>
420                         </configuration>
421                     </execution>
422                 </executions>
423             </plugin>
424             <plugin>
425                 <groupId>org.apache.maven.plugins</groupId>
426                 <artifactId>maven-antrun-plugin</artifactId>
427                 <version>${maven-antrun-plugin.version}</version>
428                 <executions>
429                     <execution>
430                         <id>set-folder-permission</id>
431                         <phase>pre-integration-test</phase>
432                         <configuration>
433                             <target>
434                                 <mkdir dir="/tmp/sdc-integration-tests"/>
435                                 <chmod dir="/tmp/sdc-integration-tests" type="dir" perm="ugo+rwx"/>
436                                 <mkdir dir="/tmp/sdc-integration-tests/downloadAutomation"/>
437                                 <chmod dir="/tmp/sdc-integration-tests/downloadAutomation"
438                                     type="dir"
439                                     perm="ugo+rwx"/>
440                             </target>
441                         </configuration>
442                         <goals>
443                             <goal>run</goal>
444                         </goals>
445                     </execution>
446                     <execution>
447                         <id>untar-gecko</id>
448                         <phase>pre-integration-test</phase>
449                         <configuration>
450                             <target>
451                                 <untar
452                                     src="${project.build.directory}/gecko/geckodriver-v${gecko.driver.version}-linux64.tar.gz"
453                                     compression="gzip" dest="${project.build.directory}/gecko/"/>
454                                 <chmod dir="${project.build.directory}/gecko/geckodriver" type="dir"
455                                     perm="ugo+rwx"/>
456                             </target>
457                         </configuration>
458                         <goals>
459                             <goal>run</goal>
460                         </goals>
461                     </execution>
462                 </executions>
463             </plugin>
464             <plugin>
465                 <groupId>org.codehaus.mojo</groupId>
466                 <artifactId>build-helper-maven-plugin</artifactId>
467                 <executions>
468                     <execution>
469                         <id>reserve-port-for-tests</id>
470                         <phase>validate</phase>
471                         <goals>
472                             <goal>reserve-network-port</goal>
473                         </goals>
474                         <configuration>
475                             <portNames>
476                                 <portName>sdc.it.docker.cassandra.port</portName>
477                             </portNames>
478                         </configuration>
479                     </execution>
480                 </executions>
481             </plugin>
482             <plugin>
483                 <groupId>io.fabric8</groupId>
484                 <artifactId>docker-maven-plugin</artifactId>
485                 <dependencies>
486                     <dependency>
487                         <groupId>org.apache.httpcomponents</groupId>
488                         <artifactId>httpclient</artifactId>
489                         <version>${httpclient.version}</version>
490                     </dependency>
491                 </dependencies>
492                 <configuration>
493                     <verbose>${verbose}</verbose>
494                     <apiVersion>${docker.api.version}</apiVersion>
495                     <autoCreateCustomNetworks>true</autoCreateCustomNetworks>
496                     <startParallel>true</startParallel>
497                     <images>
498                         <image>
499                             <name>${docker.namespace}/sdc-cassandra:${it.docker.version}</name>
500                             <alias>sdc-cassandra</alias>
501                             <run>
502                                 <env>
503                                     <RELEASE>${project.version}</RELEASE>
504                                     <CS_PASSWORD>${it.cassandra.password}</CS_PASSWORD>
505                                     <ENVNAME>${it.env.name}</ENVNAME>
506                                     <MAX_HEAP_SIZE>1536M</MAX_HEAP_SIZE>
507                                     <HEAP_NEWSIZE>512M</HEAP_NEWSIZE>
508                                 </env>
509                                 <hostname>sdc-cs</hostname>
510                                 <volumes>
511                                     <bind>
512                                         <volume>${it.chef.config}:/root/chef-solo/environments
513                                         </volume>
514                                     </bind>
515                                 </volumes>
516                                 <ulimits>
517                                     <ulimit>
518                                         <name>memlock</name>
519                                         <hard>-1</hard>
520                                         <soft>-1</soft>
521                                     </ulimit>
522                                     <ulimit>
523                                         <name>nofile</name>
524                                         <hard>100000</hard>
525                                         <soft>100000</soft>
526                                     </ulimit>
527                                 </ulimits>
528                                 <wait>
529                                     <time>120000</time>
530                                     <tcp>
531                                         <host>sdc-cs</host>
532                                         <mode>direct</mode>
533                                         <ports>
534                                             <port>9042</port>
535                                         </ports>
536                                     </tcp>
537                                 </wait>
538                                 <ports>
539                                     <port>9042:9042</port>
540                                 </ports>
541                                 <network>
542                                     <mode>custom</mode>
543                                     <name>sdc-network</name>
544                                     <alias>sdc-cs</alias>
545                                 </network>
546                             </run>
547                         </image>
548                         <image>
549                             <name>${docker.namespace}/sdc-cassandra-init:${it.docker.version}</name>
550                             <alias>sdc-cassandra-init</alias>
551                             <run>
552                                 <dependsOn>
553                                     <container>sdc-cassandra</container>
554                                 </dependsOn>
555                                 <env>
556                                     <RELEASE>${project.version}</RELEASE>
557                                     <SDC_USER>${it.sdc.user}</SDC_USER>
558                                     <SDC_PASSWORD>${it.sdc.password}</SDC_PASSWORD>
559                                     <CS_PASSWORD>${it.cassandra.password}</CS_PASSWORD>
560                                     <ENVNAME>${it.env.name}</ENVNAME>
561                                 </env>
562                                 <hostname>sdc-cs-init</hostname>
563                                 <volumes>
564                                     <bind>
565                                         <volume>${it.chef.config}:/home/sdc/chef-solo/environments
566                                         </volume>
567
568                                     </bind>
569                                 </volumes>
570                                 <wait>
571                                     <time>300000</time>
572                                     <log>SdcSchemaFileImport successfully completed</log>
573                                 </wait>
574                                 <network>
575                                     <mode>custom</mode>
576                                     <name>sdc-network</name>
577                                     <alias>sdc-cs-init</alias>
578                                 </network>
579                             </run>
580                         </image>
581                         <image>
582                             <name>${docker.namespace}/sdc-onboard-cassandra-init:${it.docker.version}</name>
583                             <alias>sdc-cassandra-onboard-init</alias>
584                             <run>
585                                 <dependsOn>
586                                     <container>sdc-cassandra-init</container>
587                                 </dependsOn>
588                                 <env>
589                                     <RELEASE>${project.version}</RELEASE>
590                                     <SDC_USER>${it.sdc.user}</SDC_USER>
591                                     <SDC_PASSWORD>${it.sdc.password}</SDC_PASSWORD>
592                                     <CS_PASSWORD>${it.cassandra.password}</CS_PASSWORD>
593                                     <CS_HOST_PORT>${it.cassandra.port}</CS_HOST_PORT>
594                                     <ENVNAME>${it.env.name}</ENVNAME>
595                                     <CS_HOST_IP>sdc-cs</CS_HOST_IP>
596                                 </env>
597                                 <hostname>sdc-cs-onboard-init</hostname>
598                                 <volumes>
599                                     <bind>
600                                         <volume>${it.chef.config}:/home/sdc/chef-solo/environments
601                                         </volume>
602                                     </bind>
603                                 </volumes>
604                                 <wait>
605                                     <time>30000</time>
606                                     <log>Onboarding init was successful</log>
607                                 </wait>
608                                 <network>
609                                     <mode>custom</mode>
610                                     <name>sdc-network</name>
611                                     <alias>sdc-cs-onboard-init</alias>
612                                 </network>
613                             </run>
614                         </image>
615                         <image>
616                             <name>${docker.namespace}/sdc-onboard-backend:${it.docker.version}</name>
617                             <alias>sdc-onboard-backend</alias>
618                             <run>
619                                 <dependsOn>
620                                     <container>sdc-cassandra-onboard-init</container>
621                                 </dependsOn>
622                                 <env>
623                                     <cassandra_ssl_enabled>${it.cassandra.ssl.enabled}
624                                     </cassandra_ssl_enabled>
625                                     <SDC_CLUSTER_NAME>${it.sdc.cluster.name}</SDC_CLUSTER_NAME>
626                                     <SDC_USER>${it.sdc.user}</SDC_USER>
627                                     <SDC_PASSWORD>${it.sdc.password}</SDC_PASSWORD>
628                                     <ENVNAME>${it.env.name}</ENVNAME>
629                                     <SDC_CERT_DIR>onap/cert</SDC_CERT_DIR>
630                                     <JAVA_OPTIONS>
631                                         -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:4001
632                                         -Xmx1g -Xms1g
633                                     </JAVA_OPTIONS>
634                                 </env>
635                                 <hostname>sdc-onboard-BE</hostname>
636                                 <volumes>
637                                     <bind>
638                                         <volume>${it.chef.config}:/app/jetty/chef-solo/environments</volume>
639                                         <volume>${project.basedir}/src/test/resources/cert/onboarding-be:/app/jetty/onap/cert
640                                         </volume>
641                                         <volume>${it.shared.volume}:/app/jetty/logs</volume>
642                                     </bind>
643                                 </volumes>
644                                 <wait>
645                                     <time>300000</time>
646                                     <tcp>
647                                         <host>sdc-onboard-BE</host>
648                                         <mode>direct</mode>
649                                         <ports>
650                                             <port>8445</port>
651                                             <port>8081</port>
652                                             <port>4001</port>
653                                         </ports>
654                                     </tcp>
655                                 </wait>
656                                 <ports>
657                                     <port>8445:8445</port>
658                                     <port>8081:8081</port>
659                                     <port>4001:4001</port>
660                                 </ports>
661                                 <network>
662                                     <mode>custom</mode>
663                                     <name>sdc-network</name>
664                                     <alias>sdc-onboard-BE</alias>
665                                 </network>
666                             </run>
667                         </image>
668                         <image>
669                             <name>${docker.namespace}/sdc-backend-all-plugins:${it.docker.version}</name>
670                             <alias>sdc-backend</alias>
671                             <run>
672                                 <dependsOn>
673                                     <container>sdc-cassandra-init</container>
674                                 </dependsOn>
675                                 <env>
676                                     <cassandra_ssl_enabled>${it.cassandra.ssl.enabled}
677                                     </cassandra_ssl_enabled>
678                                     <ENVNAME>${it.env.name}</ENVNAME>
679                                     <JAVA_OPTIONS>
680                                         -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:4000
681                                         -Xmx1536m -Xms1536m
682                                     </JAVA_OPTIONS>
683                                     <SDC_CERT_DIR>onap/cert</SDC_CERT_DIR>
684                                     <SDC_NSD_CERT_NAME>nsdCert</SDC_NSD_CERT_NAME>
685                                 </env>
686                                 <hostname>sdc-BE</hostname>
687                                 <volumes>
688                                     <bind>
689                                         <volume>${it.chef.config}:/app/jetty/chef-solo/environments</volume>
690                                         <volume>${it.shared.volume}:/app/jetty/logs</volume>
691                                         <volume>
692                                             ${project.basedir}/src/test/resources/cert/catalog-be:/app/jetty/onap/cert
693                                         </volume>
694                                     </bind>
695                                 </volumes>
696                                 <wait>
697                                     <time>60000</time>
698                                     <tcp>
699                                         <host>sdc-BE</host>
700                                         <mode>direct</mode>
701                                         <ports>
702                                             <port>8443</port>
703                                             <port>8080</port>
704                                             <port>4000</port>
705                                         </ports>
706                                     </tcp>
707                                 </wait>
708                                 <ports>
709                                     <port>8443:8443</port>
710                                     <port>8080:8080</port>
711                                     <port>4000:4000</port>
712                                 </ports>
713                                 <network>
714                                     <mode>custom</mode>
715                                     <name>sdc-network</name>
716                                     <alias>sdc-BE</alias>
717                                 </network>
718                             </run>
719                         </image>
720                         <image>
721                             <name>${docker.namespace}/sdc-backend-init:${it.docker.version}</name>
722                             <alias>sdc-backend-init</alias>
723                             <run>
724                                 <dependsOn>
725                                     <container>sdc-backend</container>
726                                 </dependsOn>
727                                 <env>
728                                     <ENVNAME>${it.env.name}</ENVNAME>
729                                 </env>
730                                 <hostname>sdc-BE-init</hostname>
731                                 <volumes>
732                                     <bind>
733                                         <volume>
734                                             ${it.chef.config}:/home/onap/chef-solo/environments
735                                         </volume>
736                                         <volume>${it.shared.volume}:/home/onap/logs</volume>
737                                     </bind>
738                                 </volumes>
739                                 <wait>
740                                     <time>660000</time>
741                                     <log>Chef Client finished</log>
742                                 </wait>
743                                 <network>
744                                     <mode>custom</mode>
745                                     <name>sdc-network</name>
746                                     <alias>sdc-BE-init</alias>
747                                 </network>
748                             </run>
749                         </image>
750                         <image>
751                             <name>${docker.namespace}/sdc-frontend:${it.docker.version}</name>
752                             <alias>sdc-frontend</alias>
753                             <run>
754                                 <env>
755                                     <ENVNAME>${it.env.name}</ENVNAME>
756                                     <JAVA_OPTIONS>
757                                         -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:6000
758                                         -Xmx256m -Xms256m
759                                     </JAVA_OPTIONS>
760                                 </env>
761                                 <hostname>sdc-FE</hostname>
762                                 <volumes>
763                                     <bind>
764                                         <volume>${it.chef.config}:/app/jetty/chef-solo/environments</volume>
765                                         <volume>${it.shared.volume}:/app/jetty/logs</volume>
766                                         <volume>
767                                             ${it.chef.config}/plugins-configuration.yaml:/app/jetty/config/catalog-fe/plugins-configuration.yaml
768                                         </volume>
769
770                                     </bind>
771                                 </volumes>
772                                 <wait>
773                                     <time>60000</time>
774                                     <tcp>
775                                         <host>sdc-FE</host>
776                                         <mode>direct</mode>
777                                         <ports>
778                                             <port>9443</port>
779                                             <port>8181</port>
780                                             <port>6000</port>
781                                         </ports>
782                                     </tcp>
783                                 </wait>
784                                 <ports>
785                                     <port>9443:9443</port>
786                                     <port>8181:8181</port>
787                                     <port>6000:6000</port>
788                                 </ports>
789                                 <network>
790                                     <mode>custom</mode>
791                                     <name>sdc-network</name>
792                                     <alias>sdc-FE</alias>
793                                 </network>
794                             </run>
795                         </image>
796                         <image>
797                             <name>${docker.namespace}/sdc-simulator:${it.docker.version}</name>
798                             <alias>sdc-simulator</alias>
799                             <run>
800                                 <env>
801                                     <!--<FE_URL>${it.env.name}</FE_URL>-->
802                                     <JAVA_OPTIONS>-Xmx128m -Xms128m -Xss1m</JAVA_OPTIONS>
803                                     <ENVNAME>${it.env.name}</ENVNAME>
804                                 </env>
805                                 <hostname>sdc-sim</hostname>
806                                 <volumes>
807                                     <bind>
808                                         <volume>${it.chef.config}:/app/jetty/chef-solo/environments</volume>
809                                         <volume>${it.shared.volume}:/app/jetty/logs</volume>
810                                     </bind>
811                                 </volumes>
812                                 <wait>
813                                     <time>60000</time>
814                                     <tcp>
815                                         <host>sdc-sim</host>
816                                         <mode>direct</mode>
817                                         <ports>
818                                             <port>8080</port>
819                                             <port>8443</port>
820                                             <port>5000</port>
821                                         </ports>
822                                     </tcp>
823                                 </wait>
824                                 <ports>
825                                     <!-- http://localhost:8285/login to access SDC -->
826                                     <port>8285:8080</port>
827                                     <port>8286:8443</port>
828                                     <port>5000:5000</port>
829                                 </ports>
830                                 <network>
831                                     <mode>custom</mode>
832                                     <name>sdc-network</name>
833                                     <alias>sdc-sim</alias>
834                                 </network>
835                             </run>
836                         </image>
837
838                         <image>
839                             <name>selenium/standalone-firefox:${it.ui.firefox.version}</name>
840                             <alias>firefox-standalone</alias>
841                             <run>
842                                 <hostname>firefox-standalone</hostname>
843                                 <wait>
844                                     <time>20000</time>
845                                     <tcp>
846                                         <host>firefox-standalone</host>
847                                         <mode>direct</mode>
848                                         <ports>
849                                             <!-- Selenium remote automation port -->
850                                             <port>4444</port>
851                                             <!--<port>5900</port>-->
852                                             <!-- VNC port for viewing the browser result -->
853                                             <!-- password to access is "secret" -->
854                                         </ports>
855                                     </tcp>
856                                 </wait>
857                                 <env>
858                                     <JAVA_OPTS>-Xmx512m</JAVA_OPTS>
859                                     <!--<START_XVFB>false</START_XVFB>-->
860                                     <SCREEN_WIDTH>1920</SCREEN_WIDTH>
861                                     <SCREEN_HEIGHT>1440</SCREEN_HEIGHT>
862                                 </env>
863                                 <ports>
864                                     <port>4444:4444</port>
865                                     <!--<port>5900:5900</port>-->
866                                 </ports>
867                                 <network>
868                                     <mode>custom</mode>
869                                     <name>sdc-network</name>
870                                     <alias>firefox-standalone</alias>
871                                 </network>
872                                 <volumes>
873                                     <bind>
874                                         <volume>
875                                             /tmp/sdc-integration-tests/downloadAutomation/:/home/seluser/Desktop
876                                         </volume>
877                                         <volume>/dev/shm:/dev/shm</volume>
878                                     </bind>
879                                 </volumes>
880                             </run>
881                         </image>
882                         <image>
883                             <name>${docker.namespace}/sdc-helm-validator:${it.helm-validator.version}</name>
884                             <alias>helm-validator</alias>
885                             <run>
886                                 <skip>${it.helm-validator.disabled}</skip>
887                                 <hostname>helm-validator</hostname>
888                                 <wait>
889                                     <time>20000</time>
890                                     <tcp>
891                                         <host>helm-validator</host>
892                                         <mode>direct</mode>
893                                         <ports>
894                                             <port>8080</port>
895                                         </ports>
896                                     </tcp>
897                                 </wait>
898                                 <ports>
899                                     <port>8085:8080</port>
900                                 </ports>
901                                 <network>
902                                     <mode>custom</mode>
903                                     <name>sdc-network</name>
904                                     <alias>helm-validator</alias>
905                                 </network>
906                             </run>
907                         </image>
908                     </images>
909                 </configuration>
910                 <executions>
911                     <execution>
912                         <id>docker-start-for-it</id>
913                         <phase>pre-integration-test</phase>
914                         <goals>
915                             <goal>start</goal>
916                         </goals>
917                     </execution>
918                     <execution>
919                         <id>docker-stop-for-it</id>
920                         <phase>post-integration-test</phase>
921                         <goals>
922                             <goal>stop</goal>
923                         </goals>
924                     </execution>
925                 </executions>
926             </plugin>
927
928             <plugin>
929                 <groupId>org.apache.maven.plugins</groupId>
930                 <artifactId>maven-surefire-plugin</artifactId>
931                 <configuration>
932                     <skip>true</skip>
933                 </configuration>
934             </plugin>
935
936             <plugin>
937                 <groupId>org.apache.maven.plugins</groupId>
938                 <artifactId>maven-failsafe-plugin</artifactId>
939                 <configuration>
940                     <forkCount>1</forkCount>
941                     <reuseForks>true</reuseForks>
942                     <systemProperties>
943                         <property>
944                             <name>testng.dtd.http</name>
945                             <value>true</value>
946                         </property>
947                     </systemProperties>
948                     <suiteXmlFiles>
949                         <file>src/test/resources/ci/testSuites/backend/onapApiSanity.xml</file>
950                         <file>src/test/resources/ci/testSuites/frontend/onapUiSanity.xml</file>
951                         <!--<file>src/test/resources/ci/testSuites/artifacts.xml</file>-->
952                         <!--<file>src/test/resources/ci/testSuites/cap_req.xml</file>-->
953                         <!--<file>src/test/resources/ci/testSuites/category.xml</file>-->
954                         <!--<file>src/test/resources/ci/testSuites/ciFull.xml</file>-->
955                         <!--<file>src/test/resources/ci/testSuites/CRUDArtifacts.xml</file>-->
956                         <!--<file>src/test/resources/ci/testSuites/externalAPIs.xml</file>-->
957                         <!--<file>src/test/resources/ci/testSuites/ExternalApiSanity.xml</file>-->
958                         <!--                        <file>src/test/resources/ci/testSuites/general.xml</file>-->
959                         <!--                        <file>src/test/resources/ci/testSuites/imports.xml</file>-->
960                         <!--<file>src/test/resources/ci/testSuites/normatives.xml</file>-->
961                         <!--<file>src/test/resources/ci/testSuites/onapApiSanity.xml</file>-->
962                         <!--<file>src/test/resources/ci/testSuites/pass.xml</file>-->
963                         <!--                        <file>src/test/resources/ci/testSuites/product.xml</file>-->
964                         <!--<file>src/test/resources/ci/testSuites/productAPIs.xml</file>-->
965                         <!--                        <file>src/test/resources/ci/testSuites/property.xml</file>-->
966                         <!--                        <file>src/test/resources/ci/testSuites/resource.xml</file>-->
967                         <!--<file>src/test/resources/ci/testSuites/sanity.xml</file>-->
968                         <!--<file>src/test/resources/ci/testSuites/SearchExternalAPI.xml</file>-->
969                         <!--                        <file>src/test/resources/ci/testSuites/service.xml</file>-->
970                         <!--<file>src/test/resources/ci/testSuites/testngLifeCycle.xml</file>-->
971                         <!--                        <file>src/test/resources/ci/testSuites/user.xml</file>-->
972                     </suiteXmlFiles>
973                 </configuration>
974             </plugin>
975         </plugins>
976     </build>
977     <profiles>
978         <profile>
979             <id>all-for-integration-tests-only</id>
980             <properties>
981                 <surefire.skip.tests>true</surefire.skip.tests>
982                 <skipTest>false</skipTest>
983             </properties>
984         </profile>
985         <profile>
986             <id>integration-tests-with-helm-validator</id>
987             <properties>
988                 <it.helm-validator.disabled>false</it.helm-validator.disabled>
989             </properties>
990             <build>
991                 <plugins>
992                     <plugin>
993                         <groupId>org.apache.maven.plugins</groupId>
994                         <artifactId>maven-failsafe-plugin</artifactId>
995                         <configuration>
996                             <forkCount>1</forkCount>
997                             <reuseForks>true</reuseForks>
998                             <systemProperties>
999                                 <property>
1000                                     <name>testng.dtd.http</name>
1001                                     <value>true</value>
1002                                 </property>
1003                             </systemProperties>
1004                             <suiteXmlFiles>
1005                                 <file>src/test/resources/ci/testSuites/backend/onapApiSanity.xml</file>
1006                                 <file>src/test/resources/ci/testSuites/frontend/onapUiSanity.xml</file>
1007                                 <file>src/test/resources/ci/testSuites/backend/helmValidatorTests.xml</file>
1008                                 <file>src/test/resources/ci/testSuites/frontend/helmValidatorTests.xml</file>
1009                             </suiteXmlFiles>
1010                         </configuration>
1011                     </plugin>
1012                 </plugins>
1013             </build>
1014         </profile>
1015     </profiles>
1016 </project>