diff options
author | adheli.tavares <adheli.tavares@est.tech> | 2022-11-16 14:12:22 +0000 |
---|---|---|
committer | Adheli Tavares <adheli.tavares@est.tech> | 2022-11-17 13:01:39 +0000 |
commit | ce1e7de6148c00b00a2a48b0c2504fc8918db9dc (patch) | |
tree | f015efeb1c184c63a15bc795090fa921a830bee5 /main/src/main/java/org/onap/policy/pap/main/config/WebConfig.java | |
parent | 6aa64b948942b402b496b84b89186bcd276ce04c (diff) |
Topic names in PAP should be configurable from application.yaml
- for using Kafka instead of dmaap, topics names need to be lowercase
- fix for unit/integration tests using default names and changed names
for topics and group
- fix for sonar lints found along the way
Issue-ID: POLICY-4455
Change-Id: I89e9e6f7dbb07462f1ae497755965cb5a3f223a3
Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
Diffstat (limited to 'main/src/main/java/org/onap/policy/pap/main/config/WebConfig.java')
-rw-r--r-- | main/src/main/java/org/onap/policy/pap/main/config/WebConfig.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/src/main/java/org/onap/policy/pap/main/config/WebConfig.java b/main/src/main/java/org/onap/policy/pap/main/config/WebConfig.java index d8aee3a7..a6cfdf67 100644 --- a/main/src/main/java/org/onap/policy/pap/main/config/WebConfig.java +++ b/main/src/main/java/org/onap/policy/pap/main/config/WebConfig.java @@ -1,6 +1,7 @@ /*- * ============LICENSE_START======================================================= * Copyright (C) 2022 Bell Canada. All rights reserved. + * Modifications Copyright (C) 2022 Nordix Foundation. * ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -20,7 +21,6 @@ package org.onap.policy.pap.main.config; -import java.util.Arrays; import java.util.List; import org.onap.policy.common.spring.utils.YamlHttpMessageConverter; import org.springframework.context.annotation.Configuration; @@ -37,7 +37,7 @@ public class WebConfig implements WebMvcConfigurer { @Override public void extendMessageConverters(List<HttpMessageConverter<?>> converters) { var yamlConverter = new YamlHttpMessageConverter(); - yamlConverter.setSupportedMediaTypes(Arrays.asList(MediaType.parseMediaType("application/yaml"))); + yamlConverter.setSupportedMediaTypes(List.of(MediaType.parseMediaType("application/yaml"))); converters.add(yamlConverter); } }
\ No newline at end of file |