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