Policy XACML PDP Performance Tests false true false POLICY_PDPX_HOST ${__P(host,10.12.6.106)} = DURATION ${__P(duration, 3000)} = USERS ${__P(users, 10)} = PDP_PORT ${__P(port, 30420)} = PAP_PORT ${__P(port, 30089)} = API_PORT ${__P(port, 32187)} = Content-Type application/json Accept application/json continue false 1 1 1 false true false { "tosca_definitions_version": "tosca_simple_yaml_1_0_0", "topology_template": { "policies": [ { "onap.scaleout.tca": { "type": "onap.policies.monitoring.cdap.tca.hi.lo.app", "version": "1.0.0", "metadata": { "policy-id": "onap.scaleout.tca" }, "properties": { "tca_policy": { "domain": "measurementsForVfScaling", "metricsPerEventName": [ { "eventName": "vLoadBalancer", "controlLoopSchemaType": "VNF", "policyScope": "type=configuration", "policyName": "onap.scaleout.tca", "policyVersion": "v0.0.1", "thresholds": [ { "closedLoopControlName": "ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3", "closedLoopEventStatus": "ONSET", "version": "1.0.2", "fieldPath": "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated", "thresholdValue": 500, "direction": "LESS_OR_EQUAL", "severity": "MAJOR" }, { "closedLoopControlName": "ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3", "closedLoopEventStatus": "ONSET", "version": "1.0.2", "fieldPath": "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated", "thresholdValue": 5000, "direction": "GREATER_OR_EQUAL", "severity": "CRITICAL" } ] } ] } } } } ] } } = ${POLICY_PDPX_HOST} ${API_PORT} https policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/1.0.0/policies POST true false true false https://${POLICY_PDPX_HOST}:${API_PORT}/policy/api/v1 healthcheck zb!XztG34 true true false { "policy-id" : "guard.minmax.scaleout", "content" : { "actor": "SO", "recipe": "scaleOut", "targets": ".*", "clname": "ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3", "min": "1", "max": "5", "guardActiveStart": "00:00:01-05:00", "guardActiveEnd": "23:59:59-05:00" } } = ${POLICY_PDPX_HOST} ${API_PORT} https policy/api/v1/policytypes/onap.policies.controlloop.Guard/versions/1.0.0/policies POST true false true false https://${POLICY_PDPX_HOST}:${API_PORT}/policy/api/v1 healthcheck zb!XztG34 true true false { "policy-id" : "guard.frequency.scaleout", "content" : { "actor": "SO", "recipe": "scaleOut", "targets": ".*", "clname": "ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3", "limit": "1", "timeWindow": "10", "timeUnits": "minute", "guardActiveStart": "00:00:01-05:00", "guardActiveEnd": "23:59:59-05:00" } } = ${POLICY_PDPX_HOST} ${API_PORT} https policy/api/v1/policytypes/onap.policies.controlloop.Guard/versions/1.0.0/policies POST true false true false https://${POLICY_PDPX_HOST}:${API_PORT}/policy/api/v1 healthcheck zb!XztG34 true true false {"policies":[{"policy-id":"onap.scaleout.tca"}]} = ${POLICY_PDPX_HOST} ${PAP_PORT} https policy/pap/v1/pdps/policies POST true false true false https://${POLICY_PDPX_HOST}:${PAP_PORT}/policy/pap/v1 healthcheck zb!XztG34 true true false {"policies":[{"policy-id":"guard.minmax.scaleout"}]} = ${POLICY_PDPX_HOST} ${PAP_PORT} https policy/pap/v1/pdps/policies POST true false true false https://${POLICY_PDPX_HOST}:${PAP_PORT}/policy/pap/v1 healthcheck zb!XztG34 true true false {"policies":[{"policy-id":"guard.frequency.scaleout"}]} = ${POLICY_PDPX_HOST} ${PAP_PORT} https policy/pap/v1/pdps/policies POST true false true false https://${POLICY_PDPX_HOST}:${PAP_PORT}/policy/pap/v1 healthcheck zb!XztG34 true false saveConfig true true true true true true true false true true false false false true false false false true 0 true true true true true true /tmp/pdpx_perf_setup.log continue false -1 ${USERS} 10 true ${DURATION} 1 ${POLICY_PDPX_HOST} ${PDP_PORT} https policy/pdpx/v1/healthcheck GET true false true false Basic Health Check 200 Assertion.response_code false 1 all groovy true import groovy.json.JsonSlurper; def res = []; if (prev.getResponseCode() == '200') { def jsonSlurper = new JsonSlurper(); res = jsonSlurper.parseText(prev.getResponseDataAsString()); assert res instanceof Map; assert res.code == 200; } https://${POLICY_PDPX_HOST}:${PDP_PORT}/policy/pdpx/v1 healthcheck zb!XztG34 true false saveConfig true true true true true true true false true true false false false true false false false true 0 true true true true true true /tmp/pdpx_perf_health.log continue false -1 ${USERS} 10 true ${DURATION} 1 ${POLICY_PDPX_HOST} ${PDP_PORT} https policy/pdpx/v1/statistics GET true false true false Basic Health Check 200 Assertion.response_code false 1 groovy true import groovy.json.JsonSlurper; def res = []; if (prev.getResponseCode() == '200') { def jsonSlurper = new JsonSlurper(); res = jsonSlurper.parseText(prev.getResponseDataAsString()); assert res instanceof Map; assert res.code == 200; } https://${POLICY_PDPX_HOST}:${PDP_PORT}/policy/pdpx/v1 healthcheck zb!XztG34 true false saveConfig true true true true true true true false true true false false false true false false false true 0 true true true true true true /tmp/pdpx_perf_stats.log continue false -1 ${USERS} 10 true ${DURATION} 1 true false { "ONAPName": "DCAE", "ONAPComponent": "PolicyHandler", "ONAPInstance": "622431a4-9dea-4eae-b443-3b2164639c64", "action": "configure", "resource": { "policy-id": "onap.scaleout.tca" } } = ${POLICY_PDPX_HOST} ${PDP_PORT} https policy/pdpx/v1/decision POST true false true false Get Configuration Data for Monitoring Policy 200 Assertion.response_code false 1 true false { "ONAPName": "Policy", "ONAPComponent": "drools-pdp", "ONAPInstance": "usecase-template", "requestId": "unique-request-id-1", "action": "guard", "resource": { "guard": { "actor": "SO", "recipe": "scaleOut", "clname": "ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3", "target": "vLoadBalancer-00" } } } = ${POLICY_PDPX_HOST} ${PDP_PORT} https policy/pdpx/v1/decision POST true false true false Get Configuration Data for Monitoring Policy 200 Assertion.response_code false 1 true false { "ONAPName": "Policy", "ONAPComponent": "drools-pdp", "ONAPInstance": "usecase-template", "requestId": "unique-request-id-1", "action": "guard", "resource": { "guard": { "actor": "SO", "recipe": "scaleOut", "clname": "ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3", "target": "vLoadBalancer-00", "vfCount": "1" } } } = ${POLICY_PDPX_HOST} ${PDP_PORT} https policy/pdpx/v1/decision POST true false true false Get Configuration Data for Monitoring Policy 200 Assertion.response_code false 1 https://${POLICY_PDPX_HOST}:${PDP_PORT}/policy/pdpx/v1 healthcheck zb!XztG34 true false saveConfig true true true true true true true false true true false false false true false false false true 0 true true true true true true /tmp/pdpx_perf_decisions.log continue false 1 1 1 false ${POLICY_PDPX_HOST} ${PAP_PORT} https policy/pap/v1/pdps/policies/onap.scaleout.tca DELETE true false true false https://${POLICY_PDPX_HOST}:${PAP_PORT}/policy/pap/v1 healthcheck zb!XztG34 true ${POLICY_PDPX_HOST} ${PAP_PORT} https policy/pap/v1/pdps/policies/guard.minmax.scaleout DELETE true false true false https://${POLICY_PDPX_HOST}:${PAP_PORT}/policy/pap/v1 healthcheck zb!XztG34 true ${POLICY_PDPX_HOST} ${PAP_PORT} https policy/pap/v1/pdps/policies/guard.frequency.scaleout DELETE true false true false https://${POLICY_PDPX_HOST}:${PAP_PORT}/policy/pap/v1 healthcheck zb!XztG34 true ${POLICY_PDPX_HOST} ${API_PORT} https policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/1.0.0/policies/onap.scaleout.tca/versions/1.0.0 DELETE true false true false https://${POLICY_PDPX_HOST}:${API_PORT}/policy/api/v1 healthcheck zb!XztG34 true ${POLICY_PDPX_HOST} ${API_PORT} https policy/api/v1/policytypes/onap.policies.controlloop.guard.MinMax/versions/1.0.0/policies/guard.minmax.scaleout/versions/1.0.0 DELETE true false true false https://${POLICY_PDPX_HOST}:${API_PORT}/policy/api/v1 healthcheck zb!XztG34 true ${POLICY_PDPX_HOST} ${API_PORT} https policy/api/v1/policytypes/onap.policies.controlloop.guard.FrequencyLimiter/versions/1.0.0/policies/guard.frequency.scaleout/versions/1.0.0 DELETE true false true false https://${POLICY_PDPX_HOST}:${API_PORT}/policy/api/v1 healthcheck zb!XztG34 true false saveConfig true true true true true true true false true true false false false true false false false true 0 true true true true true true /tmp/pdpx_perf_teardown.log false saveConfig true true true true true true true false true true false false false true false false false true 0 true true true true true true /tmp/pdpx_perf_summaryReport.log true false saveConfig true true true true true true true false true true false false false true false false false true 0 true true true true true true /tmp/pdpx_perf_resultsTree.log false saveConfig true true true true true true true false true true false false false true false false false true 0 true true true true true true /tmp/pdpx_perf_resultsTable.log