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