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