aboutsummaryrefslogtreecommitdiffstats
path: root/csit/resources
diff options
context:
space:
mode:
Diffstat (limited to 'csit/resources')
-rwxr-xr-xcsit/resources/scripts/build-csit-docker-image.sh2
-rw-r--r--csit/resources/tests/data/PrepareAC.json3
-rw-r--r--csit/resources/tests/data/ReviewAC.json3
-rw-r--r--csit/resources/tests/data/ac-definition-migration-to.yaml4
-rw-r--r--csit/resources/tests/data/ac-instance-migration-to.yaml6
-rw-r--r--csit/resources/tests/data/ac-instance-precheck-migration.yaml60
-rw-r--r--csit/resources/tests/drools-applications-test.robot148
-rw-r--r--csit/resources/tests/policy-clamp-test.robot69
8 files changed, 219 insertions, 76 deletions
diff --git a/csit/resources/scripts/build-csit-docker-image.sh b/csit/resources/scripts/build-csit-docker-image.sh
index d4686422..8fd300f4 100755
--- a/csit/resources/scripts/build-csit-docker-image.sh
+++ b/csit/resources/scripts/build-csit-docker-image.sh
@@ -46,7 +46,7 @@ docker image rm -f ${ROBOT_DOCKER_IMAGE}
clone_models
echo "Build robot framework docker image"
-docker build . --file Dockerfile --tag "${ROBOT_DOCKER_IMAGE}" --no-cache
+docker build . --file Dockerfile --tag "${ROBOT_DOCKER_IMAGE}" --quiet
docker save -o policy-csit-robot.tar ${ROBOT_DOCKER_IMAGE}:latest
rm -rf ${WORKSPACE}/csit/resources/policy-csit-robot.tar
diff --git a/csit/resources/tests/data/PrepareAC.json b/csit/resources/tests/data/PrepareAC.json
new file mode 100644
index 00000000..bc3a3c0a
--- /dev/null
+++ b/csit/resources/tests/data/PrepareAC.json
@@ -0,0 +1,3 @@
+{
+ "subOrder": "PREPARE"
+}
diff --git a/csit/resources/tests/data/ReviewAC.json b/csit/resources/tests/data/ReviewAC.json
new file mode 100644
index 00000000..e4d74348
--- /dev/null
+++ b/csit/resources/tests/data/ReviewAC.json
@@ -0,0 +1,3 @@
+{
+ "subOrder": "REVIEW"
+}
diff --git a/csit/resources/tests/data/ac-definition-migration-to.yaml b/csit/resources/tests/data/ac-definition-migration-to.yaml
index efc550b0..5a5b57e4 100644
--- a/csit/resources/tests/data/ac-definition-migration-to.yaml
+++ b/csit/resources/tests/data/ac-definition-migration-to.yaml
@@ -128,7 +128,7 @@ topology_template:
provider: ONAP
startPhase: 0
- onap.policy.clamp.ac.element.Sim_SinkAutomationCompositionElement:
+ onap.policy.clamp.ac.element.Sim_NewAutomationCompositionElement:
version: 1.2.4
type: org.onap.policy.clamp.acm.SimAutomationCompositionElement
type_version: 1.0.0
@@ -149,5 +149,5 @@ topology_template:
version: 1.2.4
- name: onap.policy.clamp.ac.element.Sim_BridgeAutomationCompositionElement
version: 1.2.4
- - name: onap.policy.clamp.ac.element.Sim_SinkAutomationCompositionElement
+ - name: onap.policy.clamp.ac.element.Sim_NewAutomationCompositionElement
version: 1.2.4
diff --git a/csit/resources/tests/data/ac-instance-migration-to.yaml b/csit/resources/tests/data/ac-instance-migration-to.yaml
index 65b684a3..68a31a59 100644
--- a/csit/resources/tests/data/ac-instance-migration-to.yaml
+++ b/csit/resources/tests/data/ac-instance-migration-to.yaml
@@ -47,10 +47,10 @@ elements:
- configurationEntityId:
myParameterToUpdate: TEXTPLACEHOLDER
- 709c62b3-8918-41b9-a747-d21eb79c6c36:
- id: 709c62b3-8918-41b9-a747-d21eb79c6c36
+ 709c62b3-8918-41b9-a747-d21eb79c6c37:
+ id: 709c62b3-8918-41b9-a747-d21eb79c6c37
definition:
- name: onap.policy.clamp.ac.element.Sim_SinkAutomationCompositionElement
+ name: onap.policy.clamp.ac.element.Sim_NewAutomationCompositionElement
version: 1.2.4
description: Sink Automation Composition Element for the Demo
properties:
diff --git a/csit/resources/tests/data/ac-instance-precheck-migration.yaml b/csit/resources/tests/data/ac-instance-precheck-migration.yaml
new file mode 100644
index 00000000..3380c157
--- /dev/null
+++ b/csit/resources/tests/data/ac-instance-precheck-migration.yaml
@@ -0,0 +1,60 @@
+# ============LICENSE_START=======================================================
+# Copyright (C) 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.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an AS IS BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# SPDX-License-Identifier: Apache-2.0
+# ============LICENSE_END=========================================================
+name: Instance-Migration-To
+version: 1.0.1
+compositionId: COMPOSITIONIDPLACEHOLDER
+instanceId: INSTACEIDPLACEHOLDER
+compositionTargetId: COMPOSITIONTARGETIDPLACEHOLDER
+precheck: true
+description: Demo automation composition instance 0
+elements:
+
+ 709c62b3-8918-41b9-a747-d21eb79c6c34:
+ id: 709c62b3-8918-41b9-a747-d21eb79c6c34
+ definition:
+ name: onap.policy.clamp.ac.element.Sim_StarterAutomationCompositionElement
+ version: 1.2.4
+ description: Starter Automation Composition Element for the Demo
+ properties:
+ baseUrl: http://10.101.0.249:30800
+ configurationEntities:
+ - configurationEntityId:
+ myParameterToUpdate: text updated for migration
+
+ 709c62b3-8918-41b9-a747-d21eb79c6c35:
+ id: 709c62b3-8918-41b9-a747-d21eb79c6c35
+ definition:
+ name: onap.policy.clamp.ac.element.Sim_BridgeAutomationCompositionElement
+ version: 1.2.4
+ description: Bridge Automation Composition Element for the Demo
+ properties:
+ baseUrl: http://10.101.0.249:30801
+ configurationEntities:
+ - configurationEntityId:
+ myParameterToUpdate: TEXTPLACEHOLDER
+
+ 709c62b3-8918-41b9-a747-d21eb79c6c37:
+ id: 709c62b3-8918-41b9-a747-d21eb79c6c37
+ definition:
+ name: onap.policy.clamp.ac.element.Sim_NewAutomationCompositionElement
+ version: 1.2.4
+ description: Sink Automation Composition Element for the Demo
+ properties:
+ configurationEntities:
+ - configurationEntityId:
+ myParameterToUpdate: text updated for migration
diff --git a/csit/resources/tests/drools-applications-test.robot b/csit/resources/tests/drools-applications-test.robot
index e7b2105f..3c4303ad 100644
--- a/csit/resources/tests/drools-applications-test.robot
+++ b/csit/resources/tests/drools-applications-test.robot
@@ -23,9 +23,9 @@ Healthcheck
${resp}= PeformGetRequest /healthcheck ${DROOLS_IP} 200
Should Be Equal As Strings ${resp.json()['healthy']} True
-#Controller
-# [Documentation] Checks controller is up
-# Wait Until Keyword Succeeds 2 min 15 sec VerifyController
+Controller
+ [Documentation] Checks controller is up
+ Wait Until Keyword Succeeds 2 min 15 sec VerifyController
MakeTopics
[Documentation] Creates the Policy topics
@@ -65,81 +65,82 @@ DeployXacmlPolicies
Should Contain ${result} onap.scaleout.tca
Should Contain ${result} onap.restart.tca
-## Uncomment the drools policy deployment once the drools pdp code is fixed
-#DeployDroolsPolicies
-# [Documentation] Deploys the Policies to Drools
-# DeployPolicy deploy.drools.policies.json
-# Sleep 5s
-# ${result}= CheckKafkaTopic policy-notification operational.modifyconfig
-# Should Contain ${result} deployed-policies
-# Should Contain ${result} operational.scaleout
-# Should Contain ${result} operational.restart
-#
+DeployDroolsPolicies
+ [Documentation] Deploys the Policies to Drools
+ DeployPolicy deploy.drools.policies.json
+ Sleep 5s
+ ${result}= CheckKafkaTopic policy-notification operational.modifyconfig
+ Should Contain ${result} deployed-policies
+ Should Contain ${result} operational.scaleout
+ Should Contain ${result} operational.restart
+
#VcpeExecute
# [Documentation] Executes VCPE Policy
# OnSet ${CURDIR}/data/vcpeOnset.json
-# ${result}= CheckKafkaTopic policy-cl-mgt ACTIVE
-# Should Contain ${result} ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e
-# ${result}= CheckKafkaTopic policy-cl-mgt OPERATION
-# Should Contain ${result} ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e
-# Should Contain ${result} Sending guard query for APPC Restart
-# ${result}= CheckKafkaTopic policy-cl-mgt OPERATION
-# Should Contain ${result} ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e
-# Should Contain ${result} Guard result for APPC Restart is Permit
-# ${result}= CheckKafkaTopic policy-cl-mgt OPERATION
-# Should Contain ${result} ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e
-# Should Contain ${result} actor=APPC,operation=Restart
-# ${result}= CheckKafkaTopic policy-cl-mgt OPERATION: SUCCESS
-# Should Contain ${result} ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e
-# Should Contain ${result} actor=APPC,operation=Restart
-# ${result}= CheckKafkaTopic policy-cl-mgt FINAL: SUCCESS
-# Should Contain ${result} ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e
-# Should Contain ${result} APPC
-# Should Contain ${result} Restart
+# ${policyExecuted}= Set Variable ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e
+# @{otherMessages}= Create List ACTIVE
+# AssertMessageFromTopic policy-cl-mgt ${policyExecuted} ${otherMessages}
+#
+# @{otherMessages}= Create List OPERATION Sending guard query for APPC Restart
+# AssertMessageFromTopic policy-cl-mgt ${policyExecuted} ${otherMessages}
+#
+# @{otherMessages}= Create List OPERATION Guard result for APPC Restart is Permit
+# AssertMessageFromTopic policy-cl-mgt ${policyExecuted} ${otherMessages}
#
-#VdnsExecute
-# [Documentation] Executes VDNS Policy
-# OnSet ${CURDIR}/data/vdnsOnset.json
-# ${result}= CheckKafkaTopic policy-cl-mgt ACTIVE
-# Should Contain ${result} ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3
-# ${result}= CheckKafkaTopic policy-cl-mgt OPERATION
-# Should Contain ${result} ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3
-# Should Contain ${result} Sending guard query for SO VF Module Create
-# ${result}= CheckKafkaTopic policy-cl-mgt OPERATION
-# Should Contain ${result} ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3
-# Should Contain ${result} Guard result for SO VF Module Create is Permit
-# ${result}= CheckKafkaTopic policy-cl-mgt OPERATION
-# Should Contain ${result} ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3
-# Should Contain ${result} actor=SO,operation=VF Module Create
-# ${result}= CheckKafkaTopic policy-cl-mgt OPERATION: SUCCESS
-# Should Contain ${result} ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3
-# Should Contain ${result} actor=SO,operation=VF Module Create
-# ${result}= CheckKafkaTopic policy-cl-mgt FINAL: SUCCESS
-# Should Contain ${result} ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3
-# Should Contain ${result} SO
-# Should Contain ${result} VF Module Create
+# @{otherMessages}= Create List OPERATION actor=APPC,operation=Restart
+# AssertMessageFromTopic policy-cl-mgt ${policyExecuted} ${otherMessages}
#
+# @{otherMessages}= Create List OPERATION: SUCCESS actor=APPC,operation=Restart
+# AssertMessageFromTopic policy-cl-mgt ${policyExecuted} ${otherMessages}
+#
+# @{otherMessages}= Create List FINAL: SUCCESS APPC Restart
+# AssertMessageFromTopic policy-cl-mgt ${policyExecuted} ${otherMessages}
+
+VdnsExecute
+ [Documentation] Executes VDNS Policy
+ OnSet ${CURDIR}/data/vdnsOnset.json
+ ${policyExecuted}= Set Variable ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3
+ @{otherMessages}= Create List ACTIVE
+ AssertMessageFromTopic policy-cl-mgt ${policyExecuted} ${otherMessages}
+
+ @{otherMessages}= Create List OPERATION Sending guard query for SO VF Module Create
+ AssertMessageFromTopic policy-cl-mgt ${policyExecuted} ${otherMessages}
+
+ @{otherMessages}= Create List OPERATION Guard result for SO VF Module Create is Permit
+ AssertMessageFromTopic policy-cl-mgt ${policyExecuted} ${otherMessages}
+
+ @{otherMessages}= Create List OPERATION actor=SO,operation=VF Module Create
+ AssertMessageFromTopic policy-cl-mgt ${policyExecuted} ${otherMessages}
+
+ @{otherMessages}= Create List OPERATION: SUCCESS actor=SO,operation=VF Module Create
+ AssertMessageFromTopic policy-cl-mgt ${policyExecuted} ${otherMessages}
+
+ @{otherMessages}= Create List FINAL: SUCCESS SO VF Module Create
+ AssertMessageFromTopic policy-cl-mgt ${policyExecuted} ${otherMessages}
+
#VfwExecute
# [Documentation] Executes VFW Policy
# OnSet ${CURDIR}/data/vfwOnset.json
-# ${result}= CheckKafkaTopic policy-cl-mgt ACTIVE
-# Should Contain ${result} ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a
-# ${result}= CheckKafkaTopic policy-cl-mgt OPERATION
-# Should Contain ${result} ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a
-# Should Contain ${result} Sending guard query for APPC ModifyConfig
-# ${result}= CheckKafkaTopic policy-cl-mgt OPERATION
-# Should Contain ${result} ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a
-# Should Contain ${result} Guard result for APPC ModifyConfig is Permit
-# ${result}= CheckKafkaTopic policy-cl-mgt OPERATION
-# Should Contain ${result} ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a
-# Should Contain ${result} actor=APPC,operation=ModifyConfig
-# ${result}= CheckKafkaTopic policy-cl-mgt OPERATION: SUCCESS
-# Should Contain ${result} ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a
-# Should Contain ${result} actor=APPC,operation=ModifyConfig
-# ${result}= CheckKafkaTopic policy-cl-mgt FINAL: SUCCESS
-# Should Contain ${result} ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a
-# Should Contain ${result} APPC
-# Should Contain ${result} ModifyConfig
+# ${policyExecuted}= Set Variable ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a
+# @{otherMessages}= Create List ACTIVE
+# AssertMessageFromTopic policy-cl-mgt ${policyExecuted} ${otherMessages}
+#
+# @{otherMessages}= Create List OPERATION Sending guard query for APPC ModifyConfig
+# AssertMessageFromTopic policy-cl-mgt ${policyExecuted} ${otherMessages}
+#
+# @{otherMessages}= Create List OPERATION Guard result for APPC ModifyConfig is Permit
+# AssertMessageFromTopic policy-cl-mgt ${policyExecuted} ${otherMessages}
+#
+# @{otherMessages}= Create List OPERATION actor=APPC,operation=ModifyConfig
+# AssertMessageFromTopic policy-cl-mgt ${policyExecuted} ${otherMessages}
+#
+# @{otherMessages}= Create List OPERATION: SUCCESS actor=APPC,operation=ModifyConfig
+# AssertMessageFromTopic policy-cl-mgt ${policyExecuted} ${otherMessages}
+#
+# Log "Checking if policy execution status is FINAL: SUCCESS"
+# @{otherMessages}= Create List FINAL: SUCCESS APPC ModifyConfig
+# AssertMessageFromTopic policy-cl-mgt ${policyExecuted} ${otherMessages}
+
*** Keywords ***
@@ -182,3 +183,10 @@ CreatePolicy
DeployPolicy
[Arguments] ${policyName}
PerformPostRequest /policy/pap/v1/pdps/deployments/batch ${POLICY_PAP_IP} ${policyName} ${CURDIR}/data json 202
+
+AssertMessageFromTopic
+ [Arguments] ${topic} ${topicMessage} ${otherMessages}
+ ${response}= Wait Until Keyword Succeeds 4 x 10 sec CheckKafkaTopic ${topic} ${topicMessage}
+ FOR ${msg} IN @{otherMessages}
+ Should Contain ${response} ${msg}
+ END
diff --git a/csit/resources/tests/policy-clamp-test.robot b/csit/resources/tests/policy-clamp-test.robot
index 3f158c60..3afcf12e 100644
--- a/csit/resources/tests/policy-clamp-test.robot
+++ b/csit/resources/tests/policy-clamp-test.robot
@@ -161,6 +161,18 @@ InstantiateAutomationCompositionMigrationFrom
set Suite variable ${instanceMigrationId} ${respyaml["instanceId"]}
Should Be Equal As Strings ${resp.status_code} 201
+PrepareAutomationComposition
+ [Documentation] Prepare automation composition.
+ ${auth}= Create List runtimeUser zb!XztG34
+ Log Creating session http://${POLICY_RUNTIME_ACM_IP}
+ ${postjson}= Get file ${CURDIR}/data/PrepareAC.json
+ ${session}= Create Session policy http://${POLICY_RUNTIME_ACM_IP} auth=${auth}
+ ${headers}= Create Dictionary Accept=application/json Content-Type=application/json
+ ${resp}= PUT On Session policy /onap/policy/clamp/acm/v2/compositions/${compositionId}/instances/${instanceId} data=${postjson} headers=${headers}
+ Log Received response from runtime acm ${resp.text}
+ Should Be Equal As Strings ${resp.status_code} 202
+ Wait Until Keyword Succeeds 10 min 5 sec VerifyDeployStatus ${compositionId} ${instanceId} UNDEPLOYED
+
DeployAutomationComposition
[Documentation] Deploy automation composition.
${auth}= Create List runtimeUser zb!XztG34
@@ -230,6 +242,18 @@ QueryPolicyTypes
Should Be Equal As Strings ${resp.status_code} 200
List Should Contain Value ${resp.json()['policy_types']} onap.policies.native.Apex
+ReviewAutomationComposition
+ [Documentation] Review automation composition.
+ ${auth}= Create List runtimeUser zb!XztG34
+ Log Creating session http://${POLICY_RUNTIME_ACM_IP}
+ ${postjson}= Get file ${CURDIR}/data/ReviewAC.json
+ ${session}= Create Session policy http://${POLICY_RUNTIME_ACM_IP} auth=${auth}
+ ${headers}= Create Dictionary Accept=application/json Content-Type=application/json
+ ${resp}= PUT On Session policy /onap/policy/clamp/acm/v2/compositions/${compositionId}/instances/${instanceId} data=${postjson} headers=${headers}
+ Log Received response from runtime acm ${resp.text}
+ Should Be Equal As Strings ${resp.status_code} 202
+ Wait Until Keyword Succeeds 10 min 5 sec VerifyDeployStatus ${compositionId} ${instanceId} DEPLOYED
+
FailDeployAutomationCompositionMigration
[Documentation] Fail Deploy automation composition.
SetParticipantSimFail
@@ -287,6 +311,22 @@ AutomationCompositionUpdate
VerifyPropertiesUpdated ${compositionFromId} ${instanceMigrationId} MyTextUpdated
VerifyParticipantSim ${instanceMigrationId} MyTextUpdated
+PrecheckAutomationCompositionMigration
+ [Documentation] Precheck Migration of an automation composition.
+ ${auth}= Create List runtimeUser zb!XztG34
+ Log Creating session http://${POLICY_RUNTIME_ACM_IP}
+ ${postyaml}= Get file ${CURDIR}/data/ac-instance-precheck-migration.yaml
+ ${updatedpostyaml}= Replace String ${postyaml} COMPOSITIONIDPLACEHOLDER ${compositionFromId}
+ ${updatedpostyaml}= Replace String ${updatedpostyaml} COMPOSITIONTARGETIDPLACEHOLDER ${compositionToId}
+ ${updatedpostyaml}= Replace String ${updatedpostyaml} INSTACEIDPLACEHOLDER ${instanceMigrationId}
+ ${updatedpostyaml}= Replace String ${updatedpostyaml} TEXTPLACEHOLDER TextForMigration
+ ${session}= Create Session policy http://${POLICY_RUNTIME_ACM_IP} auth=${auth}
+ ${headers}= Create Dictionary Accept=application/yaml Content-Type=application/yaml
+ ${resp}= POST On Session policy /onap/policy/clamp/acm/v2/compositions/${compositionFromId}/instances data=${updatedpostyaml} headers=${headers}
+ Log Received response from runtime acm ${resp.text}
+ Should Be Equal As Strings ${resp.status_code} 200
+ Wait Until Keyword Succeeds 2 min 5 sec VerifyDeployStatus ${compositionFromId} ${instanceMigrationId} DEPLOYED
+
AutomationCompositionMigrationTo
[Documentation] Migration of an automation composition.
${auth}= Create List runtimeUser zb!XztG34
@@ -304,6 +344,8 @@ AutomationCompositionMigrationTo
Wait Until Keyword Succeeds 2 min 5 sec VerifyDeployStatus ${compositionToId} ${instanceMigrationId} DEPLOYED
VerifyPropertiesUpdated ${compositionToId} ${instanceMigrationId} TextForMigration
VerifyParticipantSim ${instanceMigrationId} TextForMigration
+ VerifyMigratedElementsRuntime ${compositionToId} ${instanceMigrationId}
+ VerifyMigratedElementsSim ${instanceMigrationId}
UnDeployAutomationComposition
[Documentation] UnDeploy automation composition.
@@ -535,6 +577,33 @@ VerifyPropertiesUpdated
${respstring} Convert To String ${resp.json()}
Run Keyword If ${resp.status_code}==200 Should Match Regexp ${respstring} ${textToFind}
+VerifyMigratedElementsRuntime
+ [Arguments] ${compositionToId} ${theInstanceId}
+ [Documentation] Verify the Instance elements after Migration
+ ${auth}= Create List runtimeUser zb!XztG34
+ Log Creating session http://${POLICY_RUNTIME_ACM_IP}
+ ${session}= Create Session policy http://${POLICY_RUNTIME_ACM_IP} auth=${auth}
+ ${headers}= Create Dictionary Accept=application/json Content-Type=application/json
+ ${resp}= GET On Session policy /onap/policy/clamp/acm/v2/compositions/${compositionToId}/instances/${theInstanceId} headers=${headers}
+ Should Be Equal As Strings ${resp.status_code} 200
+ ${respstring} Convert To String ${resp.json()}
+ Should Match Regexp ${respstring} Sim_NewAutomationCompositionElement
+ Should Not Match Regexp ${respstring} Sim_SinkAutomationCompositionElement
+
+VerifyMigratedElementsSim
+ [Arguments] ${theInstanceId}
+ [Documentation] Query on Participant Simulator
+ ${auth}= Create List participantUser zb!XztG34
+ Log Creating session http://${POLICY_PARTICIPANT_SIM_IP}
+ ${session}= Create Session ACM http://${POLICY_PARTICIPANT_SIM_IP} auth=${auth}
+ ${headers}= Create Dictionary Accept=application/json Content-Type=application/json
+ ${resp}= GET On Session ACM /onap/policy/simparticipant/v2/instances/${theInstanceId} headers=${headers}
+ Log Received response from participant {resp.text}
+ Should Be Equal As Strings ${resp.status_code} 200
+ ${respstring} Convert To String ${resp.json()}
+ Should Match Regexp ${respstring} Sim_NewAutomationCompositionElement
+ Should Not Match Regexp ${respstring} Sim_SinkAutomationCompositionElement
+
VerifyParticipantSim
[Arguments] ${theInstanceId} ${textToFind}
[Documentation] Query on Participant Simulator