blob: f5b36598add1faaf28b3ce79d7ef5926deda3835 [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"
Michael Landoa5445102018-03-04 14:53:33 +02002 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
Michael Landoa5445102018-03-04 14:53:33 +02004 <modelVersion>4.0.0</modelVersion>
Michael Landob3d48982017-06-11 14:22:02 +03005
Michael Landoa5445102018-03-04 14:53:33 +02006 <artifactId>test-apis-ci</artifactId>
Michael Landob3d48982017-06-11 14:22:02 +03007
Michael Landoa5445102018-03-04 14:53:33 +02008 <parent>
9 <groupId>org.openecomp.sdc</groupId>
10 <artifactId>sdc-main</artifactId>
Sonsino, Ofir (os0695)55c536e2019-05-07 18:30:15 +030011 <version>1.5.0-SNAPSHOT</version>
Michael Landoa5445102018-03-04 14:53:33 +020012 </parent>
Gitelman, Tal (tg851x)e482ae42018-03-11 19:37:06 +020013
14 <properties>
15 <sonar.skip>true</sonar.skip>
16 </properties>
17
Michael Landoa5445102018-03-04 14:53:33 +020018 <dependencies>
19 <dependency>
20 <groupId>com.google.guava</groupId>
21 <artifactId>guava</artifactId>
22 <version>${guava.version}</version>
23 <scope>compile</scope>
24 </dependency>
Michael Lando660b57d2017-10-11 09:45:53 +030025
Michael Landoa5445102018-03-04 14:53:33 +020026 <dependency>
27 <groupId>junit</groupId>
28 <artifactId>junit</artifactId>
29 <version>${junit.version}</version>
30 <scope>compile</scope>
31 </dependency>
Michael Lando5b593492018-07-29 16:13:45 +030032
33 <dependency>
34 <groupId>org.assertj</groupId>
35 <artifactId>assertj-core</artifactId>
36 </dependency>
Michael Landodc856bb2018-08-13 13:27:52 +030037
Michael Landoa5445102018-03-04 14:53:33 +020038 <dependency>
39 <groupId>org.hamcrest</groupId>
40 <artifactId>hamcrest-all</artifactId>
Parshad Patel8b8061e2019-03-18 16:02:43 +090041 <version>${hamcrest-all.version}</version>
Michael Landoa5445102018-03-04 14:53:33 +020042 <scope>test</scope>
43 </dependency>
44 <dependency>
45 <groupId>org.testng</groupId>
46 <artifactId>testng</artifactId>
47 <version>${testng.version}</version>
48 <scope>compile</scope>
49 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +030050
Michael Landoa5445102018-03-04 14:53:33 +020051 <dependency>
52 <groupId>com.aventstack</groupId>
53 <artifactId>extentreports</artifactId>
54 <version>3.0.6</version>
55 <scope>compile</scope>
56 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +030057
Michael Landoa5445102018-03-04 14:53:33 +020058 <dependency>
59 <groupId>org.mockito</groupId>
60 <artifactId>mockito-core</artifactId>
61 <scope>test</scope>
62 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +030063
Michael Landoa5445102018-03-04 14:53:33 +020064 <dependency>
65 <groupId>com.typesafe</groupId>
66 <artifactId>config</artifactId>
67 <version>1.0.2</version>
68 <scope>compile</scope>
69 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +030070
Michael Landoa5445102018-03-04 14:53:33 +020071 <dependency>
72 <groupId>log4j</groupId>
73 <artifactId>log4j</artifactId>
74 <version>1.2.17</version>
75 <scope>compile</scope>
76 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +030077
Michael Landoa5445102018-03-04 14:53:33 +020078 <dependency>
79 <groupId>com.jcraft.jsch</groupId>
80 <artifactId>com.springsource.com.jcraft.jsch</artifactId>
81 <version>0.1.41</version>
82 <scope>compile</scope>
83 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +030084
Michael Landoa5445102018-03-04 14:53:33 +020085 <dependency>
86 <groupId>org.openecomp.sdc</groupId>
87 <artifactId>common-app-api</artifactId>
88 <version>${project.version}</version>
89 <scope>compile</scope>
90 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +030091
Michael Landoa5445102018-03-04 14:53:33 +020092 <dependency>
93 <groupId>org.openecomp.sdc.be</groupId>
94 <artifactId>common-be</artifactId>
95 <version>${project.version}</version>
96 <scope>compile</scope>
97 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +030098
Michael Landoa5445102018-03-04 14:53:33 +020099 <!-- CHECK CATLOG MODEL -->
100 <dependency>
101 <groupId>org.openecomp.sdc.be</groupId>
102 <artifactId>catalog-model</artifactId>
103 <version>${project.version}</version>
104 <scope>compile</scope>
105 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300106
Michael Landoa5445102018-03-04 14:53:33 +0200107 <!-- catalog dao -->
108 <dependency>
109 <groupId>org.openecomp.sdc.be</groupId>
110 <artifactId>catalog-dao</artifactId>
111 <version>${project.version}</version>
112 <scope>compile</scope>
113 </dependency>
114 <!-- functional java -->
115 <dependency>
116 <groupId>org.functionaljava</groupId>
117 <artifactId>functionaljava</artifactId>
118 <version>${functionaljava.version}</version>
119 <scope>compile</scope>
120 </dependency>
121 <!-- CASSANDRA -->
122 <dependency>
123 <groupId>com.datastax.cassandra</groupId>
124 <artifactId>cassandra-driver-core</artifactId>
125 <version>${cassandra.driver.version}</version>
126 <scope>compile</scope>
127 </dependency>
128 <!-- CASSANDRA END -->
Michael Landob3d48982017-06-11 14:22:02 +0300129
Michael Landoa5445102018-03-04 14:53:33 +0200130 <!-- slf4j + logback -->
131 <dependency>
132 <groupId>org.slf4j</groupId>
133 <artifactId>slf4j-api</artifactId>
Michael Landob3d48982017-06-11 14:22:02 +0300134 <version>${slf4j-api.version}</version>
Michael Landoa5445102018-03-04 14:53:33 +0200135 <scope>compile</scope>
136 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300137
Michael Landoa5445102018-03-04 14:53:33 +0200138 <dependency>
139 <groupId>ch.qos.logback</groupId>
140 <artifactId>logback-classic</artifactId>
Michael Landob3d48982017-06-11 14:22:02 +0300141 <version>${logback.version}</version>
Michael Landoa5445102018-03-04 14:53:33 +0200142 <scope>compile</scope>
143 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300144
Michael Landoa5445102018-03-04 14:53:33 +0200145 <dependency>
146 <groupId>ch.qos.logback</groupId>
147 <artifactId>logback-core</artifactId>
Michael Landob3d48982017-06-11 14:22:02 +0300148 <version>${logback.version}</version>
Michael Landoa5445102018-03-04 14:53:33 +0200149 <scope>compile</scope>
150 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300151
Michael Landoa5445102018-03-04 14:53:33 +0200152 <dependency>
153 <groupId>com.googlecode.json-simple</groupId>
154 <artifactId>json-simple</artifactId>
155 <version>${json-simple.version}</version>
156 <scope>compile</scope>
157 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300158
Michael Landoa5445102018-03-04 14:53:33 +0200159 <!-- File changes listener -->
160 <dependency>
161 <groupId>org.apache.commons</groupId>
162 <artifactId>commons-jci-core</artifactId>
163 <version>${commons-jci-core.version}</version>
164 <scope>compile</scope>
165 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300166
Michael Landoa5445102018-03-04 14:53:33 +0200167 <dependency>
168 <groupId>commons-codec</groupId>
169 <artifactId>commons-codec</artifactId>
Michael Landob3d48982017-06-11 14:22:02 +0300170 <version>${commons-codec}</version>
Michael Landoa5445102018-03-04 14:53:33 +0200171 <scope>compile</scope>
172 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300173
Michael Landoa5445102018-03-04 14:53:33 +0200174 <!-- Gson -->
175 <dependency>
176 <groupId>com.google.code.gson</groupId>
177 <artifactId>gson</artifactId>
178 <version>${gson.version}</version>
179 <scope>compile</scope>
180 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300181
Michael Landoa5445102018-03-04 14:53:33 +0200182 <!-- Snake Yaml -->
183 <dependency>
184 <groupId>org.yaml</groupId>
185 <artifactId>snakeyaml</artifactId>
186 <version>${snakeyaml.version}</version>
187 <scope>compile</scope>
188 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300189
Michael Landoa5445102018-03-04 14:53:33 +0200190 <!-- http client -->
191 <dependency>
192 <groupId>org.apache.httpcomponents</groupId>
193 <artifactId>httpclient</artifactId>
Michael Landob3d48982017-06-11 14:22:02 +0300194 <version>${httpclient.version}</version>
Michael Landoa5445102018-03-04 14:53:33 +0200195 <scope>compile</scope>
196 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300197
Michael Landoa5445102018-03-04 14:53:33 +0200198 <dependency>
199 <groupId>org.apache.httpcomponents</groupId>
200 <artifactId>httpmime</artifactId>
Michael Landob3d48982017-06-11 14:22:02 +0300201 <version>${httpclient.version}</version>
Michael Landoa5445102018-03-04 14:53:33 +0200202 <scope>compile</scope>
203 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300204
Michael Landoa5445102018-03-04 14:53:33 +0200205 <dependency>
206 <groupId>commons-io</groupId>
207 <artifactId>commons-io</artifactId>
208 <version>2.5</version>
209 <scope>compile</scope>
210 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300211
Michael Landoa5445102018-03-04 14:53:33 +0200212 <dependency>
213 <groupId>commons-logging</groupId>
214 <artifactId>commons-logging</artifactId>
Michael Landob3d48982017-06-11 14:22:02 +0300215 <version>${commons-logging}</version>
Michael Landoa5445102018-03-04 14:53:33 +0200216 <scope>compile</scope>
217 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300218
Michael Landoa5445102018-03-04 14:53:33 +0200219 <!-- http core -->
220 <dependency>
221 <groupId>org.apache.httpcomponents</groupId>
222 <artifactId>httpcore</artifactId>
223 <version>${httpcore.version}</version>
224 <scope>compile</scope>
225 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300226
Michael Landoa5445102018-03-04 14:53:33 +0200227 <dependency>
shrikantawachar2623c842019-05-20 12:11:54 +0530228 <groupId>org.janusgraph</groupId>
229 <artifactId>janusgraph-core</artifactId>
230 <version>${janusgraph.version}</version>
Michael Landoa5445102018-03-04 14:53:33 +0200231 <scope>compile</scope>
232 <exclusions>
233 <exclusion>
234 <artifactId>slf4j-log4j12</artifactId>
235 <groupId>org.slf4j</groupId>
236 </exclusion>
Tal Gitelman76783962018-09-06 18:16:24 +0300237 <exclusion>
238 <artifactId>commons-collections</artifactId>
239 <groupId>commons-collections</groupId>
240 </exclusion>
Tal Gitelman96dbee32018-10-10 16:39:59 +0300241 <exclusion>
242 <artifactId>groovy</artifactId>
243 <groupId>org.codehaus.groovy</groupId>
244 </exclusion>
Michael Landoa5445102018-03-04 14:53:33 +0200245 </exclusions>
246 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300247
Michael Landoa5445102018-03-04 14:53:33 +0200248 <dependency>
shrikantawachar2623c842019-05-20 12:11:54 +0530249 <groupId>org.janusgraph</groupId>
250 <artifactId>janusgraph-cassandra</artifactId>
251 <version>${janusgraph.version}</version>
Michael Landoa5445102018-03-04 14:53:33 +0200252 <scope>compile</scope>
253 <exclusions>
254 <exclusion>
255 <artifactId>slf4j-log4j12</artifactId>
256 <groupId>org.slf4j</groupId>
257 </exclusion>
258 </exclusions>
259 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300260
Michael Landoa5445102018-03-04 14:53:33 +0200261 <dependency>
262 <groupId>org.codehaus.jackson</groupId>
263 <artifactId>jackson-mapper-asl</artifactId>
264 <version>1.9.2</version>
265 <scope>compile</scope>
266 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300267
Michael Landoa5445102018-03-04 14:53:33 +0200268 <dependency>
269 <groupId>com.fasterxml.jackson.core</groupId>
270 <artifactId>jackson-databind</artifactId>
Gitelman, Tal (tg851x)483c3d92018-03-12 18:41:15 +0200271 <version>${jackson.version}</version>
Michael Landoa5445102018-03-04 14:53:33 +0200272 <scope>compile</scope>
273 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300274
Michael Landoa5445102018-03-04 14:53:33 +0200275 <dependency>
276 <groupId>com.fasterxml.jackson.core</groupId>
277 <artifactId>jackson-core</artifactId>
Gitelman, Tal (tg851x)483c3d92018-03-12 18:41:15 +0200278 <version>${jackson.version}</version>
Michael Landoa5445102018-03-04 14:53:33 +0200279 <scope>compile</scope>
280 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300281
Michael Landoa5445102018-03-04 14:53:33 +0200282 <dependency>
Tal Gitelman7d05e162018-10-10 14:52:54 +0300283 <groupId>org.onap.portal.sdk</groupId>
Michael Landoa5445102018-03-04 14:53:33 +0200284 <artifactId>epsdk-fw</artifactId>
285 <version>${ecomp.version}</version>
286 <scope>compile</scope>
287 <exclusions>
288 <exclusion>
289 <artifactId>slf4j-log4j12</artifactId>
290 <groupId>org.slf4j</groupId>
291 </exclusion>
292 </exclusions>
293 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300294
Michael Landoa5445102018-03-04 14:53:33 +0200295 <dependency>
296 <groupId>org.json</groupId>
297 <artifactId>json</artifactId>
298 <version>20131018</version>
299 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300300
Michael Landoa5445102018-03-04 14:53:33 +0200301 <dependency>
Tal Gitelman5a13c232018-07-24 11:47:25 +0300302 <groupId>org.onap.sdc.sdc-tosca</groupId>
Michael Landoa5445102018-03-04 14:53:33 +0200303 <artifactId>sdc-tosca</artifactId>
Tal Gitelman4d34afb2018-11-25 11:49:39 +0200304 <version>1.4.6</version>
Michael Landoa5445102018-03-04 14:53:33 +0200305 <scope>compile</scope>
306 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300307
Michael Landoa5445102018-03-04 14:53:33 +0200308 <dependency>
309 <groupId>info.cukes</groupId>
310 <artifactId>cucumber-junit</artifactId>
311 <version>1.2.4</version>
312 <scope>test</scope>
313 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300314
Michael Landoa5445102018-03-04 14:53:33 +0200315 <dependency>
316 <groupId>info.cukes</groupId>
317 <artifactId>cucumber-core</artifactId>
318 <version>1.2.4</version>
319 <scope>test</scope>
320 </dependency>
321
322 <dependency>
323 <groupId>info.cukes</groupId>
324 <artifactId>gherkin</artifactId>
325 <version>2.12.2</version>
326 </dependency>
327 <dependency>
328 <groupId>info.cukes</groupId>
329 <artifactId>cucumber-java</artifactId>
330 <version>1.2.5</version>
331 <scope>test</scope>
332 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300333
Michael Landoa5445102018-03-04 14:53:33 +0200334 <dependency>
335 <groupId>info.cukes</groupId>
336 <artifactId>cucumber-jvm-deps</artifactId>
337 <version>1.0.5</version>
338 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300339
Michael Landoa5445102018-03-04 14:53:33 +0200340 <dependency>
341 <groupId>org.mock-server</groupId>
342 <artifactId>mockserver-netty</artifactId>
343 <version>3.10.4</version>
344 <scope>test</scope>
Tal Gitelman76783962018-09-06 18:16:24 +0300345 <exclusions>
346 <exclusion>
347 <artifactId>commons-collections</artifactId>
348 <groupId>commons-collections</groupId>
349 </exclusion>
350 </exclusions>
Michael Landoa5445102018-03-04 14:53:33 +0200351 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300352
Michael Landoa5445102018-03-04 14:53:33 +0200353 <dependency>
354 <groupId>org.openecomp.sdc.sdc-distribution-client</groupId>
355 <artifactId>sdc-distribution-client</artifactId>
356 <version>1.2.2 </version>
357 <scope>test</scope>
358 </dependency>
359
360 <!-- With TestNG -->
361 <dependency>
362 <groupId>info.cukes</groupId>
363 <artifactId>cucumber-testng</artifactId>
364 <version>1.2.5</version>
365 </dependency>
366
367 <!-- spring -->
368 <dependency>
369 <groupId>org.springframework</groupId>
370 <artifactId>spring-context</artifactId>
371 <version>${spring.version}</version>
372 <scope>compile</scope>
373 </dependency>
374
375 <!-- CASSANDRA -->
376 <dependency>
377 <groupId>com.datastax.cassandra</groupId>
378 <artifactId>cassandra-driver-mapping</artifactId>
379 <version>${cassandra.driver.version}</version>
380 <scope>compile</scope>
381 </dependency>
Michael Landoa5445102018-03-04 14:53:33 +0200382 <!-- CASSANDRA END -->
Tal Gitelmane0199372018-09-18 11:57:53 +0300383
384 <dependency>
385 <groupId>org.codehaus.groovy</groupId>
386 <artifactId>groovy</artifactId>
Tal Gitelmane0199372018-09-18 11:57:53 +0300387 </dependency>
Yuli Shlosberg79e36272018-10-02 14:45:26 +0300388
389 <dependency>
390 <groupId>io.netty</groupId>
391 <artifactId>netty-all</artifactId>
392 </dependency>
393
394 <dependency>
395 <groupId>io.netty</groupId>
396 <artifactId>netty-handler</artifactId>
397 </dependency>
398
Michael Landoa5445102018-03-04 14:53:33 +0200399 </dependencies>
400
401 <build>
402 <plugins>
Yuli Shlosbergf59a2252018-03-21 11:14:08 +0200403 <plugin>
Michael Landodc856bb2018-08-13 13:27:52 +0300404 <groupId>org.apache.maven.plugins</groupId>
Yuli Shlosbergf59a2252018-03-21 11:14:08 +0200405 <artifactId>maven-clean-plugin</artifactId>
Yuli Shlosbergf59a2252018-03-21 11:14:08 +0200406 <executions>
407 <execution>
Michael Landodc856bb2018-08-13 13:27:52 +0300408 <id>clean.testsuit.folder</id>
Yuli Shlosbergf59a2252018-03-21 11:14:08 +0200409 <phase>clean</phase>
410 <goals>
411 <goal>clean</goal>
412 </goals>
413 <configuration>
414 <filesets>
Yuli Shlosbergf59a2252018-03-21 11:14:08 +0200415 <!-- Sanity jar -->
416 <fileset>
417 <directory>${project.basedir}/sdc-api-tests</directory>
418 <followSymlinks>false</followSymlinks>
419 <includes>
420 <include>*.jar</include>
421 </includes>
422 </fileset>
423 <!-- Sanity test suites -->
424 <fileset>
425 <directory>${project.basedir}/sdc-api-tests/chef-repo/cookbooks/sdc-api-tests/files/default/testSuites</directory>
426 <followSymlinks>false</followSymlinks>
427 </fileset>
428 </filesets>
429 </configuration>
430 </execution>
431 </executions>
432 </plugin>
433
Michael Landoa5445102018-03-04 14:53:33 +0200434 <plugin>
435 <groupId>org.apache.maven.plugins</groupId>
436 <artifactId>maven-deploy-plugin</artifactId>
Michael Landoa5445102018-03-04 14:53:33 +0200437 <configuration>
438 <skip>true</skip>
439 </configuration>
440 </plugin>
441
442 <!-- ============================================= -->
443 <!-- Create the JAR file with its dependencies -->
444 <!-- ============================================= -->
445 <plugin>
446 <groupId>org.apache.maven.plugins</groupId>
447 <artifactId>maven-assembly-plugin</artifactId>
448 <executions>
449 <execution>
450 <id>create.jar.with.dependencies</id>
451 <phase>package</phase>
452 <goals>
453 <goal>single</goal>
454 </goals>
455 <configuration>
456 <archive>
457 <manifest>
458 <mainClass>org.openecomp.sdc.ci.tests.run.StartTest</mainClass>
459 </manifest>
460 </archive>
461 <descriptorRefs>
462 <descriptorRef>jar-with-dependencies</descriptorRef>
463 </descriptorRefs>
464 </configuration>
465 </execution>
466 </executions>
467 </plugin>
dekstroza37843cb2018-05-18 14:42:24 +0100468 <plugin>
469 <groupId>com.github.sylvainlaurent.maven</groupId>
470 <artifactId>yaml-json-validator-maven-plugin</artifactId>
471 <executions>
472 <execution>
473 <id>validate</id>
474 <phase>validate</phase>
475 <goals>
476 <goal>validate</goal>
477 </goals>
478 <configuration>
479 <validationSets>
480 <validationSet>
481 <includes>
482 <include>src/main/resources/**/*.y*ml</include>
483 <include>src/test/resources/**/*.y*ml</include>
484 </includes>
485 <excludes>
486 <exclude>src/test/resources/CI/tests/importToscaResourceByCreateUrl/occurencyFalure*.y*ml</exclude>
487 <exclude>src/test/resources/CI/tests/importToscaResourceByCreateUrl/noContent*.y*ml</exclude>
488 <exclude>src/test/resources/CI/tests/HeatDeploymentArtifacts/invalid*.y*ml</exclude>
489 </excludes>
490 </validationSet>
491 <validationSet>
492 <includes>
493 <include>src/main/resources/**/*.json</include>
494 <include>src/test/resources/**/*.json</include>
495 </includes>
496 <excludes>
497 <exclude>src/test/resources/CI/tests/HeatDeploymentArtifacts/invalid*.json</exclude>
498 </excludes>
499 </validationSet>
500 </validationSets>
501 </configuration>
502 </execution>
503 </executions>
504 </plugin>
Michael Landoa5445102018-03-04 14:53:33 +0200505 </plugins>
506 </build>
Yuli Shlosbergf59a2252018-03-21 11:14:08 +0200507 <profiles>
508 <profile>
509 <id>docker</id>
510 <activation>
511 <activeByDefault>false</activeByDefault>
512 </activation>
513 <build>
514 <plugins>
515 <plugin>
Michael Landodc856bb2018-08-13 13:27:52 +0300516 <groupId>org.apache.maven.plugins</groupId>
Yuli Shlosbergf59a2252018-03-21 11:14:08 +0200517 <artifactId>maven-resources-plugin</artifactId>
Yuli Shlosbergf59a2252018-03-21 11:14:08 +0200518 <executions>
519 <execution>
520 <id>copy-tests-suites</id>
521 <phase>verify</phase>
522 <goals>
523 <goal>copy-resources</goal>
524 </goals>
525 <configuration>
526 <outputDirectory>sdc-api-tests/chef-repo/cookbooks/sdc-api-tests/files/default/testSuites</outputDirectory>
527 <resources>
528 <resource>
529 <directory>${project.parent.basedir}/test-apis-ci/src/main/resources/ci/testSuites</directory>
530 <includes>
531 <include>*</include>
532 </includes>
533 </resource>
534 </resources>
535 </configuration>
536 </execution>
537
538 <execution>
539 <id>copy-resources-test-apis-ci</id>
540 <phase>verify</phase>
541 <goals>
542 <goal>copy-resources</goal>
543 </goals>
544 <configuration>
545 <outputDirectory>sdc-api-tests</outputDirectory>
546 <resources>
547 <resource>
548 <directory>${project.parent.basedir}/test-apis-ci/target</directory>
549 <includes>
550 <include>test-apis-ci-${project.version}-jar-with-dependencies.jar</include>
551 </includes>
552 </resource>
553 </resources>
554 </configuration>
555 </execution>
556 </executions>
557 </plugin>
558
559 <plugin>
560 <groupId>io.fabric8</groupId>
561 <artifactId>docker-maven-plugin</artifactId>
Yuli Shlosbergf59a2252018-03-21 11:14:08 +0200562 <configuration>
Yuli Shlosbergf59a2252018-03-21 11:14:08 +0200563 <apiVersion>1.23</apiVersion>
564 <registry>nexus3.onap.org:10001</registry>
565 <authConfig>
566 <pull>
567 <username>docker</username>
568 <password>docker</password>
569 </pull>
570 </authConfig>
571 <images>
572
573
574 <!-- Build sanity image -->
575 <image>
576 <name>onap/sdc-api-tests</name>
577 <alias>sdc-api-tests</alias>
578 <build>
579 <cleanup>try</cleanup>
580 <dockerFileDir>${project.basedir}/sdc-api-tests</dockerFileDir>
581 <tags>
582 <tag>${docker.tag}</tag>
Yuli Shlosbergf59a2252018-03-21 11:14:08 +0200583 <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</tag>
584 </tags>
585 </build>
586 </image>
587
588 </images>
589 </configuration>
590 <executions>
591 <execution>
592 <id>clean-images</id>
593 <phase>pre-clean</phase>
594 <goals>
595 <goal>remove</goal>
596 </goals>
597 <configuration>
598 <removeAll>true</removeAll>
599 <image>onap/sdc-api-tests</image>
600 </configuration>
601 </execution>
602
603 <execution>
604 <id>generate-images</id>
605 <phase>install</phase>
606 <goals>
607 <goal>build</goal>
608 </goals>
609 </execution>
610
611 <execution>
612 <id>push-images</id>
613 <phase>deploy</phase>
614 <goals>
615 <goal>push</goal>
616 </goals>
617 <configuration>
618 <image>onap/sdc-api-tests</image>
619 </configuration>
620 </execution>
621 </executions>
622 </plugin>
623 </plugins>
624 </build>
625 </profile>
626</profiles>
Michael Landob3d48982017-06-11 14:22:02 +0300627
Michael Landob3d48982017-06-11 14:22:02 +0300628
Michael Landob3d48982017-06-11 14:22:02 +0300629</project>