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