aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoradheli.tavares <adheli.tavares@est.tech>2023-03-02 12:55:19 +0000
committerAdheli Tavares <adheli.tavares@est.tech>2023-03-02 13:01:56 +0000
commit6f8e0a9588483cf4f7abd231c704f7fd84070147 (patch)
treeb721aa02c752a37b6203ff045989081fecd9c203
parent1153b6d0153344d4d92518d2ca73ecfe71dfa9d9 (diff)
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>
-rwxr-xr-xcsit/resources/scripts/run-test.sh3
-rw-r--r--helm/policy/components/policy-drools-pdp/templates/service.yaml10
2 files changed, 7 insertions, 6 deletions
diff --git a/csit/resources/scripts/run-test.sh b/csit/resources/scripts/run-test.sh
index b8b6857a..4af5879f 100755
--- a/csit/resources/scripts/run-test.sh
+++ b/csit/resources/scripts/run-test.sh
@@ -31,6 +31,7 @@ POLICY_API_IP=policy-api:${DEFAULT_PORT}
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 @@ export ROBOT_VARIABLES=
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 c60aec0e..56cbf366 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 @@ metadata:
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