<descriptor>assembly/assembly-for-plugin.xml</descriptor>\r
</assembly>\r
<tags>\r
- <tag>2.0-STAGING-latest</tag>\r
+ <tag>3.0-STAGING-latest</tag>\r
</tags>\r
\r
</build>\r
the Portal team. -->\r
<groupId>org.onap.vid</groupId>\r
<artifactId>epsdk-app-onap</artifactId>\r
- <version>2.0.0-SNAPSHOT</version>\r
+ <version>3.0.0-SNAPSHOT</version>\r
<packaging>war</packaging>\r
<name>ECOMP SDK Webapp for OpenSource</name>\r
<description>ECOMP SDK Web Application for public release</description>\r
# Note that these variables cannot be structured (e.g. : version.release or version.snapshot etc... )\r
# because they are used in Jenkins, whose plug-in doesn't support\r
\r
-major=2\r
+major=3\r
minor=0\r
patch=0\r
\r
<properties>\r
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>\r
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>\r
- <build.version>2.0.0-SNAPSHOT</build.version>\r
+ <build.version>3.0.0-SNAPSHOT</build.version>\r
<nexusproxy>https://nexus.onap.org</nexusproxy>\r
<snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>\r
<releaseNexusPath>/content/repositories/releases/</releaseNexusPath>\r
<version>4.5.3</version>\r
</dependency>\r
</dependencies>\r
- <version>2.0.0-SNAPSHOT</version>\r
+ <version>3.0.0-SNAPSHOT</version>\r
</project>\r
# Note that these variables cannot be structured (e.g. : version.release or version.snapshot etc... )\r
# because they are used in Jenkins, whose plug-in doesn't support\r
\r
-major=2\r
+major=3\r
minor=0\r
patch=0\r
\r
inherit from a parent maven module. -->\r
<groupId>org.onap.vid</groupId>\r
<artifactId>vid-app-common</artifactId>\r
- <version>2.0.0-SNAPSHOT</version>\r
+ <version>3.0.0-SNAPSHOT</version>\r
<packaging>war</packaging>\r
<name>VID Common</name>\r
<description>VID Common code for opensource version</description>\r
*/
public Response RestPost(String fromAppId, String path, String payload, boolean xml) {
String methodName = "RestPost";
- String url=systemPropertyHelper.getFullServicePath(path);
+ String url=systemPropertyHelper.getServiceBasePath(path);
String transId = UUID.randomUUID().toString();
logger.debug(EELFLoggerDelegate.debugLogger, methodName + START_STRING);
try {
initRestClient();
Logging.logRequest(outgoingRequestsLogger, HttpMethod.POST, url, payload);
- response = authenticateRequest(client.target(systemPropertyHelper.getFullServicePath(path))
+ response = authenticateRequest(client.target(systemPropertyHelper.getServiceBasePath(path))
.request()
.accept(xml ? MediaType.APPLICATION_XML : MediaType.APPLICATION_JSON)
.header(TRANSACTION_ID_HEADER, transId)
return getSystemProperty(AAIProperties.AAI_SERVER_URL);
}
+ public Optional<String> getAAIServerBaseUrl(){
+ return getSystemProperty(AAIProperties.AAI_SERVER_URL_BASE);
+ }
+
public Optional<String> getAAIVIDUsername(){
return getSystemProperty(AAIProperties.AAI_VID_USERNAME);
}
return getAAIServerUrl().orElse("") + path;
}
+ public String getServiceBasePath(String path) {
+ return getAAIServerBaseUrl().orElse("") + path;
+ }
+
public String getEncodedCredentials() throws InvalidPropertyException, UnsupportedEncodingException {
String vidUsername = getAAIVIDUsername().orElseThrow(InvalidPropertyException::new);
String vidPassword = Password.deobfuscate(getAAIVIDPasswd().orElseThrow(InvalidPropertyException::new));
when(systemPropertyHelper.getAAIVIDUsername()).thenReturn(Optional.of("user"));
when(systemPropertyHelper.getEncodedCredentials()).thenReturn("someCredentials");
when(systemPropertyHelper.getFullServicePath(Mockito.anyString())).thenReturn("http://localhost/path");
+ when(systemPropertyHelper.getServiceBasePath(Mockito.anyString())).thenReturn("http://localhost/path");
}
}
\ No newline at end of file
# Note that these variables cannot be structured (e.g. : version.release or version.snapshot etc... )\r
# because they are used in Jenkins, whose plug-in doesn't support\r
\r
-major=2\r
+major=3\r
minor=0\r
patch=0\r
\r