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