blob: afaf49143b9b4a3254027e4b8d354ae10fcdfd69 [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>
Sonsino, Ofir (os0695)55c536e2019-05-07 18:30:15 +030012 <version>1.5.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>
Yuli Shlosbergd4929e32018-10-02 17:51:22 +030032
Michael Landob3d48982017-06-11 14:22:02 +030033 <version>2.53.1</version>
Yuli Shlosbergd4929e32018-10-02 17:51:22 +030034 <exclusions>
35 <exclusion>
36 <groupId>org.eclipse.jetty</groupId>
37 <artifactId>jetty-util</artifactId>
38 </exclusion>
39 </exclusions>
40 </dependency>
41
42 <dependency>
43 <groupId>org.eclipse.jetty</groupId>
44 <artifactId>jetty-util</artifactId>
45 <version>${jetty.version}</version>
Michael Landob3d48982017-06-11 14:22:02 +030046 </dependency>
47
48 <dependency>
49 <groupId>org.seleniumhq.selenium</groupId>
50 <artifactId>selenium-server</artifactId>
51 <version>2.53.1</version>
52 <scope>runtime</scope>
53 </dependency>
54
55 <dependency>
56 <groupId>commons-net</groupId>
57 <artifactId>commons-net</artifactId>
58 <version>3.3</version>
59 <scope>compile</scope>
60 </dependency>
61
62 <dependency>
63 <groupId>commons-io</groupId>
64 <artifactId>commons-io</artifactId>
65 <version>2.4</version>
66 <scope>compile</scope>
67 </dependency>
68
69 <dependency>
70 <groupId>org.openecomp.sdc</groupId>
71 <artifactId>test-apis-ci</artifactId>
72 <version>${project.version}</version>
Michael Landob3d48982017-06-11 14:22:02 +030073 <scope>compile</scope>
74 </dependency>
75
76 <dependency>
77 <groupId>org.yaml</groupId>
78 <artifactId>snakeyaml</artifactId>
79 <version>${snakeyaml.version}</version>
80 <scope>compile</scope>
81 </dependency>
Michael Landoa5445102018-03-04 14:53:33 +020082 <dependency>
Michael Landob3d48982017-06-11 14:22:02 +030083 <groupId>org.functionaljava</groupId>
84 <artifactId>functionaljava</artifactId>
85 <version>${functionaljava.version}</version>
86 <scope>compile</scope>
87 </dependency>
88
89 <dependency>
90 <groupId>com.google.code.gson</groupId>
91 <artifactId>gson</artifactId>
92 <version>${gson.version}</version>
93 <scope>compile</scope>
94 </dependency>
95
96 <!-- http client -->
97 <dependency>
98 <groupId>org.apache.httpcomponents</groupId>
99 <artifactId>httpclient</artifactId>
Michael Landoa5445102018-03-04 14:53:33 +0200100 <version>${httpclient.version}</version>
Michael Landob3d48982017-06-11 14:22:02 +0300101 <scope>compile</scope>
102 </dependency>
103
104 <dependency>
105 <groupId>org.apache.httpcomponents</groupId>
106 <artifactId>httpmime</artifactId>
Michael Landoa5445102018-03-04 14:53:33 +0200107 <version>${httpclient.version}</version>
Michael Landob3d48982017-06-11 14:22:02 +0300108 <scope>compile</scope>
109 </dependency>
110
111 <dependency>
112 <groupId>commons-logging</groupId>
113 <artifactId>commons-logging</artifactId>
Michael Landoa5445102018-03-04 14:53:33 +0200114 <version>${commons-logging}</version>
Michael Landob3d48982017-06-11 14:22:02 +0300115 <scope>compile</scope>
116 </dependency>
117
118 <dependency>
119 <groupId>org.slf4j</groupId>
120 <artifactId>slf4j-api</artifactId>
Michael Landoa5445102018-03-04 14:53:33 +0200121 <version>${slf4j-api.version}</version>
Michael Landob3d48982017-06-11 14:22:02 +0300122 <scope>compile</scope>
123 </dependency>
124
125 <dependency>
126 <groupId>ch.qos.logback</groupId>
127 <artifactId>logback-classic</artifactId>
Michael Landoa5445102018-03-04 14:53:33 +0200128 <version>${logback.version}</version>
Michael Landob3d48982017-06-11 14:22:02 +0300129 <scope>compile</scope>
130 </dependency>
131
132 <dependency>
133 <groupId>ch.qos.logback</groupId>
134 <artifactId>logback-core</artifactId>
Michael Landoa5445102018-03-04 14:53:33 +0200135 <version>${logback.version}</version>
Michael Landob3d48982017-06-11 14:22:02 +0300136 <scope>compile</scope>
137 </dependency>
138
139 <!-- http core -->
140 <dependency>
141 <groupId>org.apache.httpcomponents</groupId>
142 <artifactId>httpcore</artifactId>
143 <version>${httpcore.version}</version>
144 <scope>compile</scope>
145 </dependency>
146
Michael Landob3d48982017-06-11 14:22:02 +0300147 <dependency>
148 <groupId>org.codehaus.jackson</groupId>
149 <artifactId>jackson-mapper-asl</artifactId>
150 <version>1.9.2</version>
151 <scope>compile</scope>
152 </dependency>
153
154 <dependency>
155 <groupId>com.fasterxml.jackson.core</groupId>
156 <artifactId>jackson-databind</artifactId>
Gitelman, Tal (tg851x)483c3d92018-03-12 18:41:15 +0200157 <version>${jackson.version}</version>
Michael Landob3d48982017-06-11 14:22:02 +0300158 <scope>compile</scope>
159 </dependency>
160
161 <dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300162 <groupId>org.openecomp.sdc.sdc-distribution-client</groupId>
163 <artifactId>sdc-distribution-client</artifactId>
Michael Landoa5445102018-03-04 14:53:33 +0200164 <version>1.2.3</version>
Michael Landob3d48982017-06-11 14:22:02 +0300165 <scope>compile</scope>
166 </dependency>
167
168 <dependency>
169 <groupId>junit</groupId>
170 <artifactId>junit</artifactId>
171 <version>${junit.version}</version>
172 <scope>compile</scope>
173 </dependency>
174
175 <dependency>
176 <groupId>org.testng</groupId>
177 <artifactId>testng</artifactId>
Michael Landoa5445102018-03-04 14:53:33 +0200178 <version>6.11</version>
Michael Landob3d48982017-06-11 14:22:02 +0300179 <scope>compile</scope>
180 </dependency>
181
182 <dependency>
183 <groupId>xml-apis</groupId>
184 <artifactId>xml-apis</artifactId>
185 <version>1.4.01</version>
186 <scope>compile</scope>
187 </dependency>
188
189 <dependency>
190 <groupId>com.googlecode.json-simple</groupId>
191 <artifactId>json-simple</artifactId>
192 <version>${json-simple.version}</version>
193 <scope>compile</scope>
194 </dependency>
195
196 <dependency>
197 <groupId>org.apache.commons</groupId>
198 <artifactId>commons-jci-core</artifactId>
199 <version>${commons-jci-core.version}</version>
200 <scope>compile</scope>
201 </dependency>
202
203 <dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300204 <groupId>commons-codec</groupId>
205 <artifactId>commons-codec</artifactId>
Michael Landoa5445102018-03-04 14:53:33 +0200206 <version>${commons-codec}</version>
Michael Landob3d48982017-06-11 14:22:02 +0300207 <scope>compile</scope>
208 </dependency>
209
210 <dependency>
Michael Landoa5445102018-03-04 14:53:33 +0200211 <groupId>com.aventstack</groupId>
212 <artifactId>extentreports</artifactId>
213 <version>3.0.6</version>
214 <scope>compile</scope>
Michael Landob3d48982017-06-11 14:22:02 +0300215 </dependency>
216
217 <dependency>
Michael Landoa5445102018-03-04 14:53:33 +0200218 <groupId>net.lightbody.bmp</groupId>
shrikantawachar0ebace52018-04-09 13:03:56 +0530219 <!-- To use the legacy, Jetty-based implementation, change the artifactId
Michael Landoa5445102018-03-04 14:53:33 +0200220 to browsermob-core -->
221 <artifactId>browsermob-core</artifactId>
222 <version>2.1.4</version>
223 </dependency>
224
225 <dependency>
226 <groupId>com.github.markusbernhardt</groupId>
227 <artifactId>proxy-vole</artifactId>
228 <version>1.0.2</version>
229 </dependency>
230
231 <dependency>
232 <groupId>com.paulhammant</groupId>
233 <artifactId>ngwebdriver</artifactId>
234 <version>0.9.7</version>
235 <scope>compile</scope>
236 </dependency>
237
238 <dependency>
239 <groupId>com.google.inject</groupId>
240 <artifactId>guice</artifactId>
241 <version>4.1.0</version>
242 </dependency>
Michael Lando5b593492018-07-29 16:13:45 +0300243
Tal Gitelmane0199372018-09-18 11:57:53 +0300244 <dependency>
245 <groupId>org.codehaus.groovy</groupId>
246 <artifactId>groovy</artifactId>
Tal Gitelmane0199372018-09-18 11:57:53 +0300247 </dependency>
248
Yuli Shlosberg79e36272018-10-02 14:45:26 +0300249 <dependency>
250 <groupId>io.netty</groupId>
251 <artifactId>netty-handler</artifactId>
252 </dependency>
253
Michael Landob3d48982017-06-11 14:22:02 +0300254 </dependencies>
255
256 <build>
Yuli Shlosbergf59a2252018-03-21 11:14:08 +0200257
Michael Landob3d48982017-06-11 14:22:02 +0300258 <plugins>
Michael Lando5b593492018-07-29 16:13:45 +0300259
Michael Landob3d48982017-06-11 14:22:02 +0300260 <plugin>
Michael Landodc856bb2018-08-13 13:27:52 +0300261 <groupId>org.apache.maven.plugins</groupId>
Yuli Shlosbergf59a2252018-03-21 11:14:08 +0200262 <artifactId>maven-clean-plugin</artifactId>
Yuli Shlosbergf59a2252018-03-21 11:14:08 +0200263 <executions>
264 <execution>
265 <id>clean.tosca.chef.os.folder</id>
266 <phase>clean</phase>
267 <goals>
268 <goal>clean</goal>
269 </goals>
270 <configuration>
271 <filesets>
272
273 <!-- Sanity jar -->
274 <fileset>
275 <directory>${project.basedir}/sdc-ui-tests</directory>
276 <followSymlinks>false</followSymlinks>
277 <includes>
278 <include>*.jar</include>
279 </includes>
280 </fileset>
281 <!-- Sanity test suites -->
282 <fileset>
283 <directory>${project.basedir}/sdc-ui-tests/chef-repo/cookbooks/sdc-ui-tests/files/default/testSuites</directory>
284 <followSymlinks>false</followSymlinks>
285 </fileset>
Yuli Shlosberg9ffdb632018-10-22 16:54:02 +0300286 <!-- VNF files -->
287 <fileset>
288 <directory>${project.basedir}/sdc-ui-tests/chef-repo/cookbooks/sdc-ui-tests/files/default/Files/VNFs</directory>
289 <followSymlinks>false</followSymlinks>
290 </fileset>
Yuli Shlosbergf59a2252018-03-21 11:14:08 +0200291 </filesets>
292 </configuration>
293 </execution>
294 </executions>
295 </plugin>
296 <plugin>
Michael Landob3d48982017-06-11 14:22:02 +0300297 <groupId>org.apache.maven.plugins</groupId>
298 <artifactId>maven-deploy-plugin</artifactId>
Michael Landob3d48982017-06-11 14:22:02 +0300299 <configuration>
300 <skip>true</skip>
301 </configuration>
302 </plugin>
Michael Landob3d48982017-06-11 14:22:02 +0300303 <plugin>
304 <groupId>org.apache.maven.plugins</groupId>
305 <artifactId>maven-assembly-plugin</artifactId>
Michael Landob3d48982017-06-11 14:22:02 +0300306 <executions>
307 <execution>
308 <id>create.jar.with.dependencies</id>
309 <phase>package</phase>
310 <goals>
311 <goal>single</goal>
312 </goals>
313 <configuration>
314 <archive>
315 <manifest>
316 <mainClass>org.openecomp.sdc.ci.tests.execute.setup.SetupCDTest</mainClass>
317 </manifest>
318 </archive>
319 <descriptorRefs>
320 <descriptorRef>jar-with-dependencies</descriptorRef>
321 </descriptorRefs>
322 </configuration>
323 </execution>
324 </executions>
Yuli Shlosberg98369b12018-04-10 19:36:24 +0300325 </plugin>
dekstroza37843cb2018-05-18 14:42:24 +0100326 <plugin>
327 <groupId>com.github.sylvainlaurent.maven</groupId>
328 <artifactId>yaml-json-validator-maven-plugin</artifactId>
329 <executions>
330 <execution>
331 <id>validate</id>
332 <phase>validate</phase>
333 <goals>
334 <goal>validate</goal>
335 </goals>
336 <configuration>
337 <validationSets>
338 <validationSet>
339 <includes>
340 <include>src/main/resources/**/*.y*ml</include>
341 <include>src/test/resources/**/*.y*ml</include>
342 </includes>
343 </validationSet>
344 <validationSet>
345 <includes>
346 <include>src/main/resources/**/*.json</include>
347 <include>src/test/resources/**/*.json</include>
348 </includes>
349 </validationSet>
350 </validationSets>
351 </configuration>
352 </execution>
353 </executions>
354 </plugin>
Michael Landob3d48982017-06-11 14:22:02 +0300355 </plugins>
356 </build>
Yuli Shlosbergf59a2252018-03-21 11:14:08 +0200357 <profiles>
358 <profile>
359 <id>docker</id>
360 <activation>
361 <activeByDefault>false</activeByDefault>
362 </activation>
363 <build>
364 <plugins>
365 <plugin>
Michael Landodc856bb2018-08-13 13:27:52 +0300366 <groupId>org.apache.maven.plugins</groupId>
Yuli Shlosbergf59a2252018-03-21 11:14:08 +0200367 <artifactId>maven-resources-plugin</artifactId>
Yuli Shlosbergf59a2252018-03-21 11:14:08 +0200368 <executions>
369 <execution>
370 <id>copy-tests-suites</id>
371 <phase>verify</phase>
372 <goals>
373 <goal>copy-resources</goal>
374 </goals>
375 <configuration>
376 <outputDirectory>sdc-ui-tests/chef-repo/cookbooks/sdc-ui-tests/files/default/testSuites</outputDirectory>
377 <resources>
378 <resource>
379 <directory>${project.parent.basedir}/ui-ci/src/main/resources/ci/testSuites</directory>
380 <includes>
381 <include>*</include>
382 </includes>
383 </resource>
384 </resources>
385 </configuration>
386 </execution>
387
388 <execution>
Yuli Shlosberg17889832018-04-08 14:03:29 +0300389 <id>copy-csar-files</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/Files/VNFs</outputDirectory>
396 <resources>
397 <resource>
398 <directory>${project.parent.basedir}/test-apis-ci/sdc-api-tests/chef-repo/cookbooks/sdc-api-tests/files/default/Files/VNFs</directory>
399 <includes>
400 <include>*</include>
401 </includes>
402 </resource>
403 </resources>
404 </configuration>
405 </execution>
406
407 <execution>
Yuli Shlosbergf59a2252018-03-21 11:14:08 +0200408 <id>copy-resources-ui-ci</id>
409 <phase>verify</phase>
410 <goals>
411 <goal>copy-resources</goal>
412 </goals>
413 <configuration>
414 <outputDirectory>${basedir}/sdc-ui-tests</outputDirectory>
415 <resources>
416 <resource>
417 <directory>${project.parent.basedir}/ui-ci/target</directory>
418 <includes>
419 <include>ui-ci-${project.version}-jar-with-dependencies.jar</include>
420 </includes>
421 </resource>
422 </resources>
423 </configuration>
424 </execution>
425 </executions>
426 </plugin>
427
428 <plugin>
429 <groupId>io.fabric8</groupId>
430 <artifactId>docker-maven-plugin</artifactId>
Yuli Shlosbergf59a2252018-03-21 11:14:08 +0200431 <configuration>
Yuli Shlosbergf59a2252018-03-21 11:14:08 +0200432 <apiVersion>1.23</apiVersion>
433 <registry>nexus3.onap.org:10001</registry>
434 <authConfig>
435 <pull>
436 <username>docker</username>
437 <password>docker</password>
438 </pull>
439 </authConfig>
440 <images>
441
442 <!-- Build sanity image -->
443 <image>
444 <name>onap/sdc-ui-tests</name>
445 <alias>sdc-ui-sanity</alias>
446 <build>
447 <cleanup>try</cleanup>
448 <dockerFileDir>${project.basedir}/sdc-ui-tests</dockerFileDir>
449 <tags>
450 <tag>${docker.tag}</tag>
Yuli Shlosbergf59a2252018-03-21 11:14:08 +0200451 <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</tag>
452 </tags>
453 </build>
454 </image>
455
456 </images>
457 </configuration>
458 <executions>
459 <execution>
460 <id>clean-images</id>
461 <phase>pre-clean</phase>
462 <goals>
463 <goal>remove</goal>
464 </goals>
465 <configuration>
466 <removeAll>true</removeAll>
467 <image>onap/sdc-ui-tests</image>
468 </configuration>
469 </execution>
470
471 <execution>
472 <id>generate-images</id>
473 <phase>install</phase>
474 <goals>
475 <goal>build</goal>
476 </goals>
477 </execution>
478
479 <execution>
480 <id>push-images</id>
481 <phase>deploy</phase>
482 <goals>
483 <goal>push</goal>
484 </goals>
485 <configuration>
486 <image>onap/sdc-ui-tests</image>
487 </configuration>
488 </execution>
489 </executions>
490 </plugin>
491 </plugins>
492 </build>
493 </profile>
494 </profiles>
Michael Landob3d48982017-06-11 14:22:02 +0300495</project>