Fix Apex-PDP postgres CSIT failures 09/134509/2
authorwaynedunican <wayne.dunican@est.tech>
Tue, 9 May 2023 08:49:07 +0000 (09:49 +0100)
committerwaynedunican <wayne.dunican@est.tech>
Tue, 9 May 2023 09:08:56 +0000 (10:08 +0100)
- Fix APEX_EVENTS_PORT variable
- Bring up promethues

Issue-ID: POLICY-4645
Change-Id: Ief2627d910f86796b42e9a8a289e12564b8c83a0
Signed-off-by: waynedunican <wayne.dunican@est.tech>
compose/start-postgres-tests.sh
csit/resources/scripts/setup-apex-pdp-postgres.sh

index 112bdce..1c08600 100644 (file)
@@ -31,6 +31,6 @@ source export-ports.sh > /dev/null 2>&1
 source get-versions.sh > /dev/null 2>&1
 
 export REPLICAS=${1}
-docker-compose -f docker-compose.postgres.yml up -d apex-pdp
+docker-compose -f docker-compose.postgres.yml up -d apex-pdp prometheus
 
 cd ${WORKSPACE}
\ No newline at end of file
index 21eb6e6..f088da3 100755 (executable)
 # SPDX-License-Identifier: Apache-2.0
 # ============LICENSE_END=========================================================
 
-export PROJECT="apex-pdp"
 source "${SCRIPTS}"/node-templates.sh
 
-source "${WORKSPACE}"/compose/start-postgres-tests.sh
+source "${WORKSPACE}"/compose/start-postgres-tests.sh 1
 
 sleep 10
 unset http_proxy https_proxy
@@ -51,4 +50,4 @@ export SUITES="apex-pdp-test.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 DMAAP_IP:${DMAAP_IP}
--v APEX_EVENTS_IP:localhost:${APEX_PORT}"
+-v APEX_EVENTS_IP:localhost:${APEX_EVENTS_PORT}"