7d2b6af5f129bbfa4a670a0f20dd8f06c8547e0c
[sdc.git] / ui-ci / pom.xml
1 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2                  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3
4         <modelVersion>4.0.0</modelVersion>
5
6         <artifactId>ui-ci</artifactId>
7         <description>Selenium tests for the SDnC Application</description>
8
9         <parent>
10                 <groupId>org.openecomp.sdc</groupId>
11                 <artifactId>sdc-main</artifactId>
12                 <version>1.3.0-SNAPSHOT</version>
13         </parent>
14
15         <properties>
16                 <sonar.skip>true</sonar.skip>
17                 <jacoco.skip>true</jacoco.skip>
18                 <aspectj.version>1.8.10</aspectj.version>
19         </properties>
20
21         <dependencies>
22                 <dependency>
23                         <groupId>com.google.guava</groupId>
24                         <artifactId>guava</artifactId>
25                         <version>${guava.version}</version>
26                         <scope>compile</scope>
27                 </dependency>
28
29                 <dependency>
30                         <groupId>org.seleniumhq.selenium</groupId>
31                         <artifactId>selenium-java</artifactId>
32
33                         <version>2.53.1</version>
34                         <exclusions>
35                                 <exclusion>
36                                         <groupId>org.eclipse.jetty</groupId>
37                                         <artifactId>jetty-util</artifactId>
38                                 </exclusion>
39                         </exclusions>
40                 </dependency>
41
42                 <dependency>
43                         <groupId>org.eclipse.jetty</groupId>
44                         <artifactId>jetty-util</artifactId>
45                         <version>${jetty.version}</version>
46                 </dependency>
47
48                 <dependency>
49                         <groupId>org.seleniumhq.selenium</groupId>
50                         <artifactId>selenium-server</artifactId>
51                         <version>2.53.1</version>
52                         <scope>runtime</scope>
53                 </dependency>
54
55                 <dependency>
56                         <groupId>commons-net</groupId>
57                         <artifactId>commons-net</artifactId>
58                         <version>3.3</version>
59                         <scope>compile</scope>
60                 </dependency>
61
62                 <dependency>
63                         <groupId>commons-io</groupId>
64                         <artifactId>commons-io</artifactId>
65                         <version>2.4</version>
66                         <scope>compile</scope>
67                 </dependency>
68
69                 <dependency>
70                         <groupId>org.openecomp.sdc</groupId>
71                         <artifactId>test-apis-ci</artifactId>
72                         <version>${project.version}</version>
73                         <scope>compile</scope>
74                 </dependency>
75
76                 <dependency>
77                         <groupId>org.yaml</groupId>
78                         <artifactId>snakeyaml</artifactId>
79                         <version>${snakeyaml.version}</version>
80                         <scope>compile</scope>
81                 </dependency>
82                 <dependency>
83                         <groupId>org.functionaljava</groupId>
84                         <artifactId>functionaljava</artifactId>
85                         <version>${functionaljava.version}</version>
86                         <scope>compile</scope>
87                 </dependency>
88
89                 <dependency>
90                         <groupId>com.google.code.gson</groupId>
91                         <artifactId>gson</artifactId>
92                         <version>${gson.version}</version>
93                         <scope>compile</scope>
94                 </dependency>
95
96                 <!-- http client -->
97                 <dependency>
98                         <groupId>org.apache.httpcomponents</groupId>
99                         <artifactId>httpclient</artifactId>
100                         <version>${httpclient.version}</version>
101                         <scope>compile</scope>
102                 </dependency>
103
104                 <dependency>
105                         <groupId>org.apache.httpcomponents</groupId>
106                         <artifactId>httpmime</artifactId>
107                         <version>${httpclient.version}</version>
108                         <scope>compile</scope>
109                 </dependency>
110
111                 <dependency>
112                         <groupId>commons-logging</groupId>
113                         <artifactId>commons-logging</artifactId>
114                         <version>${commons-logging}</version>
115                         <scope>compile</scope>
116                 </dependency>
117
118                 <dependency>
119                         <groupId>org.slf4j</groupId>
120                         <artifactId>slf4j-api</artifactId>
121                         <version>${slf4j-api.version}</version>
122                         <scope>compile</scope>
123                 </dependency>
124
125                 <dependency>
126                         <groupId>ch.qos.logback</groupId>
127                         <artifactId>logback-classic</artifactId>
128                         <version>${logback.version}</version>
129                         <scope>compile</scope>
130                 </dependency>
131
132                 <dependency>
133                         <groupId>ch.qos.logback</groupId>
134                         <artifactId>logback-core</artifactId>
135                         <version>${logback.version}</version>
136                         <scope>compile</scope>
137                 </dependency>
138
139                 <!-- http core -->
140                 <dependency>
141                         <groupId>org.apache.httpcomponents</groupId>
142                         <artifactId>httpcore</artifactId>
143                         <version>${httpcore.version}</version>
144                         <scope>compile</scope>
145                 </dependency>
146
147                 <!-- TITAN -->
148                 <dependency>
149                         <groupId>com.thinkaurelius.titan</groupId>
150                         <artifactId>titan-core</artifactId>
151                         <version>${titan.version}</version>
152                         <scope>compile</scope>
153                         <exclusions>
154                                 <exclusion>
155                                         <artifactId>commons-collections</artifactId>
156                                         <groupId>commons-collections</groupId>
157                                 </exclusion>
158                         </exclusions>
159                 </dependency>
160
161                 <dependency>
162                         <groupId>org.onap.sdc.sdc-titan-cassandra</groupId>
163                         <artifactId>sdc-titan-cassandra</artifactId>
164                         <version>${sdc.titan.version}</version>
165                         <scope>compile</scope>
166                 </dependency>
167
168                 <dependency>
169                         <groupId>org.codehaus.jackson</groupId>
170                         <artifactId>jackson-mapper-asl</artifactId>
171                         <version>1.9.2</version>
172                         <scope>compile</scope>
173                 </dependency>
174
175                 <dependency>
176                         <groupId>com.fasterxml.jackson.core</groupId>
177                         <artifactId>jackson-databind</artifactId>
178                         <version>${jackson.version}</version>
179                         <scope>compile</scope>
180                 </dependency>
181
182                 <dependency>
183                         <groupId>org.openecomp.sdc.sdc-distribution-client</groupId>
184                         <artifactId>sdc-distribution-client</artifactId>
185                         <version>1.2.3</version>
186                         <scope>compile</scope>
187                 </dependency>
188
189                 <dependency>
190                         <groupId>junit</groupId>
191                         <artifactId>junit</artifactId>
192                         <version>${junit.version}</version>
193                         <scope>compile</scope>
194                 </dependency>
195
196                 <dependency>
197                         <groupId>org.testng</groupId>
198                         <artifactId>testng</artifactId>
199                         <version>6.11</version>
200                         <scope>compile</scope>
201                 </dependency>
202
203                 <dependency>
204                         <groupId>xml-apis</groupId>
205                         <artifactId>xml-apis</artifactId>
206                         <version>1.4.01</version>
207                         <scope>compile</scope>
208                 </dependency>
209
210                 <dependency>
211                         <groupId>com.googlecode.json-simple</groupId>
212                         <artifactId>json-simple</artifactId>
213                         <version>${json-simple.version}</version>
214                         <scope>compile</scope>
215                 </dependency>
216
217                 <dependency>
218                         <groupId>org.apache.commons</groupId>
219                         <artifactId>commons-jci-core</artifactId>
220                         <version>${commons-jci-core.version}</version>
221                         <scope>compile</scope>
222                 </dependency>
223
224                 <dependency>
225                         <groupId>commons-codec</groupId>
226                         <artifactId>commons-codec</artifactId>
227                         <version>${commons-codec}</version>
228                         <scope>compile</scope>
229                 </dependency>
230
231                 <dependency>
232                         <groupId>com.aventstack</groupId>
233                         <artifactId>extentreports</artifactId>
234                         <version>3.0.6</version>
235                         <scope>compile</scope>
236                 </dependency>
237
238                 <dependency>
239                         <groupId>net.lightbody.bmp</groupId>
240                         <!-- To use the legacy, Jetty-based implementation, change the artifactId
241                                 to browsermob-core -->
242                         <artifactId>browsermob-core</artifactId>
243                         <version>2.1.4</version>
244                 </dependency>
245
246                 <dependency>
247                         <groupId>com.github.markusbernhardt</groupId>
248                         <artifactId>proxy-vole</artifactId>
249                         <version>1.0.2</version>
250                 </dependency>
251
252                 <dependency>
253                         <groupId>com.paulhammant</groupId>
254                         <artifactId>ngwebdriver</artifactId>
255                         <version>0.9.7</version>
256                         <scope>compile</scope>
257                 </dependency>
258
259                 <dependency>
260                         <groupId>com.google.inject</groupId>
261                         <artifactId>guice</artifactId>
262                         <version>4.1.0</version>
263                 </dependency>
264
265                 <dependency>
266                         <groupId>org.codehaus.groovy</groupId>
267                         <artifactId>groovy</artifactId>
268                 </dependency>
269
270                 <dependency>
271                         <groupId>io.netty</groupId>
272                         <artifactId>netty-handler</artifactId>
273                 </dependency>
274
275         </dependencies>
276
277         <build>
278
279                 <plugins>
280
281                         <plugin>
282                                 <groupId>org.apache.maven.plugins</groupId>
283                                 <artifactId>maven-clean-plugin</artifactId>
284                                 <executions>
285                                         <execution>
286                                                 <id>clean.tosca.chef.os.folder</id>
287                                                 <phase>clean</phase>
288                                                 <goals>
289                                                         <goal>clean</goal>
290                                                 </goals>
291                                                 <configuration>
292                                                         <filesets>
293
294                                                                 <!-- Sanity jar -->
295                                                                 <fileset>
296                                                                         <directory>${project.basedir}/sdc-ui-tests</directory>
297                                                                         <followSymlinks>false</followSymlinks>
298                                                                         <includes>
299                                                                                 <include>*.jar</include>
300                                                                         </includes>
301                                                                 </fileset>
302                                                                 <!-- Sanity test suites -->
303                                                                 <fileset>
304                                                                         <directory>${project.basedir}/sdc-ui-tests/chef-repo/cookbooks/sdc-ui-tests/files/default/testSuites</directory>
305                                                                         <followSymlinks>false</followSymlinks>
306                                                                 </fileset>
307                                                         </filesets>
308                                                 </configuration>
309                                         </execution>
310                                 </executions>
311                         </plugin>
312                         <plugin>
313                                 <groupId>org.apache.maven.plugins</groupId>
314                                 <artifactId>maven-deploy-plugin</artifactId>
315                                 <configuration>
316                                         <skip>true</skip>
317                                 </configuration>
318                         </plugin>
319                         <plugin>
320                                 <groupId>org.apache.maven.plugins</groupId>
321                                 <artifactId>maven-assembly-plugin</artifactId>
322                                 <executions>
323                                         <execution>
324                                                 <id>create.jar.with.dependencies</id>
325                                                 <phase>package</phase>
326                                                 <goals>
327                                                         <goal>single</goal>
328                                                 </goals>
329                                                 <configuration>
330                                                         <archive>
331                                                                 <manifest>
332                                                                         <mainClass>org.openecomp.sdc.ci.tests.execute.setup.SetupCDTest</mainClass>
333                                                                 </manifest>
334                                                         </archive>
335                                                         <descriptorRefs>
336                                                                 <descriptorRef>jar-with-dependencies</descriptorRef>
337                                                         </descriptorRefs>
338                                                 </configuration>
339                                         </execution>
340                                 </executions>
341                         </plugin>
342                         <plugin>
343                                 <groupId>com.github.sylvainlaurent.maven</groupId>
344                                 <artifactId>yaml-json-validator-maven-plugin</artifactId>
345                                 <executions>
346                                         <execution>
347                                                 <id>validate</id>
348                                                 <phase>validate</phase>
349                                                 <goals>
350                                                         <goal>validate</goal>
351                                                 </goals>
352                                                 <configuration>
353                                                         <validationSets>
354                                                                 <validationSet>
355                                                                         <includes>
356                                                                                 <include>src/main/resources/**/*.y*ml</include>
357                                                                                 <include>src/test/resources/**/*.y*ml</include>
358                                                                         </includes>
359                                                                 </validationSet>
360                                                                 <validationSet>
361                                                                         <includes>
362                                                                                 <include>src/main/resources/**/*.json</include>
363                                                                                 <include>src/test/resources/**/*.json</include>
364                                                                         </includes>
365                                                                 </validationSet>
366                                                         </validationSets>
367                                                 </configuration>
368                                         </execution>
369                                 </executions>
370                         </plugin>
371                 </plugins>
372         </build>
373         <profiles>
374                 <profile>
375                         <id>docker</id>
376                         <activation>
377                                 <activeByDefault>false</activeByDefault>
378                         </activation>
379                         <build>
380                                 <plugins>
381                                         <plugin>
382                                                 <groupId>org.apache.maven.plugins</groupId>
383                                                 <artifactId>maven-resources-plugin</artifactId>
384                                                 <executions>
385                                                         <execution>
386                                                                 <id>copy-tests-suites</id>
387                                                                 <phase>verify</phase>
388                                                                 <goals>
389                                                                         <goal>copy-resources</goal>
390                                                                 </goals>
391                                                                 <configuration>
392                                                                         <outputDirectory>sdc-ui-tests/chef-repo/cookbooks/sdc-ui-tests/files/default/testSuites</outputDirectory>
393                                                                         <resources>
394                                                                                 <resource>
395                                                                                         <directory>${project.parent.basedir}/ui-ci/src/main/resources/ci/testSuites</directory>
396                                                                                         <includes>
397                                                                                                 <include>*</include>
398                                                                                         </includes>
399                                                                                 </resource>
400                                                                         </resources>
401                                                                 </configuration>
402                                                         </execution>
403
404                                                         <execution>
405                                                                 <id>copy-csar-files</id>
406                                                                 <phase>verify</phase>
407                                                                 <goals>
408                                                                         <goal>copy-resources</goal>
409                                                                 </goals>
410                                                                 <configuration>
411                                                                         <outputDirectory>sdc-ui-tests/chef-repo/cookbooks/sdc-ui-tests/files/default/Files/VNFs</outputDirectory>
412                                                                         <resources>
413                                                                                 <resource>
414                                                                                         <directory>${project.parent.basedir}/test-apis-ci/sdc-api-tests/chef-repo/cookbooks/sdc-api-tests/files/default/Files/VNFs</directory>
415                                                                                         <includes>
416                                                                                                 <include>*</include>
417                                                                                         </includes>
418                                                                                 </resource>
419                                                                         </resources>
420                                                                 </configuration>
421                                                         </execution>
422
423                                                         <execution>
424                                                                 <id>copy-resources-ui-ci</id>
425                                                                 <phase>verify</phase>
426                                                                 <goals>
427                                                                         <goal>copy-resources</goal>
428                                                                 </goals>
429                                                                 <configuration>
430                                                                         <outputDirectory>${basedir}/sdc-ui-tests</outputDirectory>
431                                                                         <resources>
432                                                                                 <resource>
433                                                                                         <directory>${project.parent.basedir}/ui-ci/target</directory>
434                                                                                         <includes>
435                                                                                                 <include>ui-ci-${project.version}-jar-with-dependencies.jar</include>
436                                                                                         </includes>
437                                                                                 </resource>
438                                                                         </resources>
439                                                                 </configuration>
440                                                         </execution>
441                                                 </executions>
442                                         </plugin>
443
444                                         <plugin>
445                                                 <groupId>io.fabric8</groupId>
446                                                 <artifactId>docker-maven-plugin</artifactId>
447                                                 <configuration>
448                                                         <apiVersion>1.23</apiVersion>
449                                                         <registry>nexus3.onap.org:10001</registry>
450                                                         <authConfig>
451                                                                 <pull>
452                                                                         <username>docker</username>
453                                                                         <password>docker</password>
454                                                                 </pull>
455                                                         </authConfig>
456                                                         <images>
457
458                                                                 <!-- Build sanity image -->
459                                                                 <image>
460                                                                         <name>onap/sdc-ui-tests</name>
461                                                                         <alias>sdc-ui-sanity</alias>
462                                                                         <build>
463                                                                                 <cleanup>try</cleanup>
464                                                                                 <dockerFileDir>${project.basedir}/sdc-ui-tests</dockerFileDir>
465                                                                                 <tags>
466                                                                                         <tag>${docker.tag}</tag>
467                                                                                         <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</tag>
468                                                                                 </tags>
469                                                                         </build>
470                                                                 </image>
471
472                                                         </images>
473                                                 </configuration>
474                                                 <executions>
475                                                         <execution>
476                                                                 <id>clean-images</id>
477                                                                 <phase>pre-clean</phase>
478                                                                 <goals>
479                                                                         <goal>remove</goal>
480                                                                 </goals>
481                                                                 <configuration>
482                                                                         <removeAll>true</removeAll>
483                                                                         <image>onap/sdc-ui-tests</image>
484                                                                 </configuration>
485                                                         </execution>
486
487                                                         <execution>
488                                                                 <id>generate-images</id>
489                                                                 <phase>install</phase>
490                                                                 <goals>
491                                                                         <goal>build</goal>
492                                                                 </goals>
493                                                         </execution>
494
495                                                         <execution>
496                                                                 <id>push-images</id>
497                                                                 <phase>deploy</phase>
498                                                                 <goals>
499                                                                         <goal>push</goal>
500                                                                 </goals>
501                                                                 <configuration>
502                                                                         <image>onap/sdc-ui-tests</image>
503                                                                 </configuration>
504                                                         </execution>
505                                                 </executions>
506                                         </plugin>
507                                 </plugins>
508                         </build>
509                 </profile>
510         </profiles>
511 </project>