aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoradheli.tavares <adheli.tavares@est.tech>2023-12-18 17:54:22 +0000
committeradheli.tavares <adheli.tavares@est.tech>2023-12-18 17:54:53 +0000
commitcec2a2c3b6ce4ee353ef0058801a1a2b3e81ae54 (patch)
tree862279ee07ffa847ab72cdaf91b69dd971b74796
parent3da8e4ed9dce4f54830ce7dd791d2f280ae82195 (diff)
Change PDP topic to lower case for kafka compability
Issue-ID: POLICY-4402 Change-Id: I77fee1d194f884022b42094838b96070c3eda663 Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
-rw-r--r--services/services-onappf/src/test/java/org/onap/policy/apex/services/onappf/parameters/CommonTestData.java11
1 files changed, 5 insertions, 6 deletions
diff --git a/services/services-onappf/src/test/java/org/onap/policy/apex/services/onappf/parameters/CommonTestData.java b/services/services-onappf/src/test/java/org/onap/policy/apex/services/onappf/parameters/CommonTestData.java
index 6f4380993..b81295da1 100644
--- a/services/services-onappf/src/test/java/org/onap/policy/apex/services/onappf/parameters/CommonTestData.java
+++ b/services/services-onappf/src/test/java/org/onap/policy/apex/services/onappf/parameters/CommonTestData.java
@@ -1,6 +1,6 @@
/*-
* ============LICENSE_START=======================================================
- * Copyright (C) 2019 Nordix Foundation.
+ * Copyright (C) 2019, 2023 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 +20,6 @@
package org.onap.policy.apex.services.onappf.parameters;
-import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.TreeMap;
@@ -47,8 +46,8 @@ public class CommonTestData {
public static final String POLICY_NAME = "onap.controllloop.operational.apex.BBS";
public static final String POLICY_VERSION = "0.0.1";
public static final List<ToscaPolicyTypeIdentifierParameters> SUPPORTED_POLICY_TYPES =
- Arrays.asList(getSupportedPolicyTypes(POLICY_NAME, POLICY_VERSION));
- public static final List<TopicParameters> TOPIC_PARAMS = Arrays.asList(getTopicParams());
+ List.of(getSupportedPolicyTypes(POLICY_NAME, POLICY_VERSION));
+ public static final List<TopicParameters> TOPIC_PARAMS = List.of(getTopicParams());
private static final String REST_SERVER_PASSWORD = "zb!XztG34";
private static final String REST_SERVER_USER = "healthcheck";
private static final int REST_SERVER_PORT = 6969;
@@ -77,9 +76,9 @@ public class CommonTestData {
*/
public static TopicParameters getTopicParams() {
final TopicParameters topicParams = new TopicParameters();
- topicParams.setTopic("POLICY-PDP-PAP");
+ topicParams.setTopic("policy-pdp-pap");
topicParams.setTopicCommInfrastructure("noop");
- topicParams.setServers(Arrays.asList("message-router"));
+ topicParams.setServers(List.of("message-router"));
return topicParams;
}