FIx the POM for HTTPS param and jks file in test 81/9081/1
authorDeterme, Sebastien (sd378r) <sd378r@intl.att.com>
Tue, 29 Aug 2017 11:21:41 +0000 (04:21 -0700)
committerDeterme, Sebastien (sd378r) <sd378r@intl.att.com>
Tue, 29 Aug 2017 11:21:41 +0000 (04:21 -0700)
There was an error for the HTTPS test because the keystore was filtered
by maven + remove some useless stuffs + add some execution ID as defined
in the oparent

Change-Id: I3a299bd9790ae2e3db8dca82722bad1ad4f8c284
Issue-Id: CLAMP-43
Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
pom.xml

diff --git a/pom.xml b/pom.xml
index 7cd9873..99d6e13 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -1,4 +1,27 @@
 <?xml version="1.0" encoding="UTF-8"?>
+<!--
+  ============LICENSE_START=======================================================
+  ONAP CLAMP
+  ================================================================================
+  Copyright (C) 2017 AT&T Intellectual Property. All rights
+                              reserved.
+  ================================================================================
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+  http://www.apache.org/licenses/LICENSE-2.0
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+  ============LICENSE_END============================================
+  ===================================================================
+  ECOMP is a trademark and service mark of AT&T Intellectual Property.
+-->
+
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
        <modelVersion>4.0.0</modelVersion>
@@ -7,7 +30,7 @@
        <version>1.0.1-SNAPSHOT</version>
        <name>ONAP CLAMP</name>
 
-       <parent>
+       <parent>
                <groupId>org.onap.oparent</groupId>
                <artifactId>oparent</artifactId>
                <version>1.0.0-SNAPSHOT</version>
                        <artifactId>swagger-annotations</artifactId>
                        <version>1.5.8</version>
                </dependency>
+
                <!-- Camunda Core -->
                <dependency>
                        <groupId>com.att.ajsc</groupId>
                                </exclusion>
                        </exclusions>
                </dependency>
-
                <dependency>
                        <groupId>com.fasterxml.jackson.core</groupId>
                        <artifactId>jackson-databind</artifactId>
                <testResources>
                        <testResource>
                                <directory>src/test/resources</directory>
+                               <excludes>
+                                       <exclude>**/*.jks</exclude>
+                               </excludes>
+                               <filtering>true</filtering>
+                       </testResource>
+                       <testResource>
+                               <directory>src/test/resources/https</directory>
                                <includes>
-                                       <include>**/*</include>
+                                       <include>**.jks</include>
                                </includes>
-                               <filtering>true</filtering>
+                               <filtering>false</filtering>
+                               <targetPath>https</targetPath>
                        </testResource>
                </testResources>
                <resources>
                                </includes>
                                <filtering>true</filtering>
                        </resource>
-                       <resource>
-                               <directory>src/main/doxygen</directory>
-                               <includes>
-                                       <include>**/*</include>
-                               </includes>
-                               <filtering>true</filtering>
-                       </resource>
                </resources>
 
-
-
                <plugins>
                        <plugin>
                                <groupId>org.apache.maven.plugins</groupId>
                                                        <goal>push</goal>
                                                </goals>
                                                <configuration>
-                                                       <imageName>${docker.push.registry}/onap/clamp</imageName>
+                                                   <imageName>${docker.push.registry}/onap/clamp</imageName>
                                                        <skipDockerPush>${skip.docker.push}</skipDockerPush>
                                                </configuration>
                                        </execution>
 
                                <executions>
                                        <execution>
+                                               <id>integration-tests</id>
                                                <goals>
                                                        <goal>integration-test</goal>
                                                        <goal>verify</goal>
                                </configuration>
                                <executions>
                                        <execution>
-                                               <id>jacoco-unit-tests</id>
+                                               <id>pre-unit-test</id>
                                                <goals>
                                                        <goal>prepare-agent</goal>
                                                </goals>
                                                </configuration>
                                        </execution>
                                        <execution>
-                                               <id>jacoco-integration-tests</id>
+                                               <id>pre-integration-test</id>
                                                <phase>pre-integration-test</phase>
                                                <goals>
                                                        <goal>prepare-agent</goal>
                                                </configuration>
                                        </execution>
                                        <execution>
-                                               <goals>
-                                                       <goal>merge</goal>
-                                               </goals>
-                                               <phase>post-integration-test</phase>
-                                               <configuration>
-                                                       <fileSets>
-                                                               <fileSet implementation="org.apache.maven.shared.model.fileset.FileSet">
-                                                                       <directory>${project.build.directory}/coverage-reports</directory>
-                                                                       <includes>
-                                                                               <include>*.exec</include>
-                                                                       </includes>
-                                                               </fileSet>
-                                                       </fileSets>
-                                                       <destFile>${project.build.directory}/jacoco-dev.exec</destFile>
-                                               </configuration>
-                                       </execution>
+                        <goals>
+                            <goal>merge</goal>
+                        </goals>
+                        <phase>post-integration-test</phase>
+                        <configuration>
+                            <fileSets>
+                                <fileSet implementation="org.apache.maven.shared.model.fileset.FileSet">
+                                    <directory>${project.build.directory}/coverage-reports</directory>
+                                    <includes>
+                                        <include>*.exec</include>
+                                    </includes>
+                                </fileSet>
+                            </fileSets>
+                            <destFile>${project.build.directory}/jacoco-dev.exec</destFile>
+                        </configuration>
+                    </execution>
                                </executions>
                        </plugin>