summary |
shortlog |
log |
commit | commitdiff |
review |
tree
raw |
patch |
inline | side by side (from parent 1:
6bc2f1e)
Issue-ID: HOLMES-613
Signed-off-by: Guangrong Fu <fu.guangrong@zte.com.cn>
Change-Id: I754658a0ce3172dffd4e4dd28a95922d5eb7d991
<parent>\r
<groupId>org.onap.holmes.common</groupId>\r
<artifactId>holmes-common-parent</artifactId>\r
<parent>\r
<groupId>org.onap.holmes.common</groupId>\r
<artifactId>holmes-common-parent</artifactId>\r
- <version>1.4.5-SNAPSHOT</version>\r
+ <version>1.4.6-SNAPSHOT</version>\r
</parent>\r
\r
<name>holmes-common-service</name>\r
</parent>\r
\r
<name>holmes-common-service</name>\r
final static public String HOSTNAME = "HOSTNAME";
final static public String POD_IP = "POD_IP";
final static public String CONFIG_BINDING_SERVICE = "CONFIG_BINDING_SERVICE";
final static public String HOSTNAME = "HOSTNAME";
final static public String POD_IP = "POD_IP";
final static public String CONFIG_BINDING_SERVICE = "CONFIG_BINDING_SERVICE";
- final static public String MSB_ADDR = "MSB_ADDR";
final static public String MSB_IAG_SERVICE_HOST = "MSB_IAG_SERVICE_HOST";
final static public String MSB_IAG_SERVICE_PORT = "MSB_IAG_SERVICE_PORT";
final static public String MSB_IAG_SERVICE_HOST = "MSB_IAG_SERVICE_HOST";
final static public String MSB_IAG_SERVICE_PORT = "MSB_IAG_SERVICE_PORT";
- final static public String BASE_URL = "BASE_URL";
- final static public String PRE_ADDR = "PRE_ADDR";
- final static public String POST_ADDR = "POST_ADDR";
final static public String AAI_ADDR = "AAI_ADDR";
final static public String AAI_ADDR = "AAI_ADDR";
+ final static public String NAMESPACE = "NAMESPACE";
final static public String PROTOCOL_HTTP = "http";
final static public String PROTOCOL_HTTPS = "https";
final static public int PLAIN_PORT = 80;
final static public String PROTOCOL_HTTP = "http";
final static public String PROTOCOL_HTTPS = "https";
final static public int PLAIN_PORT = 80;
public static String getAaiAddr() {
boolean tlsEnabled = Boolean.valueOf(getEnv("ENABLE_ENCRYPT"));
public static String getAaiAddr() {
boolean tlsEnabled = Boolean.valueOf(getEnv("ENABLE_ENCRYPT"));
- return String.format("%s://%s%s%s.%s:%d",
+ return String.format("%s://%s.%s:%d",
tlsEnabled ? PROTOCOL_HTTPS : PROTOCOL_HTTP,
tlsEnabled ? PROTOCOL_HTTPS : PROTOCOL_HTTP,
- nullToEmptyString(getEnv(PRE_ADDR)),
nullToEmptyString(getEnv(AAI_ADDR)),
nullToEmptyString(getEnv(AAI_ADDR)),
- nullToEmptyString(getEnv(POST_ADDR)),
- nullToEmptyString(getEnv(BASE_URL)),
+ nullToEmptyString(getEnv(NAMESPACE)),
tlsEnabled ? TLS_PORT : PLAIN_PORT);
}
tlsEnabled ? TLS_PORT : PLAIN_PORT);
}
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.core.Is.is;
import static org.hamcrest.core.IsNull.nullValue;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.core.Is.is;
import static org.hamcrest.core.IsNull.nullValue;
-import static org.onap.holmes.common.config.MicroServiceConfig.MSB_ADDR;
-
@RunWith(PowerMockRunner.class)
@PrepareForTest({JerseyClient.class})
@RunWith(PowerMockRunner.class)
@PrepareForTest({JerseyClient.class})
@BeforeClass
static public void beforeClass() {
@BeforeClass
static public void beforeClass() {
- System.setProperty(MSB_ADDR, "127.0.0.1:80");
File file = new File(AaiQuery4Ccvpn2Test.class.getClassLoader().getResource("./ccvpn2.data.json").getFile());
BufferedReader reader = null;
File file = new File(AaiQuery4Ccvpn2Test.class.getClassLoader().getResource("./ccvpn2.data.json").getFile());
BufferedReader reader = null;
import static org.easymock.EasyMock.anyString;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.junit.Assert.assertThat;
import static org.easymock.EasyMock.anyString;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.junit.Assert.assertThat;
-import static org.onap.holmes.common.config.MicroServiceConfig.MSB_ADDR;
-
@RunWith(PowerMockRunner.class)
@PrepareForTest(JerseyClient.class)
@RunWith(PowerMockRunner.class)
@PrepareForTest(JerseyClient.class)
@BeforeClass
static public void beforeClass() {
@BeforeClass
static public void beforeClass() {
- System.setProperty(MSB_ADDR, "127.0.0.1:80");
-
File file = new File(AaiQuery4CcvpnTest.class.getClassLoader().getResource("./ccvpn.data.json").getFile());
BufferedReader reader = null;
try {
File file = new File(AaiQuery4CcvpnTest.class.getClassLoader().getResource("./ccvpn.data.json").getFile());
BufferedReader reader = null;
try {
import static org.easymock.EasyMock.anyObject;
import static org.junit.Assert.assertEquals;
import static org.easymock.EasyMock.anyObject;
import static org.junit.Assert.assertEquals;
-import static org.onap.holmes.common.config.MicroServiceConfig.MSB_ADDR;
@RunWith(PowerMockRunner.class)
@PowerMockIgnore("javax.net.ssl.*")
@RunWith(PowerMockRunner.class)
@PowerMockIgnore("javax.net.ssl.*")
@BeforeClass
public static void beforeClass() {
@BeforeClass
public static void beforeClass() {
- System.setProperty(MSB_ADDR, "127.0.0.1:80");
System.setProperty("ENABLE_ENCRYPT", "true");
System.setProperty(MicroServiceConfig.AAI_ADDR, "aai");
System.setProperty("ENABLE_ENCRYPT", "true");
System.setProperty(MicroServiceConfig.AAI_ADDR, "aai");
- System.setProperty(MicroServiceConfig.BASE_URL, "onap");
+ System.setProperty(MicroServiceConfig.NAMESPACE, "onap");
File file = new File(AaiQueryMdonsTest.class.getClassLoader().getResource("./aai-mdons.json").getFile());
BufferedReader reader = null;
File file = new File(AaiQueryMdonsTest.class.getClassLoader().getResource("./aai-mdons.json").getFile());
BufferedReader reader = null;
<artifactId>holmes-common-parent</artifactId>\r
<packaging>pom</packaging>\r
\r
<artifactId>holmes-common-parent</artifactId>\r
<packaging>pom</packaging>\r
\r
- <version>1.4.5-SNAPSHOT</version>\r
+ <version>1.4.6-SNAPSHOT</version>\r
<name>holmes-common</name>\r
<modules>\r
<module>holmes-actions</module>\r
<name>holmes-common</name>\r
<modules>\r
<module>holmes-actions</module>\r