From a5f14bf812f92fa720334106851b8ac1f9d92cb2 Mon Sep 17 00:00:00 2001 From: waynedunican Date: Tue, 13 Feb 2024 08:13:15 +0000 Subject: Update S3Ps to use Kafka Issue-ID: POLICY-4927 Change-Id: Ib043e6ec1a9300c7572136817ee2f4be92a5d482 Signed-off-by: waynedunican --- .../src/main/resources/testplans/stability.jmx | 700 +++++++++------------ 1 file changed, 296 insertions(+), 404 deletions(-) diff --git a/testsuites/stability/src/main/resources/testplans/stability.jmx b/testsuites/stability/src/main/resources/testplans/stability.jmx index d4f95d7f..572e0435 100644 --- a/testsuites/stability/src/main/resources/testplans/stability.jmx +++ b/testsuites/stability/src/main/resources/testplans/stability.jmx @@ -4,7 +4,7 @@ ONAP Policy PAP ================================================================================ Copyright (C) 2019 AT&T Intellectual Property. All rights reserved. - Modifications Copyright (C) 2020-2021,2023 Nordix Foundation. + Modifications Copyright (C) 2020-2021,2024 Nordix Foundation. Modifications Copyright (C) 2020,2022 Bell Canada. All rights reserved. ================================================================================ Licensed under the Apache License, Version 2.0 (the "License"); @@ -18,7 +18,7 @@ limitations under the License. ============LICENSE_END========================================================= --> - + Policy PAP Stability Tests @@ -52,7 +52,7 @@ - + http://${PAP_HOST}:${PAP_PORT}/policy/pap/v1 @@ -89,21 +89,27 @@ - + + 1 + 1 + 260000 + true continue - - false + 1 + false - 1 - 1 - false - 260000 - - true - + + 6 + ${API_HOST} + ${API_PORT} + http + /policy/api/v1/policytypes/onap.policies.controlloop.operational.common.Apex/versions/1.0.0/policies + true + POST + true true @@ -7512,13 +7518,23 @@ "eventInputParameters": { "FirstConsumer": { "carrierTechnologyParameters": { - "carrierTechnology": "RESTSERVER", - "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restserver.RestServerCarrierTechnologyParameters", + "carrierTechnology": "KAFKA", + "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.kafka.KafkaCarrierTechnologyParameters", "parameters": { - "standalone": true, - "host": "0.0.0.0", - "port": 23324 - } + "bootstrapServers": "kafka:9092", + "groupId": "apex-grp2", + "enableAutoCommit": true, + "autoCommitTime": 1000, + "sessionTimeout": 30000, + "consumerPollTime": 100, + "consumerTopicList": [ + "unauthenticated.dcae_cl_output" + ], + "keyDeserializer": "org.apache.kafka.common.serialization.StringDeserializer", + "valueDeserializer": "org.apache.kafka.common.serialization.StringDeserializer", + "kafkaProperties": [ + + ] }, "eventProtocolParameters": { "eventProtocol": "JSON" @@ -7530,9 +7546,21 @@ }, "eventOutputParameters": { "FirstProducer": { - "carrierTechnologyParameters": { - "carrierTechnology": "RESTSERVER", - "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restserver.RestServerCarrierTechnologyParameters" + "carrierTechnology": "KAFKA", + "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.kafka.KafkaCarrierTechnologyParameters", + "parameters": { + "bootstrapServers": "kafka:9092", + "acks": "all", + "retries": 0, + "batchSize": 16384, + "lingerTime": 1, + "bufferMemory": 33554432, + "producerTopic": "apex-cl-mgt2", + "keySerializer": "org.apache.kafka.common.serialization.StringSerializer", + "valueSerializer": "org.apache.kafka.common.serialization.StringSerializer", + "kafkaProperties": [ + + ] }, "eventProtocolParameters": { "eventProtocol": "JSON" @@ -7553,19 +7581,6 @@ - ${API_HOST} - ${API_PORT} - http - - /policy/api/v1/policytypes/onap.policies.controlloop.operational.common.Apex/versions/1.0.0/policies - POST - true - false - true - false - - - @@ -7579,7 +7594,16 @@ - + + Create Nodetemplate metadata for sampleGroup policy + 6 + ${API_HOST} + ${API_PORT} + http + /policy/api/v1/nodetemplates + true + POST + true true @@ -9854,20 +9878,6 @@ - ${API_HOST} - ${API_PORT} - http - - /policy/api/v1/nodetemplates - POST - true - false - true - false - - - - Create Nodetemplate metadata for sampleGroup policy @@ -9881,7 +9891,15 @@ - + + 6 + ${API_HOST} + ${API_PORT} + http + /policy/api/v1/policytypes/onap.policies.controlloop.operational.common.Apex/versions/1.0.0/policies + true + POST + true true @@ -9925,7 +9943,7 @@ "taskParameters": [ { "key": "logUrl", - "value": "http://message-router:3904/events/APEX-CL-MGT" + "value": "http://kafka:9092/events/apex-cl-mgmt" } ] } @@ -9933,11 +9951,22 @@ "eventInputParameters": { "SimpleCL_DCAEConsumer": { "carrierTechnologyParameters": { - "carrierTechnology": "RESTCLIENT", - "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters", - "parameters": { - "url": "http://message-router:3904/events/apex-pnf-input/cl/apex?timeout=30000" - } + "carrierTechnology": "KAFKA", + "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.kafka.KafkaCarrierTechnologyParameters", + "parameters": { + "bootstrapServers": "kafka:9092", + "acks": "all", + "retries": 0, + "batchSize": 16384, + "lingerTime": 1, + "bufferMemory": 33554432, + "producerTopic": "apex-cl-mgt2", + "keySerializer": "org.apache.kafka.common.serialization.StringSerializer", + "valueSerializer": "org.apache.kafka.common.serialization.StringSerializer", + "kafkaProperties": [ + + ] + } }, "eventProtocolParameters": { "eventProtocol": "JSON" @@ -10054,19 +10083,6 @@ - ${API_HOST} - ${API_PORT} - http - - /policy/api/v1/policytypes/onap.policies.controlloop.operational.common.Apex/versions/1.0.0/policies - POST - true - false - true - false - - - @@ -10081,22 +10097,18 @@ - - - + 6 ${PAP_HOST} ${PAP_PORT} http - policy/pap/v1/pdps/groups/defaultGroup?state=ACTIVE - PUT true - false + PUT true - false - - - + false + + + @@ -10111,6 +10123,15 @@ + create SampleGroup + 6 + ${PAP_HOST} + ${PAP_PORT} + http + /policy/pap/v1/pdps/groups/batch + true + POST + true true @@ -10143,20 +10164,6 @@ - ${PAP_HOST} - ${PAP_PORT} - http - - /policy/pap/v1/pdps/groups/batch - POST - true - false - true - false - - - - create SampleGroup @@ -10171,23 +10178,19 @@ - - - + Check PdpGroup Query + 6 ${PAP_HOST} ${PAP_PORT} http - /policy/pap/v1/pdps - GET true - false + GET true - false - - - - Check PdpGroup Query + false + + + @@ -10226,37 +10229,32 @@ if (prev.getResponseCode() == '200') { + 1 + 1 + 259200 + true + true continue - - false + -1 + false - 1 - 1 - true - 259200 - - true - - - + Basic Health Check + 6 ${PAP_HOST} ${PAP_PORT} http - /policy/pap/v1/healthcheck - GET true - false + GET true - false - - - - Basic Health Check + false + + + @@ -10292,23 +10290,19 @@ if (prev.getResponseCode() == '200') { - - - + PAP Metrics + 6 ${PAP_HOST} ${PAP_PORT} http - /policy/pap/v1/metrics - GET true - false + GET true - false - - - - PAP Metrics + false + + + @@ -10380,23 +10374,19 @@ if (prev.getResponseCode() == '200') { - - - + Check PdpGroup Query + 6 ${PAP_HOST} ${PAP_PORT} http - /policy/pap/v1/pdps - GET true - false + GET true - false - - - - Check PdpGroup Query + false + + + @@ -10430,6 +10420,14 @@ if (prev.getResponseCode() == '200') { + 6 + ${PAP_HOST} + ${PAP_PORT} + http + policy/pap/v1/pdps/policies + true + POST + true true @@ -10447,19 +10445,6 @@ if (prev.getResponseCode() == '200') { - ${PAP_HOST} - ${PAP_PORT} - http - - policy/pap/v1/pdps/policies - POST - true - false - true - false - - - @@ -10493,22 +10478,18 @@ vars.put("dg_status_check_counter", "0"); - - - + 6 ${PAP_HOST} ${PAP_PORT} http - /policy/pap/v1/policies/status/defaultGroup/operational.apex.stabilityTestDefaultDomain/1.0.0 - GET true - false + GET true - false - - - + false + + + @@ -10545,23 +10526,19 @@ if (prev.getResponseCode() == '200') { - - - + Check PdpGroup Audit + 6 ${PAP_HOST} ${PAP_PORT} http - /policy/pap/v1/policies/audit/defaultGroup - GET true - false + GET true - false - - - - Check PdpGroup Audit + false + + + @@ -10576,23 +10553,19 @@ if (prev.getResponseCode() == '200') { - - - + Check PdpGroup Audit + 6 ${PAP_HOST} ${PAP_PORT} http - /policy/pap/v1/policies/audit/defaultGroup/operational.apex.stabilityTestDefaultDomain/1.0.0 - GET true - false + GET true - false - - - - Check PdpGroup Audit + false + + + @@ -10607,23 +10580,19 @@ if (prev.getResponseCode() == '200') { - - - + Check PdpGroup Query + 6 ${PAP_HOST} ${PAP_PORT} http - /policy/pap/v1/pdps - GET true - false + GET true - false - - - - Check PdpGroup Query + false + + + @@ -10677,6 +10646,14 @@ if (prev.getResponseCode() == '200') { + 6 + ${PAP_HOST} + ${PAP_PORT} + http + /policy/pap/v1/pdps/deployments/batch + true + POST + true true @@ -10705,19 +10682,6 @@ if (prev.getResponseCode() == '200') { - ${PAP_HOST} - ${PAP_PORT} - http - - /policy/pap/v1/pdps/deployments/batch - POST - true - false - true - false - - - @@ -10751,22 +10715,18 @@ vars.put("sg_status_check_counter", "0"); - - - + 6 ${PAP_HOST} ${PAP_PORT} http - /policy/pap/v1/policies/status/sampleGroup/operational.apex.stabilityTestSampleDomain/1.0.0 - GET true - false + GET true - false - - - + false + + + @@ -10802,23 +10762,19 @@ if (prev.getResponseCode() == '200') { - - - + Query policies status + 6 ${PAP_HOST} ${PAP_PORT} http - /policy/pap/v1/policies/status - GET true - false + GET true - false - - - - Query policies status + false + + + @@ -10833,23 +10789,19 @@ if (prev.getResponseCode() == '200') { - - - + Check PdpGroup Query + 6 ${PAP_HOST} ${PAP_PORT} http - /policy/pap/v1/pdps - GET true - false + GET true - false - - - - Check PdpGroup Query + false + + + @@ -10901,23 +10853,19 @@ if (prev.getResponseCode() == '200') { - - - + Check Audit sampleGroup policy + 6 ${PAP_HOST} ${PAP_PORT} http - /policy/pap/v1/policies/audit/sampleGroup/operational.apex.stabilityTestSampleDomain/1.0.0 - GET true - false + GET true - false - - - - Check Audit sampleGroup policy + false + + + @@ -10932,23 +10880,19 @@ if (prev.getResponseCode() == '200') { - - - + Consolidated Health Check + 6 ${PAP_HOST} ${PAP_PORT} http - /policy/pap/v1/components/healthcheck - GET true - false + GET true - false - - - - Consolidated Health Check + false + + + @@ -10982,23 +10926,19 @@ if (prev.getResponseCode() == '200') { - - - + Query Deployed policies + 6 ${PAP_HOST} ${PAP_PORT} http - /policy/pap/v1/policies/deployed - GET true - false + GET true - false - - - - Query Deployed policies + false + + + @@ -11030,6 +10970,14 @@ if (prev.getResponseCode() == '200') { + 6 + ${PAP_HOST} + ${PAP_PORT} + http + /policy/pap/v1/pdps/deployments/batch + true + POST + true true @@ -11058,19 +11006,6 @@ if (prev.getResponseCode() == '200') { - ${PAP_HOST} - ${PAP_PORT} - http - - /policy/pap/v1/pdps/deployments/batch - POST - true - false - true - false - - - @@ -11085,22 +11020,18 @@ if (prev.getResponseCode() == '200') { - - - + 6 ${PAP_HOST} ${PAP_PORT} http - policy/pap/v1/pdps/policies/operational.apex.stabilityTestDefaultDomain - DELETE true - false + DELETE true - false - - - + false + + + @@ -11136,22 +11067,18 @@ vars.put("status_check_counter", "0"); - - - + 6 ${PAP_HOST} ${PAP_PORT} http - /policy/pap/v1/policies/status - GET true - false + GET true - false - - - + false + + + @@ -11177,23 +11104,19 @@ if (prev.getResponseCode() == '200') { - - - + Check PdpGroup Query + 6 ${PAP_HOST} ${PAP_PORT} http - /policy/pap/v1/pdps - GET true - false + GET true - false - - - - Check PdpGroup Query + false + + + @@ -11243,23 +11166,19 @@ if (prev.getResponseCode() == '200') { - - - + PAP Metrics after deployments + 6 ${PAP_HOST} ${PAP_PORT} http - /policy/pap/v1/metrics - GET true - false + GET true - false - - - - PAP Metrics after deployments + false + + + @@ -11333,36 +11252,29 @@ if (prev.getResponseCode() == '200') { + 1 + 1 + true continue - - false + 1 + false - 1 - 1 - false - - - true - - - + 6 ${PAP_HOST} ${PAP_PORT} http - policy/pap/v1/pdps/groups/sampleGroup?state=PASSIVE - PUT true - false + PUT true - false - - - + false + + + @@ -11377,23 +11289,19 @@ if (prev.getResponseCode() == '200') { - - - + Delete PdpGroup + 6 ${PAP_HOST} ${PAP_PORT} http - /policy/pap/v1/pdps/groups/sampleGroup - DELETE true - false + DELETE true - false - - - - Delete PdpGroup + false + + + @@ -11408,22 +11316,18 @@ if (prev.getResponseCode() == '200') { - - - + 6 ${PAP_HOST} ${PAP_PORT} http - policy/pap/v1/pdps/groups/defaultGroup?state=PASSIVE - PUT true - false + PUT true - false - - - + false + + + @@ -11438,22 +11342,18 @@ if (prev.getResponseCode() == '200') { - - - + 6 ${API_HOST} ${API_PORT} http - /policy/api/v1/policytypes/onap.policies.controlloop.operational.common.Apex/versions/1.0.0/policies/operational.apex.stabilityTestDefaultDomain/versions/1.0.0 - DELETE true - false + DELETE true - false - - - + false + + + @@ -11468,22 +11368,18 @@ if (prev.getResponseCode() == '200') { - - - + 6 ${API_HOST} ${API_PORT} http - /policy/api/v1/policytypes/onap.policies.native.Apex/versions/1.0.0/policies/operational.apex.stabilityTestSampleDomain/versions/1.0.0 - DELETE true - false + DELETE true - false - - - + false + + + @@ -11498,22 +11394,18 @@ if (prev.getResponseCode() == '200') { - - - + 6 ${API_HOST} ${API_PORT} http - /policy/api/v1/nodetemplates/apex.metadata.pnf/versions/1.0.0 - DELETE true - false + DELETE true - false - - - + false + + + -- cgit 1.2.3-korg