blob: 54933dc019718fffb62d81a27b45d63af520aeaf [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>
Michael Landoa5445102018-03-04 14:53:33 +020023
vasraza36531c2020-04-29 18:39:35 +010024 <dependency>
25 <groupId>com.google.guava</groupId>
26 <artifactId>guava</artifactId>
27 <version>${guava.version}</version>
28 <scope>compile</scope>
29 </dependency>
Yuli Shlosbergd4929e32018-10-02 17:51:22 +030030
vasraza36531c2020-04-29 18:39:35 +010031 <dependency>
32 <groupId>org.seleniumhq.selenium</groupId>
33 <artifactId>selenium-java</artifactId>
Yuli Shlosbergd4929e32018-10-02 17:51:22 +030034
vasraza36531c2020-04-29 18:39:35 +010035 <version>2.53.1</version>
36 <exclusions>
37 <exclusion>
38 <groupId>org.eclipse.jetty</groupId>
39 <artifactId>jetty-util</artifactId>
40 </exclusion>
41 <exclusion>
42 <groupId>io.netty</groupId>
43 <artifactId>netty</artifactId>
44 </exclusion>
45 </exclusions>
46 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +030047
vasraza36531c2020-04-29 18:39:35 +010048 <dependency>
49 <groupId>org.eclipse.jetty</groupId>
50 <artifactId>jetty-util</artifactId>
51 <version>${jetty.version}</version>
52 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +030053
vasraza36531c2020-04-29 18:39:35 +010054 <dependency>
55 <groupId>org.seleniumhq.selenium</groupId>
56 <artifactId>selenium-server</artifactId>
57 <version>2.53.1</version>
58 <scope>runtime</scope>
59 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +030060
vasraza36531c2020-04-29 18:39:35 +010061 <dependency>
62 <groupId>commons-net</groupId>
63 <artifactId>commons-net</artifactId>
64 <version>3.3</version>
65 <scope>compile</scope>
66 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +030067
vasraza36531c2020-04-29 18:39:35 +010068 <dependency>
69 <groupId>commons-io</groupId>
70 <artifactId>commons-io</artifactId>
71 <version>2.4</version>
72 <scope>compile</scope>
73 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +030074
vasraza36531c2020-04-29 18:39:35 +010075 <dependency>
vasrazca685bb2020-06-11 17:05:29 +010076 <groupId>com.fasterxml.jackson.core</groupId>
77 <artifactId>jackson-core</artifactId>
78 <version>${jackson.version}</version>
79 </dependency>
80
81 <dependency>
vasraza36531c2020-04-29 18:39:35 +010082 <groupId>org.openecomp.sdc</groupId>
83 <artifactId>test-apis-ci</artifactId>
84 <version>${project.version}</version>
vasrazca685bb2020-06-11 17:05:29 +010085 <exclusions>
86 <exclusion>
87 <groupId>com.fasterxml.jackson.core</groupId>
88 <artifactId>jackson-core</artifactId>
89 </exclusion>
90 </exclusions>
vasraza36531c2020-04-29 18:39:35 +010091 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +030092
vasraza36531c2020-04-29 18:39:35 +010093 <dependency>
94 <groupId>org.yaml</groupId>
95 <artifactId>snakeyaml</artifactId>
96 <version>${snakeyaml.version}</version>
97 <scope>compile</scope>
98 </dependency>
99 <dependency>
100 <groupId>org.functionaljava</groupId>
101 <artifactId>functionaljava</artifactId>
102 <version>${functionaljava.version}</version>
103 <scope>compile</scope>
104 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300105
vasraza36531c2020-04-29 18:39:35 +0100106 <dependency>
107 <groupId>com.google.code.gson</groupId>
108 <artifactId>gson</artifactId>
109 <version>${gson.version}</version>
110 <scope>compile</scope>
111 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300112
vasraza36531c2020-04-29 18:39:35 +0100113 <!-- http client -->
114 <dependency>
115 <groupId>org.apache.httpcomponents</groupId>
116 <artifactId>httpclient</artifactId>
117 <version>${httpclient.version}</version>
118 <scope>compile</scope>
119 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300120
vasraza36531c2020-04-29 18:39:35 +0100121 <dependency>
122 <groupId>org.apache.httpcomponents</groupId>
123 <artifactId>httpmime</artifactId>
124 <version>${httpclient.version}</version>
125 <scope>compile</scope>
126 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300127
vasraza36531c2020-04-29 18:39:35 +0100128 <dependency>
129 <groupId>commons-logging</groupId>
130 <artifactId>commons-logging</artifactId>
131 <version>${commons-logging}</version>
132 <scope>compile</scope>
133 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300134
vasraza36531c2020-04-29 18:39:35 +0100135 <dependency>
136 <groupId>org.slf4j</groupId>
137 <artifactId>slf4j-api</artifactId>
138 <version>${slf4j-api.version}</version>
139 <scope>compile</scope>
140 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300141
vasraza36531c2020-04-29 18:39:35 +0100142 <dependency>
143 <groupId>ch.qos.logback</groupId>
144 <artifactId>logback-classic</artifactId>
145 <version>${logback.version}</version>
146 <scope>compile</scope>
147 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300148
vasraza36531c2020-04-29 18:39:35 +0100149 <dependency>
150 <groupId>ch.qos.logback</groupId>
151 <artifactId>logback-core</artifactId>
152 <version>${logback.version}</version>
153 <scope>compile</scope>
154 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300155
vasraza36531c2020-04-29 18:39:35 +0100156 <!-- http core -->
157 <dependency>
158 <groupId>org.apache.httpcomponents</groupId>
159 <artifactId>httpcore</artifactId>
160 <version>${httpcore.version}</version>
161 <scope>compile</scope>
162 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300163
vasraza36531c2020-04-29 18:39:35 +0100164 <dependency>
165 <groupId>org.codehaus.jackson</groupId>
166 <artifactId>jackson-mapper-asl</artifactId>
167 <version>1.9.2</version>
168 <scope>compile</scope>
169 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300170
vasraza36531c2020-04-29 18:39:35 +0100171 <dependency>
172 <groupId>com.fasterxml.jackson.core</groupId>
173 <artifactId>jackson-databind</artifactId>
174 <version>${jackson.version}</version>
vasrazca685bb2020-06-11 17:05:29 +0100175 <exclusions>
176 <exclusion>
177 <groupId>com.fasterxml.jackson.core</groupId>
178 <artifactId>jackson-core</artifactId>
179 </exclusion>
180 </exclusions>
vasraza36531c2020-04-29 18:39:35 +0100181 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300182
vasraza36531c2020-04-29 18:39:35 +0100183 <dependency>
184 <groupId>org.openecomp.sdc.sdc-distribution-client</groupId>
185 <artifactId>sdc-distribution-client</artifactId>
186 <version>1.2.3</version>
187 <scope>compile</scope>
188 </dependency>
andre.schmid2e6d1bb2019-11-21 13:23:07 +0000189
vasraza36531c2020-04-29 18:39:35 +0100190 <dependency>
191 <groupId>org.hamcrest</groupId>
192 <artifactId>hamcrest</artifactId>
193 <version>${hamcrest.version}</version>
194 <scope>compile</scope>
195 </dependency>
andre.schmid2e6d1bb2019-11-21 13:23:07 +0000196
vasraza36531c2020-04-29 18:39:35 +0100197 <dependency>
198 <groupId>org.hamcrest</groupId>
199 <artifactId>hamcrest-library</artifactId>
200 <version>${hamcrest.version}</version>
201 <scope>compile</scope>
202 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300203
vasraza36531c2020-04-29 18:39:35 +0100204 <dependency>
205 <groupId>org.junit.jupiter</groupId>
206 <artifactId>junit-jupiter</artifactId>
207 <version>${junitJupiter.version}</version>
208 <scope>test</scope>
209 </dependency>
Baumel, Dvir (db384r)3e879322020-03-23 16:21:05 +0200210
vasraza36531c2020-04-29 18:39:35 +0100211 <dependency>
212 <groupId>org.mockito</groupId>
213 <artifactId>mockito-junit-jupiter</artifactId>
214 <version>${mockitoJupiter.version}</version>
215 <scope>test</scope>
216 </dependency>
Baumel, Dvir (db384r)3e879322020-03-23 16:21:05 +0200217
vasraza36531c2020-04-29 18:39:35 +0100218 <dependency>
219 <groupId>org.testng</groupId>
220 <artifactId>testng</artifactId>
vasraz77097d02020-06-28 19:55:01 +0100221 <version>${testng.version}</version>
vasraza36531c2020-04-29 18:39:35 +0100222 <scope>compile</scope>
223 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300224
vasraza36531c2020-04-29 18:39:35 +0100225 <dependency>
226 <groupId>xml-apis</groupId>
227 <artifactId>xml-apis</artifactId>
228 <version>1.4.01</version>
229 <scope>compile</scope>
230 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300231
vasraza36531c2020-04-29 18:39:35 +0100232 <dependency>
233 <groupId>com.googlecode.json-simple</groupId>
234 <artifactId>json-simple</artifactId>
235 <version>${json-simple.version}</version>
236 <scope>compile</scope>
237 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300238
vasraza36531c2020-04-29 18:39:35 +0100239 <dependency>
240 <groupId>org.apache.commons</groupId>
241 <artifactId>commons-jci-core</artifactId>
242 <version>${commons-jci-core.version}</version>
243 <scope>compile</scope>
244 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300245
vasraza36531c2020-04-29 18:39:35 +0100246 <dependency>
247 <groupId>commons-codec</groupId>
248 <artifactId>commons-codec</artifactId>
249 <version>${commons-codec}</version>
250 <scope>compile</scope>
251 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300252
vasraza36531c2020-04-29 18:39:35 +0100253 <dependency>
254 <groupId>com.aventstack</groupId>
255 <artifactId>extentreports</artifactId>
256 <version>3.0.6</version>
257 <scope>compile</scope>
258 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300259
vasraza36531c2020-04-29 18:39:35 +0100260 <dependency>
261 <groupId>net.lightbody.bmp</groupId>
262 <!-- To use the legacy, Jetty-based implementation, change the artifactId
263 to browsermob-core -->
264 <artifactId>browsermob-core</artifactId>
265 <version>2.1.4</version>
vasrazca685bb2020-06-11 17:05:29 +0100266 <exclusions>
267 <exclusion>
268 <groupId>com.fasterxml.jackson.core</groupId>
269 <artifactId>jackson-core</artifactId>
270 </exclusion>
271 </exclusions>
vasraza36531c2020-04-29 18:39:35 +0100272 </dependency>
Michael Landoa5445102018-03-04 14:53:33 +0200273
vasraza36531c2020-04-29 18:39:35 +0100274 <dependency>
275 <groupId>com.github.markusbernhardt</groupId>
276 <artifactId>proxy-vole</artifactId>
277 <version>1.0.2</version>
278 </dependency>
Michael Landoa5445102018-03-04 14:53:33 +0200279
vasraza36531c2020-04-29 18:39:35 +0100280 <dependency>
281 <groupId>com.paulhammant</groupId>
282 <artifactId>ngwebdriver</artifactId>
283 <version>0.9.7</version>
284 <scope>compile</scope>
285 </dependency>
Michael Landoa5445102018-03-04 14:53:33 +0200286
vasraza36531c2020-04-29 18:39:35 +0100287 <dependency>
288 <groupId>com.google.inject</groupId>
289 <artifactId>guice</artifactId>
290 <version>4.1.0</version>
291 </dependency>
Michael Lando5b593492018-07-29 16:13:45 +0300292
vasraza36531c2020-04-29 18:39:35 +0100293 <dependency>
294 <groupId>org.codehaus.groovy</groupId>
295 <artifactId>groovy</artifactId>
296 </dependency>
Tal Gitelmane0199372018-09-18 11:57:53 +0300297
vasraza36531c2020-04-29 18:39:35 +0100298 <dependency>
299 <groupId>io.netty</groupId>
300 <artifactId>netty-handler</artifactId>
301 </dependency>
Yuli Shlosberg79e36272018-10-02 14:45:26 +0300302
vasraza36531c2020-04-29 18:39:35 +0100303 </dependencies>
Michael Landob3d48982017-06-11 14:22:02 +0300304
vasraza36531c2020-04-29 18:39:35 +0100305 <build>
Yuli Shlosbergf59a2252018-03-21 11:14:08 +0200306
vasraza36531c2020-04-29 18:39:35 +0100307 <plugins>
Michael Lando5b593492018-07-29 16:13:45 +0300308
vasraza36531c2020-04-29 18:39:35 +0100309 <plugin>
310 <groupId>org.apache.maven.plugins</groupId>
311 <artifactId>maven-clean-plugin</artifactId>
312 <executions>
313 <execution>
314 <id>clean.tosca.chef.os.folder</id>
315 <phase>clean</phase>
316 <goals>
317 <goal>clean</goal>
318 </goals>
319 <configuration>
320 <filesets>
Yuli Shlosbergf59a2252018-03-21 11:14:08 +0200321
vasraza36531c2020-04-29 18:39:35 +0100322 <!-- Sanity jar -->
323 <fileset>
324 <directory>${project.basedir}/sdc-ui-tests</directory>
325 <followSymlinks>false</followSymlinks>
326 <includes>
327 <include>*.jar</include>
328 </includes>
329 </fileset>
330 <!-- Sanity test suites -->
331 <fileset>
332 <directory>
333 ${project.basedir}/sdc-ui-tests/chef-repo/cookbooks/sdc-ui-tests/files/default/testSuites
334 </directory>
335 <followSymlinks>false</followSymlinks>
336 </fileset>
337 <!-- Package files -->
338 <fileset>
339 <directory>
340 ${project.basedir}/sdc-ui-tests/chef-repo/cookbooks/sdc-ui-tests/files/default/Files
341 </directory>
342 <followSymlinks>false</followSymlinks>
343 </fileset>
344 </filesets>
345 </configuration>
346 </execution>
347 </executions>
348 </plugin>
349 <plugin>
350 <groupId>org.apache.maven.plugins</groupId>
351 <artifactId>maven-deploy-plugin</artifactId>
352 <configuration>
353 <skip>true</skip>
354 </configuration>
355 </plugin>
356 <plugin>
357 <groupId>org.apache.maven.plugins</groupId>
358 <artifactId>maven-assembly-plugin</artifactId>
359 <executions>
360 <execution>
361 <id>create.jar.with.dependencies</id>
362 <phase>package</phase>
363 <goals>
364 <goal>single</goal>
365 </goals>
366 <configuration>
367 <archive>
368 <manifest>
369 <mainClass>org.openecomp.sdc.ci.tests.execute.setup.SetupCDTest</mainClass>
370 </manifest>
371 </archive>
372 <descriptorRefs>
373 <descriptorRef>jar-with-dependencies</descriptorRef>
374 </descriptorRefs>
375 </configuration>
376 </execution>
377 </executions>
378 </plugin>
379 <plugin>
380 <groupId>com.github.sylvainlaurent.maven</groupId>
381 <artifactId>yaml-json-validator-maven-plugin</artifactId>
382 <executions>
383 <execution>
384 <id>validate</id>
385 <phase>validate</phase>
386 <goals>
387 <goal>validate</goal>
388 </goals>
389 <configuration>
390 <validationSets>
391 <validationSet>
392 <includes>
393 <include>src/main/resources/**/*.y*ml</include>
394 <include>src/test/resources/**/*.y*ml</include>
395 </includes>
396 </validationSet>
397 <validationSet>
398 <includes>
399 <include>src/main/resources/**/*.json</include>
400 <include>src/test/resources/**/*.json</include>
401 </includes>
402 </validationSet>
403 </validationSets>
JulienBe6bd3d3a2020-06-24 15:35:23 +0200404 <skip>${skipYamlJsonValidator}</skip>
vasraza36531c2020-04-29 18:39:35 +0100405 </configuration>
406 </execution>
407 </executions>
408 </plugin>
409 </plugins>
410 </build>
411 <profiles>
412 <profile>
413 <id>docker</id>
414 <activation>
415 <activeByDefault>false</activeByDefault>
416 </activation>
417 <build>
418 <plugins>
419 <plugin>
420 <groupId>org.apache.maven.plugins</groupId>
421 <artifactId>maven-resources-plugin</artifactId>
422 <executions>
423 <execution>
424 <id>copy-tests-suites</id>
425 <phase>verify</phase>
426 <goals>
427 <goal>copy-resources</goal>
428 </goals>
429 <configuration>
430 <outputDirectory>
431 sdc-ui-tests/chef-repo/cookbooks/sdc-ui-tests/files/default/testSuites
432 </outputDirectory>
433 <resources>
434 <resource>
435 <directory>${project.parent.basedir}/ui-ci/src/main/resources/ci/testSuites
436 </directory>
437 <includes>
438 <include>*</include>
439 </includes>
440 </resource>
441 </resources>
442 </configuration>
443 </execution>
Yuli Shlosbergf59a2252018-03-21 11:14:08 +0200444
vasraza36531c2020-04-29 18:39:35 +0100445 <execution>
446 <id>copy-csar-files</id>
447 <phase>verify</phase>
448 <goals>
449 <goal>copy-resources</goal>
450 </goals>
451 <configuration>
452 <outputDirectory>
453 sdc-ui-tests/chef-repo/cookbooks/sdc-ui-tests/files/default/Files
454 </outputDirectory>
455 <resources>
456 <resource>
457 <directory>
458 ${project.parent.basedir}/test-apis-ci/sdc-api-tests/chef-repo/cookbooks/sdc-api-tests/files/default/Files
459 </directory>
460 <filtering>false</filtering>
461 <includes>
462 <include>VNFs/*</include>
463 <include>PNFs/*</include>
464 </includes>
465 </resource>
466 </resources>
467 </configuration>
468 </execution>
Yuli Shlosberg17889832018-04-08 14:03:29 +0300469
vasraza36531c2020-04-29 18:39:35 +0100470 <execution>
471 <id>copy-resources-ui-ci</id>
472 <phase>verify</phase>
473 <goals>
474 <goal>copy-resources</goal>
475 </goals>
476 <configuration>
477 <outputDirectory>${basedir}/sdc-ui-tests</outputDirectory>
478 <resources>
479 <resource>
480 <directory>${project.parent.basedir}/ui-ci/target</directory>
481 <includes>
482 <include>ui-ci-${project.version}-jar-with-dependencies.jar</include>
483 </includes>
484 </resource>
485 </resources>
486 </configuration>
487 </execution>
488 </executions>
489 </plugin>
Yuli Shlosbergf59a2252018-03-21 11:14:08 +0200490
vasraza36531c2020-04-29 18:39:35 +0100491 <plugin>
492 <groupId>io.fabric8</groupId>
493 <artifactId>docker-maven-plugin</artifactId>
494 <configuration>
495 <apiVersion>1.23</apiVersion>
496 <registry>nexus3.onap.org:10001</registry>
497 <authConfig>
498 <pull>
499 <username>docker</username>
500 <password>docker</password>
501 </pull>
502 </authConfig>
503 <images>
Yuli Shlosbergf59a2252018-03-21 11:14:08 +0200504
vasraza36531c2020-04-29 18:39:35 +0100505 <!-- Build sanity image -->
506 <image>
507 <name>onap/sdc-ui-tests</name>
508 <alias>sdc-ui-sanity</alias>
509 <build>
510 <cleanup>try</cleanup>
511 <dockerFileDir>${project.basedir}/sdc-ui-tests</dockerFileDir>
512 <tags>
513 <tag>${docker.tag}</tag>
514 <tag>
515 ${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest
516 </tag>
517 </tags>
518 </build>
519 </image>
Yuli Shlosbergf59a2252018-03-21 11:14:08 +0200520
vasraza36531c2020-04-29 18:39:35 +0100521 </images>
522 </configuration>
523 <executions>
524 <execution>
525 <id>clean-images</id>
526 <phase>pre-clean</phase>
527 <goals>
528 <goal>remove</goal>
529 </goals>
530 <configuration>
531 <removeAll>true</removeAll>
532 <image>onap/sdc-ui-tests</image>
533 </configuration>
534 </execution>
Yuli Shlosbergf59a2252018-03-21 11:14:08 +0200535
vasraza36531c2020-04-29 18:39:35 +0100536 <execution>
537 <id>generate-images</id>
538 <phase>install</phase>
539 <goals>
540 <goal>build</goal>
541 </goals>
542 </execution>
Yuli Shlosbergf59a2252018-03-21 11:14:08 +0200543
vasraza36531c2020-04-29 18:39:35 +0100544 <execution>
545 <id>push-images</id>
546 <phase>deploy</phase>
547 <goals>
548 <goal>push</goal>
549 </goals>
550 <configuration>
551 <image>onap/sdc-ui-tests</image>
552 </configuration>
553 </execution>
554 </executions>
555 </plugin>
556 </plugins>
557 </build>
558 </profile>
559 </profiles>
Michael Landob3d48982017-06-11 14:22:02 +0300560</project>