Fix drools-pdp helm charts to run csit test
Issue-ID: POLICY-4125
Change-Id: I50ad9e44081faf52744dbb6fd491980225a3a754
Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
diff --git a/csit/resources/scripts/run-test.sh b/csit/resources/scripts/run-test.sh
index b8b6857..4af5879 100755
--- a/csit/resources/scripts/run-test.sh
+++ b/csit/resources/scripts/run-test.sh
@@ -31,6 +31,7 @@
POLICY_PAP_IP=policy-pap:${DEFAULT_PORT}
APEX_IP=policy-apex-pdp:${DEFAULT_PORT}
POLICY_PDPX_IP=policy-xacml-pdp:${DEFAULT_PORT}
+POLICY_DROOLS_IP=policy-drools-pdp:9696
DMAAP_IP=message-router:3904
APEX_EVENTS_IP=policy-apex-pdp:23324
@@ -40,7 +41,7 @@
ROBOT_VARIABLES="-v DATA:$DATA -v NODETEMPLATES:$NODETEMPLATES -v POLICY_API_IP:$POLICY_API_IP
-v POLICY_RUNTIME_ACM_IP:$POLICY_RUNTIME_ACM_IP -v POLICY_PAP_IP:$POLICY_PAP_IP -v APEX_IP:$APEX_IP
-v APEX_EVENTS_IP:$APEX_EVENTS_IP -v DMAAP_IP:$DMAAP_IP -v PROMETHEUS_IP:${PROMETHEUS_IP}
--v POLICY_PDPX_IP:$POLICY_PDPX_IP"
+-v POLICY_PDPX_IP:$POLICY_PDPX_IP -v POLICY_DROOLS_IP:$POLICY_DROOLS_IP"
echo "Run Robot test"
echo ROBOT_VARIABLES="${ROBOT_VARIABLES}"
diff --git a/helm/policy/components/policy-drools-pdp/templates/service.yaml b/helm/policy/components/policy-drools-pdp/templates/service.yaml
index c60aec0..56cbf36 100644
--- a/helm/policy/components/policy-drools-pdp/templates/service.yaml
+++ b/helm/policy/components/policy-drools-pdp/templates/service.yaml
@@ -31,12 +31,12 @@
spec:
type: {{ .Values.service.type }}
ports:
- - port: {{ .Values.service.internalPort }}
+ - port: {{ .Values.service.externalPort }}
targetPort: {{ .Values.service.internalPort }}
- name: https-6969
- - port: {{ .Values.service.internalPort2 }}
- targetPort: {{ .Values.service.internalPort }}
- name: https-9696
+ name: http-6969
+ - port: {{ .Values.service.externalPort2 }}
+ targetPort: {{ .Values.service.internalPort2 }}
+ name: http-9696
selector:
app: {{ .Chart.Name }}
release: release