blob: 6745cc93908dad7af5636a6f0264bcaf87548986 [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>
Michael Landod8a0dea2018-06-02 19:23:27 +030012 <version>1.3.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>
Michael Lando5b593492018-07-29 16:13:45 +030026 <!-- <version>21.0</version> -->
Michael Landob3d48982017-06-11 14:22:02 +030027 <scope>compile</scope>
28 </dependency>
Michael Landoa5445102018-03-04 14:53:33 +020029
Michael Landob3d48982017-06-11 14:22:02 +030030 <dependency>
31 <groupId>org.seleniumhq.selenium</groupId>
32 <artifactId>selenium-java</artifactId>
33 <version>2.53.1</version>
Michael Lando5b593492018-07-29 16:13:45 +030034 <!-- <version>3.4.0</version> -->
Michael Landob3d48982017-06-11 14:22:02 +030035 </dependency>
36
37 <dependency>
38 <groupId>org.seleniumhq.selenium</groupId>
39 <artifactId>selenium-server</artifactId>
40 <version>2.53.1</version>
Michael Lando5b593492018-07-29 16:13:45 +030041 <!-- <version>3.4.0</version> -->
Michael Landob3d48982017-06-11 14:22:02 +030042 <scope>runtime</scope>
43 </dependency>
44
45 <dependency>
46 <groupId>commons-net</groupId>
47 <artifactId>commons-net</artifactId>
48 <version>3.3</version>
49 <scope>compile</scope>
50 </dependency>
51
52 <dependency>
53 <groupId>commons-io</groupId>
54 <artifactId>commons-io</artifactId>
55 <version>2.4</version>
56 <scope>compile</scope>
57 </dependency>
58
59 <dependency>
60 <groupId>org.openecomp.sdc</groupId>
61 <artifactId>test-apis-ci</artifactId>
62 <version>${project.version}</version>
Michael Landob3d48982017-06-11 14:22:02 +030063 <scope>compile</scope>
64 </dependency>
65
66 <dependency>
67 <groupId>org.yaml</groupId>
68 <artifactId>snakeyaml</artifactId>
69 <version>${snakeyaml.version}</version>
70 <scope>compile</scope>
71 </dependency>
Michael Landoa5445102018-03-04 14:53:33 +020072 <dependency>
Michael Landob3d48982017-06-11 14:22:02 +030073 <groupId>org.functionaljava</groupId>
74 <artifactId>functionaljava</artifactId>
75 <version>${functionaljava.version}</version>
76 <scope>compile</scope>
77 </dependency>
78
79 <dependency>
80 <groupId>com.google.code.gson</groupId>
81 <artifactId>gson</artifactId>
82 <version>${gson.version}</version>
83 <scope>compile</scope>
84 </dependency>
85
86 <!-- http client -->
87 <dependency>
88 <groupId>org.apache.httpcomponents</groupId>
89 <artifactId>httpclient</artifactId>
Michael Landoa5445102018-03-04 14:53:33 +020090 <version>${httpclient.version}</version>
Michael Landob3d48982017-06-11 14:22:02 +030091 <scope>compile</scope>
92 </dependency>
93
94 <dependency>
95 <groupId>org.apache.httpcomponents</groupId>
96 <artifactId>httpmime</artifactId>
Michael Landoa5445102018-03-04 14:53:33 +020097 <version>${httpclient.version}</version>
Michael Landob3d48982017-06-11 14:22:02 +030098 <scope>compile</scope>
99 </dependency>
100
101 <dependency>
102 <groupId>commons-logging</groupId>
103 <artifactId>commons-logging</artifactId>
Michael Landoa5445102018-03-04 14:53:33 +0200104 <version>${commons-logging}</version>
Michael Landob3d48982017-06-11 14:22:02 +0300105 <scope>compile</scope>
106 </dependency>
107
108 <dependency>
109 <groupId>org.slf4j</groupId>
110 <artifactId>slf4j-api</artifactId>
Michael Landoa5445102018-03-04 14:53:33 +0200111 <version>${slf4j-api.version}</version>
Michael Landob3d48982017-06-11 14:22:02 +0300112 <scope>compile</scope>
113 </dependency>
114
115 <dependency>
116 <groupId>ch.qos.logback</groupId>
117 <artifactId>logback-classic</artifactId>
Michael Landoa5445102018-03-04 14:53:33 +0200118 <version>${logback.version}</version>
Michael Landob3d48982017-06-11 14:22:02 +0300119 <scope>compile</scope>
120 </dependency>
121
122 <dependency>
123 <groupId>ch.qos.logback</groupId>
124 <artifactId>logback-core</artifactId>
Michael Landoa5445102018-03-04 14:53:33 +0200125 <version>${logback.version}</version>
Michael Landob3d48982017-06-11 14:22:02 +0300126 <scope>compile</scope>
127 </dependency>
128
129 <!-- http core -->
130 <dependency>
131 <groupId>org.apache.httpcomponents</groupId>
132 <artifactId>httpcore</artifactId>
133 <version>${httpcore.version}</version>
134 <scope>compile</scope>
135 </dependency>
136
137 <!-- TITAN -->
138 <dependency>
139 <groupId>com.thinkaurelius.titan</groupId>
140 <artifactId>titan-core</artifactId>
141 <version>${titan.version}</version>
142 <scope>compile</scope>
143 </dependency>
144
145 <dependency>
Michael Landoc7916a42018-03-20 12:11:07 +0200146 <groupId>org.onap.sdc.sdc-titan-cassandra</groupId>
147 <artifactId>sdc-titan-cassandra</artifactId>
148 <version>${sdc.titan.version}</version>
Michael Landob3d48982017-06-11 14:22:02 +0300149 <scope>compile</scope>
150 </dependency>
151
152 <dependency>
153 <groupId>org.codehaus.jackson</groupId>
154 <artifactId>jackson-mapper-asl</artifactId>
155 <version>1.9.2</version>
156 <scope>compile</scope>
157 </dependency>
158
159 <dependency>
160 <groupId>com.fasterxml.jackson.core</groupId>
161 <artifactId>jackson-databind</artifactId>
Gitelman, Tal (tg851x)483c3d92018-03-12 18:41:15 +0200162 <version>${jackson.version}</version>
Michael Landob3d48982017-06-11 14:22:02 +0300163 <scope>compile</scope>
164 </dependency>
165
166 <dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300167 <groupId>org.openecomp.sdc.sdc-distribution-client</groupId>
168 <artifactId>sdc-distribution-client</artifactId>
Michael Landoa5445102018-03-04 14:53:33 +0200169 <version>1.2.3</version>
Michael Landob3d48982017-06-11 14:22:02 +0300170 <scope>compile</scope>
171 </dependency>
172
173 <dependency>
174 <groupId>junit</groupId>
175 <artifactId>junit</artifactId>
176 <version>${junit.version}</version>
177 <scope>compile</scope>
178 </dependency>
179
180 <dependency>
181 <groupId>org.testng</groupId>
182 <artifactId>testng</artifactId>
Michael Landoa5445102018-03-04 14:53:33 +0200183 <version>6.11</version>
Michael Landob3d48982017-06-11 14:22:02 +0300184 <scope>compile</scope>
185 </dependency>
186
187 <dependency>
188 <groupId>xml-apis</groupId>
189 <artifactId>xml-apis</artifactId>
190 <version>1.4.01</version>
191 <scope>compile</scope>
192 </dependency>
193
194 <dependency>
195 <groupId>com.googlecode.json-simple</groupId>
196 <artifactId>json-simple</artifactId>
197 <version>${json-simple.version}</version>
198 <scope>compile</scope>
199 </dependency>
200
201 <dependency>
202 <groupId>org.apache.commons</groupId>
203 <artifactId>commons-jci-core</artifactId>
204 <version>${commons-jci-core.version}</version>
205 <scope>compile</scope>
206 </dependency>
207
208 <dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300209 <groupId>commons-codec</groupId>
210 <artifactId>commons-codec</artifactId>
Michael Landoa5445102018-03-04 14:53:33 +0200211 <version>${commons-codec}</version>
Michael Landob3d48982017-06-11 14:22:02 +0300212 <scope>compile</scope>
213 </dependency>
214
215 <dependency>
Michael Landoa5445102018-03-04 14:53:33 +0200216 <groupId>com.aventstack</groupId>
217 <artifactId>extentreports</artifactId>
218 <version>3.0.6</version>
219 <scope>compile</scope>
Michael Landob3d48982017-06-11 14:22:02 +0300220 </dependency>
221
222 <dependency>
Michael Landoa5445102018-03-04 14:53:33 +0200223 <groupId>net.lightbody.bmp</groupId>
shrikantawachar0ebace52018-04-09 13:03:56 +0530224 <!-- To use the legacy, Jetty-based implementation, change the artifactId
Michael Landoa5445102018-03-04 14:53:33 +0200225 to browsermob-core -->
226 <artifactId>browsermob-core</artifactId>
227 <version>2.1.4</version>
228 </dependency>
229
230 <dependency>
231 <groupId>com.github.markusbernhardt</groupId>
232 <artifactId>proxy-vole</artifactId>
233 <version>1.0.2</version>
234 </dependency>
235
236 <dependency>
237 <groupId>com.paulhammant</groupId>
238 <artifactId>ngwebdriver</artifactId>
239 <version>0.9.7</version>
240 <scope>compile</scope>
241 </dependency>
242
243 <dependency>
244 <groupId>com.google.inject</groupId>
245 <artifactId>guice</artifactId>
246 <version>4.1.0</version>
247 </dependency>
Michael Lando5b593492018-07-29 16:13:45 +0300248
Michael Landob3d48982017-06-11 14:22:02 +0300249 </dependencies>
250
251 <build>
Yuli Shlosbergf59a2252018-03-21 11:14:08 +0200252
Michael Landob3d48982017-06-11 14:22:02 +0300253 <plugins>
Michael Lando5b593492018-07-29 16:13:45 +0300254
Michael Landob3d48982017-06-11 14:22:02 +0300255 <plugin>
Michael Landodc856bb2018-08-13 13:27:52 +0300256 <groupId>org.apache.maven.plugins</groupId>
Yuli Shlosbergf59a2252018-03-21 11:14:08 +0200257 <artifactId>maven-clean-plugin</artifactId>
Yuli Shlosbergf59a2252018-03-21 11:14:08 +0200258 <executions>
259 <execution>
260 <id>clean.tosca.chef.os.folder</id>
261 <phase>clean</phase>
262 <goals>
263 <goal>clean</goal>
264 </goals>
265 <configuration>
266 <filesets>
267
268 <!-- Sanity jar -->
269 <fileset>
270 <directory>${project.basedir}/sdc-ui-tests</directory>
271 <followSymlinks>false</followSymlinks>
272 <includes>
273 <include>*.jar</include>
274 </includes>
275 </fileset>
276 <!-- Sanity test suites -->
277 <fileset>
278 <directory>${project.basedir}/sdc-ui-tests/chef-repo/cookbooks/sdc-ui-tests/files/default/testSuites</directory>
279 <followSymlinks>false</followSymlinks>
280 </fileset>
281 </filesets>
282 </configuration>
283 </execution>
284 </executions>
285 </plugin>
286 <plugin>
Michael Landob3d48982017-06-11 14:22:02 +0300287 <groupId>org.apache.maven.plugins</groupId>
288 <artifactId>maven-deploy-plugin</artifactId>
Michael Landob3d48982017-06-11 14:22:02 +0300289 <configuration>
290 <skip>true</skip>
291 </configuration>
292 </plugin>
Michael Landob3d48982017-06-11 14:22:02 +0300293 <plugin>
294 <groupId>org.apache.maven.plugins</groupId>
295 <artifactId>maven-assembly-plugin</artifactId>
Michael Landob3d48982017-06-11 14:22:02 +0300296 <executions>
297 <execution>
298 <id>create.jar.with.dependencies</id>
299 <phase>package</phase>
300 <goals>
301 <goal>single</goal>
302 </goals>
303 <configuration>
304 <archive>
305 <manifest>
306 <mainClass>org.openecomp.sdc.ci.tests.execute.setup.SetupCDTest</mainClass>
307 </manifest>
308 </archive>
309 <descriptorRefs>
310 <descriptorRef>jar-with-dependencies</descriptorRef>
311 </descriptorRefs>
312 </configuration>
313 </execution>
314 </executions>
Yuli Shlosberg98369b12018-04-10 19:36:24 +0300315 </plugin>
dekstroza37843cb2018-05-18 14:42:24 +0100316 <plugin>
317 <groupId>com.github.sylvainlaurent.maven</groupId>
318 <artifactId>yaml-json-validator-maven-plugin</artifactId>
319 <executions>
320 <execution>
321 <id>validate</id>
322 <phase>validate</phase>
323 <goals>
324 <goal>validate</goal>
325 </goals>
326 <configuration>
327 <validationSets>
328 <validationSet>
329 <includes>
330 <include>src/main/resources/**/*.y*ml</include>
331 <include>src/test/resources/**/*.y*ml</include>
332 </includes>
333 </validationSet>
334 <validationSet>
335 <includes>
336 <include>src/main/resources/**/*.json</include>
337 <include>src/test/resources/**/*.json</include>
338 </includes>
339 </validationSet>
340 </validationSets>
341 </configuration>
342 </execution>
343 </executions>
344 </plugin>
Michael Landob3d48982017-06-11 14:22:02 +0300345 </plugins>
346 </build>
Yuli Shlosbergf59a2252018-03-21 11:14:08 +0200347 <profiles>
348 <profile>
349 <id>docker</id>
350 <activation>
351 <activeByDefault>false</activeByDefault>
352 </activation>
353 <build>
354 <plugins>
355 <plugin>
Michael Landodc856bb2018-08-13 13:27:52 +0300356 <groupId>org.apache.maven.plugins</groupId>
Yuli Shlosbergf59a2252018-03-21 11:14:08 +0200357 <artifactId>maven-resources-plugin</artifactId>
Yuli Shlosbergf59a2252018-03-21 11:14:08 +0200358 <executions>
359 <execution>
360 <id>copy-tests-suites</id>
361 <phase>verify</phase>
362 <goals>
363 <goal>copy-resources</goal>
364 </goals>
365 <configuration>
366 <outputDirectory>sdc-ui-tests/chef-repo/cookbooks/sdc-ui-tests/files/default/testSuites</outputDirectory>
367 <resources>
368 <resource>
369 <directory>${project.parent.basedir}/ui-ci/src/main/resources/ci/testSuites</directory>
370 <includes>
371 <include>*</include>
372 </includes>
373 </resource>
374 </resources>
375 </configuration>
376 </execution>
377
378 <execution>
Yuli Shlosberg17889832018-04-08 14:03:29 +0300379 <id>copy-csar-files</id>
380 <phase>verify</phase>
381 <goals>
382 <goal>copy-resources</goal>
383 </goals>
384 <configuration>
385 <outputDirectory>sdc-ui-tests/chef-repo/cookbooks/sdc-ui-tests/files/default/Files/VNFs</outputDirectory>
386 <resources>
387 <resource>
388 <directory>${project.parent.basedir}/test-apis-ci/sdc-api-tests/chef-repo/cookbooks/sdc-api-tests/files/default/Files/VNFs</directory>
389 <includes>
390 <include>*</include>
391 </includes>
392 </resource>
393 </resources>
394 </configuration>
395 </execution>
396
397 <execution>
Yuli Shlosbergf59a2252018-03-21 11:14:08 +0200398 <id>copy-resources-ui-ci</id>
399 <phase>verify</phase>
400 <goals>
401 <goal>copy-resources</goal>
402 </goals>
403 <configuration>
404 <outputDirectory>${basedir}/sdc-ui-tests</outputDirectory>
405 <resources>
406 <resource>
407 <directory>${project.parent.basedir}/ui-ci/target</directory>
408 <includes>
409 <include>ui-ci-${project.version}-jar-with-dependencies.jar</include>
410 </includes>
411 </resource>
412 </resources>
413 </configuration>
414 </execution>
415 </executions>
416 </plugin>
417
418 <plugin>
419 <groupId>io.fabric8</groupId>
420 <artifactId>docker-maven-plugin</artifactId>
Yuli Shlosbergf59a2252018-03-21 11:14:08 +0200421 <configuration>
Yuli Shlosbergf59a2252018-03-21 11:14:08 +0200422 <apiVersion>1.23</apiVersion>
423 <registry>nexus3.onap.org:10001</registry>
424 <authConfig>
425 <pull>
426 <username>docker</username>
427 <password>docker</password>
428 </pull>
429 </authConfig>
430 <images>
431
432 <!-- Build sanity image -->
433 <image>
434 <name>onap/sdc-ui-tests</name>
435 <alias>sdc-ui-sanity</alias>
436 <build>
437 <cleanup>try</cleanup>
438 <dockerFileDir>${project.basedir}/sdc-ui-tests</dockerFileDir>
439 <tags>
440 <tag>${docker.tag}</tag>
Yuli Shlosbergf59a2252018-03-21 11:14:08 +0200441 <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</tag>
442 </tags>
443 </build>
444 </image>
445
446 </images>
447 </configuration>
448 <executions>
449 <execution>
450 <id>clean-images</id>
451 <phase>pre-clean</phase>
452 <goals>
453 <goal>remove</goal>
454 </goals>
455 <configuration>
456 <removeAll>true</removeAll>
457 <image>onap/sdc-ui-tests</image>
458 </configuration>
459 </execution>
460
461 <execution>
462 <id>generate-images</id>
463 <phase>install</phase>
464 <goals>
465 <goal>build</goal>
466 </goals>
467 </execution>
468
469 <execution>
470 <id>push-images</id>
471 <phase>deploy</phase>
472 <goals>
473 <goal>push</goal>
474 </goals>
475 <configuration>
476 <image>onap/sdc-ui-tests</image>
477 </configuration>
478 </execution>
479 </executions>
480 </plugin>
481 </plugins>
482 </build>
483 </profile>
484 </profiles>
Michael Landob3d48982017-06-11 14:22:02 +0300485</project>