blob: da09985cca141bd42456143652b38005bccc6949 [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>
vasraza1bd2352020-05-06 23:57:53 +010035 <scope>test</scope>
vasraza36531c2020-04-29 18:39:35 +010036 </dependency>
Michael Landoa5445102018-03-04 14:53:33 +020037
vasraza36531c2020-04-29 18:39:35 +010038 <dependency>
39 <groupId>com.google.guava</groupId>
40 <artifactId>guava</artifactId>
41 <version>${guava.version}</version>
42 <scope>compile</scope>
43 </dependency>
Yuli Shlosbergd4929e32018-10-02 17:51:22 +030044
vasraza36531c2020-04-29 18:39:35 +010045 <dependency>
46 <groupId>org.seleniumhq.selenium</groupId>
47 <artifactId>selenium-java</artifactId>
Yuli Shlosbergd4929e32018-10-02 17:51:22 +030048
vasraza36531c2020-04-29 18:39:35 +010049 <version>2.53.1</version>
50 <exclusions>
51 <exclusion>
52 <groupId>org.eclipse.jetty</groupId>
53 <artifactId>jetty-util</artifactId>
54 </exclusion>
55 <exclusion>
56 <groupId>io.netty</groupId>
57 <artifactId>netty</artifactId>
58 </exclusion>
59 </exclusions>
60 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +030061
vasraza36531c2020-04-29 18:39:35 +010062 <dependency>
63 <groupId>org.eclipse.jetty</groupId>
64 <artifactId>jetty-util</artifactId>
65 <version>${jetty.version}</version>
66 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +030067
vasraza36531c2020-04-29 18:39:35 +010068 <dependency>
69 <groupId>org.seleniumhq.selenium</groupId>
70 <artifactId>selenium-server</artifactId>
71 <version>2.53.1</version>
72 <scope>runtime</scope>
73 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +030074
vasraza36531c2020-04-29 18:39:35 +010075 <dependency>
76 <groupId>commons-net</groupId>
77 <artifactId>commons-net</artifactId>
78 <version>3.3</version>
79 <scope>compile</scope>
80 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +030081
vasraza36531c2020-04-29 18:39:35 +010082 <dependency>
83 <groupId>commons-io</groupId>
84 <artifactId>commons-io</artifactId>
85 <version>2.4</version>
86 <scope>compile</scope>
87 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +030088
vasraza36531c2020-04-29 18:39:35 +010089 <dependency>
90 <groupId>org.openecomp.sdc</groupId>
91 <artifactId>test-apis-ci</artifactId>
92 <version>${project.version}</version>
93 <scope>compile</scope>
94 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +030095
vasraza36531c2020-04-29 18:39:35 +010096 <dependency>
97 <groupId>org.yaml</groupId>
98 <artifactId>snakeyaml</artifactId>
99 <version>${snakeyaml.version}</version>
100 <scope>compile</scope>
101 </dependency>
102 <dependency>
103 <groupId>org.functionaljava</groupId>
104 <artifactId>functionaljava</artifactId>
105 <version>${functionaljava.version}</version>
106 <scope>compile</scope>
107 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300108
vasraza36531c2020-04-29 18:39:35 +0100109 <dependency>
110 <groupId>com.google.code.gson</groupId>
111 <artifactId>gson</artifactId>
112 <version>${gson.version}</version>
113 <scope>compile</scope>
114 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300115
vasraza36531c2020-04-29 18:39:35 +0100116 <!-- http client -->
117 <dependency>
118 <groupId>org.apache.httpcomponents</groupId>
119 <artifactId>httpclient</artifactId>
120 <version>${httpclient.version}</version>
121 <scope>compile</scope>
122 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300123
vasraza36531c2020-04-29 18:39:35 +0100124 <dependency>
125 <groupId>org.apache.httpcomponents</groupId>
126 <artifactId>httpmime</artifactId>
127 <version>${httpclient.version}</version>
128 <scope>compile</scope>
129 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300130
vasraza36531c2020-04-29 18:39:35 +0100131 <dependency>
132 <groupId>commons-logging</groupId>
133 <artifactId>commons-logging</artifactId>
134 <version>${commons-logging}</version>
135 <scope>compile</scope>
136 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300137
vasraza36531c2020-04-29 18:39:35 +0100138 <dependency>
139 <groupId>org.slf4j</groupId>
140 <artifactId>slf4j-api</artifactId>
141 <version>${slf4j-api.version}</version>
142 <scope>compile</scope>
143 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300144
vasraza36531c2020-04-29 18:39:35 +0100145 <dependency>
146 <groupId>ch.qos.logback</groupId>
147 <artifactId>logback-classic</artifactId>
148 <version>${logback.version}</version>
149 <scope>compile</scope>
150 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300151
vasraza36531c2020-04-29 18:39:35 +0100152 <dependency>
153 <groupId>ch.qos.logback</groupId>
154 <artifactId>logback-core</artifactId>
155 <version>${logback.version}</version>
156 <scope>compile</scope>
157 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300158
vasraza36531c2020-04-29 18:39:35 +0100159 <!-- http core -->
160 <dependency>
161 <groupId>org.apache.httpcomponents</groupId>
162 <artifactId>httpcore</artifactId>
163 <version>${httpcore.version}</version>
164 <scope>compile</scope>
165 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300166
vasraza36531c2020-04-29 18:39:35 +0100167 <dependency>
168 <groupId>org.codehaus.jackson</groupId>
169 <artifactId>jackson-mapper-asl</artifactId>
170 <version>1.9.2</version>
171 <scope>compile</scope>
172 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300173
vasraza36531c2020-04-29 18:39:35 +0100174 <dependency>
175 <groupId>com.fasterxml.jackson.core</groupId>
176 <artifactId>jackson-databind</artifactId>
177 <version>${jackson.version}</version>
178 <scope>compile</scope>
179 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300180
vasraza36531c2020-04-29 18:39:35 +0100181 <dependency>
182 <groupId>org.openecomp.sdc.sdc-distribution-client</groupId>
183 <artifactId>sdc-distribution-client</artifactId>
184 <version>1.2.3</version>
185 <scope>compile</scope>
186 </dependency>
andre.schmid2e6d1bb2019-11-21 13:23:07 +0000187
vasraza36531c2020-04-29 18:39:35 +0100188 <dependency>
189 <groupId>org.hamcrest</groupId>
190 <artifactId>hamcrest</artifactId>
191 <version>${hamcrest.version}</version>
192 <scope>compile</scope>
193 </dependency>
andre.schmid2e6d1bb2019-11-21 13:23:07 +0000194
vasraza36531c2020-04-29 18:39:35 +0100195 <dependency>
196 <groupId>org.hamcrest</groupId>
197 <artifactId>hamcrest-library</artifactId>
198 <version>${hamcrest.version}</version>
199 <scope>compile</scope>
200 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300201
vasraza36531c2020-04-29 18:39:35 +0100202 <dependency>
203 <groupId>org.junit.jupiter</groupId>
204 <artifactId>junit-jupiter</artifactId>
205 <version>${junitJupiter.version}</version>
206 <scope>test</scope>
207 </dependency>
Baumel, Dvir (db384r)3e879322020-03-23 16:21:05 +0200208
vasraza36531c2020-04-29 18:39:35 +0100209 <dependency>
210 <groupId>org.mockito</groupId>
211 <artifactId>mockito-junit-jupiter</artifactId>
212 <version>${mockitoJupiter.version}</version>
213 <scope>test</scope>
214 </dependency>
Baumel, Dvir (db384r)3e879322020-03-23 16:21:05 +0200215
vasraza36531c2020-04-29 18:39:35 +0100216 <dependency>
217 <groupId>org.testng</groupId>
218 <artifactId>testng</artifactId>
219 <version>6.11</version>
220 <scope>compile</scope>
221 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300222
vasraza36531c2020-04-29 18:39:35 +0100223 <dependency>
224 <groupId>xml-apis</groupId>
225 <artifactId>xml-apis</artifactId>
226 <version>1.4.01</version>
227 <scope>compile</scope>
228 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300229
vasraza36531c2020-04-29 18:39:35 +0100230 <dependency>
231 <groupId>com.googlecode.json-simple</groupId>
232 <artifactId>json-simple</artifactId>
233 <version>${json-simple.version}</version>
234 <scope>compile</scope>
235 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300236
vasraza36531c2020-04-29 18:39:35 +0100237 <dependency>
238 <groupId>org.apache.commons</groupId>
239 <artifactId>commons-jci-core</artifactId>
240 <version>${commons-jci-core.version}</version>
241 <scope>compile</scope>
242 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300243
vasraza36531c2020-04-29 18:39:35 +0100244 <dependency>
245 <groupId>commons-codec</groupId>
246 <artifactId>commons-codec</artifactId>
247 <version>${commons-codec}</version>
248 <scope>compile</scope>
249 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300250
vasraza36531c2020-04-29 18:39:35 +0100251 <dependency>
252 <groupId>com.aventstack</groupId>
253 <artifactId>extentreports</artifactId>
254 <version>3.0.6</version>
255 <scope>compile</scope>
256 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300257
vasraza36531c2020-04-29 18:39:35 +0100258 <dependency>
259 <groupId>net.lightbody.bmp</groupId>
260 <!-- To use the legacy, Jetty-based implementation, change the artifactId
261 to browsermob-core -->
262 <artifactId>browsermob-core</artifactId>
263 <version>2.1.4</version>
264 </dependency>
Michael Landoa5445102018-03-04 14:53:33 +0200265
vasraza36531c2020-04-29 18:39:35 +0100266 <dependency>
267 <groupId>com.github.markusbernhardt</groupId>
268 <artifactId>proxy-vole</artifactId>
269 <version>1.0.2</version>
270 </dependency>
Michael Landoa5445102018-03-04 14:53:33 +0200271
vasraza36531c2020-04-29 18:39:35 +0100272 <dependency>
273 <groupId>com.paulhammant</groupId>
274 <artifactId>ngwebdriver</artifactId>
275 <version>0.9.7</version>
276 <scope>compile</scope>
277 </dependency>
Michael Landoa5445102018-03-04 14:53:33 +0200278
vasraza36531c2020-04-29 18:39:35 +0100279 <dependency>
280 <groupId>com.google.inject</groupId>
281 <artifactId>guice</artifactId>
282 <version>4.1.0</version>
283 </dependency>
Michael Lando5b593492018-07-29 16:13:45 +0300284
vasraza36531c2020-04-29 18:39:35 +0100285 <dependency>
286 <groupId>org.codehaus.groovy</groupId>
287 <artifactId>groovy</artifactId>
288 </dependency>
Tal Gitelmane0199372018-09-18 11:57:53 +0300289
vasraza36531c2020-04-29 18:39:35 +0100290 <dependency>
291 <groupId>io.netty</groupId>
292 <artifactId>netty-handler</artifactId>
293 </dependency>
Yuli Shlosberg79e36272018-10-02 14:45:26 +0300294
vasraza36531c2020-04-29 18:39:35 +0100295 </dependencies>
Michael Landob3d48982017-06-11 14:22:02 +0300296
vasraza36531c2020-04-29 18:39:35 +0100297 <build>
Yuli Shlosbergf59a2252018-03-21 11:14:08 +0200298
vasraza36531c2020-04-29 18:39:35 +0100299 <plugins>
Michael Lando5b593492018-07-29 16:13:45 +0300300
vasraza36531c2020-04-29 18:39:35 +0100301 <plugin>
302 <groupId>org.apache.maven.plugins</groupId>
303 <artifactId>maven-clean-plugin</artifactId>
304 <executions>
305 <execution>
306 <id>clean.tosca.chef.os.folder</id>
307 <phase>clean</phase>
308 <goals>
309 <goal>clean</goal>
310 </goals>
311 <configuration>
312 <filesets>
Yuli Shlosbergf59a2252018-03-21 11:14:08 +0200313
vasraza36531c2020-04-29 18:39:35 +0100314 <!-- Sanity jar -->
315 <fileset>
316 <directory>${project.basedir}/sdc-ui-tests</directory>
317 <followSymlinks>false</followSymlinks>
318 <includes>
319 <include>*.jar</include>
320 </includes>
321 </fileset>
322 <!-- Sanity test suites -->
323 <fileset>
324 <directory>
325 ${project.basedir}/sdc-ui-tests/chef-repo/cookbooks/sdc-ui-tests/files/default/testSuites
326 </directory>
327 <followSymlinks>false</followSymlinks>
328 </fileset>
329 <!-- Package files -->
330 <fileset>
331 <directory>
332 ${project.basedir}/sdc-ui-tests/chef-repo/cookbooks/sdc-ui-tests/files/default/Files
333 </directory>
334 <followSymlinks>false</followSymlinks>
335 </fileset>
336 </filesets>
337 </configuration>
338 </execution>
339 </executions>
340 </plugin>
341 <plugin>
342 <groupId>org.apache.maven.plugins</groupId>
343 <artifactId>maven-deploy-plugin</artifactId>
344 <configuration>
345 <skip>true</skip>
346 </configuration>
347 </plugin>
348 <plugin>
349 <groupId>org.apache.maven.plugins</groupId>
350 <artifactId>maven-assembly-plugin</artifactId>
351 <executions>
352 <execution>
353 <id>create.jar.with.dependencies</id>
354 <phase>package</phase>
355 <goals>
356 <goal>single</goal>
357 </goals>
358 <configuration>
359 <archive>
360 <manifest>
361 <mainClass>org.openecomp.sdc.ci.tests.execute.setup.SetupCDTest</mainClass>
362 </manifest>
363 </archive>
364 <descriptorRefs>
365 <descriptorRef>jar-with-dependencies</descriptorRef>
366 </descriptorRefs>
367 </configuration>
368 </execution>
369 </executions>
370 </plugin>
371 <plugin>
372 <groupId>com.github.sylvainlaurent.maven</groupId>
373 <artifactId>yaml-json-validator-maven-plugin</artifactId>
374 <executions>
375 <execution>
376 <id>validate</id>
377 <phase>validate</phase>
378 <goals>
379 <goal>validate</goal>
380 </goals>
381 <configuration>
382 <validationSets>
383 <validationSet>
384 <includes>
385 <include>src/main/resources/**/*.y*ml</include>
386 <include>src/test/resources/**/*.y*ml</include>
387 </includes>
388 </validationSet>
389 <validationSet>
390 <includes>
391 <include>src/main/resources/**/*.json</include>
392 <include>src/test/resources/**/*.json</include>
393 </includes>
394 </validationSet>
395 </validationSets>
396 </configuration>
397 </execution>
398 </executions>
399 </plugin>
400 </plugins>
401 </build>
402 <profiles>
403 <profile>
404 <id>docker</id>
405 <activation>
406 <activeByDefault>false</activeByDefault>
407 </activation>
408 <build>
409 <plugins>
410 <plugin>
411 <groupId>org.apache.maven.plugins</groupId>
412 <artifactId>maven-resources-plugin</artifactId>
413 <executions>
414 <execution>
415 <id>copy-tests-suites</id>
416 <phase>verify</phase>
417 <goals>
418 <goal>copy-resources</goal>
419 </goals>
420 <configuration>
421 <outputDirectory>
422 sdc-ui-tests/chef-repo/cookbooks/sdc-ui-tests/files/default/testSuites
423 </outputDirectory>
424 <resources>
425 <resource>
426 <directory>${project.parent.basedir}/ui-ci/src/main/resources/ci/testSuites
427 </directory>
428 <includes>
429 <include>*</include>
430 </includes>
431 </resource>
432 </resources>
433 </configuration>
434 </execution>
Yuli Shlosbergf59a2252018-03-21 11:14:08 +0200435
vasraza36531c2020-04-29 18:39:35 +0100436 <execution>
437 <id>copy-csar-files</id>
438 <phase>verify</phase>
439 <goals>
440 <goal>copy-resources</goal>
441 </goals>
442 <configuration>
443 <outputDirectory>
444 sdc-ui-tests/chef-repo/cookbooks/sdc-ui-tests/files/default/Files
445 </outputDirectory>
446 <resources>
447 <resource>
448 <directory>
449 ${project.parent.basedir}/test-apis-ci/sdc-api-tests/chef-repo/cookbooks/sdc-api-tests/files/default/Files
450 </directory>
451 <filtering>false</filtering>
452 <includes>
453 <include>VNFs/*</include>
454 <include>PNFs/*</include>
455 </includes>
456 </resource>
457 </resources>
458 </configuration>
459 </execution>
Yuli Shlosberg17889832018-04-08 14:03:29 +0300460
vasraza36531c2020-04-29 18:39:35 +0100461 <execution>
462 <id>copy-resources-ui-ci</id>
463 <phase>verify</phase>
464 <goals>
465 <goal>copy-resources</goal>
466 </goals>
467 <configuration>
468 <outputDirectory>${basedir}/sdc-ui-tests</outputDirectory>
469 <resources>
470 <resource>
471 <directory>${project.parent.basedir}/ui-ci/target</directory>
472 <includes>
473 <include>ui-ci-${project.version}-jar-with-dependencies.jar</include>
474 </includes>
475 </resource>
476 </resources>
477 </configuration>
478 </execution>
479 </executions>
480 </plugin>
Yuli Shlosbergf59a2252018-03-21 11:14:08 +0200481
vasraza36531c2020-04-29 18:39:35 +0100482 <plugin>
483 <groupId>io.fabric8</groupId>
484 <artifactId>docker-maven-plugin</artifactId>
485 <configuration>
486 <apiVersion>1.23</apiVersion>
487 <registry>nexus3.onap.org:10001</registry>
488 <authConfig>
489 <pull>
490 <username>docker</username>
491 <password>docker</password>
492 </pull>
493 </authConfig>
494 <images>
Yuli Shlosbergf59a2252018-03-21 11:14:08 +0200495
vasraza36531c2020-04-29 18:39:35 +0100496 <!-- Build sanity image -->
497 <image>
498 <name>onap/sdc-ui-tests</name>
499 <alias>sdc-ui-sanity</alias>
500 <build>
501 <cleanup>try</cleanup>
502 <dockerFileDir>${project.basedir}/sdc-ui-tests</dockerFileDir>
503 <tags>
504 <tag>${docker.tag}</tag>
505 <tag>
506 ${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest
507 </tag>
508 </tags>
509 </build>
510 </image>
Yuli Shlosbergf59a2252018-03-21 11:14:08 +0200511
vasraza36531c2020-04-29 18:39:35 +0100512 </images>
513 </configuration>
514 <executions>
515 <execution>
516 <id>clean-images</id>
517 <phase>pre-clean</phase>
518 <goals>
519 <goal>remove</goal>
520 </goals>
521 <configuration>
522 <removeAll>true</removeAll>
523 <image>onap/sdc-ui-tests</image>
524 </configuration>
525 </execution>
Yuli Shlosbergf59a2252018-03-21 11:14:08 +0200526
vasraza36531c2020-04-29 18:39:35 +0100527 <execution>
528 <id>generate-images</id>
529 <phase>install</phase>
530 <goals>
531 <goal>build</goal>
532 </goals>
533 </execution>
Yuli Shlosbergf59a2252018-03-21 11:14:08 +0200534
vasraza36531c2020-04-29 18:39:35 +0100535 <execution>
536 <id>push-images</id>
537 <phase>deploy</phase>
538 <goals>
539 <goal>push</goal>
540 </goals>
541 <configuration>
542 <image>onap/sdc-ui-tests</image>
543 </configuration>
544 </execution>
545 </executions>
546 </plugin>
547 </plugins>
548 </build>
549 </profile>
550 </profiles>
Michael Landob3d48982017-06-11 14:22:02 +0300551</project>