blob: 244f997966d1a3f20a8fc7bcb7731517a9f178c1 [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>
vasraza36531c2020-04-29 18:39:35 +0100165 <groupId>com.fasterxml.jackson.core</groupId>
166 <artifactId>jackson-databind</artifactId>
167 <version>${jackson.version}</version>
vasrazca685bb2020-06-11 17:05:29 +0100168 <exclusions>
169 <exclusion>
170 <groupId>com.fasterxml.jackson.core</groupId>
171 <artifactId>jackson-core</artifactId>
172 </exclusion>
173 </exclusions>
vasraza36531c2020-04-29 18:39:35 +0100174 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300175
vasraza36531c2020-04-29 18:39:35 +0100176 <dependency>
177 <groupId>org.openecomp.sdc.sdc-distribution-client</groupId>
178 <artifactId>sdc-distribution-client</artifactId>
179 <version>1.2.3</version>
180 <scope>compile</scope>
181 </dependency>
andre.schmid2e6d1bb2019-11-21 13:23:07 +0000182
vasraza36531c2020-04-29 18:39:35 +0100183 <dependency>
184 <groupId>org.hamcrest</groupId>
185 <artifactId>hamcrest</artifactId>
186 <version>${hamcrest.version}</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-library</artifactId>
193 <version>${hamcrest.version}</version>
194 <scope>compile</scope>
195 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300196
vasraza36531c2020-04-29 18:39:35 +0100197 <dependency>
198 <groupId>org.junit.jupiter</groupId>
199 <artifactId>junit-jupiter</artifactId>
200 <version>${junitJupiter.version}</version>
201 <scope>test</scope>
202 </dependency>
Baumel, Dvir (db384r)3e879322020-03-23 16:21:05 +0200203
vasraza36531c2020-04-29 18:39:35 +0100204 <dependency>
205 <groupId>org.mockito</groupId>
206 <artifactId>mockito-junit-jupiter</artifactId>
207 <version>${mockitoJupiter.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.testng</groupId>
213 <artifactId>testng</artifactId>
vasraz77097d02020-06-28 19:55:01 +0100214 <version>${testng.version}</version>
vasraza36531c2020-04-29 18:39:35 +0100215 <scope>compile</scope>
216 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300217
vasraza36531c2020-04-29 18:39:35 +0100218 <dependency>
219 <groupId>xml-apis</groupId>
220 <artifactId>xml-apis</artifactId>
221 <version>1.4.01</version>
222 <scope>compile</scope>
223 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300224
vasraza36531c2020-04-29 18:39:35 +0100225 <dependency>
226 <groupId>com.googlecode.json-simple</groupId>
227 <artifactId>json-simple</artifactId>
228 <version>${json-simple.version}</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>org.apache.commons</groupId>
234 <artifactId>commons-jci-core</artifactId>
235 <version>${commons-jci-core.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>commons-codec</groupId>
241 <artifactId>commons-codec</artifactId>
242 <version>${commons-codec}</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>com.aventstack</groupId>
248 <artifactId>extentreports</artifactId>
249 <version>3.0.6</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>net.lightbody.bmp</groupId>
255 <!-- To use the legacy, Jetty-based implementation, change the artifactId
256 to browsermob-core -->
257 <artifactId>browsermob-core</artifactId>
258 <version>2.1.4</version>
vasrazca685bb2020-06-11 17:05:29 +0100259 <exclusions>
260 <exclusion>
261 <groupId>com.fasterxml.jackson.core</groupId>
262 <artifactId>jackson-core</artifactId>
263 </exclusion>
264 </exclusions>
vasraza36531c2020-04-29 18:39:35 +0100265 </dependency>
Michael Landoa5445102018-03-04 14:53:33 +0200266
vasraza36531c2020-04-29 18:39:35 +0100267 <dependency>
268 <groupId>com.github.markusbernhardt</groupId>
269 <artifactId>proxy-vole</artifactId>
270 <version>1.0.2</version>
271 </dependency>
Michael Landoa5445102018-03-04 14:53:33 +0200272
vasraza36531c2020-04-29 18:39:35 +0100273 <dependency>
274 <groupId>com.paulhammant</groupId>
275 <artifactId>ngwebdriver</artifactId>
276 <version>0.9.7</version>
277 <scope>compile</scope>
278 </dependency>
Michael Landoa5445102018-03-04 14:53:33 +0200279
vasraza36531c2020-04-29 18:39:35 +0100280 <dependency>
281 <groupId>com.google.inject</groupId>
282 <artifactId>guice</artifactId>
283 <version>4.1.0</version>
284 </dependency>
Michael Lando5b593492018-07-29 16:13:45 +0300285
vasraza36531c2020-04-29 18:39:35 +0100286 <dependency>
287 <groupId>org.codehaus.groovy</groupId>
288 <artifactId>groovy</artifactId>
289 </dependency>
Tal Gitelmane0199372018-09-18 11:57:53 +0300290
vasraza36531c2020-04-29 18:39:35 +0100291 <dependency>
292 <groupId>io.netty</groupId>
293 <artifactId>netty-handler</artifactId>
294 </dependency>
Yuli Shlosberg79e36272018-10-02 14:45:26 +0300295
vasraza36531c2020-04-29 18:39:35 +0100296 </dependencies>
Michael Landob3d48982017-06-11 14:22:02 +0300297
vasraza36531c2020-04-29 18:39:35 +0100298 <build>
Yuli Shlosbergf59a2252018-03-21 11:14:08 +0200299
vasraza36531c2020-04-29 18:39:35 +0100300 <plugins>
Michael Lando5b593492018-07-29 16:13:45 +0300301
vasraza36531c2020-04-29 18:39:35 +0100302 <plugin>
303 <groupId>org.apache.maven.plugins</groupId>
304 <artifactId>maven-clean-plugin</artifactId>
305 <executions>
306 <execution>
307 <id>clean.tosca.chef.os.folder</id>
308 <phase>clean</phase>
309 <goals>
310 <goal>clean</goal>
311 </goals>
312 <configuration>
313 <filesets>
Yuli Shlosbergf59a2252018-03-21 11:14:08 +0200314
vasraza36531c2020-04-29 18:39:35 +0100315 <!-- Sanity jar -->
316 <fileset>
317 <directory>${project.basedir}/sdc-ui-tests</directory>
318 <followSymlinks>false</followSymlinks>
319 <includes>
320 <include>*.jar</include>
321 </includes>
322 </fileset>
323 <!-- Sanity test suites -->
324 <fileset>
325 <directory>
326 ${project.basedir}/sdc-ui-tests/chef-repo/cookbooks/sdc-ui-tests/files/default/testSuites
327 </directory>
328 <followSymlinks>false</followSymlinks>
329 </fileset>
330 <!-- Package files -->
331 <fileset>
332 <directory>
333 ${project.basedir}/sdc-ui-tests/chef-repo/cookbooks/sdc-ui-tests/files/default/Files
334 </directory>
335 <followSymlinks>false</followSymlinks>
336 </fileset>
337 </filesets>
338 </configuration>
339 </execution>
340 </executions>
341 </plugin>
342 <plugin>
343 <groupId>org.apache.maven.plugins</groupId>
344 <artifactId>maven-deploy-plugin</artifactId>
345 <configuration>
346 <skip>true</skip>
347 </configuration>
348 </plugin>
349 <plugin>
350 <groupId>org.apache.maven.plugins</groupId>
351 <artifactId>maven-assembly-plugin</artifactId>
352 <executions>
353 <execution>
354 <id>create.jar.with.dependencies</id>
355 <phase>package</phase>
356 <goals>
357 <goal>single</goal>
358 </goals>
359 <configuration>
360 <archive>
361 <manifest>
362 <mainClass>org.openecomp.sdc.ci.tests.execute.setup.SetupCDTest</mainClass>
363 </manifest>
364 </archive>
365 <descriptorRefs>
366 <descriptorRef>jar-with-dependencies</descriptorRef>
367 </descriptorRefs>
368 </configuration>
369 </execution>
370 </executions>
371 </plugin>
372 <plugin>
373 <groupId>com.github.sylvainlaurent.maven</groupId>
374 <artifactId>yaml-json-validator-maven-plugin</artifactId>
375 <executions>
376 <execution>
377 <id>validate</id>
378 <phase>validate</phase>
379 <goals>
380 <goal>validate</goal>
381 </goals>
382 <configuration>
383 <validationSets>
384 <validationSet>
385 <includes>
386 <include>src/main/resources/**/*.y*ml</include>
387 <include>src/test/resources/**/*.y*ml</include>
388 </includes>
389 </validationSet>
390 <validationSet>
391 <includes>
392 <include>src/main/resources/**/*.json</include>
393 <include>src/test/resources/**/*.json</include>
394 </includes>
395 </validationSet>
396 </validationSets>
JulienBe6bd3d3a2020-06-24 15:35:23 +0200397 <skip>${skipYamlJsonValidator}</skip>
vasraza36531c2020-04-29 18:39:35 +0100398 </configuration>
399 </execution>
400 </executions>
401 </plugin>
402 </plugins>
403 </build>
404 <profiles>
405 <profile>
406 <id>docker</id>
407 <activation>
408 <activeByDefault>false</activeByDefault>
409 </activation>
410 <build>
411 <plugins>
412 <plugin>
413 <groupId>org.apache.maven.plugins</groupId>
414 <artifactId>maven-resources-plugin</artifactId>
415 <executions>
416 <execution>
417 <id>copy-tests-suites</id>
418 <phase>verify</phase>
419 <goals>
420 <goal>copy-resources</goal>
421 </goals>
422 <configuration>
423 <outputDirectory>
424 sdc-ui-tests/chef-repo/cookbooks/sdc-ui-tests/files/default/testSuites
425 </outputDirectory>
426 <resources>
427 <resource>
428 <directory>${project.parent.basedir}/ui-ci/src/main/resources/ci/testSuites
429 </directory>
430 <includes>
431 <include>*</include>
432 </includes>
433 </resource>
434 </resources>
435 </configuration>
436 </execution>
Yuli Shlosbergf59a2252018-03-21 11:14:08 +0200437
vasraza36531c2020-04-29 18:39:35 +0100438 <execution>
439 <id>copy-csar-files</id>
440 <phase>verify</phase>
441 <goals>
442 <goal>copy-resources</goal>
443 </goals>
444 <configuration>
445 <outputDirectory>
446 sdc-ui-tests/chef-repo/cookbooks/sdc-ui-tests/files/default/Files
447 </outputDirectory>
448 <resources>
449 <resource>
450 <directory>
451 ${project.parent.basedir}/test-apis-ci/sdc-api-tests/chef-repo/cookbooks/sdc-api-tests/files/default/Files
452 </directory>
453 <filtering>false</filtering>
454 <includes>
455 <include>VNFs/*</include>
456 <include>PNFs/*</include>
457 </includes>
458 </resource>
459 </resources>
460 </configuration>
461 </execution>
Yuli Shlosberg17889832018-04-08 14:03:29 +0300462
vasraza36531c2020-04-29 18:39:35 +0100463 <execution>
464 <id>copy-resources-ui-ci</id>
465 <phase>verify</phase>
466 <goals>
467 <goal>copy-resources</goal>
468 </goals>
469 <configuration>
470 <outputDirectory>${basedir}/sdc-ui-tests</outputDirectory>
471 <resources>
472 <resource>
473 <directory>${project.parent.basedir}/ui-ci/target</directory>
474 <includes>
475 <include>ui-ci-${project.version}-jar-with-dependencies.jar</include>
476 </includes>
477 </resource>
478 </resources>
479 </configuration>
480 </execution>
481 </executions>
482 </plugin>
Yuli Shlosbergf59a2252018-03-21 11:14:08 +0200483
vasraza36531c2020-04-29 18:39:35 +0100484 <plugin>
485 <groupId>io.fabric8</groupId>
486 <artifactId>docker-maven-plugin</artifactId>
487 <configuration>
488 <apiVersion>1.23</apiVersion>
489 <registry>nexus3.onap.org:10001</registry>
490 <authConfig>
491 <pull>
492 <username>docker</username>
493 <password>docker</password>
494 </pull>
495 </authConfig>
496 <images>
Yuli Shlosbergf59a2252018-03-21 11:14:08 +0200497
vasraza36531c2020-04-29 18:39:35 +0100498 <!-- Build sanity image -->
499 <image>
500 <name>onap/sdc-ui-tests</name>
501 <alias>sdc-ui-sanity</alias>
502 <build>
503 <cleanup>try</cleanup>
504 <dockerFileDir>${project.basedir}/sdc-ui-tests</dockerFileDir>
505 <tags>
506 <tag>${docker.tag}</tag>
507 <tag>
508 ${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest
509 </tag>
510 </tags>
511 </build>
512 </image>
Yuli Shlosbergf59a2252018-03-21 11:14:08 +0200513
vasraza36531c2020-04-29 18:39:35 +0100514 </images>
515 </configuration>
516 <executions>
517 <execution>
518 <id>clean-images</id>
519 <phase>pre-clean</phase>
520 <goals>
521 <goal>remove</goal>
522 </goals>
523 <configuration>
524 <removeAll>true</removeAll>
525 <image>onap/sdc-ui-tests</image>
526 </configuration>
527 </execution>
Yuli Shlosbergf59a2252018-03-21 11:14:08 +0200528
vasraza36531c2020-04-29 18:39:35 +0100529 <execution>
530 <id>generate-images</id>
531 <phase>install</phase>
532 <goals>
533 <goal>build</goal>
534 </goals>
535 </execution>
Yuli Shlosbergf59a2252018-03-21 11:14:08 +0200536
vasraza36531c2020-04-29 18:39:35 +0100537 <execution>
538 <id>push-images</id>
539 <phase>deploy</phase>
540 <goals>
541 <goal>push</goal>
542 </goals>
543 <configuration>
544 <image>onap/sdc-ui-tests</image>
545 </configuration>
546 </execution>
547 </executions>
548 </plugin>
549 </plugins>
550 </build>
551 </profile>
552 </profiles>
Michael Landob3d48982017-06-11 14:22:02 +0300553</project>