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