diff options
Diffstat (limited to 'csit/resources/scripts')
-rwxr-xr-x | csit/resources/scripts/get-cluster-info.sh | 23 | ||||
-rwxr-xr-x | csit/resources/scripts/run-test.sh | 4 | ||||
-rwxr-xr-x | csit/resources/scripts/setup-clamp.sh | 3 |
3 files changed, 19 insertions, 11 deletions
diff --git a/csit/resources/scripts/get-cluster-info.sh b/csit/resources/scripts/get-cluster-info.sh index ab0b27b9..539bf6a3 100755 --- a/csit/resources/scripts/get-cluster-info.sh +++ b/csit/resources/scripts/get-cluster-info.sh @@ -1,6 +1,6 @@ #!/bin/bash # ============LICENSE_START======================================================= -# Copyright (C) 2023 Nordix Foundation. All rights reserved. +# Copyright (C) 2023-2024 Nordix Foundation. All rights reserved. # ================================================================================ # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -28,9 +28,10 @@ export XACML_PORT=30004 export DROOLS_PORT=30005 export DIST_PORT=30006 export ACM_PORT=30007 -export POLICY_PF_PARTICIPANT_PORT=30008 -export POLICY_HTTP_PARTICIPANT_PORT=30009 -export POLICY_K8S_PARTICIPANT_PORT=30010 +export PF_PARTICIPANT_PORT=30008 +export HTTP_PARTICIPANT_PORT=30009 +export K8S_PARTICIPANT_PORT=30010 +export SIM_PARTICIPANT_PORT=30011 export SIMULATOR_PORT=30904 # Retrieve pod names @@ -44,8 +45,9 @@ function get_pod_names() { export DIST_POD=$(get_pod_name distribution) export ACM_POD=$(get_pod_name acm-runtime) export POLICY_PPNT_POD=$(get_pod_name policy-ppnt) - export POLICY_PPNT_POD=$(get_pod_name http-ppnt) - export POLICY_PPNT_POD=$(get_pod_name k8s-ppnt) + export POLICY_HTTP_POD=$(get_pod_name http-ppnt) + export POLICY_SIM_POD=$(get_pod_name sim-ppnt) + export POLICY_K8S_POD=$(get_pod_name k8s-ppnt) } # Retrieve service names @@ -60,6 +62,7 @@ function get_svc_names() { export ACM_SVC=$(get_svc_name policy-clamp-runtime-acm) export POLICY_PPNT_SVC=$(get_svc_name policy-clamp-ac-pf-ppnt) export POLICY_HTTP_SVC=$(get_svc_name policy-clamp-ac-http-ppnt) + export POLICY_SIM_SVC=$(get_svc_name policy-clamp-ac-sim-ppnt) export POLICY_K8S_SVC=$(get_svc_name policy-clamp-ac-k8s-ppnt) } @@ -74,6 +77,7 @@ function expose_services() { expose_service $ACM_SVC expose_service $POLICY_PPNT_SVC expose_service POLICY_HTTP_SVC + expose_service POLICY_SIM_SVC expose_service POLICY_K8S_SVC setup_message_router_svc @@ -103,9 +107,10 @@ function patch_ports() { patch_port "$API_SVC" $API_PORT patch_port "$PAP_SVC" $PAP_PORT patch_port "$ACM_SVC" $ACM_PORT - patch_port "$POLICY_PPNT_SVC" $POLICY_PF_PARTICIPANT_PORT - patch_port "$HTTP_PPNT_SVC" $POLICY_HTTP_PARTICIPANT_PORT - patch_port "$K8S_PPNT_SVC" $POLICY_K8S_PARTICIPANT_PORT + patch_port "$POLICY_PPNT_SVC" $PF_PARTICIPANT_PORT + patch_port "$POLICY_HTTP_SVC" $HTTP_PARTICIPANT_PORT + patch_port "$POLICY_SIM_SVC" $SIM_PARTICIPANT_PORT + patch_port "$POLICY_K8S_SVC" $K8S_PARTICIPANT_PORT patch_port "$DIST_SVC" $DIST_PORT patch_port "$DROOLS_SVC" $DROOLS_PORT patch_port "$XACML_SVC" $XACML_PORT diff --git a/csit/resources/scripts/run-test.sh b/csit/resources/scripts/run-test.sh index 34048e2e..90dec572 100755 --- a/csit/resources/scripts/run-test.sh +++ b/csit/resources/scripts/run-test.sh @@ -27,6 +27,7 @@ DATA=/opt/robotworkspace/models/models-examples/src/main/resources/policies NODETEMPLATES=/opt/robotworkspace/models/models-examples/src/main/resources/nodetemplates POLICY_RUNTIME_ACM_IP=policy-clamp-runtime-acm:${DEFAULT_PORT} +POLICY_PARTICIPANT_SIM_IP=policy-clamp-ac-sim-ppnt:${DEFAULT_PORT} POLICY_API_IP=policy-api:${DEFAULT_PORT} POLICY_PAP_IP=policy-pap:${DEFAULT_PORT} APEX_IP=policy-apex-pdp:${DEFAULT_PORT} @@ -42,7 +43,8 @@ DIST_TEMP_FOLDER=/tmp/distribution 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 POLICY_RUNTIME_ACM_IP:$POLICY_RUNTIME_ACM_IP -v POLICY_PARTICIPANT_SIM_IP:$POLICY_PARTICIPANT_SIM_IP +-v POLICY_PAP_IP:$POLICY_PAP_IP -v APEX_IP:$APEX_IP -v APEX_EVENTS_IP:$APEX_EVENTS_IP -v KAFKA_IP:$KAFKA_IP -v PROMETHEUS_IP:${PROMETHEUS_IP} -v POLICY_PDPX_IP:$POLICY_PDPX_IP -v POLICY_DROOLS_IP:$POLICY_DROOLS_IP -v TEMP_FOLDER:${DIST_TEMP_FOLDER} -v DISTRIBUTION_IP:$DISTRIBUTION_IP -v CLAMP_K8S_TEST:$CLAMP_K8S_TEST" diff --git a/csit/resources/scripts/setup-clamp.sh b/csit/resources/scripts/setup-clamp.sh index 4eae4da3..ba4467b9 100755 --- a/csit/resources/scripts/setup-clamp.sh +++ b/csit/resources/scripts/setup-clamp.sh @@ -1,6 +1,6 @@ #!/bin/bash # ============LICENSE_START======================================================= -# Copyright (C) 2021-2023 Nordix Foundation. +# Copyright (C) 2021-2024 Nordix Foundation. # ================================================================================ # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -30,6 +30,7 @@ CLAMP_K8S_TEST=false export SUITES="policy-clamp-test.robot" ROBOT_VARIABLES="-v POLICY_RUNTIME_ACM_IP:localhost:${ACM_PORT} +-v POLICY_PARTICIPANT_SIM_IP:localhost:${SIM_PARTICIPANT_PORT} -v POLICY_API_IP:localhost:${API_PORT} -v POLICY_PAP_IP:localhost:${PAP_PORT} -v CLAMP_K8S_TEST:$CLAMP_K8S_TEST" |