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