From 31c61d495474985b8cc3460464f888651d0919ed Mon Sep 17 00:00:00 2001 From: rameshiyer27 <ramesh.murugan.iyer@est.tech> Date: Sun, 21 Jan 2024 14:24:03 +0000 Subject: Add kafka support in K8s CSIT Issue-ID: POLICY-4402 Signed-off-by: zrrmmua <ramesh.murugan.iyer@est.tech> Change-Id: I29ef966ed5eb70997574269ff6180f68d754383b --- csit/resources/scripts/setup-apex-pdp-large.sh | 3 ++- csit/resources/scripts/setup-apex-pdp-medium.sh | 3 ++- csit/resources/scripts/setup-apex-pdp.sh | 2 +- csit/resources/scripts/setup-drools-applications.sh | 3 ++- csit/resources/scripts/setup-xacml-pdp.sh | 3 ++- 5 files changed, 9 insertions(+), 5 deletions(-) (limited to 'csit/resources/scripts') diff --git a/csit/resources/scripts/setup-apex-pdp-large.sh b/csit/resources/scripts/setup-apex-pdp-large.sh index 1f55861e..aeb44567 100644 --- a/csit/resources/scripts/setup-apex-pdp-large.sh +++ b/csit/resources/scripts/setup-apex-pdp-large.sh @@ -18,6 +18,7 @@ # export PROJECT="apex-pdp" +export KAFKA_IP="localhost:${KAFKA_PORT}" source "${SCRIPTS}"/node-templates.sh source "${WORKSPACE}"/compose/start-multiple-pdp.sh 10 @@ -49,4 +50,4 @@ export SUITES="apex-slas-10.robot" ROBOT_VARIABLES="-v POLICY_PAP_IP:localhost:${PAP_PORT} -v POLICY_API_IP:localhost:${API_PORT} -v PROMETHEUS_IP:localhost:${PROMETHEUS_PORT} -v DATA:${DATA} -v NODETEMPLATES:${NODETEMPLATES} --v APEX_IP:localhost:${APEX_PORT} -v APEX_EVENTS_IP:localhost:${APEX_PORT}" +-v APEX_IP:localhost:${APEX_PORT} -v APEX_EVENTS_IP:localhost:${APEX_PORT -v KAFKA_IP:${KAFKA_IP}}" diff --git a/csit/resources/scripts/setup-apex-pdp-medium.sh b/csit/resources/scripts/setup-apex-pdp-medium.sh index e7e0725f..5d1dbb2c 100644 --- a/csit/resources/scripts/setup-apex-pdp-medium.sh +++ b/csit/resources/scripts/setup-apex-pdp-medium.sh @@ -18,6 +18,7 @@ # export PROJECT="apex-pdp" +export KAFKA_IP="localhost:${KAFKA_PORT}" source "${SCRIPTS}"/node-templates.sh source "${WORKSPACE}"/compose/start-multiple-pdp.sh 3 @@ -49,4 +50,4 @@ export SUITES="apex-slas-3.robot" ROBOT_VARIABLES="-v POLICY_PAP_IP:localhost:${PAP_PORT} -v POLICY_API_IP:localhost:${API_PORT} -v PROMETHEUS_IP:localhost:${PROMETHEUS_PORT} -v DATA:${DATA} -v NODETEMPLATES:${NODETEMPLATES} --v APEX_IP:localhost:${APEX_PORT} -v APEX_EVENTS_IP:localhost:${APEX_PORT}" +-v APEX_IP:localhost:${APEX_PORT} -v APEX_EVENTS_IP:localhost:${APEX_PORT} -v KAFKA_IP:${KAFKA_IP}" diff --git a/csit/resources/scripts/setup-apex-pdp.sh b/csit/resources/scripts/setup-apex-pdp.sh index 198a6017a..1f04fc85 100755 --- a/csit/resources/scripts/setup-apex-pdp.sh +++ b/csit/resources/scripts/setup-apex-pdp.sh @@ -26,7 +26,7 @@ source "${SCRIPTS}"/setup-pap.sh # wait for the app to start up bash "${SCRIPTS}"/wait_for_rest.sh localhost ${APEX_PORT} -export KAFKA_IP="kafka:${KAFKA_PORT}" +export KAFKA_IP="localhost:${KAFKA_PORT}" export SUITES="apex-pdp-test.robot apex-slas.robot" diff --git a/csit/resources/scripts/setup-drools-applications.sh b/csit/resources/scripts/setup-drools-applications.sh index 369874b6..94272e3c 100755 --- a/csit/resources/scripts/setup-drools-applications.sh +++ b/csit/resources/scripts/setup-drools-applications.sh @@ -26,6 +26,7 @@ sleep 10 unset http_proxy https_proxy export SUITES="drools-applications-test.robot" +export KAFKA_IP="localhost:${KAFKA_PORT}" # wait for the app to start up "${SCRIPTS}"/wait_for_rest.sh localhost ${DROOLS_APPS_PORT} @@ -35,4 +36,4 @@ sleep 15 ROBOT_VARIABLES="-v DATA:${DATA} -v DROOLS_IP:localhost:${DROOLS_APPS_PORT} -v DROOLS_IP_2:localhost:${DROOLS_APPS_TELEMETRY_PORT} -v POLICY_API_IP:localhost:${API_PORT} --v POLICY_PAP_IP:localhost:${PAP_PORT} -v KAFKA_IP:localhost:${KAFKA_PORT}" +-v POLICY_PAP_IP:localhost:${PAP_PORT} -v KAFKA_IP:${KAFKA_IP}" diff --git a/csit/resources/scripts/setup-xacml-pdp.sh b/csit/resources/scripts/setup-xacml-pdp.sh index 4511d91e..79a53bec 100755 --- a/csit/resources/scripts/setup-xacml-pdp.sh +++ b/csit/resources/scripts/setup-xacml-pdp.sh @@ -26,10 +26,11 @@ sleep 10 unset http_proxy https_proxy export SUITES="xacml-pdp-test.robot" +export KAFKA_IP="localhost:${KAFKA_PORT}" # wait for the app to start up "${SCRIPTS}"/wait_for_rest.sh localhost "${XACML_PORT}" ROBOT_VARIABLES="-v DATA:${DATA} -v POLICY_PDPX_IP:localhost:${XACML_PORT} -v POLICY_API_IP:localhost:${API_PORT} -v POLICY_PAP_IP:localhost:${PAP_PORT} --v KAFKA_IP:localhost:${KAFKA_PORT}" +-v KAFKA_IP:${KAFKA_IP}" -- cgit 1.2.3-korg