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