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