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