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