diff options
author | PatrikBuhr <patrik.buhr@est.tech> | 2022-02-01 11:16:10 +0100 |
---|---|---|
committer | PatrikBuhr <patrik.buhr@est.tech> | 2022-02-01 13:04:48 +0100 |
commit | 1058cf6bcc525dbf35c3d839fb5a796fe0461be3 (patch) | |
tree | ceb1fd3648542b18fd8eb580d1c036e8c9ee6374 /a1-policy-management/src | |
parent | 3d2a09b1bc7d6798c8083bfc3dc04c69a1b709c7 (diff) |
NONRTRIC - 3PP dependency version update
Updated json version
+Also fixed a trace message
Issue-ID: CCSDK-3581
Signed-off-by: PatrikBuhr <patrik.buhr@est.tech>
Change-Id: I68cfebdd1fdfbc72683d85e9e9bcd201eb7d1e85
Diffstat (limited to 'a1-policy-management/src')
2 files changed, 7 insertions, 8 deletions
diff --git a/a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/clients/AsyncRestClient.java b/a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/clients/AsyncRestClient.java index 4f2770bf..3461876d 100644 --- a/a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/clients/AsyncRestClient.java +++ b/a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/clients/AsyncRestClient.java @@ -63,7 +63,7 @@ public class AsyncRestClient { public Mono<ResponseEntity<String>> postForEntity(String uri, @Nullable String body) { Object traceTag = createTraceTag(); - logger.debug("{} POST uri = '{}{}''", traceTag, baseUrl, uri); + logger.debug("{} POST uri = '{}{}'", traceTag, baseUrl, uri); logger.trace("{} POST body: {}", traceTag, body); Mono<String> bodyProducer = body != null ? Mono.just(body) : Mono.empty(); @@ -82,7 +82,7 @@ public class AsyncRestClient { public Mono<String> postWithAuthHeader(String uri, String body, String username, String password) { Object traceTag = createTraceTag(); - logger.debug("{} POST (auth) uri = '{}{}''", traceTag, baseUrl, uri); + logger.debug("{} POST (auth) uri = '{}{}'", traceTag, baseUrl, uri); logger.trace("{} POST body: {}", traceTag, body); RequestHeadersSpec<?> request = getWebClient() // @@ -97,7 +97,7 @@ public class AsyncRestClient { public Mono<ResponseEntity<String>> putForEntity(String uri, String body) { Object traceTag = createTraceTag(); - logger.debug("{} PUT uri = '{}{}''", traceTag, baseUrl, uri); + logger.debug("{} PUT uri = '{}{}'", traceTag, baseUrl, uri); logger.trace("{} PUT body: {}", traceTag, body); RequestHeadersSpec<?> request = getWebClient() // @@ -110,7 +110,7 @@ public class AsyncRestClient { public Mono<ResponseEntity<String>> putForEntity(String uri) { Object traceTag = createTraceTag(); - logger.debug("{} PUT uri = '{}{}''", traceTag, baseUrl, uri); + logger.debug("{} PUT uri = '{}{}'", traceTag, baseUrl, uri); logger.trace("{} PUT body: <empty>", traceTag); RequestHeadersSpec<?> request = getWebClient() // .put() // @@ -125,7 +125,7 @@ public class AsyncRestClient { public Mono<ResponseEntity<String>> getForEntity(String uri) { Object traceTag = createTraceTag(); - logger.debug("{} GET uri = '{}{}''", traceTag, baseUrl, uri); + logger.debug("{} GET uri = '{}{}'", traceTag, baseUrl, uri); RequestHeadersSpec<?> request = getWebClient() // .get() // .uri(uri); @@ -139,7 +139,7 @@ public class AsyncRestClient { public Mono<ResponseEntity<String>> deleteForEntity(String uri) { Object traceTag = createTraceTag(); - logger.debug("{} DELETE uri = '{}{}''", traceTag, baseUrl, uri); + logger.debug("{} DELETE uri = '{}{}'", traceTag, baseUrl, uri); RequestHeadersSpec<?> request = getWebClient() // .delete() // .uri(uri); diff --git a/a1-policy-management/src/test/java/org/onap/ccsdk/oran/a1policymanagementservice/tasks/RefreshConfigTaskTest.java b/a1-policy-management/src/test/java/org/onap/ccsdk/oran/a1policymanagementservice/tasks/RefreshConfigTaskTest.java index 874929a5..1b1dad5c 100644 --- a/a1-policy-management/src/test/java/org/onap/ccsdk/oran/a1policymanagementservice/tasks/RefreshConfigTaskTest.java +++ b/a1-policy-management/src/test/java/org/onap/ccsdk/oran/a1policymanagementservice/tasks/RefreshConfigTaskTest.java @@ -154,8 +154,7 @@ class RefreshConfigTaskTest { } private static Optional<JsonObject> getCorrectJson() throws IOException { - URL url = ApplicationConfigParser.class.getClassLoader() - .getResource("test_application_configuration.json"); + URL url = ApplicationConfigParser.class.getClassLoader().getResource("test_application_configuration.json"); String string = Resources.toString(url, Charsets.UTF_8); return Optional.of(JsonParser.parseString(string).getAsJsonObject()); } |