diff options
-rwxr-xr-x | epsdk-app-onap/pom.xml | 18 | ||||
-rwxr-xr-x | vid-app-common/src/main/java/org/openecomp/vid/mso/MsoRestInterface.java | 5 |
2 files changed, 22 insertions, 1 deletions
diff --git a/epsdk-app-onap/pom.xml b/epsdk-app-onap/pom.xml index bb0f03993..e9f422539 100755 --- a/epsdk-app-onap/pom.xml +++ b/epsdk-app-onap/pom.xml @@ -29,6 +29,14 @@ <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>
<stagingNexusPath>/content/repositories/staging/</stagingNexusPath>
<sitePath>/content/sites/site/org/openecomp/vid/${project.version}</sitePath>
+
+ <!-- SONAR -->
+ <sonar.language>java</sonar.language>
+ <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
+ <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
+ <sonar.jacoco.reportPath>${project.build.directory}/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath>
+ <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero>
+ <sonar.projectVersion>${project.version}</sonar.projectVersion>
</properties>
<repositories>
@@ -205,6 +213,16 @@ </dependency>
</dependencies>
</plugin>
+
+ <plugin>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <version>2.17</version>
+ </plugin>
+ <plugin>
+ <groupId>org.sonarsource.scanner.maven</groupId>
+ <artifactId>sonar-maven-plugin</artifactId>
+ <version>3.2</version>
+ </plugin>
</plugins>
</build>
diff --git a/vid-app-common/src/main/java/org/openecomp/vid/mso/MsoRestInterface.java b/vid-app-common/src/main/java/org/openecomp/vid/mso/MsoRestInterface.java index 31a762efe..f964b8353 100755 --- a/vid-app-common/src/main/java/org/openecomp/vid/mso/MsoRestInterface.java +++ b/vid-app-common/src/main/java/org/openecomp/vid/mso/MsoRestInterface.java @@ -84,7 +84,10 @@ public class MsoRestInterface extends MsoRestInt implements MsoRestInterfaceIfc commonHeaders = new MultivaluedHashMap<String, Object> ();
commonHeaders.put("Authorization", Collections.singletonList((Object) ("Basic " + authStringEnc)));
-
+ //Pass calling application identifier to SO
+ commonHeaders.put("X-FromAppId",
+ Collections.singletonList(SystemProperties.getProperty(SystemProperties.APP_DISPLAY_NAME)));
+
boolean use_ssl = true;
if ( (mso_url != null) && ( !(mso_url.isEmpty()) ) ) {
if ( mso_url.startsWith("https")) {
|