blob: f34127401c834b3296a16337ff21ba55b37c134b [file] [log] [blame]
Michael Landob3d48982017-06-11 14:22:02 +03001<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
shrikantawachar0ebace52018-04-09 13:03:56 +05302 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
Michael Landob3d48982017-06-11 14:22:02 +03003
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>
Michael Lando0ad3c802017-09-19 16:32:59 +030012 <version>1.2.0-SNAPSHOT</version>
Michael Landob3d48982017-06-11 14:22:02 +030013 </parent>
Michael Landoa5445102018-03-04 14:53:33 +020014
Michael Lando660b57d2017-10-11 09:45:53 +030015 <properties>
Gitelman, Tal (tg851x)e482ae42018-03-11 19:37:06 +020016 <sonar.skip>true</sonar.skip>
Tal Gitelman51d50f02017-12-10 18:55:03 +020017 <jacoco.skip>true</jacoco.skip>
Michael Landoa5445102018-03-04 14:53:33 +020018 <aspectj.version>1.8.10</aspectj.version>
Michael Lando660b57d2017-10-11 09:45:53 +030019 </properties>
Michael Landob3d48982017-06-11 14:22:02 +030020
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>
Michael Landoa5445102018-03-04 14:53:33 +020028
Michael Landob3d48982017-06-11 14:22:02 +030029 <dependency>
30 <groupId>org.seleniumhq.selenium</groupId>
31 <artifactId>selenium-java</artifactId>
32 <version>2.53.1</version>
33 </dependency>
34
35 <dependency>
36 <groupId>org.seleniumhq.selenium</groupId>
37 <artifactId>selenium-server</artifactId>
38 <version>2.53.1</version>
39 <scope>runtime</scope>
40 </dependency>
41
42 <dependency>
43 <groupId>commons-net</groupId>
44 <artifactId>commons-net</artifactId>
45 <version>3.3</version>
46 <scope>compile</scope>
47 </dependency>
48
49 <dependency>
50 <groupId>commons-io</groupId>
51 <artifactId>commons-io</artifactId>
52 <version>2.4</version>
53 <scope>compile</scope>
54 </dependency>
55
56 <dependency>
57 <groupId>org.openecomp.sdc</groupId>
58 <artifactId>test-apis-ci</artifactId>
59 <version>${project.version}</version>
Michael Landob3d48982017-06-11 14:22:02 +030060 <scope>compile</scope>
61 </dependency>
62
63 <dependency>
64 <groupId>org.yaml</groupId>
65 <artifactId>snakeyaml</artifactId>
66 <version>${snakeyaml.version}</version>
67 <scope>compile</scope>
68 </dependency>
Michael Landoa5445102018-03-04 14:53:33 +020069 <dependency>
Michael Landob3d48982017-06-11 14:22:02 +030070 <groupId>org.functionaljava</groupId>
71 <artifactId>functionaljava</artifactId>
72 <version>${functionaljava.version}</version>
73 <scope>compile</scope>
74 </dependency>
75
76 <dependency>
77 <groupId>com.google.code.gson</groupId>
78 <artifactId>gson</artifactId>
79 <version>${gson.version}</version>
80 <scope>compile</scope>
81 </dependency>
82
83 <!-- http client -->
84 <dependency>
85 <groupId>org.apache.httpcomponents</groupId>
86 <artifactId>httpclient</artifactId>
Michael Landoa5445102018-03-04 14:53:33 +020087 <version>${httpclient.version}</version>
Michael Landob3d48982017-06-11 14:22:02 +030088 <scope>compile</scope>
89 </dependency>
90
91 <dependency>
92 <groupId>org.apache.httpcomponents</groupId>
93 <artifactId>httpmime</artifactId>
Michael Landoa5445102018-03-04 14:53:33 +020094 <version>${httpclient.version}</version>
Michael Landob3d48982017-06-11 14:22:02 +030095 <scope>compile</scope>
96 </dependency>
97
98 <dependency>
99 <groupId>commons-logging</groupId>
100 <artifactId>commons-logging</artifactId>
Michael Landoa5445102018-03-04 14:53:33 +0200101 <version>${commons-logging}</version>
Michael Landob3d48982017-06-11 14:22:02 +0300102 <scope>compile</scope>
103 </dependency>
104
105 <dependency>
106 <groupId>org.slf4j</groupId>
107 <artifactId>slf4j-api</artifactId>
Michael Landoa5445102018-03-04 14:53:33 +0200108 <version>${slf4j-api.version}</version>
Michael Landob3d48982017-06-11 14:22:02 +0300109 <scope>compile</scope>
110 </dependency>
111
112 <dependency>
113 <groupId>ch.qos.logback</groupId>
114 <artifactId>logback-classic</artifactId>
Michael Landoa5445102018-03-04 14:53:33 +0200115 <version>${logback.version}</version>
Michael Landob3d48982017-06-11 14:22:02 +0300116 <scope>compile</scope>
117 </dependency>
118
119 <dependency>
120 <groupId>ch.qos.logback</groupId>
121 <artifactId>logback-core</artifactId>
Michael Landoa5445102018-03-04 14:53:33 +0200122 <version>${logback.version}</version>
Michael Landob3d48982017-06-11 14:22:02 +0300123 <scope>compile</scope>
124 </dependency>
125
126 <!-- http core -->
127 <dependency>
128 <groupId>org.apache.httpcomponents</groupId>
129 <artifactId>httpcore</artifactId>
130 <version>${httpcore.version}</version>
131 <scope>compile</scope>
132 </dependency>
133
134 <!-- TITAN -->
135 <dependency>
136 <groupId>com.thinkaurelius.titan</groupId>
137 <artifactId>titan-core</artifactId>
138 <version>${titan.version}</version>
139 <scope>compile</scope>
140 </dependency>
141
142 <dependency>
Michael Landoc7916a42018-03-20 12:11:07 +0200143 <groupId>org.onap.sdc.sdc-titan-cassandra</groupId>
144 <artifactId>sdc-titan-cassandra</artifactId>
145 <version>${sdc.titan.version}</version>
Michael Landob3d48982017-06-11 14:22:02 +0300146 <scope>compile</scope>
147 </dependency>
148
149 <dependency>
150 <groupId>org.codehaus.jackson</groupId>
151 <artifactId>jackson-mapper-asl</artifactId>
152 <version>1.9.2</version>
153 <scope>compile</scope>
154 </dependency>
155
156 <dependency>
157 <groupId>com.fasterxml.jackson.core</groupId>
158 <artifactId>jackson-databind</artifactId>
Gitelman, Tal (tg851x)483c3d92018-03-12 18:41:15 +0200159 <version>${jackson.version}</version>
Michael Landob3d48982017-06-11 14:22:02 +0300160 <scope>compile</scope>
161 </dependency>
162
163 <dependency>
164 <groupId>com.fasterxml.jackson.core</groupId>
165 <artifactId>jackson-core</artifactId>
Gitelman, Tal (tg851x)483c3d92018-03-12 18:41:15 +0200166 <version>${jackson.version}</version>
Michael Landob3d48982017-06-11 14:22:02 +0300167 <scope>compile</scope>
168 </dependency>
Michael Landoa5445102018-03-04 14:53:33 +0200169
Michael Landob3d48982017-06-11 14:22:02 +0300170 <dependency>
Michael Landoa5445102018-03-04 14:53:33 +0200171 <groupId>com.fasterxml.jackson.core</groupId>
172 <artifactId>jackson-annotations</artifactId>
Michael Landob3d48982017-06-11 14:22:02 +0300173 <version>${jackson.annotations.version}</version>
Michael Landoa5445102018-03-04 14:53:33 +0200174 <scope>compile</scope>
175 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300176
177 <dependency>
178 <groupId>org.openecomp.sdc.sdc-distribution-client</groupId>
179 <artifactId>sdc-distribution-client</artifactId>
Michael Landoa5445102018-03-04 14:53:33 +0200180 <version>1.2.3</version>
Michael Landob3d48982017-06-11 14:22:02 +0300181 <scope>compile</scope>
182 </dependency>
183
184 <dependency>
185 <groupId>junit</groupId>
186 <artifactId>junit</artifactId>
187 <version>${junit.version}</version>
188 <scope>compile</scope>
189 </dependency>
190
191 <dependency>
192 <groupId>org.testng</groupId>
193 <artifactId>testng</artifactId>
Michael Landoa5445102018-03-04 14:53:33 +0200194 <version>6.11</version>
Michael Landob3d48982017-06-11 14:22:02 +0300195 <scope>compile</scope>
196 </dependency>
197
198 <dependency>
199 <groupId>xml-apis</groupId>
200 <artifactId>xml-apis</artifactId>
201 <version>1.4.01</version>
202 <scope>compile</scope>
203 </dependency>
204
205 <dependency>
206 <groupId>com.googlecode.json-simple</groupId>
207 <artifactId>json-simple</artifactId>
208 <version>${json-simple.version}</version>
209 <scope>compile</scope>
210 </dependency>
211
212 <dependency>
213 <groupId>org.apache.commons</groupId>
214 <artifactId>commons-jci-core</artifactId>
215 <version>${commons-jci-core.version}</version>
216 <scope>compile</scope>
217 </dependency>
218
219 <dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300220 <groupId>commons-codec</groupId>
221 <artifactId>commons-codec</artifactId>
Michael Landoa5445102018-03-04 14:53:33 +0200222 <version>${commons-codec}</version>
Michael Landob3d48982017-06-11 14:22:02 +0300223 <scope>compile</scope>
224 </dependency>
225
226 <dependency>
Michael Landoa5445102018-03-04 14:53:33 +0200227 <groupId>com.aventstack</groupId>
228 <artifactId>extentreports</artifactId>
229 <version>3.0.6</version>
230 <scope>compile</scope>
Michael Landob3d48982017-06-11 14:22:02 +0300231 </dependency>
232
233 <dependency>
Michael Landoa5445102018-03-04 14:53:33 +0200234 <groupId>net.lightbody.bmp</groupId>
shrikantawachar0ebace52018-04-09 13:03:56 +0530235 <!-- To use the legacy, Jetty-based implementation, change the artifactId
Michael Landoa5445102018-03-04 14:53:33 +0200236 to browsermob-core -->
237 <artifactId>browsermob-core</artifactId>
238 <version>2.1.4</version>
239 </dependency>
240
241 <dependency>
242 <groupId>com.github.markusbernhardt</groupId>
243 <artifactId>proxy-vole</artifactId>
244 <version>1.0.2</version>
245 </dependency>
246
247 <dependency>
248 <groupId>com.paulhammant</groupId>
249 <artifactId>ngwebdriver</artifactId>
250 <version>0.9.7</version>
251 <scope>compile</scope>
252 </dependency>
253
254 <dependency>
255 <groupId>com.google.inject</groupId>
256 <artifactId>guice</artifactId>
257 <version>4.1.0</version>
258 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300259 </dependencies>
260
261 <build>
Yuli Shlosbergf59a2252018-03-21 11:14:08 +0200262
Michael Landob3d48982017-06-11 14:22:02 +0300263 <plugins>
Michael Landob3d48982017-06-11 14:22:02 +0300264 <plugin>
Yuli Shlosbergf59a2252018-03-21 11:14:08 +0200265 <artifactId>maven-clean-plugin</artifactId>
266 <version>3.0.0</version>
267 <executions>
268 <execution>
269 <id>clean.tosca.chef.os.folder</id>
270 <phase>clean</phase>
271 <goals>
272 <goal>clean</goal>
273 </goals>
274 <configuration>
275 <filesets>
276
277 <!-- Sanity jar -->
278 <fileset>
279 <directory>${project.basedir}/sdc-ui-tests</directory>
280 <followSymlinks>false</followSymlinks>
281 <includes>
282 <include>*.jar</include>
283 </includes>
284 </fileset>
285 <!-- Sanity test suites -->
286 <fileset>
287 <directory>${project.basedir}/sdc-ui-tests/chef-repo/cookbooks/sdc-ui-tests/files/default/testSuites</directory>
288 <followSymlinks>false</followSymlinks>
289 </fileset>
290 </filesets>
291 </configuration>
292 </execution>
293 </executions>
294 </plugin>
295 <plugin>
Michael Landob3d48982017-06-11 14:22:02 +0300296 <groupId>org.apache.maven.plugins</groupId>
297 <artifactId>maven-deploy-plugin</artifactId>
298 <version>2.7</version>
299 <configuration>
300 <skip>true</skip>
301 </configuration>
302 </plugin>
303
304 <!-- ============================================= -->
305 <!-- Create the JAR file with its dependencies -->
306 <!-- ============================================= -->
307 <plugin>
308 <groupId>org.apache.maven.plugins</groupId>
shrikantawachar0ebace52018-04-09 13:03:56 +0530309 <artifactId>maven-dependency-plugin</artifactId>
310 <version>3.1.0</version>
311 <executions>
312 <execution>
313 <id>unpack-dependencies</id>
314 <phase>package</phase>
315 <goals>
316 <goal>unpack-dependencies</goal>
317 </goals>
318 <configuration>
319 <silent>true</silent>
320 <outputDirectory>${project.build.directory}/classes</outputDirectory>
321 <overWriteReleases>true</overWriteReleases>
322 <overWriteSnapshots>true</overWriteSnapshots>
323 <overWriteIfNewer>true</overWriteIfNewer>
324 </configuration>
325 </execution>
326 </executions>
327 </plugin>
328 <plugin>
329 <groupId>org.apache.maven.plugins</groupId>
330 <artifactId>maven-jar-plugin</artifactId>
331 <version>3.0.2</version>
332 <executions>
333 <execution>
334 <phase>package</phase>
335 <goals>
336 <goal>jar</goal>
337 </goals>
338 <configuration>
339 <archive>
340 <manifest>
341 <addClasspath>false</addClasspath>
342 <mainClass>org.openecomp.sdc.ci.tests.execute.setup.SetupCDTest</mainClass>
343 </manifest>
344 </archive>
345 <classifier>jar-with-dependencies</classifier>
346 </configuration>
347 </execution>
348 </executions>
349 </plugin>
350 <!--plugin>
351 <groupId>org.apache.maven.plugins</groupId>
Michael Landob3d48982017-06-11 14:22:02 +0300352 <artifactId>maven-assembly-plugin</artifactId>
Michael Landob3d48982017-06-11 14:22:02 +0300353 <executions>
354 <execution>
355 <id>create.jar.with.dependencies</id>
356 <phase>package</phase>
357 <goals>
358 <goal>single</goal>
359 </goals>
360 <configuration>
361 <archive>
362 <manifest>
363 <mainClass>org.openecomp.sdc.ci.tests.execute.setup.SetupCDTest</mainClass>
364 </manifest>
365 </archive>
366 <descriptorRefs>
367 <descriptorRef>jar-with-dependencies</descriptorRef>
368 </descriptorRefs>
369 </configuration>
370 </execution>
371 </executions>
shrikantawachar0ebace52018-04-09 13:03:56 +0530372 </plugin-->
373
Michael Landob3d48982017-06-11 14:22:02 +0300374 </plugins>
375 </build>
Yuli Shlosbergf59a2252018-03-21 11:14:08 +0200376 <profiles>
377 <profile>
378 <id>docker</id>
379 <activation>
380 <activeByDefault>false</activeByDefault>
381 </activation>
382 <build>
383 <plugins>
384 <plugin>
385 <artifactId>maven-resources-plugin</artifactId>
386 <version>3.0.2</version>
387 <executions>
388 <execution>
389 <id>copy-tests-suites</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/testSuites</outputDirectory>
396 <resources>
397 <resource>
398 <directory>${project.parent.basedir}/ui-ci/src/main/resources/ci/testSuites</directory>
399 <includes>
400 <include>*</include>
401 </includes>
402 </resource>
403 </resources>
404 </configuration>
405 </execution>
406
407 <execution>
Yuli Shlosberg17889832018-04-08 14:03:29 +0300408 <id>copy-csar-files</id>
409 <phase>verify</phase>
410 <goals>
411 <goal>copy-resources</goal>
412 </goals>
413 <configuration>
414 <outputDirectory>sdc-ui-tests/chef-repo/cookbooks/sdc-ui-tests/files/default/Files/VNFs</outputDirectory>
415 <resources>
416 <resource>
417 <directory>${project.parent.basedir}/test-apis-ci/sdc-api-tests/chef-repo/cookbooks/sdc-api-tests/files/default/Files/VNFs</directory>
418 <includes>
419 <include>*</include>
420 </includes>
421 </resource>
422 </resources>
423 </configuration>
424 </execution>
425
426 <execution>
Yuli Shlosbergf59a2252018-03-21 11:14:08 +0200427 <id>copy-resources-ui-ci</id>
428 <phase>verify</phase>
429 <goals>
430 <goal>copy-resources</goal>
431 </goals>
432 <configuration>
433 <outputDirectory>${basedir}/sdc-ui-tests</outputDirectory>
434 <resources>
435 <resource>
436 <directory>${project.parent.basedir}/ui-ci/target</directory>
437 <includes>
438 <include>ui-ci-${project.version}-jar-with-dependencies.jar</include>
439 </includes>
440 </resource>
441 </resources>
442 </configuration>
443 </execution>
444 </executions>
445 </plugin>
446
447 <plugin>
448 <groupId>io.fabric8</groupId>
449 <artifactId>docker-maven-plugin</artifactId>
450 <version>${fabric8.version}</version>
451
452 <configuration>
453 <verbose>true</verbose>
454 <apiVersion>1.23</apiVersion>
455 <registry>nexus3.onap.org:10001</registry>
456 <authConfig>
457 <pull>
458 <username>docker</username>
459 <password>docker</password>
460 </pull>
461 </authConfig>
462 <images>
463
464 <!-- Build sanity image -->
465 <image>
466 <name>onap/sdc-ui-tests</name>
467 <alias>sdc-ui-sanity</alias>
468 <build>
469 <cleanup>try</cleanup>
470 <dockerFileDir>${project.basedir}/sdc-ui-tests</dockerFileDir>
471 <tags>
472 <tag>${docker.tag}</tag>
473 <tag>${docker.latest.tag}</tag>
474 <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</tag>
475 </tags>
476 </build>
477 </image>
478
479 </images>
480 </configuration>
481 <executions>
482 <execution>
483 <id>clean-images</id>
484 <phase>pre-clean</phase>
485 <goals>
486 <goal>remove</goal>
487 </goals>
488 <configuration>
489 <removeAll>true</removeAll>
490 <image>onap/sdc-ui-tests</image>
491 </configuration>
492 </execution>
493
494 <execution>
495 <id>generate-images</id>
496 <phase>install</phase>
497 <goals>
498 <goal>build</goal>
499 </goals>
500 </execution>
501
502 <execution>
503 <id>push-images</id>
504 <phase>deploy</phase>
505 <goals>
506 <goal>push</goal>
507 </goals>
508 <configuration>
509 <image>onap/sdc-ui-tests</image>
510 </configuration>
511 </execution>
512 </executions>
513 </plugin>
514 </plugins>
515 </build>
516 </profile>
517 </profiles>
Michael Landob3d48982017-06-11 14:22:02 +0300518</project>