blob: 56c8de92e2d6b544a9e5ee54ba2cb1a51fb1f6a5 [file] [log] [blame]
vasraza36531c2020-04-29 18:39:35 +01001<project xmlns="http://maven.apache.org/POM/4.0.0"
2 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3 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 +03004
vasraza36531c2020-04-29 18:39:35 +01005 <modelVersion>4.0.0</modelVersion>
Michael Landob3d48982017-06-11 14:22:02 +03006
vasraza36531c2020-04-29 18:39:35 +01007 <artifactId>ui-ci</artifactId>
8 <description>Selenium tests for the SDnC Application</description>
Michael Landob3d48982017-06-11 14:22:02 +03009
vasraza36531c2020-04-29 18:39:35 +010010 <parent>
11 <groupId>org.openecomp.sdc</groupId>
12 <artifactId>sdc-main</artifactId>
13 <version>1.7.0-SNAPSHOT</version>
14 </parent>
Michael Landoa5445102018-03-04 14:53:33 +020015
vasraza36531c2020-04-29 18:39:35 +010016 <properties>
17 <sonar.skip>true</sonar.skip>
18 <jacoco.skip>true</jacoco.skip>
19 <aspectj.version>1.8.10</aspectj.version>
20 </properties>
Michael Landob3d48982017-06-11 14:22:02 +030021
vasraza36531c2020-04-29 18:39:35 +010022 <dependencies>
23 <!--JUnit Jupiter Engine to depend on the JUnit5 engine and JUnit 5 API -->
24 <dependency>
25 <groupId>org.junit.jupiter</groupId>
26 <artifactId>junit-jupiter-engine</artifactId>
27 <version>${junitJupiter.version}</version>
28 <scope>test</scope>
29 </dependency>
30 <!--JUnit Jupiter Engine to depend on the JUnit4 engine and JUnit 4 API -->
31 <dependency>
32 <groupId>org.junit.vintage</groupId>
33 <artifactId>junit-vintage-engine</artifactId>
34 <version>${junitJupiter.version}</version>
35 </dependency>
Michael Landoa5445102018-03-04 14:53:33 +020036
vasraza36531c2020-04-29 18:39:35 +010037 <dependency>
38 <groupId>com.google.guava</groupId>
39 <artifactId>guava</artifactId>
40 <version>${guava.version}</version>
41 <scope>compile</scope>
42 </dependency>
Yuli Shlosbergd4929e32018-10-02 17:51:22 +030043
vasraza36531c2020-04-29 18:39:35 +010044 <dependency>
45 <groupId>org.seleniumhq.selenium</groupId>
46 <artifactId>selenium-java</artifactId>
Yuli Shlosbergd4929e32018-10-02 17:51:22 +030047
vasraza36531c2020-04-29 18:39:35 +010048 <version>2.53.1</version>
49 <exclusions>
50 <exclusion>
51 <groupId>org.eclipse.jetty</groupId>
52 <artifactId>jetty-util</artifactId>
53 </exclusion>
54 <exclusion>
55 <groupId>io.netty</groupId>
56 <artifactId>netty</artifactId>
57 </exclusion>
58 </exclusions>
59 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +030060
vasraza36531c2020-04-29 18:39:35 +010061 <dependency>
62 <groupId>org.eclipse.jetty</groupId>
63 <artifactId>jetty-util</artifactId>
64 <version>${jetty.version}</version>
65 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +030066
vasraza36531c2020-04-29 18:39:35 +010067 <dependency>
68 <groupId>org.seleniumhq.selenium</groupId>
69 <artifactId>selenium-server</artifactId>
70 <version>2.53.1</version>
71 <scope>runtime</scope>
72 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +030073
vasraza36531c2020-04-29 18:39:35 +010074 <dependency>
75 <groupId>commons-net</groupId>
76 <artifactId>commons-net</artifactId>
77 <version>3.3</version>
78 <scope>compile</scope>
79 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +030080
vasraza36531c2020-04-29 18:39:35 +010081 <dependency>
82 <groupId>commons-io</groupId>
83 <artifactId>commons-io</artifactId>
84 <version>2.4</version>
85 <scope>compile</scope>
86 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +030087
vasraza36531c2020-04-29 18:39:35 +010088 <dependency>
89 <groupId>org.openecomp.sdc</groupId>
90 <artifactId>test-apis-ci</artifactId>
91 <version>${project.version}</version>
92 <scope>compile</scope>
93 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +030094
vasraza36531c2020-04-29 18:39:35 +010095 <dependency>
96 <groupId>org.yaml</groupId>
97 <artifactId>snakeyaml</artifactId>
98 <version>${snakeyaml.version}</version>
99 <scope>compile</scope>
100 </dependency>
101 <dependency>
102 <groupId>org.functionaljava</groupId>
103 <artifactId>functionaljava</artifactId>
104 <version>${functionaljava.version}</version>
105 <scope>compile</scope>
106 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300107
vasraza36531c2020-04-29 18:39:35 +0100108 <dependency>
109 <groupId>com.google.code.gson</groupId>
110 <artifactId>gson</artifactId>
111 <version>${gson.version}</version>
112 <scope>compile</scope>
113 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300114
vasraza36531c2020-04-29 18:39:35 +0100115 <!-- http client -->
116 <dependency>
117 <groupId>org.apache.httpcomponents</groupId>
118 <artifactId>httpclient</artifactId>
119 <version>${httpclient.version}</version>
120 <scope>compile</scope>
121 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300122
vasraza36531c2020-04-29 18:39:35 +0100123 <dependency>
124 <groupId>org.apache.httpcomponents</groupId>
125 <artifactId>httpmime</artifactId>
126 <version>${httpclient.version}</version>
127 <scope>compile</scope>
128 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300129
vasraza36531c2020-04-29 18:39:35 +0100130 <dependency>
131 <groupId>commons-logging</groupId>
132 <artifactId>commons-logging</artifactId>
133 <version>${commons-logging}</version>
134 <scope>compile</scope>
135 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300136
vasraza36531c2020-04-29 18:39:35 +0100137 <dependency>
138 <groupId>org.slf4j</groupId>
139 <artifactId>slf4j-api</artifactId>
140 <version>${slf4j-api.version}</version>
141 <scope>compile</scope>
142 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300143
vasraza36531c2020-04-29 18:39:35 +0100144 <dependency>
145 <groupId>ch.qos.logback</groupId>
146 <artifactId>logback-classic</artifactId>
147 <version>${logback.version}</version>
148 <scope>compile</scope>
149 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300150
vasraza36531c2020-04-29 18:39:35 +0100151 <dependency>
152 <groupId>ch.qos.logback</groupId>
153 <artifactId>logback-core</artifactId>
154 <version>${logback.version}</version>
155 <scope>compile</scope>
156 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300157
vasraza36531c2020-04-29 18:39:35 +0100158 <!-- http core -->
159 <dependency>
160 <groupId>org.apache.httpcomponents</groupId>
161 <artifactId>httpcore</artifactId>
162 <version>${httpcore.version}</version>
163 <scope>compile</scope>
164 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300165
vasraza36531c2020-04-29 18:39:35 +0100166 <dependency>
167 <groupId>org.codehaus.jackson</groupId>
168 <artifactId>jackson-mapper-asl</artifactId>
169 <version>1.9.2</version>
170 <scope>compile</scope>
171 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300172
vasraza36531c2020-04-29 18:39:35 +0100173 <dependency>
174 <groupId>com.fasterxml.jackson.core</groupId>
175 <artifactId>jackson-databind</artifactId>
176 <version>${jackson.version}</version>
177 <scope>compile</scope>
178 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300179
vasraza36531c2020-04-29 18:39:35 +0100180 <dependency>
181 <groupId>org.openecomp.sdc.sdc-distribution-client</groupId>
182 <artifactId>sdc-distribution-client</artifactId>
183 <version>1.2.3</version>
184 <scope>compile</scope>
185 </dependency>
andre.schmid2e6d1bb2019-11-21 13:23:07 +0000186
vasraza36531c2020-04-29 18:39:35 +0100187 <dependency>
188 <groupId>org.hamcrest</groupId>
189 <artifactId>hamcrest</artifactId>
190 <version>${hamcrest.version}</version>
191 <scope>compile</scope>
192 </dependency>
andre.schmid2e6d1bb2019-11-21 13:23:07 +0000193
vasraza36531c2020-04-29 18:39:35 +0100194 <dependency>
195 <groupId>org.hamcrest</groupId>
196 <artifactId>hamcrest-library</artifactId>
197 <version>${hamcrest.version}</version>
198 <scope>compile</scope>
199 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300200
vasraza36531c2020-04-29 18:39:35 +0100201 <dependency>
202 <groupId>org.junit.jupiter</groupId>
203 <artifactId>junit-jupiter</artifactId>
204 <version>${junitJupiter.version}</version>
205 <scope>test</scope>
206 </dependency>
Baumel, Dvir (db384r)3e879322020-03-23 16:21:05 +0200207
vasraza36531c2020-04-29 18:39:35 +0100208 <dependency>
209 <groupId>org.mockito</groupId>
210 <artifactId>mockito-junit-jupiter</artifactId>
211 <version>${mockitoJupiter.version}</version>
212 <scope>test</scope>
213 </dependency>
Baumel, Dvir (db384r)3e879322020-03-23 16:21:05 +0200214
vasraza36531c2020-04-29 18:39:35 +0100215 <dependency>
216 <groupId>org.testng</groupId>
217 <artifactId>testng</artifactId>
218 <version>6.11</version>
219 <scope>compile</scope>
220 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300221
vasraza36531c2020-04-29 18:39:35 +0100222 <dependency>
223 <groupId>xml-apis</groupId>
224 <artifactId>xml-apis</artifactId>
225 <version>1.4.01</version>
226 <scope>compile</scope>
227 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300228
vasraza36531c2020-04-29 18:39:35 +0100229 <dependency>
230 <groupId>com.googlecode.json-simple</groupId>
231 <artifactId>json-simple</artifactId>
232 <version>${json-simple.version}</version>
233 <scope>compile</scope>
234 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300235
vasraza36531c2020-04-29 18:39:35 +0100236 <dependency>
237 <groupId>org.apache.commons</groupId>
238 <artifactId>commons-jci-core</artifactId>
239 <version>${commons-jci-core.version}</version>
240 <scope>compile</scope>
241 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300242
vasraza36531c2020-04-29 18:39:35 +0100243 <dependency>
244 <groupId>commons-codec</groupId>
245 <artifactId>commons-codec</artifactId>
246 <version>${commons-codec}</version>
247 <scope>compile</scope>
248 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300249
vasraza36531c2020-04-29 18:39:35 +0100250 <dependency>
251 <groupId>com.aventstack</groupId>
252 <artifactId>extentreports</artifactId>
253 <version>3.0.6</version>
254 <scope>compile</scope>
255 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300256
vasraza36531c2020-04-29 18:39:35 +0100257 <dependency>
258 <groupId>net.lightbody.bmp</groupId>
259 <!-- To use the legacy, Jetty-based implementation, change the artifactId
260 to browsermob-core -->
261 <artifactId>browsermob-core</artifactId>
262 <version>2.1.4</version>
263 </dependency>
Michael Landoa5445102018-03-04 14:53:33 +0200264
vasraza36531c2020-04-29 18:39:35 +0100265 <dependency>
266 <groupId>com.github.markusbernhardt</groupId>
267 <artifactId>proxy-vole</artifactId>
268 <version>1.0.2</version>
269 </dependency>
Michael Landoa5445102018-03-04 14:53:33 +0200270
vasraza36531c2020-04-29 18:39:35 +0100271 <dependency>
272 <groupId>com.paulhammant</groupId>
273 <artifactId>ngwebdriver</artifactId>
274 <version>0.9.7</version>
275 <scope>compile</scope>
276 </dependency>
Michael Landoa5445102018-03-04 14:53:33 +0200277
vasraza36531c2020-04-29 18:39:35 +0100278 <dependency>
279 <groupId>com.google.inject</groupId>
280 <artifactId>guice</artifactId>
281 <version>4.1.0</version>
282 </dependency>
Michael Lando5b593492018-07-29 16:13:45 +0300283
vasraza36531c2020-04-29 18:39:35 +0100284 <dependency>
285 <groupId>org.codehaus.groovy</groupId>
286 <artifactId>groovy</artifactId>
287 </dependency>
Tal Gitelmane0199372018-09-18 11:57:53 +0300288
vasraza36531c2020-04-29 18:39:35 +0100289 <dependency>
290 <groupId>io.netty</groupId>
291 <artifactId>netty-handler</artifactId>
292 </dependency>
Yuli Shlosberg79e36272018-10-02 14:45:26 +0300293
vasraza36531c2020-04-29 18:39:35 +0100294 </dependencies>
Michael Landob3d48982017-06-11 14:22:02 +0300295
vasraza36531c2020-04-29 18:39:35 +0100296 <build>
Yuli Shlosbergf59a2252018-03-21 11:14:08 +0200297
vasraza36531c2020-04-29 18:39:35 +0100298 <plugins>
Michael Lando5b593492018-07-29 16:13:45 +0300299
vasraza36531c2020-04-29 18:39:35 +0100300 <plugin>
301 <groupId>org.apache.maven.plugins</groupId>
302 <artifactId>maven-clean-plugin</artifactId>
303 <executions>
304 <execution>
305 <id>clean.tosca.chef.os.folder</id>
306 <phase>clean</phase>
307 <goals>
308 <goal>clean</goal>
309 </goals>
310 <configuration>
311 <filesets>
Yuli Shlosbergf59a2252018-03-21 11:14:08 +0200312
vasraza36531c2020-04-29 18:39:35 +0100313 <!-- Sanity jar -->
314 <fileset>
315 <directory>${project.basedir}/sdc-ui-tests</directory>
316 <followSymlinks>false</followSymlinks>
317 <includes>
318 <include>*.jar</include>
319 </includes>
320 </fileset>
321 <!-- Sanity test suites -->
322 <fileset>
323 <directory>
324 ${project.basedir}/sdc-ui-tests/chef-repo/cookbooks/sdc-ui-tests/files/default/testSuites
325 </directory>
326 <followSymlinks>false</followSymlinks>
327 </fileset>
328 <!-- Package files -->
329 <fileset>
330 <directory>
331 ${project.basedir}/sdc-ui-tests/chef-repo/cookbooks/sdc-ui-tests/files/default/Files
332 </directory>
333 <followSymlinks>false</followSymlinks>
334 </fileset>
335 </filesets>
336 </configuration>
337 </execution>
338 </executions>
339 </plugin>
340 <plugin>
341 <groupId>org.apache.maven.plugins</groupId>
342 <artifactId>maven-deploy-plugin</artifactId>
343 <configuration>
344 <skip>true</skip>
345 </configuration>
346 </plugin>
347 <plugin>
348 <groupId>org.apache.maven.plugins</groupId>
349 <artifactId>maven-assembly-plugin</artifactId>
350 <executions>
351 <execution>
352 <id>create.jar.with.dependencies</id>
353 <phase>package</phase>
354 <goals>
355 <goal>single</goal>
356 </goals>
357 <configuration>
358 <archive>
359 <manifest>
360 <mainClass>org.openecomp.sdc.ci.tests.execute.setup.SetupCDTest</mainClass>
361 </manifest>
362 </archive>
363 <descriptorRefs>
364 <descriptorRef>jar-with-dependencies</descriptorRef>
365 </descriptorRefs>
366 </configuration>
367 </execution>
368 </executions>
369 </plugin>
370 <plugin>
371 <groupId>com.github.sylvainlaurent.maven</groupId>
372 <artifactId>yaml-json-validator-maven-plugin</artifactId>
373 <executions>
374 <execution>
375 <id>validate</id>
376 <phase>validate</phase>
377 <goals>
378 <goal>validate</goal>
379 </goals>
380 <configuration>
381 <validationSets>
382 <validationSet>
383 <includes>
384 <include>src/main/resources/**/*.y*ml</include>
385 <include>src/test/resources/**/*.y*ml</include>
386 </includes>
387 </validationSet>
388 <validationSet>
389 <includes>
390 <include>src/main/resources/**/*.json</include>
391 <include>src/test/resources/**/*.json</include>
392 </includes>
393 </validationSet>
394 </validationSets>
395 </configuration>
396 </execution>
397 </executions>
398 </plugin>
399 </plugins>
400 </build>
401 <profiles>
402 <profile>
403 <id>docker</id>
404 <activation>
405 <activeByDefault>false</activeByDefault>
406 </activation>
407 <build>
408 <plugins>
409 <plugin>
410 <groupId>org.apache.maven.plugins</groupId>
411 <artifactId>maven-resources-plugin</artifactId>
412 <executions>
413 <execution>
414 <id>copy-tests-suites</id>
415 <phase>verify</phase>
416 <goals>
417 <goal>copy-resources</goal>
418 </goals>
419 <configuration>
420 <outputDirectory>
421 sdc-ui-tests/chef-repo/cookbooks/sdc-ui-tests/files/default/testSuites
422 </outputDirectory>
423 <resources>
424 <resource>
425 <directory>${project.parent.basedir}/ui-ci/src/main/resources/ci/testSuites
426 </directory>
427 <includes>
428 <include>*</include>
429 </includes>
430 </resource>
431 </resources>
432 </configuration>
433 </execution>
Yuli Shlosbergf59a2252018-03-21 11:14:08 +0200434
vasraza36531c2020-04-29 18:39:35 +0100435 <execution>
436 <id>copy-csar-files</id>
437 <phase>verify</phase>
438 <goals>
439 <goal>copy-resources</goal>
440 </goals>
441 <configuration>
442 <outputDirectory>
443 sdc-ui-tests/chef-repo/cookbooks/sdc-ui-tests/files/default/Files
444 </outputDirectory>
445 <resources>
446 <resource>
447 <directory>
448 ${project.parent.basedir}/test-apis-ci/sdc-api-tests/chef-repo/cookbooks/sdc-api-tests/files/default/Files
449 </directory>
450 <filtering>false</filtering>
451 <includes>
452 <include>VNFs/*</include>
453 <include>PNFs/*</include>
454 </includes>
455 </resource>
456 </resources>
457 </configuration>
458 </execution>
Yuli Shlosberg17889832018-04-08 14:03:29 +0300459
vasraza36531c2020-04-29 18:39:35 +0100460 <execution>
461 <id>copy-resources-ui-ci</id>
462 <phase>verify</phase>
463 <goals>
464 <goal>copy-resources</goal>
465 </goals>
466 <configuration>
467 <outputDirectory>${basedir}/sdc-ui-tests</outputDirectory>
468 <resources>
469 <resource>
470 <directory>${project.parent.basedir}/ui-ci/target</directory>
471 <includes>
472 <include>ui-ci-${project.version}-jar-with-dependencies.jar</include>
473 </includes>
474 </resource>
475 </resources>
476 </configuration>
477 </execution>
478 </executions>
479 </plugin>
Yuli Shlosbergf59a2252018-03-21 11:14:08 +0200480
vasraza36531c2020-04-29 18:39:35 +0100481 <plugin>
482 <groupId>io.fabric8</groupId>
483 <artifactId>docker-maven-plugin</artifactId>
484 <configuration>
485 <apiVersion>1.23</apiVersion>
486 <registry>nexus3.onap.org:10001</registry>
487 <authConfig>
488 <pull>
489 <username>docker</username>
490 <password>docker</password>
491 </pull>
492 </authConfig>
493 <images>
Yuli Shlosbergf59a2252018-03-21 11:14:08 +0200494
vasraza36531c2020-04-29 18:39:35 +0100495 <!-- Build sanity image -->
496 <image>
497 <name>onap/sdc-ui-tests</name>
498 <alias>sdc-ui-sanity</alias>
499 <build>
500 <cleanup>try</cleanup>
501 <dockerFileDir>${project.basedir}/sdc-ui-tests</dockerFileDir>
502 <tags>
503 <tag>${docker.tag}</tag>
504 <tag>
505 ${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest
506 </tag>
507 </tags>
508 </build>
509 </image>
Yuli Shlosbergf59a2252018-03-21 11:14:08 +0200510
vasraza36531c2020-04-29 18:39:35 +0100511 </images>
512 </configuration>
513 <executions>
514 <execution>
515 <id>clean-images</id>
516 <phase>pre-clean</phase>
517 <goals>
518 <goal>remove</goal>
519 </goals>
520 <configuration>
521 <removeAll>true</removeAll>
522 <image>onap/sdc-ui-tests</image>
523 </configuration>
524 </execution>
Yuli Shlosbergf59a2252018-03-21 11:14:08 +0200525
vasraza36531c2020-04-29 18:39:35 +0100526 <execution>
527 <id>generate-images</id>
528 <phase>install</phase>
529 <goals>
530 <goal>build</goal>
531 </goals>
532 </execution>
Yuli Shlosbergf59a2252018-03-21 11:14:08 +0200533
vasraza36531c2020-04-29 18:39:35 +0100534 <execution>
535 <id>push-images</id>
536 <phase>deploy</phase>
537 <goals>
538 <goal>push</goal>
539 </goals>
540 <configuration>
541 <image>onap/sdc-ui-tests</image>
542 </configuration>
543 </execution>
544 </executions>
545 </plugin>
546 </plugins>
547 </build>
548 </profile>
549 </profiles>
Michael Landob3d48982017-06-11 14:22:02 +0300550</project>