aboutsummaryrefslogtreecommitdiffstats
path: root/csit
diff options
context:
space:
mode:
authorRamesh Murugan Iyer <ramesh.murugan.iyer@est.tech>2024-07-22 08:09:33 +0000
committerGerrit Code Review <gerrit@onap.org>2024-07-22 08:09:33 +0000
commit4e38c5a0df50fe4fff97dd88ddf776cffb58dcc3 (patch)
tree4ec1176a84864e81ea682ff4c9206644ffa78f8d /csit
parent6e5018fa5717eeefdb2a0319d0dad7ae0ddd4595 (diff)
parentdaecbb96b9a747a2edaf33a3e9a9784cc71440a8 (diff)
Merge "Add CSIT option to run xacml-pdp against postgres database"
Diffstat (limited to 'csit')
-rwxr-xr-xcsit/run-project-csit.sh17
1 files changed, 15 insertions, 2 deletions
diff --git a/csit/run-project-csit.sh b/csit/run-project-csit.sh
index aa19b257..36bad1ff 100755
--- a/csit/run-project-csit.sh
+++ b/csit/run-project-csit.sh
@@ -80,7 +80,7 @@ function setup_apex() {
function setup_apex_postgres() {
export ROBOT_FILES="apex-pdp-test.robot"
- source "${WORKSPACE}"/compose/start-postgres-tests.sh 1
+ source "${WORKSPACE}"/compose/start-postgres-tests.sh apex-pdp 1
sleep 10
bash "${SCRIPTS}"/wait_for_rest.sh localhost ${PAP_PORT}
bash "${SCRIPTS}"/wait_for_rest.sh localhost ${APEX_PORT}
@@ -141,6 +141,13 @@ function setup_xacml_pdp() {
bash "${SCRIPTS}"/wait_for_rest.sh localhost "${XACML_PORT}"
}
+function setup_xacml_pdp_postgres() {
+ export ROBOT_FILES="xacml-pdp-test.robot"
+ source "${WORKSPACE}"/compose/start-postgres-tests.sh xacml-pdp 1
+ sleep 10
+ bash "${SCRIPTS}"/wait_for_rest.sh localhost "${XACML_PORT}"
+}
+
function setup_drools_pdp() {
export ROBOT_FILES="drools-pdp-test.robot"
source "${WORKSPACE}"/compose/start-compose.sh drools-pdp
@@ -197,7 +204,7 @@ function set_project_config() {
;;
apex-pdp-postgres | policy-apex-pdp-postgres)
- setup_apex
+ setup_apex_postgres
;;
apex-pdp-medium | policy-apex-pdp-medium)
@@ -212,6 +219,10 @@ function set_project_config() {
setup_xacml_pdp
;;
+ xacml-pdp-postgres | policy-xacml-pdp-postgres)
+ setup_xacml_pdp_postgres
+ ;;
+
drools-pdp | policy-drools-pdp)
setup_drools_pdp
;;
@@ -253,6 +264,8 @@ export PROJECT="${1}"
export ROBOT_LOG_DIR=${WORKSPACE}/csit/archives/${PROJECT}
export SCRIPTS="${WORKSPACE}/csit/resources/scripts"
export ROBOT_FILES=""
+# always 'docker' if running docker compose
+export TEST_ENV="docker"
cd "${WORKSPACE}"