Upgrade to java 11
[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.1-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>ch.qos.logback</groupId>
59             <artifactId>logback-classic</artifactId>
60             <version>${logback.version}</version>
61         </dependency>
62
63         <dependency>
64             <groupId>org.yaml</groupId>
65             <artifactId>snakeyaml</artifactId>
66             <version>${snakeyaml.version}</version>
67             <scope>test</scope>
68         </dependency>
69         <dependency>
70             <groupId>com.google.guava</groupId>
71             <artifactId>guava</artifactId>
72             <version>25.0-jre</version>
73             <scope>compile</scope>
74         </dependency>
75         <dependency>
76             <groupId>junit</groupId>
77             <artifactId>junit</artifactId>
78             <version>${junit.version}</version>
79             <scope>test</scope>
80         </dependency>
81         <dependency>
82             <groupId>org.testng</groupId>
83             <artifactId>testng</artifactId>
84             <version>${testng.version}</version>
85             <scope>test</scope>
86         </dependency>
87         <dependency>
88             <groupId>com.google.code.gson</groupId>
89             <artifactId>gson</artifactId>
90             <version>${gson.version}</version>
91             <scope>test</scope>
92         </dependency>
93         <dependency>
94             <groupId>org.openecomp.sdc.be</groupId>
95             <artifactId>catalog-model</artifactId>
96             <version>${project.version}</version>
97             <scope>test</scope>
98         </dependency>
99         <dependency>
100             <groupId>org.openecomp.sdc.be</groupId>
101             <artifactId>catalog-dao</artifactId>
102             <version>${project.version}</version>
103             <scope>test</scope>
104         </dependency>
105         <dependency>
106             <groupId>com.aventstack</groupId>
107             <artifactId>extentreports</artifactId>
108             <version>3.0.6</version>
109             <scope>test</scope>
110         </dependency>
111         <dependency>
112             <groupId>org.janusgraph</groupId>
113             <artifactId>janusgraph-core</artifactId>
114             <version>${janusgraph.version}</version>
115             <scope>test</scope>
116             <exclusions>
117                 <exclusion>
118                     <artifactId>slf4j-log4j12</artifactId>
119                     <groupId>org.slf4j</groupId>
120                 </exclusion>
121                 <exclusion>
122                     <artifactId>commons-collections</artifactId>
123                     <groupId>commons-collections</groupId>
124                 </exclusion>
125                 <exclusion>
126                     <artifactId>groovy</artifactId>
127                     <groupId>org.codehaus.groovy</groupId>
128                 </exclusion>
129                 <exclusion>
130                     <groupId>org.apache.thrift</groupId>
131                     <artifactId>libthrift</artifactId>
132                 </exclusion>
133             </exclusions>
134         </dependency>
135         <dependency>
136             <groupId>org.assertj</groupId>
137             <artifactId>assertj-core</artifactId>
138             <version>${assertj.version}</version>
139             <scope>test</scope>
140         </dependency>
141         <dependency>
142             <groupId>com.clearspring.analytics</groupId>
143             <artifactId>stream</artifactId>
144             <version>${clearspring.version}</version>
145             <scope>test</scope>
146         </dependency>
147         <dependency>
148             <groupId>org.apache.httpcomponents</groupId>
149             <artifactId>httpclient</artifactId>
150             <version>${httpclient.version}</version>
151             <scope>test</scope>
152         </dependency>
153         <dependency>
154             <groupId>org.apache.httpcomponents</groupId>
155             <artifactId>httpcore</artifactId>
156             <version>${httpcore.version}</version>
157             <scope>test</scope>
158         </dependency>
159         <dependency>
160             <groupId>com.fasterxml.jackson.core</groupId>
161             <artifactId>jackson-core</artifactId>
162             <version>${jackson.version}</version>
163             <scope>test</scope>
164         </dependency>
165         <dependency>
166             <groupId>org.codehaus.jackson</groupId>
167             <artifactId>jackson-mapper-asl</artifactId>
168             <version>1.9.2</version>
169             <scope>test</scope>
170         </dependency>
171         <dependency>
172             <groupId>com.fasterxml.jackson.core</groupId>
173             <artifactId>jackson-databind</artifactId>
174             <version>${jackson.version}</version>
175             <scope>test</scope>
176             <exclusions>
177                 <exclusion>
178                     <groupId>com.fasterxml.jackson.core</groupId>
179                     <artifactId>jackson-core</artifactId>
180                 </exclusion>
181             </exclusions>
182         </dependency>
183
184         <!--FOR the Frontend -->
185         <dependency>
186             <groupId>org.seleniumhq.selenium</groupId>
187             <artifactId>selenium-java</artifactId>
188             <scope>test</scope>
189             <version>${selenium.version}</version>
190         </dependency>
191         <dependency>
192             <groupId>org.seleniumhq.selenium</groupId>
193             <artifactId>selenium-server</artifactId>
194             <version>4.0.0-alpha-2</version>
195             <scope>test</scope>
196         </dependency>
197         <dependency>
198             <groupId>org.seleniumhq.selenium</groupId>
199             <artifactId>selenium-firefox-driver</artifactId>
200             <version>${selenium.version}</version>
201             <scope>test</scope>
202         </dependency>
203
204         <dependency>
205             <groupId>net.lightbody.bmp</groupId>
206             <!-- To use the legacy, Jetty-based implementation, change the artifactId
207               to browsermob-core -->
208             <artifactId>browsermob-core</artifactId>
209             <version>2.1.4</version>
210             <scope>test</scope>
211             <exclusions>
212                 <exclusion>
213                     <groupId>com.fasterxml.jackson.core</groupId>
214                     <artifactId>jackson-core</artifactId>
215                 </exclusion>
216             </exclusions>
217         </dependency>
218         <dependency>
219             <groupId>com.paulhammant</groupId>
220             <artifactId>ngwebdriver</artifactId>
221             <version>0.9.7</version>
222             <scope>test</scope>
223         </dependency>
224         <dependency>
225             <groupId>com.github.markusbernhardt</groupId>
226             <artifactId>proxy-vole</artifactId>
227             <version>1.0.2</version>
228             <scope>test</scope>
229         </dependency>
230         <dependency>
231             <groupId>org.hamcrest</groupId>
232             <artifactId>hamcrest</artifactId>
233             <version>${hamcrest.version}</version>
234             <scope>test</scope>
235         </dependency>
236         <dependency>
237             <groupId>commons-net</groupId>
238             <artifactId>commons-net</artifactId>
239             <version>3.3</version>
240             <scope>test</scope>
241         </dependency>
242     </dependencies>
243
244     <build>
245         <plugins>
246             <!-- Section for Integration tests -->
247             <plugin>
248                 <artifactId>maven-resources-plugin</artifactId>
249                 <executions>
250                     <execution>
251                         <id>copy-chef-resources</id>
252                         <phase>pre-integration-test</phase>
253                         <goals>
254                             <goal>copy-resources</goal>
255                         </goals>
256                         <configuration>
257                             <outputDirectory>${it.chef.config}</outputDirectory>
258                             <resources>
259                                 <resource>
260                                     <directory>environments</directory>
261                                     <filtering>true</filtering>
262                                     <includes>
263                                         <include>integration-test.json</include>
264                                         <include>plugins-configuration.yaml</include>
265                                     </includes>
266                                 </resource>
267                             </resources>
268                         </configuration>
269                     </execution>
270                 </executions>
271             </plugin>
272             <plugin>
273                 <groupId>org.codehaus.mojo</groupId>
274                 <artifactId>wagon-maven-plugin</artifactId>
275                 <version>2.0.0</version>
276                 <executions>
277                     <execution>
278                         <id>download-gecko</id>
279                         <phase>validate</phase>
280                         <goals>
281                             <goal>download-single</goal>
282                         </goals>
283                         <configuration>
284                             <url>https://github.com</url>
285                             <fromFile>
286                                 mozilla/geckodriver/releases/download/v${gecko.driver.version}/geckodriver-v${gecko.driver.version}-linux64.tar.gz
287                             </fromFile>
288                             <toDir>${project.build.directory}/gecko</toDir>
289                         </configuration>
290                     </execution>
291                 </executions>
292             </plugin>
293             <plugin>
294                 <artifactId>maven-antrun-plugin</artifactId>
295                 <version>1.8</version>
296                 <executions>
297                     <execution>
298                         <id>set-folder-permission</id>
299                         <phase>pre-integration-test</phase>
300                         <configuration>
301                             <target>
302                                 <mkdir dir="/tmp/sdc-integration-tests"/>
303                                 <chmod dir="/tmp/sdc-integration-tests" type="dir" perm="ugo+rwx"/>
304                                 <mkdir dir="/tmp/sdc-integration-tests/downloadAutomation"/>
305                                 <chmod dir="/tmp/sdc-integration-tests/downloadAutomation" type="dir" perm="ugo+rwx"/>
306                             </target>
307                         </configuration>
308                         <goals>
309                             <goal>run</goal>
310                         </goals>
311                     </execution>
312                     <execution>
313                         <id>untar-gecko</id>
314                         <phase>pre-integration-test</phase>
315                         <configuration>
316                             <target>
317                                 <untar src="${project.build.directory}/gecko/geckodriver-v${gecko.driver.version}-linux64.tar.gz"
318                                        compression="gzip" dest="${project.build.directory}/gecko/"/>
319                                 <chmod dir="${project.build.directory}/gecko/geckodriver" type="dir" perm="ugo+rwx"/>
320                             </target>
321                         </configuration>
322                         <goals>
323                             <goal>run</goal>
324                         </goals>
325                     </execution>
326                 </executions>
327             </plugin>
328             <plugin>
329                 <groupId>org.codehaus.mojo</groupId>
330                 <artifactId>build-helper-maven-plugin</artifactId>
331                 <executions>
332                     <execution>
333                         <id>reserve-port-for-tests</id>
334                         <phase>validate</phase>
335                         <goals>
336                             <goal>reserve-network-port</goal>
337                         </goals>
338                         <configuration>
339                             <portNames>
340                                 <portName>sdc.it.docker.cassandra.port</portName>
341                             </portNames>
342                         </configuration>
343                     </execution>
344                 </executions>
345             </plugin>
346             <plugin>
347                 <groupId>io.fabric8</groupId>
348                 <artifactId>docker-maven-plugin</artifactId>
349                 <dependencies>
350                     <dependency>
351                         <groupId>org.apache.httpcomponents</groupId>
352                         <artifactId>httpclient</artifactId>
353                         <version>4.5.5</version>
354                     </dependency>
355                 </dependencies>
356                 <configuration>
357                     <verbose>true</verbose>
358                     <apiVersion>1.35</apiVersion>
359                     <autoCreateCustomNetworks>true</autoCreateCustomNetworks>
360                     <images>
361                         <image>
362                             <name>onap/sdc-cassandra:${it.docker.version}</name>
363                             <alias>sdc-cassandra</alias>
364                             <run>
365                                 <env>
366                                     <RELEASE>${project.version}</RELEASE>
367                                     <CS_PASSWORD>${it.cassandra.password}</CS_PASSWORD>
368                                     <ENVNAME>${it.env.name}</ENVNAME>
369                                     <MAX_HEAP_SIZE>1536M</MAX_HEAP_SIZE>
370                                     <HEAP_NEWSIZE>512M</HEAP_NEWSIZE>
371                                 </env>
372                                 <hostname>sdc-cs</hostname>
373                                 <volumes>
374                                     <bind>
375                                         <volume>${it.chef.config}:/root/chef-solo/environments</volume>
376                                     </bind>
377                                 </volumes>
378                                 <ulimits>
379                                     <ulimit>
380                                         <name>memlock</name>
381                                         <hard>-1</hard>
382                                         <soft>-1</soft>
383                                     </ulimit>
384                                     <ulimit>
385                                         <name>nofile</name>
386                                         <hard>100000</hard>
387                                         <soft>100000</soft>
388                                     </ulimit>
389                                 </ulimits>
390                                 <wait>
391                                     <time>120000</time>
392                                     <tcp>
393                                         <host>sdc-cs</host>
394                                         <mode>direct</mode>
395                                         <ports>
396                                             <port>9042</port>
397                                         </ports>
398                                     </tcp>
399                                 </wait>
400                                 <ports>
401                                     <port>9042:9042</port>
402                                 </ports>
403                                 <network>
404                                     <mode>custom</mode>
405                                     <name>sdc-network</name>
406                                     <alias>sdc-cs</alias>
407                                 </network>
408                             </run>
409                         </image>
410                         <image>
411                             <name>onap/sdc-cassandra-init:${it.docker.version}</name>
412                             <alias>sdc-cassandra-init</alias>
413                             <run>
414                                 <dependsOn>
415                                     <container>sdc-cassandra</container>
416                                 </dependsOn>
417                                 <env>
418                                     <RELEASE>${project.version}</RELEASE>
419                                     <SDC_USER>${it.sdc.user}</SDC_USER>
420                                     <SDC_PASSWORD>${it.sdc.password}</SDC_PASSWORD>
421                                     <CS_PASSWORD>${it.cassandra.password}</CS_PASSWORD>
422                                     <ENVNAME>${it.env.name}</ENVNAME>
423                                 </env>
424                                 <hostname>sdc-cs-init</hostname>
425                                 <volumes>
426                                     <bind>
427                                         <volume>${it.chef.config}:/home/sdc/chef-solo/environments</volume>
428                                     </bind>
429                                 </volumes>
430                                 <wait>
431                                     <time>300000</time>
432                                     <log>SdcSchemaFileImport successfully completed</log>
433                                 </wait>
434                                 <network>
435                                     <mode>custom</mode>
436                                     <name>sdc-network</name>
437                                     <alias>sdc-cs-init</alias>
438                                 </network>
439                             </run>
440                         </image>
441                         <image>
442                             <name>onap/sdc-onboard-cassandra-init:${it.docker.version}</name>
443                             <alias>sdc-cassandra-onboard-init</alias>
444                             <run>
445                                 <dependsOn>
446                                     <container>sdc-cassandra</container>
447                                 </dependsOn>
448                                 <env>
449                                     <RELEASE>${project.version}</RELEASE>
450                                     <SDC_USER>${it.sdc.user}</SDC_USER>
451                                     <SDC_PASSWORD>${it.sdc.password}</SDC_PASSWORD>
452                                     <CS_PASSWORD>${it.cassandra.password}</CS_PASSWORD>
453                                     <CS_HOST_PORT>${it.cassandra.port}</CS_HOST_PORT>
454                                     <ENVNAME>${it.env.name}</ENVNAME>
455                                     <CS_HOST_IP>sdc-cs</CS_HOST_IP>
456                                 </env>
457                                 <hostname>sdc-cs-onboard-init</hostname>
458                                 <volumes>
459                                     <bind>
460                                         <volume>${it.chef.config}:/home/sdc/chef-solo/environments</volume>
461                                     </bind>
462                                 </volumes>
463                                 <wait>
464                                     <time>30000</time>
465                                     <log>Initializing onboard schemas</log>
466                                 </wait>
467                                 <network>
468                                     <mode>custom</mode>
469                                     <name>sdc-network</name>
470                                     <alias>sdc-cs-onboard-init</alias>
471                                 </network>
472                             </run>
473                         </image>
474                         <image>
475                             <name>onap/sdc-onboard-backend:${it.docker.version}</name>
476                             <alias>sdc-onboard-backend</alias>
477                             <run>
478                                 <dependsOn>
479                                     <container>sdc-cassandra-onboard-init</container>
480                                 </dependsOn>
481                                 <env>
482                                     <cassandra_ssl_enabled>${it.cassandra.ssl.enabled}</cassandra_ssl_enabled>
483                                     <SDC_CLUSTER_NAME>${it.sdc.cluster.name}</SDC_CLUSTER_NAME>
484                                     <SDC_USER>${it.sdc.user}</SDC_USER>
485                                     <SDC_PASSWORD>${it.sdc.password}</SDC_PASSWORD>
486                                     <ENVNAME>${it.env.name}</ENVNAME>
487                                     <SDC_CERT_DIR>onap/cert</SDC_CERT_DIR>
488                                     <JAVA_OPTIONS>-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:4001 -Xmx1g -Xms1g</JAVA_OPTIONS>
489                                 </env>
490                                 <hostname>sdc-onboard-BE</hostname>
491                                 <volumes>
492                                     <bind>
493                                         <volume>${it.chef.config}:/var/lib/jetty/chef-solo/environments</volume>
494                                         <volume>${project.basedir}/src/test/resources/cert:/var/lib/jetty/onap/cert
495                                         </volume>
496                                     </bind>
497                                 </volumes>
498                                 <wait>
499                                     <time>300000</time>
500                                     <tcp>
501                                         <host>sdc-onboard-BE</host>
502                                         <mode>direct</mode>
503                                         <ports>
504                                             <port>8445</port>
505                                             <port>8081</port>
506                                             <port>4001</port>
507                                         </ports>
508                                     </tcp>
509                                 </wait>
510                                 <ports>
511                                     <port>8445:8445</port>
512                                     <port>8081:8081</port>
513                                     <port>4001:4001</port>
514                                 </ports>
515                                 <network>
516                                     <mode>custom</mode>
517                                     <name>sdc-network</name>
518                                     <alias>sdc-onboard-BE</alias>
519                                 </network>
520                             </run>
521                         </image>
522                         <image>
523                             <name>onap/sdc-backend:${it.docker.version}</name>
524                             <alias>sdc-backend</alias>
525                             <run>
526                                 <dependsOn>
527                                     <container>sdc-cassandra-init</container>
528                                 </dependsOn>
529                                 <env>
530                                     <cassandra_ssl_enabled>${it.cassandra.ssl.enabled}</cassandra_ssl_enabled>
531                                     <ENVNAME>${it.env.name}</ENVNAME>
532                                     <JAVA_OPTIONS>-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:4000
533                                         -Xmx1536m -Xms1536m</JAVA_OPTIONS>
534                                 </env>
535                                 <hostname>sdc-BE</hostname>
536                                 <volumes>
537                                     <bind>
538                                         <volume>${it.chef.config}:/var/lib/jetty/chef-solo/environments</volume>
539                                         <volume>${it.shared.volume}:/var/lib/jetty/logs</volume>
540                                     </bind>
541                                 </volumes>
542                                 <wait>
543                                     <time>60000</time>
544                                     <tcp>
545                                         <host>sdc-BE</host>
546                                         <mode>direct</mode>
547                                         <ports>
548                                             <port>8443</port>
549                                             <port>8080</port>
550                                             <port>4000</port>
551                                         </ports>
552                                     </tcp>
553                                 </wait>
554                                 <ports>
555                                     <port>8443:8443</port>
556                                     <port>8080:8080</port>
557                                     <port>4000:4000</port>
558                                 </ports>
559                                 <network>
560                                     <mode>custom</mode>
561                                     <name>sdc-network</name>
562                                     <alias>sdc-BE</alias>
563                                 </network>
564                             </run>
565                         </image>
566                         <image>
567                             <name>onap/sdc-backend-init:${it.docker.version}</name>
568                             <alias>sdc-backend-init</alias>
569                             <run>
570                                 <dependsOn>
571                                     <container>sdc-backend</container>
572                                 </dependsOn>
573                                 <env>
574                                     <ENVNAME>${it.env.name}</ENVNAME>
575                                 </env>
576                                 <hostname>sdc-BE-init</hostname>
577                                 <volumes>
578                                     <bind>
579                                         <volume>${it.chef.config}:/home/onap/chef-solo/environments</volume>
580                                         <volume>${it.shared.volume}:/var/lib/jetty/logs</volume>
581                                     </bind>
582                                 </volumes>
583                                 <wait>
584                                     <time>600000</time>
585                                     <log>Chef Client finished</log>
586                                 </wait>
587                                 <network>
588                                     <mode>custom</mode>
589                                     <name>sdc-network</name>
590                                     <alias>sdc-BE-init</alias>
591                                 </network>
592                             </run>
593                         </image>
594                         <image>
595                             <name>onap/sdc-frontend:${it.docker.version}</name>
596                             <alias>sdc-frontend</alias>
597                             <run>
598                                 <env>
599                                     <ENVNAME>${it.env.name}</ENVNAME>
600                                     <JAVA_OPTIONS>-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:6000
601                                      -Xmx256m -Xms256m</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                     <systemProperties>
760                         <property>
761                             <name>testng.dtd.http</name>
762                             <value>true</value>
763                         </property>
764                     </systemProperties>
765                     <suiteXmlFiles>
766                         <file>src/test/resources/ci/testSuites/backend/onapApiSanity.xml</file>
767                         <file>src/test/resources/ci/testSuites/frontend/onapUiSanity.xml</file>
768                         <!--<file>src/test/resources/ci/testSuites/artifacts.xml</file>-->
769                         <!--<file>src/test/resources/ci/testSuites/cap_req.xml</file>-->
770                         <!--<file>src/test/resources/ci/testSuites/category.xml</file>-->
771                         <!--<file>src/test/resources/ci/testSuites/ciFull.xml</file>-->
772                         <!--<file>src/test/resources/ci/testSuites/CRUDArtifacts.xml</file>-->
773                         <!--<file>src/test/resources/ci/testSuites/externalAPIs.xml</file>-->
774                         <!--<file>src/test/resources/ci/testSuites/ExternalApiSanity.xml</file>-->
775                         <!--                        <file>src/test/resources/ci/testSuites/general.xml</file>-->
776                         <!--                        <file>src/test/resources/ci/testSuites/imports.xml</file>-->
777                         <!--<file>src/test/resources/ci/testSuites/normatives.xml</file>-->
778                         <!--<file>src/test/resources/ci/testSuites/onapApiSanity.xml</file>-->
779                         <!--<file>src/test/resources/ci/testSuites/pass.xml</file>-->
780                         <!--                        <file>src/test/resources/ci/testSuites/product.xml</file>-->
781                         <!--<file>src/test/resources/ci/testSuites/productAPIs.xml</file>-->
782                         <!--                        <file>src/test/resources/ci/testSuites/property.xml</file>-->
783                         <!--                        <file>src/test/resources/ci/testSuites/resource.xml</file>-->
784                         <!--<file>src/test/resources/ci/testSuites/sanity.xml</file>-->
785                         <!--<file>src/test/resources/ci/testSuites/SearchExternalAPI.xml</file>-->
786                         <!--                        <file>src/test/resources/ci/testSuites/service.xml</file>-->
787                         <!--<file>src/test/resources/ci/testSuites/testngLifeCycle.xml</file>-->
788                         <!--                        <file>src/test/resources/ci/testSuites/user.xml</file>-->
789                     </suiteXmlFiles>
790                 </configuration>
791             </plugin>
792         </plugins>
793     </build>
794 </project>