diff options
author | 2019-03-18 17:10:17 +0800 | |
---|---|---|
committer | 2019-03-18 19:08:41 +0800 | |
commit | 28a0408d050ad5cd10a87088ffdc913b8f4487ab (patch) | |
tree | 0641b97b281fbded49338c3e1db803e9b5069a17 /sdclient/discovery-service/src/test/java/org | |
parent | bb42b10ae85a76fad88a30f50334d6c27cbf4a8b (diff) |
Update consul version to 1.4.3
Change-Id: I264fe52ec5e2d6b45298c5c01be427a27116ecb6
Issue-ID: MSB-325
Signed-off-by: Huabing Zhao <zhaohuabing@gmail.com>
Diffstat (limited to 'sdclient/discovery-service/src/test/java/org')
-rw-r--r-- | sdclient/discovery-service/src/test/java/org/onap/msb/sdclient/wrapper/ConsulServiceWrapperTest.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sdclient/discovery-service/src/test/java/org/onap/msb/sdclient/wrapper/ConsulServiceWrapperTest.java b/sdclient/discovery-service/src/test/java/org/onap/msb/sdclient/wrapper/ConsulServiceWrapperTest.java index 064f6fd..d2a907c 100644 --- a/sdclient/discovery-service/src/test/java/org/onap/msb/sdclient/wrapper/ConsulServiceWrapperTest.java +++ b/sdclient/discovery-service/src/test/java/org/onap/msb/sdclient/wrapper/ConsulServiceWrapperTest.java @@ -298,12 +298,12 @@ public class ConsulServiceWrapperTest { private void mockDelete() { String serviceJson = "{\"Node\": \"externalService\",\"ServiceID\": \"_test_10.74.56.36_5656\"}"; - PowerMockito.when(HttpClientUtil.httpPostWithJSON(mockdeltUrl, serviceJson)).thenReturn(200); + PowerMockito.when(HttpClientUtil.httpPutWithJSON(mockdeltUrl, serviceJson)).thenReturn(200); } private void mockDelete4agent() { - PowerMockito.when(HttpClientUtil.httpPostWithJSON( + PowerMockito.when(HttpClientUtil.httpPutWithJSON( "http://127.0.0.1:8500/v1/agent/service/deregister/_test_10.74.56.36_5656", "")) .thenReturn(200); @@ -320,7 +320,7 @@ public class ConsulServiceWrapperTest { PowerMockito.mockStatic(HttpClientUtil.class); String serviceJson = "{\"Node\":\"externalService\",\"Address\":\"127.0.0.1\",\"Service\":{\"ID\":\"_test_10.74.44.1_10080\",\"Service\":\"test\",\"Tags\":[\"\\\"base\\\":{\\\"protocol\\\":\\\"REST\\\",\\\"status\\\":\\\"1\\\",\\\"enable_ssl\\\":\\\"false\\\",\\\"is_manual\\\":\\\"true\\\",\\\"url\\\":\\\"/api/test/v1\\\",\\\"version\\\":\\\"v1\\\"}\",\"\\\"labels\\\":{\\\"visualRange\\\":\\\"1\\\"}\"],\"Address\":\"10.74.44.1\",\"Port\":10080}}"; - PowerMockito.when(HttpClientUtil.httpPostWithJSON(mockPostUrl, serviceJson)).thenReturn(200); + PowerMockito.when(HttpClientUtil.httpPutWithJSON(mockPostUrl, serviceJson)).thenReturn(200); } |