blob: c6d8c2d042dced636d3e6e889dd2371e0b504194 [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>
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>
32 <version>2.53.1</version>
33 </dependency>
34
35 <dependency>
36 <groupId>org.seleniumhq.selenium</groupId>
37 <artifactId>selenium-server</artifactId>
38 <version>2.53.1</version>
39 <scope>runtime</scope>
40 </dependency>
41
42 <dependency>
43 <groupId>commons-net</groupId>
44 <artifactId>commons-net</artifactId>
45 <version>3.3</version>
46 <scope>compile</scope>
47 </dependency>
48
49 <dependency>
50 <groupId>commons-io</groupId>
51 <artifactId>commons-io</artifactId>
52 <version>2.4</version>
53 <scope>compile</scope>
54 </dependency>
55
56 <dependency>
57 <groupId>org.openecomp.sdc</groupId>
58 <artifactId>test-apis-ci</artifactId>
59 <version>${project.version}</version>
Michael Landob3d48982017-06-11 14:22:02 +030060 <scope>compile</scope>
61 </dependency>
62
63 <dependency>
64 <groupId>org.yaml</groupId>
65 <artifactId>snakeyaml</artifactId>
66 <version>${snakeyaml.version}</version>
67 <scope>compile</scope>
68 </dependency>
Michael Landoa5445102018-03-04 14:53:33 +020069 <dependency>
Michael Landob3d48982017-06-11 14:22:02 +030070 <groupId>org.functionaljava</groupId>
71 <artifactId>functionaljava</artifactId>
72 <version>${functionaljava.version}</version>
73 <scope>compile</scope>
74 </dependency>
75
76 <dependency>
77 <groupId>com.google.code.gson</groupId>
78 <artifactId>gson</artifactId>
79 <version>${gson.version}</version>
80 <scope>compile</scope>
81 </dependency>
82
83 <!-- http client -->
84 <dependency>
85 <groupId>org.apache.httpcomponents</groupId>
86 <artifactId>httpclient</artifactId>
Michael Landoa5445102018-03-04 14:53:33 +020087 <version>${httpclient.version}</version>
Michael Landob3d48982017-06-11 14:22:02 +030088 <scope>compile</scope>
89 </dependency>
90
91 <dependency>
92 <groupId>org.apache.httpcomponents</groupId>
93 <artifactId>httpmime</artifactId>
Michael Landoa5445102018-03-04 14:53:33 +020094 <version>${httpclient.version}</version>
Michael Landob3d48982017-06-11 14:22:02 +030095 <scope>compile</scope>
96 </dependency>
97
98 <dependency>
99 <groupId>commons-logging</groupId>
100 <artifactId>commons-logging</artifactId>
Michael Landoa5445102018-03-04 14:53:33 +0200101 <version>${commons-logging}</version>
Michael Landob3d48982017-06-11 14:22:02 +0300102 <scope>compile</scope>
103 </dependency>
104
105 <dependency>
106 <groupId>org.slf4j</groupId>
107 <artifactId>slf4j-api</artifactId>
Michael Landoa5445102018-03-04 14:53:33 +0200108 <version>${slf4j-api.version}</version>
Michael Landob3d48982017-06-11 14:22:02 +0300109 <scope>compile</scope>
110 </dependency>
111
112 <dependency>
113 <groupId>ch.qos.logback</groupId>
114 <artifactId>logback-classic</artifactId>
Michael Landoa5445102018-03-04 14:53:33 +0200115 <version>${logback.version}</version>
Michael Landob3d48982017-06-11 14:22:02 +0300116 <scope>compile</scope>
117 </dependency>
118
119 <dependency>
120 <groupId>ch.qos.logback</groupId>
121 <artifactId>logback-core</artifactId>
Michael Landoa5445102018-03-04 14:53:33 +0200122 <version>${logback.version}</version>
Michael Landob3d48982017-06-11 14:22:02 +0300123 <scope>compile</scope>
124 </dependency>
125
126 <!-- http core -->
127 <dependency>
128 <groupId>org.apache.httpcomponents</groupId>
129 <artifactId>httpcore</artifactId>
130 <version>${httpcore.version}</version>
131 <scope>compile</scope>
132 </dependency>
133
134 <!-- TITAN -->
135 <dependency>
136 <groupId>com.thinkaurelius.titan</groupId>
137 <artifactId>titan-core</artifactId>
138 <version>${titan.version}</version>
139 <scope>compile</scope>
140 </dependency>
141
142 <dependency>
Michael Landoc7916a42018-03-20 12:11:07 +0200143 <groupId>org.onap.sdc.sdc-titan-cassandra</groupId>
144 <artifactId>sdc-titan-cassandra</artifactId>
145 <version>${sdc.titan.version}</version>
Michael Landob3d48982017-06-11 14:22:02 +0300146 <scope>compile</scope>
147 </dependency>
148
149 <dependency>
150 <groupId>org.codehaus.jackson</groupId>
151 <artifactId>jackson-mapper-asl</artifactId>
152 <version>1.9.2</version>
153 <scope>compile</scope>
154 </dependency>
155
156 <dependency>
157 <groupId>com.fasterxml.jackson.core</groupId>
158 <artifactId>jackson-databind</artifactId>
Gitelman, Tal (tg851x)483c3d92018-03-12 18:41:15 +0200159 <version>${jackson.version}</version>
Michael Landob3d48982017-06-11 14:22:02 +0300160 <scope>compile</scope>
161 </dependency>
162
163 <dependency>
164 <groupId>com.fasterxml.jackson.core</groupId>
165 <artifactId>jackson-core</artifactId>
Gitelman, Tal (tg851x)483c3d92018-03-12 18:41:15 +0200166 <version>${jackson.version}</version>
Michael Landob3d48982017-06-11 14:22:02 +0300167 <scope>compile</scope>
168 </dependency>
Michael Landoa5445102018-03-04 14:53:33 +0200169
Michael Landob3d48982017-06-11 14:22:02 +0300170 <dependency>
Michael Landoa5445102018-03-04 14:53:33 +0200171 <groupId>com.fasterxml.jackson.core</groupId>
172 <artifactId>jackson-annotations</artifactId>
Michael Landob3d48982017-06-11 14:22:02 +0300173 <version>${jackson.annotations.version}</version>
Michael Landoa5445102018-03-04 14:53:33 +0200174 <scope>compile</scope>
175 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300176
177 <dependency>
178 <groupId>org.openecomp.sdc.sdc-distribution-client</groupId>
179 <artifactId>sdc-distribution-client</artifactId>
Michael Landoa5445102018-03-04 14:53:33 +0200180 <version>1.2.3</version>
Michael Landob3d48982017-06-11 14:22:02 +0300181 <scope>compile</scope>
182 </dependency>
183
184 <dependency>
185 <groupId>junit</groupId>
186 <artifactId>junit</artifactId>
187 <version>${junit.version}</version>
188 <scope>compile</scope>
189 </dependency>
190
191 <dependency>
192 <groupId>org.testng</groupId>
193 <artifactId>testng</artifactId>
Michael Landoa5445102018-03-04 14:53:33 +0200194 <version>6.11</version>
Michael Landob3d48982017-06-11 14:22:02 +0300195 <scope>compile</scope>
196 </dependency>
197
198 <dependency>
199 <groupId>xml-apis</groupId>
200 <artifactId>xml-apis</artifactId>
201 <version>1.4.01</version>
202 <scope>compile</scope>
203 </dependency>
204
205 <dependency>
206 <groupId>com.googlecode.json-simple</groupId>
207 <artifactId>json-simple</artifactId>
208 <version>${json-simple.version}</version>
209 <scope>compile</scope>
210 </dependency>
211
212 <dependency>
213 <groupId>org.apache.commons</groupId>
214 <artifactId>commons-jci-core</artifactId>
215 <version>${commons-jci-core.version}</version>
216 <scope>compile</scope>
217 </dependency>
218
219 <dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300220 <groupId>commons-codec</groupId>
221 <artifactId>commons-codec</artifactId>
Michael Landoa5445102018-03-04 14:53:33 +0200222 <version>${commons-codec}</version>
Michael Landob3d48982017-06-11 14:22:02 +0300223 <scope>compile</scope>
224 </dependency>
225
226 <dependency>
Michael Landoa5445102018-03-04 14:53:33 +0200227 <groupId>com.aventstack</groupId>
228 <artifactId>extentreports</artifactId>
229 <version>3.0.6</version>
230 <scope>compile</scope>
Michael Landob3d48982017-06-11 14:22:02 +0300231 </dependency>
232
233 <dependency>
Michael Landoa5445102018-03-04 14:53:33 +0200234 <groupId>net.lightbody.bmp</groupId>
shrikantawachar0ebace52018-04-09 13:03:56 +0530235 <!-- To use the legacy, Jetty-based implementation, change the artifactId
Michael Landoa5445102018-03-04 14:53:33 +0200236 to browsermob-core -->
237 <artifactId>browsermob-core</artifactId>
238 <version>2.1.4</version>
239 </dependency>
240
241 <dependency>
242 <groupId>com.github.markusbernhardt</groupId>
243 <artifactId>proxy-vole</artifactId>
244 <version>1.0.2</version>
245 </dependency>
246
247 <dependency>
248 <groupId>com.paulhammant</groupId>
249 <artifactId>ngwebdriver</artifactId>
250 <version>0.9.7</version>
251 <scope>compile</scope>
252 </dependency>
253
254 <dependency>
255 <groupId>com.google.inject</groupId>
256 <artifactId>guice</artifactId>
257 <version>4.1.0</version>
258 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300259 </dependencies>
260
261 <build>
Yuli Shlosbergf59a2252018-03-21 11:14:08 +0200262
Michael Landob3d48982017-06-11 14:22:02 +0300263 <plugins>
Michael Landob3d48982017-06-11 14:22:02 +0300264 <plugin>
Yuli Shlosbergf59a2252018-03-21 11:14:08 +0200265 <artifactId>maven-clean-plugin</artifactId>
266 <version>3.0.0</version>
267 <executions>
268 <execution>
269 <id>clean.tosca.chef.os.folder</id>
270 <phase>clean</phase>
271 <goals>
272 <goal>clean</goal>
273 </goals>
274 <configuration>
275 <filesets>
276
277 <!-- Sanity jar -->
278 <fileset>
279 <directory>${project.basedir}/sdc-ui-tests</directory>
280 <followSymlinks>false</followSymlinks>
281 <includes>
282 <include>*.jar</include>
283 </includes>
284 </fileset>
285 <!-- Sanity test suites -->
286 <fileset>
287 <directory>${project.basedir}/sdc-ui-tests/chef-repo/cookbooks/sdc-ui-tests/files/default/testSuites</directory>
288 <followSymlinks>false</followSymlinks>
289 </fileset>
290 </filesets>
291 </configuration>
292 </execution>
293 </executions>
294 </plugin>
295 <plugin>
Michael Landob3d48982017-06-11 14:22:02 +0300296 <groupId>org.apache.maven.plugins</groupId>
297 <artifactId>maven-deploy-plugin</artifactId>
298 <version>2.7</version>
299 <configuration>
300 <skip>true</skip>
301 </configuration>
302 </plugin>
303
304 <!-- ============================================= -->
305 <!-- Create the JAR file with its dependencies -->
306 <!-- ============================================= -->
307 <plugin>
308 <groupId>org.apache.maven.plugins</groupId>
309 <artifactId>maven-assembly-plugin</artifactId>
Michael Landob3d48982017-06-11 14:22:02 +0300310 <executions>
311 <execution>
312 <id>create.jar.with.dependencies</id>
313 <phase>package</phase>
314 <goals>
315 <goal>single</goal>
316 </goals>
317 <configuration>
318 <archive>
319 <manifest>
320 <mainClass>org.openecomp.sdc.ci.tests.execute.setup.SetupCDTest</mainClass>
321 </manifest>
322 </archive>
323 <descriptorRefs>
324 <descriptorRef>jar-with-dependencies</descriptorRef>
325 </descriptorRefs>
326 </configuration>
327 </execution>
328 </executions>
Yuli Shlosberg98369b12018-04-10 19:36:24 +0300329 </plugin>
shrikantawachar0ebace52018-04-09 13:03:56 +0530330
Michael Landob3d48982017-06-11 14:22:02 +0300331 </plugins>
332 </build>
Yuli Shlosbergf59a2252018-03-21 11:14:08 +0200333 <profiles>
334 <profile>
335 <id>docker</id>
336 <activation>
337 <activeByDefault>false</activeByDefault>
338 </activation>
339 <build>
340 <plugins>
341 <plugin>
342 <artifactId>maven-resources-plugin</artifactId>
343 <version>3.0.2</version>
344 <executions>
345 <execution>
346 <id>copy-tests-suites</id>
347 <phase>verify</phase>
348 <goals>
349 <goal>copy-resources</goal>
350 </goals>
351 <configuration>
352 <outputDirectory>sdc-ui-tests/chef-repo/cookbooks/sdc-ui-tests/files/default/testSuites</outputDirectory>
353 <resources>
354 <resource>
355 <directory>${project.parent.basedir}/ui-ci/src/main/resources/ci/testSuites</directory>
356 <includes>
357 <include>*</include>
358 </includes>
359 </resource>
360 </resources>
361 </configuration>
362 </execution>
363
364 <execution>
Yuli Shlosberg17889832018-04-08 14:03:29 +0300365 <id>copy-csar-files</id>
366 <phase>verify</phase>
367 <goals>
368 <goal>copy-resources</goal>
369 </goals>
370 <configuration>
371 <outputDirectory>sdc-ui-tests/chef-repo/cookbooks/sdc-ui-tests/files/default/Files/VNFs</outputDirectory>
372 <resources>
373 <resource>
374 <directory>${project.parent.basedir}/test-apis-ci/sdc-api-tests/chef-repo/cookbooks/sdc-api-tests/files/default/Files/VNFs</directory>
375 <includes>
376 <include>*</include>
377 </includes>
378 </resource>
379 </resources>
380 </configuration>
381 </execution>
382
383 <execution>
Yuli Shlosbergf59a2252018-03-21 11:14:08 +0200384 <id>copy-resources-ui-ci</id>
385 <phase>verify</phase>
386 <goals>
387 <goal>copy-resources</goal>
388 </goals>
389 <configuration>
390 <outputDirectory>${basedir}/sdc-ui-tests</outputDirectory>
391 <resources>
392 <resource>
393 <directory>${project.parent.basedir}/ui-ci/target</directory>
394 <includes>
395 <include>ui-ci-${project.version}-jar-with-dependencies.jar</include>
396 </includes>
397 </resource>
398 </resources>
399 </configuration>
400 </execution>
401 </executions>
402 </plugin>
403
404 <plugin>
405 <groupId>io.fabric8</groupId>
406 <artifactId>docker-maven-plugin</artifactId>
407 <version>${fabric8.version}</version>
408
409 <configuration>
410 <verbose>true</verbose>
411 <apiVersion>1.23</apiVersion>
412 <registry>nexus3.onap.org:10001</registry>
413 <authConfig>
414 <pull>
415 <username>docker</username>
416 <password>docker</password>
417 </pull>
418 </authConfig>
419 <images>
420
421 <!-- Build sanity image -->
422 <image>
423 <name>onap/sdc-ui-tests</name>
424 <alias>sdc-ui-sanity</alias>
425 <build>
426 <cleanup>try</cleanup>
427 <dockerFileDir>${project.basedir}/sdc-ui-tests</dockerFileDir>
428 <tags>
429 <tag>${docker.tag}</tag>
Yuli Shlosbergf59a2252018-03-21 11:14:08 +0200430 <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</tag>
431 </tags>
432 </build>
433 </image>
434
435 </images>
436 </configuration>
437 <executions>
438 <execution>
439 <id>clean-images</id>
440 <phase>pre-clean</phase>
441 <goals>
442 <goal>remove</goal>
443 </goals>
444 <configuration>
445 <removeAll>true</removeAll>
446 <image>onap/sdc-ui-tests</image>
447 </configuration>
448 </execution>
449
450 <execution>
451 <id>generate-images</id>
452 <phase>install</phase>
453 <goals>
454 <goal>build</goal>
455 </goals>
456 </execution>
457
458 <execution>
459 <id>push-images</id>
460 <phase>deploy</phase>
461 <goals>
462 <goal>push</goal>
463 </goals>
464 <configuration>
465 <image>onap/sdc-ui-tests</image>
466 </configuration>
467 </execution>
468 </executions>
469 </plugin>
470 </plugins>
471 </build>
472 </profile>
473 </profiles>
Michael Landob3d48982017-06-11 14:22:02 +0300474</project>