From 44a9372a814736289e89289d18fac006df4a260d Mon Sep 17 00:00:00 2001 From: jhh Date: Fri, 4 Nov 2022 18:18:30 -0500 Subject: [PATCH] Update s3p jmeter jmx Issue-ID: POLICY-4447 Signed-off-by: jhh Change-Id: I51a52874696e901d84b990df2bc79271bae7cefe --- testsuites/stability/src/main/resources/s3p.jmx | 1553 +++++++---------------- 1 file changed, 487 insertions(+), 1066 deletions(-) diff --git a/testsuites/stability/src/main/resources/s3p.jmx b/testsuites/stability/src/main/resources/s3p.jmx index 7a957b094..7ed51469f 100644 --- a/testsuites/stability/src/main/resources/s3p.jmx +++ b/testsuites/stability/src/main/resources/s3p.jmx @@ -1,22 +1,5 @@ - - + @@ -27,27 +10,27 @@ API_HOST - 10.12.6.14 + 10.0.9.49 = API_PORT - 32191 + 30852 = PAP_HOST - 10.12.6.14 + 10.0.9.49 = PAP_PORT - 32262 + 30504 = DMAAP_HOST - 10.12.6.14 + 10.0.9.49 = @@ -57,12 +40,12 @@ DROOLS_HOST - 10.12.6.14 + 10.0.9.49 = DROOLS_PORT - 32027 + 31295 = @@ -70,6 +53,11 @@ 259200 = + + HTTP + https + = + @@ -91,21 +79,21 @@ - https://${API_HOST}:${API_PORT}/policy/api/v1 - healthcheck + ${HTTP}://${API_HOST}:${API_PORT}/policy/api/v1 + policyadmin zb!XztG34 - https://${PAP_HOST}:${PAP_PORT}/policy/pap/v1 - healthcheck + ${HTTP}://${PAP_HOST}:${PAP_PORT}/policy/pap/v1 + policyadmin zb!XztG34 - https://${DROOLS_HOST}:${DROOLS_PORT}/policy/pdp/engine + ${HTTP}://${DROOLS_HOST}:${DROOLS_PORT}/policy/pdp/engine demo@people.osaaf.org demo123456! @@ -133,7 +121,7 @@ continue false - -1 + 1 1 1 @@ -151,7 +139,7 @@ ${API_HOST} ${API_PORT} - https + ${HTTP} /policy/api/v1/healthcheck GET @@ -241,7 +229,7 @@ ${API_HOST} ${API_PORT} - https + ${HTTP} policy/api/v1/policytypes/onap.policies.controlloop.operational.common.Drools/versions/1.0.0/policies POST @@ -265,7 +253,7 @@ - + true @@ -276,30 +264,31 @@ "topology_template": { "policies": [ { - "operational.restart.fail": { + "op.5g.son.o1": { "type": "onap.policies.controlloop.operational.common.Drools", "type_version": "1.0.0", + "name": "op.5g.son.o1", "version": "1.0.0", "metadata": { - "policy-id": "operational.restart.fail" + "policy-id": "op.5g.son.o1" }, "properties": { - "id": "ControlLoop-vCPE-Fail", - "timeout": 60, + "id": "ControlLoop-SONO1-fb41f388-a5f2-11e8-98d0-529269fb1459", + "timeout": 1200, "abatement": false, - "trigger": "unique-policy-id-1-restart", + "trigger": "modify-o1-config", "operations": [ { - "id": "unique-policy-id-1-restart", - "description": "Restart the VM", + "id": "modify-o1-config", + "description": "Control Loop Modify O1 Configuration", "operation": { - "actor": "APPC", - "operation": "Restart", + "actor": "SDNR", + "operation": "ModifyO1Config", "target": { - "targetType": "VNF" + "targetType": "PNF" } }, - "timeout": 20, + "timeout": 60, "retries": 0, "success": "final_success", "failure": "final_failure", @@ -308,8 +297,7 @@ "failure_exception": "final_failure_exception", "failure_guard": "final_failure_guard" } - ], - "controllerName": "usecases" + ] } } } @@ -322,186 +310,7 @@ ${API_HOST} ${API_PORT} - https - - policy/api/v1/policytypes/onap.policies.controlloop.operational.common.Drools/versions/1.0.0/policies - POST - false - false - false - false - - - - - - - - 200 - - - Assertion.response_code - false - 8 - - - - - true - - - - false - { - "tosca_definitions_version": "tosca_simple_yaml_1_1_0", - "topology_template": { - "policies": [ - { - "operational.modifyconfig": { - "type": "onap.policies.controlloop.operational.common.Drools", - "type_version": "1.0.0", - "version": "1.0.0", - "metadata": { - "policy-id": "operational.modifyconfig" - }, - "properties": { - "id": "ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a", - "timeout": 60, - "abatement": false, - "trigger": "unique-policy-id-1-modifyConfig", - "operations": [ - { - "id": "unique-policy-id-1-modifyConfig", - "description": "Modify the packet generator", - "operation": { - "actor": "APPC", - "operation": "ModifyConfig", - "target": { - "targetType": "VNF", - "entityIds": { - "resourceID": "bbb3cefd-01c8-413c-9bdd-2b92f9ca3d38" - } - }, - "payload": { - "streams": "{\"active-streams\": 5 }" - } - }, - "timeout": 20, - "retries": 0, - "success": "final_success", - "failure": "final_failure", - "failure_timeout": "final_failure_timeout", - "failure_retries": "final_failure_retries", - "failure_exception": "final_failure_exception", - "failure_guard": "final_failure_guard" - } - ], - "controllerName": "usecases" - } - } - } - ] - } -} - = - - - - ${API_HOST} - ${API_PORT} - https - - policy/api/v1/policytypes/onap.policies.controlloop.operational.common.Drools/versions/1.0.0/policies - POST - false - false - false - false - - - - - - - - 200 - - - Assertion.response_code - false - 8 - - - - - true - - - - false - { - "tosca_definitions_version": "tosca_simple_yaml_1_1_0", - "topology_template": { - "policies": [ - { - "operational.scaleout": { - "type": "onap.policies.controlloop.operational.common.Drools", - "type_version": "1.0.0", - "version": "1.0.0", - "metadata": { - "policy-id": "operational.scaleout" - }, - "properties": { - "id": "ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3", - "timeout": 60, - "abatement": false, - "trigger": "unique-policy-id-1-scale-up", - "operations": [ - { - "id": "unique-policy-id-1-scale-up", - "description": "Create a new VF Module", - "operation": { - "actor": "SO", - "operation": "VF Module Create", - "target": { - "targetType": "VFMODULE", - "entityIds": { - "modelInvariantId": "e6130d03-56f1-4b0a-9a1d-e1b2ebc30e0e", - "modelVersionId": "94b18b1d-cc91-4f43-911a-e6348665f292", - "modelName": "VfwclVfwsnkBbefb8ce2bde..base_vfw..module-0", - "modelVersion": "1", - "modelCustomizationId": "47958575-138f-452a-8c8d-d89b595f8164" - } - }, - "payload": { - "requestParameters": "{\"usePreload\":true,\"userParams\":[]}", - "configurationParameters": "[{\"ip-addr\":\"$.vf-module-topology.vf-module-parameters.param[9]\",\"oam-ip-addr\":\"$.vf-module-topology.vf-module-parameters.param[16]\",\"enabled\":\"$.vf-module-topology.vf-module-parameters.param[23]\"}]" - } - }, - "timeout": 20, - "retries": 0, - "success": "final_success", - "failure": "final_failure", - "failure_timeout": "final_failure_timeout", - "failure_retries": "final_failure_retries", - "failure_exception": "final_failure_exception", - "failure_guard": "final_failure_guard" - } - ], - "controllerName": "usecases" - } - } - } - ] - } -} - = - - - - ${API_HOST} - ${API_PORT} - https + ${HTTP} policy/api/v1/policytypes/onap.policies.controlloop.operational.common.Drools/versions/1.0.0/policies POST @@ -525,67 +334,56 @@ - + true false { - "tosca_definitions_version": "tosca_simple_yaml_1_1_0", - "topology_template": { - "policies": [ - { - "operational.scaleout.fail": { - "type": "onap.policies.controlloop.operational.common.Drools", - "type_version": "1.0.0", - "version": "1.0.0", - "metadata": { - "policy-id": "operational.scaleout.fail" - }, - "properties": { - "id": "ControlLoop-vDNS-Fail", - "timeout": 60, - "abatement": false, - "trigger": "unique-policy-id-1-scale-up", - "operations": [ - { - "id": "unique-policy-id-1-scale-up", - "description": "Create a new VF Module", - "operation": { - "actor": "SO", - "operation": "VF Module Create", - "target": { - "targetType": "VFMODULE", - "entityIds": { - "modelInvariantId": "e6130d03-56f1-4b0a-9a1d-e1b2ebc30e0e", - "modelVersionId": "94b18b1d-cc91-4f43-911a-e6348665f292", - "modelName": "VfwclVfwsnkBbefb8ce2bde..base_vfw..module-0", - "modelVersion": "1", - "modelCustomizationId": "47958575-138f-452a-8c8d-d89b595f8164" - } - }, - "payload": { - "requestParameters": "{\"usePreload\":true,\"userParams\":[]}", - "configurationParameters": "[{\"ip-addr\":\"$.vf-module-topology.vf-module-parameters.param[9]\",\"oam-ip-addr\":\"$.vf-module-topology.vf-module-parameters.param[16]\",\"enabled\":\"$.vf-module-topology.vf-module-parameters.param[23]\"}]" - } - }, - "timeout": 20, - "retries": 0, - "success": "final_success", - "failure": "final_failure", - "failure_timeout": "final_failure_timeout", - "failure_retries": "final_failure_retries", - "failure_exception": "final_failure_exception", - "failure_guard": "final_failure_guard" - } - ], - "controllerName": "usecases" - } - } - } - ] - } + "tosca_definitions_version": "tosca_simple_yaml_1_1_0", + "topology_template": { + "policies": [ + { + "op.5g.son.a1": { + "type": "onap.policies.controlloop.operational.common.Drools", + "type_version": "1.0.0", + "name": "op.5g.son.a1", + "version": "1.0.0", + "metadata": { + "policy-id": "op.5g.son.a1" + }, + "properties": { + "id": "ControlLoop-SONA1-7d4baf04-8875-4d1f-946d-06b874048b61", + "timeout": 1200, + "abatement": false, + "trigger": "modify-a1-policy", + "operations": [ + { + "id": "modify-a1-policy", + "description": "Control Loop Modify A1 Policy", + "operation": { + "actor": "SDNR", + "operation": "ModifyA1Policy", + "target": { + "targetType": "PNF" + } + }, + "timeout": 60, + "retries": 0, + "success": "final_success", + "failure": "final_failure", + "failure_timeout": "final_failure_timeout", + "failure_retries": "final_failure_retries", + "failure_exception": "final_failure_exception", + "failure_guard": "final_failure_guard" + } + ] + } + } + } + ] + } } = @@ -593,7 +391,7 @@ ${API_HOST} ${API_PORT} - https + ${HTTP} policy/api/v1/policytypes/onap.policies.controlloop.operational.common.Drools/versions/1.0.0/policies POST @@ -626,7 +424,7 @@ ${PAP_HOST} ${PAP_PORT} - https + ${HTTP} /policy/pap/v1/healthcheck GET @@ -672,81 +470,7 @@ ${PAP_HOST} ${PAP_PORT} - https - - policy/pap/v1/pdps/policies - POST - false - false - false - false - - - - - - - - 202 - - - Assertion.response_code - false - 8 - - - - - true - - - - false - {"policies":[{"policy-id":"operational.restart.fail", "version": "1.0.0"}]} - = - - - - ${PAP_HOST} - ${PAP_PORT} - https - - policy/pap/v1/pdps/policies - POST - false - false - false - false - - - - - - - - 202 - - - Assertion.response_code - false - 8 - - - - - true - - - - false - {"policies":[{"policy-id":"operational.modifyconfig", "version": "1.0.0"}]} - = - - - - ${PAP_HOST} - ${PAP_PORT} - https + ${HTTP} policy/pap/v1/pdps/policies POST @@ -770,20 +494,20 @@ - + true false - {"policies":[{"policy-id":"operational.scaleout", "version": "1.0.0"}]} + {"policies":[{"policy-id":"op.5g.son.o1", "version": "1.0.0"}]} = ${PAP_HOST} ${PAP_PORT} - https + ${HTTP} policy/pap/v1/pdps/policies POST @@ -807,20 +531,20 @@ - + true false - {"policies":[{"policy-id":"operational.scaleout.fail", "version": "1.0.0"}]} + {"policies":[{"policy-id":"op.5g.son.a1", "version": "1.0.0"}]} = ${PAP_HOST} ${PAP_PORT} - https + ${HTTP} policy/pap/v1/pdps/policies POST @@ -851,7 +575,7 @@ ${DMAAP_HOST} ${DMAAP_PORT} - https + ${HTTP} events/POLICY-PDP-PAP/${__time()}/1?timeout=2000 GET @@ -875,15 +599,45 @@ + + + + + ${DMAAP_HOST} + ${DMAAP_PORT} + ${HTTP} + + events/APPC-LCM-READ/vcpesuccess/1?timeout=5000 + GET + false + false + false + false + + + + + + + + 200 + + + Assertion.response_code + false + 8 + + + ${DMAAP_HOST} ${DMAAP_PORT} - https + ${HTTP} - events/POLICY-CL-MGT/vcpesuccess/1?timeout=20000 + events/POLICY-CL-MGT/vcpesuccess/1?timeout=5000 GET false false @@ -905,15 +659,15 @@ - + ${DMAAP_HOST} ${DMAAP_PORT} - https + ${HTTP} - events/APPC-LCM-READ/vcpesuccess/1?timeout=20000 + events/SDNR-CL/sonO1/1?timeout=5000 GET false false @@ -935,15 +689,15 @@ - + ${DMAAP_HOST} ${DMAAP_PORT} - https + ${HTTP} - events/POLICY-CL-MGT/vcpefailure/1?timeout=20000 + events/SDNR-CL-RSP/sonO1/1?timeout=5000 GET false false @@ -965,15 +719,15 @@ - + ${DMAAP_HOST} ${DMAAP_PORT} - https + ${HTTP} - events/APPC-LCM-READ/vcpefailure/1?timeout=20000 + events/DCAE_CL_RSP/son01/1?timeout=5000 GET false false @@ -995,15 +749,15 @@ - + - ${DROOLS_HOST} - ${DROOLS_PORT} - https + ${DMAAP_HOST} + ${DMAAP_PORT} + ${HTTP} - policy/pdp/engine/controllers/usecases/drools/facts + events/SDNR-CL/sonA1/1?timeout=5000 GET false false @@ -1024,17 +778,167 @@ 8 - - $.usecases - 10 - true - false - false - false - + + + + + + ${DMAAP_HOST} + ${DMAAP_PORT} + ${HTTP} + + events/SDNR-CL-RSP/sonA1/1?timeout=5000 + GET + false + false + false + false + + + + + + + + 200 + + + Assertion.response_code + false + 8 + - + + + + + ${DMAAP_HOST} + ${DMAAP_PORT} + ${HTTP} + + events/DCAE_CL_RSP/sonA1/1?timeout=5000 + GET + false + false + false + false + + + + + + + + 200 + + + Assertion.response_code + false + 8 + + + + + + + + ${DMAAP_HOST} + ${DMAAP_PORT} + ${HTTP} + + events/POLICY-CL-MGT/sonA1/1?timeout=5000 + GET + false + false + false + false + + + + + + + + 200 + + + Assertion.response_code + false + 8 + + + + + + + + ${DMAAP_HOST} + ${DMAAP_PORT} + ${HTTP} + + events/POLICY-CL-MGT/sonA1/1?timeout=5000 + GET + false + false + false + false + + + + + + + + 200 + + + Assertion.response_code + false + 8 + + + + + + + + ${DROOLS_HOST} + ${DROOLS_PORT} + ${HTTP} + + policy/pdp/engine/controllers/usecases/drools/facts + GET + false + false + false + false + + + + + + + + 200 + + + Assertion.response_code + false + 8 + + + + $.usecases + 7 + true + false + false + false + + + + startnextloop @@ -1103,7 +1007,7 @@ ${DROOLS_HOST} ${DROOLS_PORT} - https + ${HTTP} policy/pdp/engine/topics/sources/dmaap/DCAE_TOPIC/events PUT @@ -1152,7 +1056,7 @@ ${DMAAP_HOST} ${DMAAP_PORT} - https + ${HTTP} events/APPC-LCM-READ/${consumerGroup}/1?timeout=15000&limit=1 GET @@ -1284,7 +1188,7 @@ vars.put("counter", Integer.toString(counterTemp)); ${DROOLS_HOST} ${DROOLS_PORT} - https + ${HTTP} policy/pdp/engine/topics/sources/dmaap/APPC-LCM-WRITE/events PUT @@ -1333,7 +1237,7 @@ vars.put("counter", Integer.toString(counterTemp)); ${DMAAP_HOST} ${DMAAP_PORT} - https + ${HTTP} events/POLICY-CL-MGT/${consumerGroup}/1?timeout=15000&limit=1 GET @@ -1418,8 +1322,14 @@ vars.put("counter", Integer.toString(counterTemp)); + + 1 + 0 + 200 + + - + startnextloop false @@ -1429,7 +1339,7 @@ vars.put("counter", Integer.toString(counterTemp)); 1 true ${duration} - 5 + 11 true @@ -1438,8 +1348,8 @@ vars.put("counter", Integer.toString(counterTemp)); consumerGroup - - vcpefailure + + sonO1 false @@ -1466,20 +1376,24 @@ vars.put("counter", Integer.toString(counterTemp)); false { - "closedLoopControlName": "ControlLoop-vCPE-Fail", - "closedLoopAlarmStart": 1463679805324, - "closedLoopEventClient": "DCAE_INSTANCE_ID.dcae-tca", + "closedLoopControlName": "ControlLoop-SONO1-fb41f388-a5f2-11e8-98d0-529269fb1459", + "closedLoopAlarmStart": 1606806580487, + "closedLoopEventClient": "microservice.PCI", "closedLoopEventStatus": "ONSET", "requestID": "${requestId}", - "target_type": "VNF", - "target": "generic-vnf.vnf-id", + "target_type": "PNF", + "target": "pnf.pnf-name", "AAI": { - "vserver.is-closed-loop-disabled": "false", - "vserver.prov-status": "ACTIVE", - "generic-vnf.vnf-id": "a_fail_vnf_id" - }, - "from": "DCAE", - "version": "1.0.2" + "generic-vnf.prov-status": "ACTIVE", + "generic-vnf.is-closed-loop-disabled": "false", + "pnf.pnf-name": "ncserver1" + }, + "from": "PCIMS", + "version": "1.0.2", + "policyName": "SONO1", + "policyVersion": "1.0.2", + "Action": "ModifyO1Config", + "payload": "{\"Configurations\":[{\"data\":{\"FAPService\":{\"alias\":\"Chn0330\",\"X0005b9Lte\":{\"phyCellIdInUse\":6,\"pnfName\":\"ncserver23\"},\"CellConfig\":{\"LTE\":{\"RAN\":{\"Common\":{\"CellIdentity\":\"Chn0330\"}}}}}}},{\"data\":{\"FAPService\":{\"alias\":\"Chn0331\",\"X0005b9Lte\":{\"phyCellIdInUse\":7,\"pnfName\":\"ncserver23\"},\"CellConfig\":{\"LTE\":{\"RAN\":{\"Common\":{\"CellIdentity\":\"Chn0331\"}}}}}}}]}" } = @@ -1487,7 +1401,7 @@ vars.put("counter", Integer.toString(counterTemp)); ${DROOLS_HOST} ${DROOLS_PORT} - https + ${HTTP} policy/pdp/engine/topics/sources/dmaap/DCAE_TOPIC/events PUT @@ -1515,19 +1429,19 @@ vars.put("counter", Integer.toString(counterTemp)); true - vars.put("counter", "0"); + vars.put("counterO1", "0"); - - ${__javaScript(${counter} < 10)} + + ${__javaScript(${counterO1} < 10)} - + true - {"class":"And", "filters": [ { "class":"Equals", "field":"request-id", "value":"${requestId}" }, { "class":"Equals", "field":"rpc-name", "value":"restart" }]} + {"class":"And", "filters": [ { "class":"Equals", "field":"request-id", "value":"${requestId}" }, { "class":"Equals", "field":"rpc-name", "value":"modifyo1config" }]} = true filter @@ -1536,9 +1450,9 @@ vars.put("counter", Integer.toString(counterTemp)); ${DMAAP_HOST} ${DMAAP_PORT} - https + ${HTTP} - events/APPC-LCM-READ/${consumerGroup}/1?timeout=15000&limit=1 + events/SDNR-CL/${consumerGroup}/1?timeout=15000&limit=1 GET false false @@ -1562,7 +1476,7 @@ vars.put("counter", Integer.toString(counterTemp)); false requestIdOnset - \\"request-id\\": \\"(.+?)\\" + \\"RequestID\\": \\"(.+?)\\" $1$ none @@ -1580,7 +1494,7 @@ vars.put("counter", Integer.toString(counterTemp)); false subRequestId - sub-request-id\\": \\"(.+?)\\" + SubRequestID\\": \\"(.+?)\\" $1$ none @@ -1595,7 +1509,7 @@ vars.put("counter", Integer.toString(counterTemp)); String requestId = vars.get("requestId"); String correlationId = vars.get("correlationId"); String subRequestId = vars.get("subRequestId"); -String counter = vars.get("counter"); +String counter = vars.get("counterO1"); String transaction = "none"; @@ -1622,45 +1536,47 @@ int counterTemp = Integer.parseInt(counter) +1; if (transaction == "FINAL") { counterTemp = 99; } else if (counterTemp >= 10) { - AssertionResult.setFailureMessage("vCPE Failure APPCL Failure, reached maximum number of 10 attempts "); + AssertionResult.setFailureMessage("SON 01 Failure, reached maximum number of 10 attempts "); AssertionResult.setFailure(true); } -vars.put("counter", Integer.toString(counterTemp)); +vars.put("counterO1", Integer.toString(counterTemp)); - + true false { - "body": { - "output": { - "common-header": { - "timestamp": "2020-05-07T15:56:34.845Z", - "api-ver": "2.00", - "originator-id": "${requestId}", - "request-id": "${requestId}", - "sub-request-id": "${subRequestId}", - "flags": {} - }, - "status": { - "code": 450, - "message": "Restart Failed" - } - } - }, - "version": "2.0", - "rpc-name": "restart", - "correlation-id": "${correlationId}", - "type": "response" + "body": { + "output": { + "CommonHeader": { + "TimeStamp": "2022-08-10T07:10:05.614Z", + "APIver": "1.0", + "RequestID": "${requestId}", + "SubRequestID": "${subRequestId}", + "RequestTrack": [], + "Flags": [] + }, + "Status": { + "Code": 200, + "Value": "SUCCESS" + }, + "Payload": "{ \"Configurations\":[ { \"Status\": { \"Code\": 200, \"Value\": \"SUCCESS\" }, \"data\":{\"FAPService\":{\"alias\":\"Chn0330\",\"X0005b9Lte\":{\"phyCellIdInUse\":6,\"pnfName\":\"ncserver23\"},\"CellConfig\":{\"LTE\":{\"RAN\":{\"Common\":{\"CellIdentity\":\"Chn0330\"}}}}}} } ] }" + } + }, + "version": "1.0", + "rpc-name": "ModifyO1Config", + "correlation-id": "${correlationId}", + "type": "response" } + = @@ -1668,9 +1584,9 @@ vars.put("counter", Integer.toString(counterTemp)); ${DROOLS_HOST} ${DROOLS_PORT} - https + ${HTTP} - policy/pdp/engine/topics/sources/dmaap/APPC-LCM-WRITE/events + policy/pdp/engine/topics/sources/dmaap/SDNR-CL-RSP/events PUT false false @@ -1696,19 +1612,19 @@ vars.put("counter", Integer.toString(counterTemp)); true - vars.put("counter", "0"); + vars.put("counterO1", "0"); - ${__javaScript(${counter} < 60)} + ${__javaScript(${counterO1} < 60)} - + true - {"class":"And", "filters": [ { "class":"Equals", "field":"requestId", "value":"${requestId}" }, { "class":"Equals", "field":"notification", "value":"FINAL: FAILURE" }]} + {"class":"And", "filters": [ { "class":"Equals", "field":"requestId", "value":"${requestId}" }, { "class":"Equals", "field":"notification", "value":"FINAL: SUCCESS" }]} = true filter @@ -1717,7 +1633,7 @@ vars.put("counter", Integer.toString(counterTemp)); ${DMAAP_HOST} ${DMAAP_PORT} - https + ${HTTP} events/POLICY-CL-MGT/${consumerGroup}/1?timeout=15000&limit=1 GET @@ -1766,7 +1682,7 @@ vars.put("counter", Integer.toString(counterTemp)); String requestIdOnset = vars.get("requestIdOnset"); String requestId = vars.get("requestId"); String notification = vars.get("notification"); -String counter = vars.get("counter"); +String counter = vars.get("counterO1"); String transaction = "none"; @@ -1780,11 +1696,12 @@ if ( requestId == requestIdOnset ) { if ( notification == "SUCCESS" ) { transaction = "FINAL"; log.info ("Final Success Transaction"); - AssertionResult.setFailureMessage("Unexpected SUCCESS notification"); - AssertionResult.setFailure(true); + log.info ("The notification is SUCCESS"); } else if ( notification == "FAILURE" ) { transaction = "FINAL"; log.info ("Final Failure Transaction"); + AssertionResult.setFailureMessage("Bad final notification"); + AssertionResult.setFailure(true); } } @@ -1792,17 +1709,23 @@ int counterTemp = Integer.parseInt(counter) +1; if (transaction == "FINAL") { counterTemp = 99; } else if (counterTemp >= 60) { - AssertionResult.setFailureMessage("vCPE Failure POLICYCL Failure, reached maximum number of 10 attempts "); + AssertionResult.setFailureMessage("vCPE Success POLICYCL Failure, reached maximum number of attempts "); AssertionResult.setFailure(true); } -vars.put("counter", Integer.toString(counterTemp)); +vars.put("counterO1", Integer.toString(counterTemp)); + + 1 + 0 + 250 + + - + startnextloop false @@ -1812,7 +1735,7 @@ vars.put("counter", Integer.toString(counterTemp)); 1 true ${duration} - 10 + 11 true @@ -1821,8 +1744,8 @@ vars.put("counter", Integer.toString(counterTemp)); consumerGroup - - vdnssuccess + + sonA1 false @@ -1849,20 +1772,24 @@ vars.put("counter", Integer.toString(counterTemp)); false { - "closedLoopControlName": "ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3", - "closedLoopAlarmStart": 1463679805324, - "closedLoopEventClient": "microservice.stringmatcher", + "closedLoopControlName": "ControlLoop-SONA1-7d4baf04-8875-4d1f-946d-06b874048b61", + "closedLoopAlarmStart": 1606805921693, + "closedLoopEventClient": "microservice.SONH", "closedLoopEventStatus": "ONSET", "requestID": "${requestId}", - "target_type": "VNF", - "target": "vserver.vserver-name", + "target_type": "PNF", + "target": "pnf.pnf-name", "AAI": { - "vserver.is-closed-loop-disabled": "false", - "vserver.prov-status": "ACTIVE", - "vserver.vserver-name": "OzVServer" + "generic-vnf.prov-status": "ACTIVE", + "generic-vnf.is-closed-loop-disabled": "false", + "pnf.pnf-name": "ncserver2" }, - "from": "DCAE", - "version": "1.0.2" + "from": "SONHMS", + "version": "1.0.2", + "policyName": "SONA1", + "policyVersion": "1.0.2", + "Action": "ModifyA1Policy", + "payload": "{ \"Configurations\":[ { \"data\":{ \"FAPService\":{ \"alias\":\"Cell1\", \"CellConfig\":{ \"LTE\":{ \"RAN\":{ \"Common\":{ \"CellIdentity\":\"1\" }, \"NeighborListInUse\" : { \"LTECellNumberOfEntries\" : \"1\" , \"LTECell\" : [{ \"PLMNID\" :\"plmnid1\", \"CID\":\"Chn0001\", \"PhyCellID\":\"3\", \"PNFName\":\"ncserver01\", \"Blacklisted\":\"false\"}] } } } } } } } ] }" } = @@ -1870,7 +1797,7 @@ vars.put("counter", Integer.toString(counterTemp)); ${DROOLS_HOST} ${DROOLS_PORT} - https + ${HTTP} policy/pdp/engine/topics/sources/dmaap/DCAE_TOPIC/events PUT @@ -1898,20 +1825,19 @@ vars.put("counter", Integer.toString(counterTemp)); true - vars.put("counter", "0"); -vars.put("transaction", "none"); + vars.put("counterA1", "0"); - - ${__javaScript(${counter} < 60)} + + ${__javaScript(${counterA1} < 10)} - + true - {"class":"And", "filters": [ { "class":"Equals", "field":"requestId", "value":"${requestId}" }, { "class":"Equals", "field":"notification", "value":"FINAL: SUCCESS" }]} + {"class":"And", "filters": [ { "class":"Equals", "field":"request-id", "value":"${requestId}" }, { "class":"Equals", "field":"rpc-name", "value":"modifya1config" }]} = true filter @@ -1920,9 +1846,9 @@ vars.put("transaction", "none"); ${DMAAP_HOST} ${DMAAP_PORT} - https + ${HTTP} - events/POLICY-CL-MGT/${consumerGroup}/1?timeout=20000&limit=1 + events/SDNR-CL/${consumerGroup}/1?timeout=15000&limit=1 GET false false @@ -1943,19 +1869,28 @@ vars.put("transaction", "none"); 12 - + false requestIdOnset - requestId\\": \\"(.+?)\\" + \\"RequestID\\": \\"(.+?)\\" $1$ none - + false - notification - notification\\": \\"FINAL: (.+?)\\" + correlationId + correlation-id\\": \\"(.+?)\\" + $1$ + none + + + + + false + subRequestId + SubRequestID\\": \\"(.+?)\\" $1$ none @@ -1968,474 +1903,74 @@ vars.put("transaction", "none"); true String requestIdOnset = vars.get("requestIdOnset"); String requestId = vars.get("requestId"); -String notification = vars.get("notification"); -String counter = vars.get("counter"); +String correlationId = vars.get("correlationId"); +String subRequestId = vars.get("subRequestId"); +String counter = vars.get("counterA1"); String transaction = "none"; log.info ("The requestId id is " + requestId); log.info ("The requestIdOnset id is " + requestIdOnset); -log.info ("The notification is " + notification); -log.info ("The transaction is " + transaction); -log.info ("The counter is " + counter); +log.info ("The correlation id is " + correlationId); +log.info ("The subrequest id is " + subRequestId); +log.info ("The counter is " + counter); if ( requestId == requestIdOnset ) { - if ( notification == "SUCCESS" ) { - transaction = "FINAL"; - log.info ("Final Success Transaction"); - log.info ("The notification is SUCCESS"); - } else if ( notification == "FAILURE" ) { + if ( correlationId == "none" || subRequestId == "none" ) { transaction = "FINAL"; log.info ("Final Failure Transaction"); - AssertionResult.setFailureMessage("Bad final notification"); + AssertionResult.setFailureMessage("Missing correlationId or subRequestId"); AssertionResult.setFailure(true); - } + } else { + transaction = "FINAL"; + vars.put("transaction", "FINAL"); + log.info ("Final Success Transaction"); + } } int counterTemp = Integer.parseInt(counter) +1; if (transaction == "FINAL") { counterTemp = 99; -} else if (counterTemp >= 60) { - AssertionResult.setFailureMessage("vDNS Success POLICYCL Failure, reached maximum number of attempts "); +} else if (counterTemp >= 10) { + AssertionResult.setFailureMessage("SON A1 Success SDNR-CL Failure, reached maximum number of 10 attempts "); AssertionResult.setFailure(true); } -vars.put("counter", Integer.toString(counterTemp)); +vars.put("counterA1", Integer.toString(counterTemp)); + + - - - startnextloop - - false - -1 - - 1 - 1 - true - ${duration} - 15 - true - - - - - consumerGroup - - - - vdnsfailure - - - false - Global to the thread group - - - - - requestId - - - - ${__UUID()} - - - true - Update on a per iteration basis - - - - true - - - - false - { - "closedLoopControlName": "ControlLoop-vDNS-Fail", - "closedLoopAlarmStart": 1463679805324, - "closedLoopEventClient": "microservice.stringmatcher", - "closedLoopEventStatus": "ONSET", - "requestID": "${requestId}", - "target_type": "VNF", - "target": "vserver.vserver-name", - "AAI": { - "vserver.is-closed-loop-disabled": "false", - "vserver.prov-status": "ACTIVE", - "vserver.vserver-name": "AAA" - }, - "from": "DCAE", - "version": "1.0.2" -} - = - - - - ${DROOLS_HOST} - ${DROOLS_PORT} - https - - policy/pdp/engine/topics/sources/dmaap/DCAE_TOPIC/events - PUT - false - false - false - false - - - - - - - - - Content-Type - text/plain - - - - - - - groovy - - - true - vars.put("counter", "0"); -vars.put("transaction", "none"); - - - - ${__javaScript(${counter} < 60)} - - - - - - - true - {"class":"And", "filters": [ { "class":"Equals", "field":"requestId", "value":"${requestId}" }, { "class":"Equals", "field":"notification", "value":"FINAL: SUCCESS" }]} - = - true - filter - - - - ${DMAAP_HOST} - ${DMAAP_PORT} - https - - events/POLICY-CL-MGT/${consumerGroup}/1?timeout=20000&limit=1 - GET - false - false - false - false - - - - - - - - [] - - - Assertion.response_data - false - 12 - - - - false - requestIdOnset - requestId\\": \\"(.+?)\\" - $1$ - none - - - - - false - notification - notification\\": \\"FINAL: (.+?)\\" - $1$ - none - - - - - groovy - - - true - String requestIdOnset = vars.get("requestIdOnset"); -String requestId = vars.get("requestId"); -String notification = vars.get("notification"); -String counter = vars.get("counter"); - -String transaction = "none"; - -log.info ("The requestId id is " + requestId); -log.info ("The requestIdOnset id is " + requestIdOnset); -log.info ("The notification is " + notification); -log.info ("The transaction is " + transaction); -log.info ("The counter is " + counter); - -if ( requestId == requestIdOnset ) { - if ( notification == "SUCCESS" ) { - transaction = "FINAL"; - log.info ("Final Success Transaction"); - AssertionResult.setFailureMessage("Bad final notification"); - AssertionResult.setFailure(true); - } else if ( notification == "FAILURE" ) { - transaction = "FINAL"; - log.info ("Final Failure Transaction"); - } -} - -int counterTemp = Integer.parseInt(counter) +1; -if (transaction == "FINAL") { - counterTemp = 99; -} else if (counterTemp >= 60) { - AssertionResult.setFailureMessage("vDNS Failure POLICYCL Failure, reached maximum number of attempts "); - AssertionResult.setFailure(true); -} - -vars.put("counter", Integer.toString(counterTemp)); - - - - - - - startnextloop - - false - -1 - - 1 - 1 - true - ${duration} - 20 - true - - - - - consumerGroup - - - - vfwsuccess - - - false - Global to the thread group - - - - - requestId - - - - ${__UUID()} - - - true - Update on a per iteration basis - - - + true false { - "closedLoopControlName": "ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a", - "closedLoopAlarmStart": 1463679805324, - "closedLoopEventClient": "microservice.stringmatcher", - "closedLoopEventStatus": "ONSET", - "requestID": "${requestId}", - "target_type": "VNF", - "target": "generic-vnf.vnf-name", - "AAI": { - "vserver.is-closed-loop-disabled": "false", - "vserver.prov-status": "ACTIVE", - "generic-vnf.vnf-name": "fw0002vm002fw002", - "vserver.vserver-name": "OzVServer" - }, - "from": "DCAE", - "version": "1.0.2" -} - - = - - - - ${DROOLS_HOST} - ${DROOLS_PORT} - https - - policy/pdp/engine/topics/sources/dmaap/DCAE_TOPIC/events - PUT - false - false - false - false - - - - - - - - - Content-Type - text/plain - - - - - - - groovy - - - true - vars.put("counter", "0"); - - - - ${__javaScript(${counter} < 10)} - - - - - - - true - {"class":"And", "filters": [ { "class":"Equals", "field":"RequestID", "value":"${requestId}" }, { "class":"Equals", "field":"Action", "value":"ModifyConfig" }]} - = - true - filter - - - - ${DMAAP_HOST} - ${DMAAP_PORT} - https - - events/APPC-CL/${consumerGroup}/1?timeout=15000&limit=1 - GET - false - false - false - false - - - - - - - - [] - - - Assertion.response_data - false - 12 - - - - false - requestIdOnset - \\"RequestID\\": \\"(.+?)\\" - $1$ - none - - - - - false - subRequestId - SubRequestID\\": \\"(.+?)\\" - $1$ - none - - - - - groovy - - - true - String requestIdOnset = vars.get("requestIdOnset"); -String requestId = vars.get("requestId"); -String subRequestId = vars.get("subRequestId"); -String counter = vars.get("counter"); - -String transaction = "none"; - -log.info ("The requestId id is " + requestId); -log.info ("The requestIdOnset id is " + requestIdOnset); -log.info ("The subrequest id is " + subRequestId); -log.info ("The counter is " + counter); - -if ( requestId == requestIdOnset ) { - if ( subRequestId == "none" ) { - transaction = "FINAL"; - log.info ("APPC ModifyConfig does not contain enough information"); - AssertionResult.setFailureMessage("Missing subRequestId"); - AssertionResult.setFailure(true); - } else { - transaction = "FINAL"; - vars.put("transaction", "FINAL"); - log.info ("Final Success Transaction"); - } -} - -int counterTemp = Integer.parseInt(counter) +1; -if (transaction == "FINAL") { - counterTemp = 99; -} else if (counterTemp >= 10) { - AssertionResult.setFailureMessage("vFW Success APPCCL Failure, reached maximum number of 10 attempts "); - AssertionResult.setFailure(true); -} - -vars.put("counter", Integer.toString(counterTemp)); - - - - - - - - true - - - - false - { - "CommonHeader": { - "TimeStamp": 1506051879001, - "APIver": "1.01", - "RequestID": "${requestId}", - "SubRequestID": "${subRequestId}", - "RequestTrack": [], - "Flags": [] - }, - "Status": { - "Code": 400, - "Value": "SUCCESS" - }, - "Payload": { - "generic-vnf.vnf-id": "f17face5-69cb-4c88-9e0b-7426db7edddd" - } + "body": { + "output": { + "CommonHeader": { + "TimeStamp": "2022-09-10T07:10:05.614Z", + "APIver": "1.0", + "RequestID": "${requestId}", + "SubRequestID": "${subRequestId}", + "RequestTrack": [], + "Flags": [] + }, + "Status": { + "Code": 200, + "Value": "SUCCESS" + }, + "Payload": "{ \"Configurations\":[ { \"Status\": { \"Code\": 200, \"Value\": \"SUCCESS\" }, \"data\":{ \"FAPService\":{ \"alias\":\"Cell1\", \"CellConfig\":{ \"LTE\":{ \"RAN\":{ \"Common\":{ \"CellIdentity\":\"1\" }, \"NeighborListInUse\" : { \"LTECellNumberOfEntries\" : \"1\" , \"LTECell\" : [{ \"PLMNID\" :\"plmnid1\", \"CID\":\"Chn0001\", \"PhyCellID\":\"3\", \"PNFName\":\"ncserver01\", \"Blacklisted\":\"false\"}] } } } } } } } ] }" + } + }, + "version": "1.0", + "rpc-name": "ModifyA1Policy", + "correlation-id": "${correlationId}", + "type": "response" } = @@ -2443,9 +1978,9 @@ vars.put("counter", Integer.toString(counterTemp)); ${DROOLS_HOST} ${DROOLS_PORT} - https + ${HTTP} - policy/pdp/engine/topics/sources/dmaap/APPC-CL/events + policy/pdp/engine/topics/sources/dmaap/SDNR-CL-RSP/events PUT false false @@ -2471,11 +2006,11 @@ vars.put("counter", Integer.toString(counterTemp)); true - vars.put("counter", "0"); + vars.put("counterA1", "0"); - ${__javaScript(${counter} < 60)} + ${__javaScript(${counterA1} < 60)} @@ -2492,7 +2027,7 @@ vars.put("counter", Integer.toString(counterTemp)); ${DMAAP_HOST} ${DMAAP_PORT} - https + ${HTTP} events/POLICY-CL-MGT/${consumerGroup}/1?timeout=15000&limit=1 GET @@ -2541,7 +2076,7 @@ vars.put("counter", Integer.toString(counterTemp)); String requestIdOnset = vars.get("requestIdOnset"); String requestId = vars.get("requestId"); String notification = vars.get("notification"); -String counter = vars.get("counter"); +String counter = vars.get("counterA1"); String transaction = "none"; @@ -2568,15 +2103,21 @@ int counterTemp = Integer.parseInt(counter) +1; if (transaction == "FINAL") { counterTemp = 99; } else if (counterTemp >= 60) { - AssertionResult.setFailureMessage("vFW Success POLICYCL Failure, reached maximum number of attempts "); + AssertionResult.setFailureMessage("vCPE Success POLICYCL Failure, reached maximum number of attempts "); AssertionResult.setFailure(true); } -vars.put("counter", Integer.toString(counterTemp)); +vars.put("counterA1", Integer.toString(counterTemp)); + + 1 + 0 + 250 + + continue @@ -2600,7 +2141,7 @@ vars.put("counter", Integer.toString(counterTemp)); ${PAP_HOST} ${PAP_PORT} - https + ${HTTP} policy/pap/v1/pdps/policies/operational.restart/versions/1.0.0 DELETE @@ -2624,75 +2165,15 @@ vars.put("counter", Integer.toString(counterTemp)); - - - - - ${PAP_HOST} - ${PAP_PORT} - https - - policy/pap/v1/pdps/policies/operational.restart.fail/versions/1.0.0 - DELETE - false - false - false - false - - - - - - - - 202 - - - Assertion.response_code - false - 16 - - - - - - - - ${PAP_HOST} - ${PAP_PORT} - https - - policy/pap/v1/pdps/policies/operational.modifyconfig/versions/1.0.0 - DELETE - false - false - false - false - - - - - - - - 202 - - - Assertion.response_code - false - 16 - - - - + ${PAP_HOST} ${PAP_PORT} - https + ${HTTP} - policy/pap/v1/pdps/policies/operational.scaleout/versions/1.0.0 + policy/pap/v1/pdps/policies/op.5g.son.a1/versions/1.0.0 DELETE false false @@ -2714,15 +2195,15 @@ vars.put("counter", Integer.toString(counterTemp)); - + ${PAP_HOST} ${PAP_PORT} - https + ${HTTP} - policy/pap/v1/pdps/policies/operational.scaleout.fail/versions/1.0.0 + policy/pap/v1/pdps/policies/op.5g.son.o1/versions/1.0.0 DELETE false false @@ -2753,7 +2234,7 @@ vars.put("counter", Integer.toString(counterTemp)); ${API_HOST} ${API_PORT} - https + ${HTTP} policy/api/v1/policytypes/onap.policies.controlloop.operational.common.Drools/versions/1.0.0/policies/operational.restart/versions/1.0.0 DELETE @@ -2777,75 +2258,15 @@ vars.put("counter", Integer.toString(counterTemp)); - - - - - ${API_HOST} - ${API_PORT} - https - - policy/api/v1/policytypes/onap.policies.controlloop.operational.common.Drools/versions/1.0.0/policies/operational.restart.fail/versions/1.0.0 - DELETE - false - false - false - false - - - - - - - - 200 - - - Assertion.response_code - false - 16 - - - - - - - - ${API_HOST} - ${API_PORT} - https - - policy/api/v1/policytypes/onap.policies.controlloop.operational.common.Drools/versions/1.0.0/policies/operational.modifyconfig/versions/1.0.0 - DELETE - false - false - false - false - - - - - - - - 200 - - - Assertion.response_code - false - 16 - - - - + ${API_HOST} ${API_PORT} - https + ${HTTP} - policy/api/v1/policytypes/onap.policies.controlloop.operational.common.Drools/versions/1.0.0/policies/operational.scaleout/versions/1.0.0 + policy/api/v1/policytypes/onap.policies.controlloop.operational.common.Drools/versions/1.0.0/policies/op.5g.son.a1/versions/1.0.0 DELETE false false @@ -2867,15 +2288,15 @@ vars.put("counter", Integer.toString(counterTemp)); - + ${API_HOST} ${API_PORT} - https + ${HTTP} - policy/api/v1/policytypes/onap.policies.controlloop.operational.common.Drools/versions/1.0.0/policies/operational.scaleout.fail/versions/1.0.0 + policy/api/v1/policytypes/onap.policies.controlloop.operational.common.Drools/versions/1.0.0/policies/op.5g.son.o1/versions/1.0.0 DELETE false false -- 2.16.6