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