summaryrefslogtreecommitdiffstats
path: root/a1-policy-management/src
diff options
context:
space:
mode:
Diffstat (limited to 'a1-policy-management/src')
-rw-r--r--a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/clients/AsyncRestClient.java12
-rw-r--r--a1-policy-management/src/test/java/org/onap/ccsdk/oran/a1policymanagementservice/tasks/RefreshConfigTaskTest.java3
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());
}