From cec2a2c3b6ce4ee353ef0058801a1a2b3e81ae54 Mon Sep 17 00:00:00 2001 From: "adheli.tavares" Date: Mon, 18 Dec 2023 17:54:22 +0000 Subject: Change PDP topic to lower case for kafka compability Issue-ID: POLICY-4402 Change-Id: I77fee1d194f884022b42094838b96070c3eda663 Signed-off-by: adheli.tavares --- .../apex/services/onappf/parameters/CommonTestData.java | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'services/services-onappf/src') 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 SUPPORTED_POLICY_TYPES = - Arrays.asList(getSupportedPolicyTypes(POLICY_NAME, POLICY_VERSION)); - public static final List TOPIC_PARAMS = Arrays.asList(getTopicParams()); + List.of(getSupportedPolicyTypes(POLICY_NAME, POLICY_VERSION)); + public static final List 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; } -- cgit 1.2.3-korg