summaryrefslogtreecommitdiffstats
path: root/csit/clamp
diff options
context:
space:
mode:
authoraravind.est <aravindhan.a@est.tech>2022-12-01 07:54:35 +0000
committerAravindhan Ayyanathan <aravindhan.a@est.tech>2022-12-02 13:45:20 +0000
commit644f900e413f536896c2800e6765c6d23effc335 (patch)
tree45dbee9ede669fb77750d5a9dfa931c69b38f86e /csit/clamp
parentbe26be5ce95977ce1471bcdd10862619c953faf6 (diff)
Add A1PMS participant in CSIT
Issue-ID: CCSDK-3816 Signed-off-by: aravind.est <aravindhan.a@est.tech> Change-Id: Ic5b49f6e4b3ca1652cf33efc0adfab9d0c754821
Diffstat (limited to 'csit/clamp')
-rwxr-xr-xcsit/clamp/plans/setup.sh4
-rw-r--r--csit/clamp/tests/data/PMSHMultipleACTosca.yaml65
2 files changed, 69 insertions, 0 deletions
diff --git a/csit/clamp/plans/setup.sh b/csit/clamp/plans/setup.sh
index 6b11f9e0..4ce48297 100755
--- a/csit/clamp/plans/setup.sh
+++ b/csit/clamp/plans/setup.sh
@@ -47,6 +47,7 @@ echo POLICY RUNTIME ACM IP IS "${POLICY_RUNTIME_ACM_IP}"
docker-compose -f "${SCRIPTS}"/docker-compose-all.yml up -d policy-clamp-ac-k8s-ppnt
docker-compose -f "${SCRIPTS}"/docker-compose-all.yml up -d policy-clamp-ac-http-ppnt
docker-compose -f "${SCRIPTS}"/docker-compose-all.yml up -d policy-clamp-ac-pf-ppnt
+docker-compose -f "${SCRIPTS}"/docker-compose-all.yml up -d policy-clamp-ac-a1pms-ppnt
sleep 10
unset http_proxy https_proxy
@@ -55,11 +56,13 @@ POLICY_PARTICIPANT_IP=$(get-instance-ip.sh policy-clamp-ac-pf-ppnt)
POLICY_API_IP=$(get-instance-ip.sh policy-api)
K8S_PARTICIPANT_IP=$(get-instance-ip.sh policy-clamp-ac-k8s-ppnt)
HTTP_PARTICIPANT_IP=$(get-instance-ip.sh policy-clamp-ac-http-ppnt)
+A1PMS_PARTICIPANT_IP=$(get-instance-ip.sh policy-clamp-ac-a1pms-ppnt)
echo POLICY PARTICIPANT IP IS "${POLICY_PARTICIPANT_IP}"
echo API IP IS "${POLICY_API_IP}"
echo K8S PARTICIPANT IP IS "${K8S_PARTICIPANT_IP}"
echo HTTP PARTICIPANT IP IS "${HTTP_PARTICIPANT_IP}"
+echo A1PMS PARTICIPANT IP IS "${A1PMS_PARTICIPANT_IP}"
# wait for the app to start up
"${SCRIPTS}"/wait_for_port.sh "${POLICY_PARTICIPANT_IP}" 6969
@@ -69,5 +72,6 @@ ROBOT_VARIABLES="${ROBOT_VARIABLES} -v POLICY_RUNTIME_ACM_IP:${POLICY_RUNTIME_AC
ROBOT_VARIABLES="${ROBOT_VARIABLES} -v POLICY_PARTICIPANT_IP:${POLICY_PARTICIPANT_IP}"
ROBOT_VARIABLES="${ROBOT_VARIABLES} -v K8S_PARTICIPANT_IP:${K8S_PARTICIPANT_IP}"
ROBOT_VARIABLES="${ROBOT_VARIABLES} -v HTTP_PARTICIPANT_IP:${HTTP_PARTICIPANT_IP}"
+ROBOT_VARIABLES="${ROBOT_VARIABLES} -v A1PMS_PARTICIPANT_IP:${A1PMS_PARTICIPANT_IP}"
ROBOT_VARIABLES="${ROBOT_VARIABLES} -v POLICY_API_IP:${POLICY_API_IP}"
diff --git a/csit/clamp/tests/data/PMSHMultipleACTosca.yaml b/csit/clamp/tests/data/PMSHMultipleACTosca.yaml
index fc4ac732..c6f61e72 100644
--- a/csit/clamp/tests/data/PMSHMultipleACTosca.yaml
+++ b/csit/clamp/tests/data/PMSHMultipleACTosca.yaml
@@ -421,6 +421,27 @@ data_types:
org.onap.datatypes.policy.clamp.acm.httpAutomationCompositionElement.RestRequest
typeVersion: 1.0.0
description: A sequence of REST commands to send to the REST endpoint
+ org.onap.datatypes.policy.clamp.acm.a1PmsAutomationCompositionElement.A1PolicyServiceEntity:
+ version: 1.0.0
+ derived_from: tosca.datatypes.Root
+ properties:
+ a1PolicyServiceEntityId:
+ type: onap.datatypes.ToscaConceptIdentifier
+ typeVersion: 1.0.0
+ required: true
+ description: The name and version of a Configuration Entity to be handled by the A1 PMS Automation Composition Element
+ clientId:
+ type: string
+ required: true
+ description: Client Id to be created
+ callbackUrl:
+ type: string
+ required: true
+ description: The callback URL to get registered
+ keepAliveIntervalSeconds:
+ type: integer
+ required: true
+ description: Keep alive interval time for the callback URL
policy_types:
onap.policies.Monitoring:
derived_from: tosca.policies.Root
@@ -690,6 +711,17 @@ node_types:
description: >-
The connfiguration entities the Automation Composition Element is
managing and their associated REST requests
+ org.onap.policy.clamp.acm.A1PMSAutomationCompositionElement:
+ version: 1.0.1
+ derived_from: org.onap.policy.clamp.acm.AutomationCompositionElement
+ properties:
+ policyServiceEntities:
+ type: list
+ required: true
+ entry_schema:
+ type: org.onap.datatypes.policy.clamp.acm.a1pmsAutomationCompositionElement.A1PolicyServiceEntity
+ typeVersion: 1.0.0
+ description: The configuration entities of A1 PMS policy services
topology_template:
inputs:
pmsh_monitoring_policy:
@@ -845,6 +877,36 @@ topology_template:
"DN":"ManagedElement=1,ENodeBFunction=1,EUtranCell=CityCenter1,
EUtranCellRelation=CityCenter3" } ] } } ] } }
expectedResponse: 201
+ org.onap.k8s.acm.A1PMSAutomationCompositionParticipant:
+ version: 2.3.4
+ type: org.onap.policy.clamp.acm.Participant
+ type_version: 1.0.1
+ description: Participant for A1 PMS requests
+ properties:
+ provider: ONAP
+ org.onap.domain.database.PMSH_A1PMSAutomationCompositionElement:
+ version: 1.2.3
+ type: org.onap.policy.clamp.acm.A1PMSAutomationCompositionElement
+ type_version: 1.0.1
+ description: Automation composition element for the A1 PMS Requests
+ properties:
+ provider: ONAP
+ participantType:
+ name: org.onap.policy.clamp.acm.A1PMSParticipant
+ version: 2.3.4
+ policyServiceEntities:
+ - a1PolicyServiceEntityId:
+ name: entity1
+ version: 1.0.1
+ clientId: firstService
+ callbackUrl: http://localhost
+ keepAliveIntervalSeconds: 0
+ - a1PolicyServiceEntityId:
+ name: entity2
+ version: 1.0.1
+ clientId: secondService
+ callbackUrl: http://127.0.0.1
+ keepAliveIntervalSeconds: 0
org.onap.domain.sample.GenericK8s_AutomationCompositionDefinition:
version: 1.2.3
type: org.onap.policy.clamp.acm.AutomationComposition
@@ -860,6 +922,9 @@ topology_template:
org.onap.domain.database.Http_PMSHMicroserviceAutomationCompositionElement
version: 1.2.3
- name: >-
+ org.onap.domain.database.PMSH_A1PMSAutomationCompositionElement
+ version: 1.2.3
+ - name: >-
org.onap.domain.pmsh.PMSH_MonitoringPolicyAutomationCompositionElement
version: 1.2.3
- name: >-