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