Upgrade SDC from Titan to Janus Graph
[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.5.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                 <dependency>
148                         <groupId>org.codehaus.jackson</groupId>
149                         <artifactId>jackson-mapper-asl</artifactId>
150                         <version>1.9.2</version>
151                         <scope>compile</scope>
152                 </dependency>
153
154                 <dependency>
155                         <groupId>com.fasterxml.jackson.core</groupId>
156                         <artifactId>jackson-databind</artifactId>
157                         <version>${jackson.version}</version>
158                         <scope>compile</scope>
159                 </dependency>
160
161                 <dependency>
162                         <groupId>org.openecomp.sdc.sdc-distribution-client</groupId>
163                         <artifactId>sdc-distribution-client</artifactId>
164                         <version>1.2.3</version>
165                         <scope>compile</scope>
166                 </dependency>
167
168                 <dependency>
169                         <groupId>junit</groupId>
170                         <artifactId>junit</artifactId>
171                         <version>${junit.version}</version>
172                         <scope>compile</scope>
173                 </dependency>
174
175                 <dependency>
176                         <groupId>org.testng</groupId>
177                         <artifactId>testng</artifactId>
178                         <version>6.11</version>
179                         <scope>compile</scope>
180                 </dependency>
181
182                 <dependency>
183                         <groupId>xml-apis</groupId>
184                         <artifactId>xml-apis</artifactId>
185                         <version>1.4.01</version>
186                         <scope>compile</scope>
187                 </dependency>
188
189                 <dependency>
190                         <groupId>com.googlecode.json-simple</groupId>
191                         <artifactId>json-simple</artifactId>
192                         <version>${json-simple.version}</version>
193                         <scope>compile</scope>
194                 </dependency>
195
196                 <dependency>
197                         <groupId>org.apache.commons</groupId>
198                         <artifactId>commons-jci-core</artifactId>
199                         <version>${commons-jci-core.version}</version>
200                         <scope>compile</scope>
201                 </dependency>
202
203                 <dependency>
204                         <groupId>commons-codec</groupId>
205                         <artifactId>commons-codec</artifactId>
206                         <version>${commons-codec}</version>
207                         <scope>compile</scope>
208                 </dependency>
209
210                 <dependency>
211                         <groupId>com.aventstack</groupId>
212                         <artifactId>extentreports</artifactId>
213                         <version>3.0.6</version>
214                         <scope>compile</scope>
215                 </dependency>
216
217                 <dependency>
218                         <groupId>net.lightbody.bmp</groupId>
219                         <!-- To use the legacy, Jetty-based implementation, change the artifactId
220                                 to browsermob-core -->
221                         <artifactId>browsermob-core</artifactId>
222                         <version>2.1.4</version>
223                 </dependency>
224
225                 <dependency>
226                         <groupId>com.github.markusbernhardt</groupId>
227                         <artifactId>proxy-vole</artifactId>
228                         <version>1.0.2</version>
229                 </dependency>
230
231                 <dependency>
232                         <groupId>com.paulhammant</groupId>
233                         <artifactId>ngwebdriver</artifactId>
234                         <version>0.9.7</version>
235                         <scope>compile</scope>
236                 </dependency>
237
238                 <dependency>
239                         <groupId>com.google.inject</groupId>
240                         <artifactId>guice</artifactId>
241                         <version>4.1.0</version>
242                 </dependency>
243
244                 <dependency>
245                         <groupId>org.codehaus.groovy</groupId>
246                         <artifactId>groovy</artifactId>
247                 </dependency>
248
249                 <dependency>
250                         <groupId>io.netty</groupId>
251                         <artifactId>netty-handler</artifactId>
252                 </dependency>
253
254         </dependencies>
255
256         <build>
257
258                 <plugins>
259
260                         <plugin>
261                                 <groupId>org.apache.maven.plugins</groupId>
262                                 <artifactId>maven-clean-plugin</artifactId>
263                                 <executions>
264                                         <execution>
265                                                 <id>clean.tosca.chef.os.folder</id>
266                                                 <phase>clean</phase>
267                                                 <goals>
268                                                         <goal>clean</goal>
269                                                 </goals>
270                                                 <configuration>
271                                                         <filesets>
272
273                                                                 <!-- Sanity jar -->
274                                                                 <fileset>
275                                                                         <directory>${project.basedir}/sdc-ui-tests</directory>
276                                                                         <followSymlinks>false</followSymlinks>
277                                                                         <includes>
278                                                                                 <include>*.jar</include>
279                                                                         </includes>
280                                                                 </fileset>
281                                                                 <!-- Sanity test suites -->
282                                                                 <fileset>
283                                                                         <directory>${project.basedir}/sdc-ui-tests/chef-repo/cookbooks/sdc-ui-tests/files/default/testSuites</directory>
284                                                                         <followSymlinks>false</followSymlinks>
285                                                                 </fileset>
286                                                                 <!-- VNF files -->
287                                                                 <fileset>
288                                                                         <directory>${project.basedir}/sdc-ui-tests/chef-repo/cookbooks/sdc-ui-tests/files/default/Files/VNFs</directory>
289                                                                         <followSymlinks>false</followSymlinks>
290                                                                 </fileset>
291                                                         </filesets>
292                                                 </configuration>
293                                         </execution>
294                                 </executions>
295                         </plugin>
296                         <plugin>
297                                 <groupId>org.apache.maven.plugins</groupId>
298                                 <artifactId>maven-deploy-plugin</artifactId>
299                                 <configuration>
300                                         <skip>true</skip>
301                                 </configuration>
302                         </plugin>
303                         <plugin>
304                                 <groupId>org.apache.maven.plugins</groupId>
305                                 <artifactId>maven-assembly-plugin</artifactId>
306                                 <executions>
307                                         <execution>
308                                                 <id>create.jar.with.dependencies</id>
309                                                 <phase>package</phase>
310                                                 <goals>
311                                                         <goal>single</goal>
312                                                 </goals>
313                                                 <configuration>
314                                                         <archive>
315                                                                 <manifest>
316                                                                         <mainClass>org.openecomp.sdc.ci.tests.execute.setup.SetupCDTest</mainClass>
317                                                                 </manifest>
318                                                         </archive>
319                                                         <descriptorRefs>
320                                                                 <descriptorRef>jar-with-dependencies</descriptorRef>
321                                                         </descriptorRefs>
322                                                 </configuration>
323                                         </execution>
324                                 </executions>
325                         </plugin>
326                         <plugin>
327                                 <groupId>com.github.sylvainlaurent.maven</groupId>
328                                 <artifactId>yaml-json-validator-maven-plugin</artifactId>
329                                 <executions>
330                                         <execution>
331                                                 <id>validate</id>
332                                                 <phase>validate</phase>
333                                                 <goals>
334                                                         <goal>validate</goal>
335                                                 </goals>
336                                                 <configuration>
337                                                         <validationSets>
338                                                                 <validationSet>
339                                                                         <includes>
340                                                                                 <include>src/main/resources/**/*.y*ml</include>
341                                                                                 <include>src/test/resources/**/*.y*ml</include>
342                                                                         </includes>
343                                                                 </validationSet>
344                                                                 <validationSet>
345                                                                         <includes>
346                                                                                 <include>src/main/resources/**/*.json</include>
347                                                                                 <include>src/test/resources/**/*.json</include>
348                                                                         </includes>
349                                                                 </validationSet>
350                                                         </validationSets>
351                                                 </configuration>
352                                         </execution>
353                                 </executions>
354                         </plugin>
355                 </plugins>
356         </build>
357         <profiles>
358                 <profile>
359                         <id>docker</id>
360                         <activation>
361                                 <activeByDefault>false</activeByDefault>
362                         </activation>
363                         <build>
364                                 <plugins>
365                                         <plugin>
366                                                 <groupId>org.apache.maven.plugins</groupId>
367                                                 <artifactId>maven-resources-plugin</artifactId>
368                                                 <executions>
369                                                         <execution>
370                                                                 <id>copy-tests-suites</id>
371                                                                 <phase>verify</phase>
372                                                                 <goals>
373                                                                         <goal>copy-resources</goal>
374                                                                 </goals>
375                                                                 <configuration>
376                                                                         <outputDirectory>sdc-ui-tests/chef-repo/cookbooks/sdc-ui-tests/files/default/testSuites</outputDirectory>
377                                                                         <resources>
378                                                                                 <resource>
379                                                                                         <directory>${project.parent.basedir}/ui-ci/src/main/resources/ci/testSuites</directory>
380                                                                                         <includes>
381                                                                                                 <include>*</include>
382                                                                                         </includes>
383                                                                                 </resource>
384                                                                         </resources>
385                                                                 </configuration>
386                                                         </execution>
387
388                                                         <execution>
389                                                                 <id>copy-csar-files</id>
390                                                                 <phase>verify</phase>
391                                                                 <goals>
392                                                                         <goal>copy-resources</goal>
393                                                                 </goals>
394                                                                 <configuration>
395                                                                         <outputDirectory>sdc-ui-tests/chef-repo/cookbooks/sdc-ui-tests/files/default/Files/VNFs</outputDirectory>
396                                                                         <resources>
397                                                                                 <resource>
398                                                                                         <directory>${project.parent.basedir}/test-apis-ci/sdc-api-tests/chef-repo/cookbooks/sdc-api-tests/files/default/Files/VNFs</directory>
399                                                                                         <includes>
400                                                                                                 <include>*</include>
401                                                                                         </includes>
402                                                                                 </resource>
403                                                                         </resources>
404                                                                 </configuration>
405                                                         </execution>
406
407                                                         <execution>
408                                                                 <id>copy-resources-ui-ci</id>
409                                                                 <phase>verify</phase>
410                                                                 <goals>
411                                                                         <goal>copy-resources</goal>
412                                                                 </goals>
413                                                                 <configuration>
414                                                                         <outputDirectory>${basedir}/sdc-ui-tests</outputDirectory>
415                                                                         <resources>
416                                                                                 <resource>
417                                                                                         <directory>${project.parent.basedir}/ui-ci/target</directory>
418                                                                                         <includes>
419                                                                                                 <include>ui-ci-${project.version}-jar-with-dependencies.jar</include>
420                                                                                         </includes>
421                                                                                 </resource>
422                                                                         </resources>
423                                                                 </configuration>
424                                                         </execution>
425                                                 </executions>
426                                         </plugin>
427
428                                         <plugin>
429                                                 <groupId>io.fabric8</groupId>
430                                                 <artifactId>docker-maven-plugin</artifactId>
431                                                 <configuration>
432                                                         <apiVersion>1.23</apiVersion>
433                                                         <registry>nexus3.onap.org:10001</registry>
434                                                         <authConfig>
435                                                                 <pull>
436                                                                         <username>docker</username>
437                                                                         <password>docker</password>
438                                                                 </pull>
439                                                         </authConfig>
440                                                         <images>
441
442                                                                 <!-- Build sanity image -->
443                                                                 <image>
444                                                                         <name>onap/sdc-ui-tests</name>
445                                                                         <alias>sdc-ui-sanity</alias>
446                                                                         <build>
447                                                                                 <cleanup>try</cleanup>
448                                                                                 <dockerFileDir>${project.basedir}/sdc-ui-tests</dockerFileDir>
449                                                                                 <tags>
450                                                                                         <tag>${docker.tag}</tag>
451                                                                                         <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</tag>
452                                                                                 </tags>
453                                                                         </build>
454                                                                 </image>
455
456                                                         </images>
457                                                 </configuration>
458                                                 <executions>
459                                                         <execution>
460                                                                 <id>clean-images</id>
461                                                                 <phase>pre-clean</phase>
462                                                                 <goals>
463                                                                         <goal>remove</goal>
464                                                                 </goals>
465                                                                 <configuration>
466                                                                         <removeAll>true</removeAll>
467                                                                         <image>onap/sdc-ui-tests</image>
468                                                                 </configuration>
469                                                         </execution>
470
471                                                         <execution>
472                                                                 <id>generate-images</id>
473                                                                 <phase>install</phase>
474                                                                 <goals>
475                                                                         <goal>build</goal>
476                                                                 </goals>
477                                                         </execution>
478
479                                                         <execution>
480                                                                 <id>push-images</id>
481                                                                 <phase>deploy</phase>
482                                                                 <goals>
483                                                                         <goal>push</goal>
484                                                                 </goals>
485                                                                 <configuration>
486                                                                         <image>onap/sdc-ui-tests</image>
487                                                                 </configuration>
488                                                         </execution>
489                                                 </executions>
490                                         </plugin>
491                                 </plugins>
492                         </build>
493                 </profile>
494         </profiles>
495 </project>