From 33391192adecdf86da3547f024ff82fb0cf85535 Mon Sep 17 00:00:00 2001 From: brunomilitzer Date: Wed, 3 Nov 2021 11:30:46 +0000 Subject: UPDATED Jest Unit Tests for Monitoring Functionality Updated Unit Tests to cover monitoring functionality Issue-ID: POLICY-3561 Change-Id: I8434cf5d60463d60175ef6e48f0e75e8c4f656da Signed-off-by: brunomilitzer --- .../testFiles/monitoringControlLoopList.json | 74 ++++++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 gui-clamp/ui-react/src/components/dialogs/ControlLoop/testFiles/monitoringControlLoopList.json (limited to 'gui-clamp/ui-react/src/components/dialogs/ControlLoop/testFiles') diff --git a/gui-clamp/ui-react/src/components/dialogs/ControlLoop/testFiles/monitoringControlLoopList.json b/gui-clamp/ui-react/src/components/dialogs/ControlLoop/testFiles/monitoringControlLoopList.json new file mode 100644 index 0000000..ee170f8 --- /dev/null +++ b/gui-clamp/ui-react/src/components/dialogs/ControlLoop/testFiles/monitoringControlLoopList.json @@ -0,0 +1,74 @@ +{ + "controlLoopList":[ + { + "name":"PMSH_Instance1", + "version":"2.3.1", + "derivedFrom":null, + "metadata":null, + "description":"PMSH control loop _Instance1", + "definition":{ + "name":"org.onap.domain.pmsh.PMSHControlLoopDefinition_Instance1", + "version":"1.2.3" + }, + "state":"PASSIVE", + "orderedState":"PASSIVE", + "elements":{ + "edb332de-ad83-44a7-9c86-f8158cd0de7f":{ + "id":"edb332de-ad83-44a7-9c86-f8158cd0de7f", + "definition":{ + "name":"org.onap.domain.pmsh.PMSH_MonitoringPolicyControlLoopElement_Instance1", + "version":"1.2.3" + }, + "participantType":{ + "name":"org.onap.policy.controlloop.PolicyControlLoopParticipant", + "version":"2.3.1" + }, + "participantId":{ + "name":"org.onap.PM_Policy", + "version":"1.0.0" + }, + "state":"UNINITIALISED", + "orderedState":"UNINITIALISED", + "toscaServiceTemplateFragment":null, + "description":null, + "clElementStatistics":null, + "propertiesMap":{ + + } + }, + "68e95fa7-0acf-4635-b454-47a50f299614":{ + "id":"68e95fa7-0acf-4635-b454-47a50f299614", + "definition":{ + "name":"org.onap.domain.pmsh.PMSH_OperationalPolicyControlLoopElement_Instance1", + "version":"1.2.3" + }, + "participantType":{ + "name":"org.onap.policy.controlloop.PolicyControlLoopParticipant", + "version":"2.3.1" + }, + "participantId":{ + "name":"org.onap.PM_Policy", + "version":"1.0.0" + }, + "state":"UNINITIALISED", + "orderedState":"UNINITIALISED", + "toscaServiceTemplateFragment":null, + "description":null, + "clElementStatistics":null, + "propertiesMap":{ + + } + } + }, + "primed":false, + "type":"org.onap.domain.pmsh.PMSHControlLoopDefinition_Instance1", + "typeVersion":"1.2.3", + "key":{ + "name":"PMSH_Instance1", + "version":"2.3.1" + }, + "definedName":"PMSH_Instance1", + "definedVersion":"2.3.1" + } + ] +} \ No newline at end of file -- cgit