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