1 <?xml version="1.0" encoding="UTF-8"?>
3 ============LICENSE_START=======================================================
5 ================================================================================
6 Copyright (C) 2020-2021 AT&T Intellectual Property. All rights reserved.
7 ================================================================================
8 Licensed under the Apache License, Version 2.0 (the "License");
9 you may not use this file except in compliance with the License.
10 You may obtain a copy of the License at
11 http://www.apache.org/licenses/LICENSE-2.0
12 Unless required by applicable law or agreed to in writing, software
13 distributed under the License is distributed on an "AS IS" BASIS,
14 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 See the License for the specific language governing permissions and
16 limitations under the License.
17 ============LICENSE_END=========================================================
19 <jmeterTestPlan version="1.2" properties="5.0" jmeter="5.4.1">
21 <TestPlan guiclass="TestPlanGui" testclass="TestPlan" testname="PDP-D Stability" enabled="true">
22 <stringProp name="TestPlan.comments"></stringProp>
23 <boolProp name="TestPlan.functional_mode">false</boolProp>
24 <boolProp name="TestPlan.tearDown_on_shutdown">true</boolProp>
25 <boolProp name="TestPlan.serialize_threadgroups">false</boolProp>
26 <elementProp name="TestPlan.user_defined_variables" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
27 <collectionProp name="Arguments.arguments">
28 <elementProp name="API_HOST" elementType="Argument">
29 <stringProp name="Argument.name">API_HOST</stringProp>
30 <stringProp name="Argument.value">10.12.6.14</stringProp>
31 <stringProp name="Argument.metadata">=</stringProp>
33 <elementProp name="API_PORT" elementType="Argument">
34 <stringProp name="Argument.name">API_PORT</stringProp>
35 <stringProp name="Argument.value">32191</stringProp>
36 <stringProp name="Argument.metadata">=</stringProp>
38 <elementProp name="PAP_HOST" elementType="Argument">
39 <stringProp name="Argument.name">PAP_HOST</stringProp>
40 <stringProp name="Argument.value">10.12.6.14</stringProp>
41 <stringProp name="Argument.metadata">=</stringProp>
43 <elementProp name="PAP_PORT" elementType="Argument">
44 <stringProp name="Argument.name">PAP_PORT</stringProp>
45 <stringProp name="Argument.value">32262</stringProp>
46 <stringProp name="Argument.metadata">=</stringProp>
48 <elementProp name="DMAAP_HOST" elementType="Argument">
49 <stringProp name="Argument.name">DMAAP_HOST</stringProp>
50 <stringProp name="Argument.value">10.12.6.14</stringProp>
51 <stringProp name="Argument.metadata">=</stringProp>
53 <elementProp name="DMAAP_PORT" elementType="Argument">
54 <stringProp name="Argument.name">DMAAP_PORT</stringProp>
55 <stringProp name="Argument.value">30226</stringProp>
56 <stringProp name="Argument.metadata">=</stringProp>
58 <elementProp name="DROOLS_HOST" elementType="Argument">
59 <stringProp name="Argument.name">DROOLS_HOST</stringProp>
60 <stringProp name="Argument.value">10.12.6.14</stringProp>
61 <stringProp name="Argument.metadata">=</stringProp>
63 <elementProp name="DROOLS_PORT" elementType="Argument">
64 <stringProp name="Argument.name">DROOLS_PORT</stringProp>
65 <stringProp name="Argument.value">32027</stringProp>
66 <stringProp name="Argument.metadata">=</stringProp>
68 <elementProp name="duration" elementType="Argument">
69 <stringProp name="Argument.name">duration</stringProp>
70 <stringProp name="Argument.value">259200</stringProp>
71 <stringProp name="Argument.metadata">=</stringProp>
75 <stringProp name="TestPlan.user_define_classpath"></stringProp>
78 <HeaderManager guiclass="HeaderPanel" testclass="HeaderManager" testname="HTTP Header Manager" enabled="true">
79 <collectionProp name="HeaderManager.headers">
80 <elementProp name="" elementType="Header">
81 <stringProp name="Header.name">Accept</stringProp>
82 <stringProp name="Header.value">application/json</stringProp>
84 <elementProp name="" elementType="Header">
85 <stringProp name="Header.name">Content-Type</stringProp>
86 <stringProp name="Header.value">application/json</stringProp>
91 <AuthManager guiclass="AuthPanel" testclass="AuthManager" testname="HTTP Authorization Manager" enabled="true">
92 <collectionProp name="AuthManager.auth_list">
93 <elementProp name="" elementType="Authorization">
94 <stringProp name="Authorization.url">https://${API_HOST}:${API_PORT}/policy/api/v1</stringProp>
95 <stringProp name="Authorization.username">healthcheck</stringProp>
96 <stringProp name="Authorization.password">zb!XztG34</stringProp>
97 <stringProp name="Authorization.domain"></stringProp>
98 <stringProp name="Authorization.realm"></stringProp>
100 <elementProp name="" elementType="Authorization">
101 <stringProp name="Authorization.url">https://${PAP_HOST}:${PAP_PORT}/policy/pap/v1</stringProp>
102 <stringProp name="Authorization.username">healthcheck</stringProp>
103 <stringProp name="Authorization.password">zb!XztG34</stringProp>
104 <stringProp name="Authorization.domain"></stringProp>
105 <stringProp name="Authorization.realm"></stringProp>
107 <elementProp name="" elementType="Authorization">
108 <stringProp name="Authorization.url">https://${DROOLS_HOST}:${DROOLS_PORT}/policy/pdp/engine</stringProp>
109 <stringProp name="Authorization.username">demo@people.osaaf.org</stringProp>
110 <stringProp name="Authorization.password">demo123456!</stringProp>
111 <stringProp name="Authorization.domain"></stringProp>
112 <stringProp name="Authorization.realm"></stringProp>
115 <boolProp name="AuthManager.controlledByThreadGroup">false</boolProp>
118 <ConfigTestElement guiclass="HttpDefaultsGui" testclass="ConfigTestElement" testname="HTTP Request Defaults" enabled="true">
119 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
120 <collectionProp name="Arguments.arguments"/>
122 <stringProp name="HTTPSampler.domain"></stringProp>
123 <stringProp name="HTTPSampler.port">9696</stringProp>
124 <stringProp name="HTTPSampler.protocol">http</stringProp>
125 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
126 <stringProp name="HTTPSampler.path"></stringProp>
127 <stringProp name="HTTPSampler.concurrentPool">6</stringProp>
128 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
129 <stringProp name="HTTPSampler.response_timeout"></stringProp>
132 <SetupThreadGroup guiclass="SetupThreadGroupGui" testclass="SetupThreadGroup" testname="Set up" enabled="true">
133 <stringProp name="ThreadGroup.on_sample_error">continue</stringProp>
134 <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true">
135 <boolProp name="LoopController.continue_forever">false</boolProp>
136 <intProp name="LoopController.loops">-1</intProp>
138 <stringProp name="ThreadGroup.num_threads">1</stringProp>
139 <stringProp name="ThreadGroup.ramp_time">1</stringProp>
140 <boolProp name="ThreadGroup.scheduler">false</boolProp>
141 <stringProp name="ThreadGroup.duration"></stringProp>
142 <stringProp name="ThreadGroup.delay"></stringProp>
143 <boolProp name="ThreadGroup.same_user_on_next_iteration">true</boolProp>
146 <GenericController guiclass="LogicControllerGui" testclass="GenericController" testname="API" enabled="true"/>
148 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API Healthcheck" enabled="true">
149 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
150 <collectionProp name="Arguments.arguments"/>
152 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
153 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
154 <stringProp name="HTTPSampler.protocol">https</stringProp>
155 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
156 <stringProp name="HTTPSampler.path">/policy/api/v1/healthcheck</stringProp>
157 <stringProp name="HTTPSampler.method">GET</stringProp>
158 <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
159 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
160 <boolProp name="HTTPSampler.use_keepalive">false</boolProp>
161 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
162 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
163 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
164 <stringProp name="HTTPSampler.response_timeout"></stringProp>
167 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
168 <collectionProp name="Asserion.test_strings">
169 <stringProp name="49586">200</stringProp>
171 <stringProp name="Assertion.custom_message"></stringProp>
172 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
173 <boolProp name="Assertion.assume_success">false</boolProp>
174 <intProp name="Assertion.test_type">8</intProp>
177 <JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="JSON Assertion" enabled="true">
178 <stringProp name="JSON_PATH">$.healthy</stringProp>
179 <stringProp name="EXPECTED_VALUE">true</stringProp>
180 <boolProp name="JSONVALIDATION">true</boolProp>
181 <boolProp name="EXPECT_NULL">false</boolProp>
182 <boolProp name="INVERT">false</boolProp>
183 <boolProp name="ISREGEX">false</boolProp>
187 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create vCPE Policy" enabled="true">
188 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
189 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
190 <collectionProp name="Arguments.arguments">
191 <elementProp name="" elementType="HTTPArgument">
192 <boolProp name="HTTPArgument.always_encode">false</boolProp>
193 <stringProp name="Argument.value">{
194 "tosca_definitions_version": "tosca_simple_yaml_1_1_0",
195 "topology_template": {
196 "policies": [
198 "operational.restart": {
199 "type": "onap.policies.controlloop.operational.common.Drools",
200 "type_version": "1.0.0",
201 "version": "1.0.0",
202 "metadata": {
203 "policy-id": "operational.restart"
205 "properties": {
206 "id": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e",
207 "timeout": 60,
208 "abatement": false,
209 "trigger": "unique-policy-id-1-restart",
210 "operations": [
212 "id": "unique-policy-id-1-restart",
213 "description": "Restart the VM",
214 "operation": {
215 "actor": "APPC",
216 "operation": "Restart",
217 "target": {
218 "targetType": "VNF"
221 "timeout": 20,
222 "retries": 0,
223 "success": "final_success",
224 "failure": "final_failure",
225 "failure_timeout": "final_failure_timeout",
226 "failure_retries": "final_failure_retries",
227 "failure_exception": "final_failure_exception",
228 "failure_guard": "final_failure_guard"
231 "controllerName": "usecases"
238 <stringProp name="Argument.metadata">=</stringProp>
242 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
243 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
244 <stringProp name="HTTPSampler.protocol">https</stringProp>
245 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
246 <stringProp name="HTTPSampler.path">policy/api/v1/policytypes/onap.policies.controlloop.operational.common.Drools/versions/1.0.0/policies</stringProp>
247 <stringProp name="HTTPSampler.method">POST</stringProp>
248 <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
249 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
250 <boolProp name="HTTPSampler.use_keepalive">false</boolProp>
251 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
252 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
253 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
254 <stringProp name="HTTPSampler.response_timeout"></stringProp>
257 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
258 <collectionProp name="Asserion.test_strings">
259 <stringProp name="49586">200</stringProp>
261 <stringProp name="Assertion.custom_message"></stringProp>
262 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
263 <boolProp name="Assertion.assume_success">false</boolProp>
264 <intProp name="Assertion.test_type">8</intProp>
268 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create vCPE Fail Policy" enabled="true">
269 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
270 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
271 <collectionProp name="Arguments.arguments">
272 <elementProp name="" elementType="HTTPArgument">
273 <boolProp name="HTTPArgument.always_encode">false</boolProp>
274 <stringProp name="Argument.value">{
275 "tosca_definitions_version": "tosca_simple_yaml_1_1_0",
276 "topology_template": {
277 "policies": [
279 "operational.restart.fail": {
280 "type": "onap.policies.controlloop.operational.common.Drools",
281 "type_version": "1.0.0",
282 "version": "1.0.0",
283 "metadata": {
284 "policy-id": "operational.restart.fail"
286 "properties": {
287 "id": "ControlLoop-vCPE-Fail",
288 "timeout": 60,
289 "abatement": false,
290 "trigger": "unique-policy-id-1-restart",
291 "operations": [
293 "id": "unique-policy-id-1-restart",
294 "description": "Restart the VM",
295 "operation": {
296 "actor": "APPC",
297 "operation": "Restart",
298 "target": {
299 "targetType": "VNF"
302 "timeout": 20,
303 "retries": 0,
304 "success": "final_success",
305 "failure": "final_failure",
306 "failure_timeout": "final_failure_timeout",
307 "failure_retries": "final_failure_retries",
308 "failure_exception": "final_failure_exception",
309 "failure_guard": "final_failure_guard"
312 "controllerName": "usecases"
319 <stringProp name="Argument.metadata">=</stringProp>
323 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
324 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
325 <stringProp name="HTTPSampler.protocol">https</stringProp>
326 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
327 <stringProp name="HTTPSampler.path">policy/api/v1/policytypes/onap.policies.controlloop.operational.common.Drools/versions/1.0.0/policies</stringProp>
328 <stringProp name="HTTPSampler.method">POST</stringProp>
329 <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
330 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
331 <boolProp name="HTTPSampler.use_keepalive">false</boolProp>
332 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
333 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
334 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
335 <stringProp name="HTTPSampler.response_timeout"></stringProp>
338 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
339 <collectionProp name="Asserion.test_strings">
340 <stringProp name="49586">200</stringProp>
342 <stringProp name="Assertion.custom_message"></stringProp>
343 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
344 <boolProp name="Assertion.assume_success">false</boolProp>
345 <intProp name="Assertion.test_type">8</intProp>
349 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create vFirewall Policy" enabled="true">
350 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
351 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
352 <collectionProp name="Arguments.arguments">
353 <elementProp name="" elementType="HTTPArgument">
354 <boolProp name="HTTPArgument.always_encode">false</boolProp>
355 <stringProp name="Argument.value">{
356 "tosca_definitions_version": "tosca_simple_yaml_1_1_0",
357 "topology_template": {
358 "policies": [
360 "operational.modifyconfig": {
361 "type": "onap.policies.controlloop.operational.common.Drools",
362 "type_version": "1.0.0",
363 "version": "1.0.0",
364 "metadata": {
365 "policy-id": "operational.modifyconfig"
367 "properties": {
368 "id": "ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a",
369 "timeout": 60,
370 "abatement": false,
371 "trigger": "unique-policy-id-1-modifyConfig",
372 "operations": [
374 "id": "unique-policy-id-1-modifyConfig",
375 "description": "Modify the packet generator",
376 "operation": {
377 "actor": "APPC",
378 "operation": "ModifyConfig",
379 "target": {
380 "targetType": "VNF",
381 "entityIds": {
382 "resourceID": "bbb3cefd-01c8-413c-9bdd-2b92f9ca3d38"
385 "payload": {
386 "streams": "{\"active-streams\": 5 }"
389 "timeout": 20,
390 "retries": 0,
391 "success": "final_success",
392 "failure": "final_failure",
393 "failure_timeout": "final_failure_timeout",
394 "failure_retries": "final_failure_retries",
395 "failure_exception": "final_failure_exception",
396 "failure_guard": "final_failure_guard"
399 "controllerName": "usecases"
406 <stringProp name="Argument.metadata">=</stringProp>
410 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
411 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
412 <stringProp name="HTTPSampler.protocol">https</stringProp>
413 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
414 <stringProp name="HTTPSampler.path">policy/api/v1/policytypes/onap.policies.controlloop.operational.common.Drools/versions/1.0.0/policies</stringProp>
415 <stringProp name="HTTPSampler.method">POST</stringProp>
416 <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
417 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
418 <boolProp name="HTTPSampler.use_keepalive">false</boolProp>
419 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
420 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
421 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
422 <stringProp name="HTTPSampler.response_timeout"></stringProp>
425 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
426 <collectionProp name="Asserion.test_strings">
427 <stringProp name="49586">200</stringProp>
429 <stringProp name="Assertion.custom_message"></stringProp>
430 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
431 <boolProp name="Assertion.assume_success">false</boolProp>
432 <intProp name="Assertion.test_type">8</intProp>
436 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create vDNS Policy" enabled="true">
437 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
438 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
439 <collectionProp name="Arguments.arguments">
440 <elementProp name="" elementType="HTTPArgument">
441 <boolProp name="HTTPArgument.always_encode">false</boolProp>
442 <stringProp name="Argument.value">{
443 "tosca_definitions_version": "tosca_simple_yaml_1_1_0",
444 "topology_template": {
445 "policies": [
447 "operational.scaleout": {
448 "type": "onap.policies.controlloop.operational.common.Drools",
449 "type_version": "1.0.0",
450 "version": "1.0.0",
451 "metadata": {
452 "policy-id": "operational.scaleout"
454 "properties": {
455 "id": "ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3",
456 "timeout": 60,
457 "abatement": false,
458 "trigger": "unique-policy-id-1-scale-up",
459 "operations": [
461 "id": "unique-policy-id-1-scale-up",
462 "description": "Create a new VF Module",
463 "operation": {
464 "actor": "SO",
465 "operation": "VF Module Create",
466 "target": {
467 "targetType": "VFMODULE",
468 "entityIds": {
469 "modelInvariantId": "e6130d03-56f1-4b0a-9a1d-e1b2ebc30e0e",
470 "modelVersionId": "94b18b1d-cc91-4f43-911a-e6348665f292",
471 "modelName": "VfwclVfwsnkBbefb8ce2bde..base_vfw..module-0",
472 "modelVersion": "1",
473 "modelCustomizationId": "47958575-138f-452a-8c8d-d89b595f8164"
476 "payload": {
477 "requestParameters": "{\"usePreload\":true,\"userParams\":[]}",
478 "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]\"}]"
481 "timeout": 20,
482 "retries": 0,
483 "success": "final_success",
484 "failure": "final_failure",
485 "failure_timeout": "final_failure_timeout",
486 "failure_retries": "final_failure_retries",
487 "failure_exception": "final_failure_exception",
488 "failure_guard": "final_failure_guard"
491 "controllerName": "usecases"
498 <stringProp name="Argument.metadata">=</stringProp>
502 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
503 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
504 <stringProp name="HTTPSampler.protocol">https</stringProp>
505 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
506 <stringProp name="HTTPSampler.path">policy/api/v1/policytypes/onap.policies.controlloop.operational.common.Drools/versions/1.0.0/policies</stringProp>
507 <stringProp name="HTTPSampler.method">POST</stringProp>
508 <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
509 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
510 <boolProp name="HTTPSampler.use_keepalive">false</boolProp>
511 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
512 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
513 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
514 <stringProp name="HTTPSampler.response_timeout"></stringProp>
517 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
518 <collectionProp name="Asserion.test_strings">
519 <stringProp name="49586">200</stringProp>
521 <stringProp name="Assertion.custom_message"></stringProp>
522 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
523 <boolProp name="Assertion.assume_success">false</boolProp>
524 <intProp name="Assertion.test_type">8</intProp>
528 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create vDNS Fail Policy" enabled="true">
529 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
530 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
531 <collectionProp name="Arguments.arguments">
532 <elementProp name="" elementType="HTTPArgument">
533 <boolProp name="HTTPArgument.always_encode">false</boolProp>
534 <stringProp name="Argument.value">{
535 "tosca_definitions_version": "tosca_simple_yaml_1_1_0",
536 "topology_template": {
537 "policies": [
539 "operational.scaleout.fail": {
540 "type": "onap.policies.controlloop.operational.common.Drools",
541 "type_version": "1.0.0",
542 "version": "1.0.0",
543 "metadata": {
544 "policy-id": "operational.scaleout.fail"
546 "properties": {
547 "id": "ControlLoop-vDNS-Fail",
548 "timeout": 60,
549 "abatement": false,
550 "trigger": "unique-policy-id-1-scale-up",
551 "operations": [
553 "id": "unique-policy-id-1-scale-up",
554 "description": "Create a new VF Module",
555 "operation": {
556 "actor": "SO",
557 "operation": "VF Module Create",
558 "target": {
559 "targetType": "VFMODULE",
560 "entityIds": {
561 "modelInvariantId": "e6130d03-56f1-4b0a-9a1d-e1b2ebc30e0e",
562 "modelVersionId": "94b18b1d-cc91-4f43-911a-e6348665f292",
563 "modelName": "VfwclVfwsnkBbefb8ce2bde..base_vfw..module-0",
564 "modelVersion": "1",
565 "modelCustomizationId": "47958575-138f-452a-8c8d-d89b595f8164"
568 "payload": {
569 "requestParameters": "{\"usePreload\":true,\"userParams\":[]}",
570 "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]\"}]"
573 "timeout": 20,
574 "retries": 0,
575 "success": "final_success",
576 "failure": "final_failure",
577 "failure_timeout": "final_failure_timeout",
578 "failure_retries": "final_failure_retries",
579 "failure_exception": "final_failure_exception",
580 "failure_guard": "final_failure_guard"
583 "controllerName": "usecases"
590 <stringProp name="Argument.metadata">=</stringProp>
594 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
595 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
596 <stringProp name="HTTPSampler.protocol">https</stringProp>
597 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
598 <stringProp name="HTTPSampler.path">policy/api/v1/policytypes/onap.policies.controlloop.operational.common.Drools/versions/1.0.0/policies</stringProp>
599 <stringProp name="HTTPSampler.method">POST</stringProp>
600 <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
601 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
602 <boolProp name="HTTPSampler.use_keepalive">false</boolProp>
603 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
604 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
605 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
606 <stringProp name="HTTPSampler.response_timeout"></stringProp>
609 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
610 <collectionProp name="Asserion.test_strings">
611 <stringProp name="49586">200</stringProp>
613 <stringProp name="Assertion.custom_message"></stringProp>
614 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
615 <boolProp name="Assertion.assume_success">false</boolProp>
616 <intProp name="Assertion.test_type">8</intProp>
621 <GenericController guiclass="LogicControllerGui" testclass="GenericController" testname="PAP" enabled="true"/>
623 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="PAP Healthcheck" enabled="true">
624 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
625 <collectionProp name="Arguments.arguments"/>
627 <stringProp name="HTTPSampler.domain">${PAP_HOST}</stringProp>
628 <stringProp name="HTTPSampler.port">${PAP_PORT}</stringProp>
629 <stringProp name="HTTPSampler.protocol">https</stringProp>
630 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
631 <stringProp name="HTTPSampler.path">/policy/pap/v1/healthcheck</stringProp>
632 <stringProp name="HTTPSampler.method">GET</stringProp>
633 <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
634 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
635 <boolProp name="HTTPSampler.use_keepalive">false</boolProp>
636 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
637 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
638 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
639 <stringProp name="HTTPSampler.response_timeout"></stringProp>
642 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
643 <collectionProp name="Asserion.test_strings">
644 <stringProp name="49586">200</stringProp>
646 <stringProp name="Assertion.custom_message"></stringProp>
647 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
648 <boolProp name="Assertion.assume_success">false</boolProp>
649 <intProp name="Assertion.test_type">8</intProp>
652 <JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="JSON Assertion" enabled="true">
653 <stringProp name="JSON_PATH">$.healthy</stringProp>
654 <stringProp name="EXPECTED_VALUE">true</stringProp>
655 <boolProp name="JSONVALIDATION">true</boolProp>
656 <boolProp name="EXPECT_NULL">false</boolProp>
657 <boolProp name="INVERT">false</boolProp>
658 <boolProp name="ISREGEX">false</boolProp>
662 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Deploy vCPE Policy" enabled="true">
663 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
664 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
665 <collectionProp name="Arguments.arguments">
666 <elementProp name="" elementType="HTTPArgument">
667 <boolProp name="HTTPArgument.always_encode">false</boolProp>
668 <stringProp name="Argument.value">{"policies":[{"policy-id":"operational.restart", "version": "1.0.0"}]}</stringProp>
669 <stringProp name="Argument.metadata">=</stringProp>
673 <stringProp name="HTTPSampler.domain">${PAP_HOST}</stringProp>
674 <stringProp name="HTTPSampler.port">${PAP_PORT}</stringProp>
675 <stringProp name="HTTPSampler.protocol">https</stringProp>
676 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
677 <stringProp name="HTTPSampler.path">policy/pap/v1/pdps/policies</stringProp>
678 <stringProp name="HTTPSampler.method">POST</stringProp>
679 <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
680 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
681 <boolProp name="HTTPSampler.use_keepalive">false</boolProp>
682 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
683 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
684 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
685 <stringProp name="HTTPSampler.response_timeout"></stringProp>
688 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
689 <collectionProp name="Asserion.test_strings">
690 <stringProp name="49588">202</stringProp>
692 <stringProp name="Assertion.custom_message"></stringProp>
693 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
694 <boolProp name="Assertion.assume_success">false</boolProp>
695 <intProp name="Assertion.test_type">8</intProp>
699 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Deploy vCPE Fail Policy" enabled="true">
700 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
701 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
702 <collectionProp name="Arguments.arguments">
703 <elementProp name="" elementType="HTTPArgument">
704 <boolProp name="HTTPArgument.always_encode">false</boolProp>
705 <stringProp name="Argument.value">{"policies":[{"policy-id":"operational.restart.fail", "version": "1.0.0"}]}</stringProp>
706 <stringProp name="Argument.metadata">=</stringProp>
710 <stringProp name="HTTPSampler.domain">${PAP_HOST}</stringProp>
711 <stringProp name="HTTPSampler.port">${PAP_PORT}</stringProp>
712 <stringProp name="HTTPSampler.protocol">https</stringProp>
713 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
714 <stringProp name="HTTPSampler.path">policy/pap/v1/pdps/policies</stringProp>
715 <stringProp name="HTTPSampler.method">POST</stringProp>
716 <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
717 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
718 <boolProp name="HTTPSampler.use_keepalive">false</boolProp>
719 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
720 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
721 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
722 <stringProp name="HTTPSampler.response_timeout"></stringProp>
725 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
726 <collectionProp name="Asserion.test_strings">
727 <stringProp name="49588">202</stringProp>
729 <stringProp name="Assertion.custom_message"></stringProp>
730 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
731 <boolProp name="Assertion.assume_success">false</boolProp>
732 <intProp name="Assertion.test_type">8</intProp>
736 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Deploy vFirewall Policy" enabled="true">
737 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
738 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
739 <collectionProp name="Arguments.arguments">
740 <elementProp name="" elementType="HTTPArgument">
741 <boolProp name="HTTPArgument.always_encode">false</boolProp>
742 <stringProp name="Argument.value">{"policies":[{"policy-id":"operational.modifyconfig", "version": "1.0.0"}]}</stringProp>
743 <stringProp name="Argument.metadata">=</stringProp>
747 <stringProp name="HTTPSampler.domain">${PAP_HOST}</stringProp>
748 <stringProp name="HTTPSampler.port">${PAP_PORT}</stringProp>
749 <stringProp name="HTTPSampler.protocol">https</stringProp>
750 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
751 <stringProp name="HTTPSampler.path">policy/pap/v1/pdps/policies</stringProp>
752 <stringProp name="HTTPSampler.method">POST</stringProp>
753 <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
754 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
755 <boolProp name="HTTPSampler.use_keepalive">false</boolProp>
756 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
757 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
758 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
759 <stringProp name="HTTPSampler.response_timeout"></stringProp>
762 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
763 <collectionProp name="Asserion.test_strings">
764 <stringProp name="49588">202</stringProp>
766 <stringProp name="Assertion.custom_message"></stringProp>
767 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
768 <boolProp name="Assertion.assume_success">false</boolProp>
769 <intProp name="Assertion.test_type">8</intProp>
773 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Deploy vDNS Policy" enabled="true">
774 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
775 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
776 <collectionProp name="Arguments.arguments">
777 <elementProp name="" elementType="HTTPArgument">
778 <boolProp name="HTTPArgument.always_encode">false</boolProp>
779 <stringProp name="Argument.value">{"policies":[{"policy-id":"operational.scaleout", "version": "1.0.0"}]}</stringProp>
780 <stringProp name="Argument.metadata">=</stringProp>
784 <stringProp name="HTTPSampler.domain">${PAP_HOST}</stringProp>
785 <stringProp name="HTTPSampler.port">${PAP_PORT}</stringProp>
786 <stringProp name="HTTPSampler.protocol">https</stringProp>
787 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
788 <stringProp name="HTTPSampler.path">policy/pap/v1/pdps/policies</stringProp>
789 <stringProp name="HTTPSampler.method">POST</stringProp>
790 <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
791 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
792 <boolProp name="HTTPSampler.use_keepalive">false</boolProp>
793 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
794 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
795 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
796 <stringProp name="HTTPSampler.response_timeout"></stringProp>
799 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
800 <collectionProp name="Asserion.test_strings">
801 <stringProp name="49588">202</stringProp>
803 <stringProp name="Assertion.custom_message"></stringProp>
804 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
805 <boolProp name="Assertion.assume_success">false</boolProp>
806 <intProp name="Assertion.test_type">8</intProp>
810 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Deploy vDNS Fail Policy" enabled="true">
811 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
812 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
813 <collectionProp name="Arguments.arguments">
814 <elementProp name="" elementType="HTTPArgument">
815 <boolProp name="HTTPArgument.always_encode">false</boolProp>
816 <stringProp name="Argument.value">{"policies":[{"policy-id":"operational.scaleout.fail", "version": "1.0.0"}]}</stringProp>
817 <stringProp name="Argument.metadata">=</stringProp>
821 <stringProp name="HTTPSampler.domain">${PAP_HOST}</stringProp>
822 <stringProp name="HTTPSampler.port">${PAP_PORT}</stringProp>
823 <stringProp name="HTTPSampler.protocol">https</stringProp>
824 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
825 <stringProp name="HTTPSampler.path">policy/pap/v1/pdps/policies</stringProp>
826 <stringProp name="HTTPSampler.method">POST</stringProp>
827 <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
828 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
829 <boolProp name="HTTPSampler.use_keepalive">false</boolProp>
830 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
831 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
832 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
833 <stringProp name="HTTPSampler.response_timeout"></stringProp>
836 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
837 <collectionProp name="Asserion.test_strings">
838 <stringProp name="49588">202</stringProp>
840 <stringProp name="Assertion.custom_message"></stringProp>
841 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
842 <boolProp name="Assertion.assume_success">false</boolProp>
843 <intProp name="Assertion.test_type">8</intProp>
848 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="POLICY-PDP-PAP " enabled="true">
849 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
850 <collectionProp name="Arguments.arguments"/>
852 <stringProp name="HTTPSampler.domain">${DMAAP_HOST}</stringProp>
853 <stringProp name="HTTPSampler.port">${DMAAP_PORT}</stringProp>
854 <stringProp name="HTTPSampler.protocol">https</stringProp>
855 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
856 <stringProp name="HTTPSampler.path">events/POLICY-PDP-PAP/${__time()}/1?timeout=2000</stringProp>
857 <stringProp name="HTTPSampler.method">GET</stringProp>
858 <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
859 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
860 <boolProp name="HTTPSampler.use_keepalive">false</boolProp>
861 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
862 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
863 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
864 <stringProp name="HTTPSampler.response_timeout"></stringProp>
867 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
868 <collectionProp name="Asserion.test_strings">
869 <stringProp name="49586">200</stringProp>
871 <stringProp name="Assertion.custom_message"></stringProp>
872 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
873 <boolProp name="Assertion.assume_success">false</boolProp>
874 <intProp name="Assertion.test_type">8</intProp>
878 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Drain vCPE success POLICY-CL-MGT" enabled="true">
879 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
880 <collectionProp name="Arguments.arguments"/>
882 <stringProp name="HTTPSampler.domain">${DMAAP_HOST}</stringProp>
883 <stringProp name="HTTPSampler.port">${DMAAP_PORT}</stringProp>
884 <stringProp name="HTTPSampler.protocol">https</stringProp>
885 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
886 <stringProp name="HTTPSampler.path">events/POLICY-CL-MGT/vcpesuccess/1?timeout=20000</stringProp>
887 <stringProp name="HTTPSampler.method">GET</stringProp>
888 <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
889 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
890 <boolProp name="HTTPSampler.use_keepalive">false</boolProp>
891 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
892 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
893 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
894 <stringProp name="HTTPSampler.response_timeout"></stringProp>
897 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
898 <collectionProp name="Asserion.test_strings">
899 <stringProp name="49586">200</stringProp>
901 <stringProp name="Assertion.custom_message"></stringProp>
902 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
903 <boolProp name="Assertion.assume_success">false</boolProp>
904 <intProp name="Assertion.test_type">8</intProp>
908 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Drain vCPE success APPC-LCM-READ" enabled="true">
909 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
910 <collectionProp name="Arguments.arguments"/>
912 <stringProp name="HTTPSampler.domain">${DMAAP_HOST}</stringProp>
913 <stringProp name="HTTPSampler.port">${DMAAP_PORT}</stringProp>
914 <stringProp name="HTTPSampler.protocol">https</stringProp>
915 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
916 <stringProp name="HTTPSampler.path">events/APPC-LCM-READ/vcpesuccess/1?timeout=20000</stringProp>
917 <stringProp name="HTTPSampler.method">GET</stringProp>
918 <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
919 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
920 <boolProp name="HTTPSampler.use_keepalive">false</boolProp>
921 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
922 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
923 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
924 <stringProp name="HTTPSampler.response_timeout"></stringProp>
927 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
928 <collectionProp name="Asserion.test_strings">
929 <stringProp name="49586">200</stringProp>
931 <stringProp name="Assertion.custom_message"></stringProp>
932 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
933 <boolProp name="Assertion.assume_success">false</boolProp>
934 <intProp name="Assertion.test_type">8</intProp>
938 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Drain vCPE failure POLICY-CL-MGT" enabled="true">
939 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
940 <collectionProp name="Arguments.arguments"/>
942 <stringProp name="HTTPSampler.domain">${DMAAP_HOST}</stringProp>
943 <stringProp name="HTTPSampler.port">${DMAAP_PORT}</stringProp>
944 <stringProp name="HTTPSampler.protocol">https</stringProp>
945 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
946 <stringProp name="HTTPSampler.path">events/POLICY-CL-MGT/vcpefailure/1?timeout=20000</stringProp>
947 <stringProp name="HTTPSampler.method">GET</stringProp>
948 <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
949 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
950 <boolProp name="HTTPSampler.use_keepalive">false</boolProp>
951 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
952 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
953 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
954 <stringProp name="HTTPSampler.response_timeout"></stringProp>
957 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
958 <collectionProp name="Asserion.test_strings">
959 <stringProp name="49586">200</stringProp>
961 <stringProp name="Assertion.custom_message"></stringProp>
962 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
963 <boolProp name="Assertion.assume_success">false</boolProp>
964 <intProp name="Assertion.test_type">8</intProp>
968 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Drain vCPE failure APPC-LCM-READ" enabled="true">
969 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
970 <collectionProp name="Arguments.arguments"/>
972 <stringProp name="HTTPSampler.domain">${DMAAP_HOST}</stringProp>
973 <stringProp name="HTTPSampler.port">${DMAAP_PORT}</stringProp>
974 <stringProp name="HTTPSampler.protocol">https</stringProp>
975 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
976 <stringProp name="HTTPSampler.path">events/APPC-LCM-READ/vcpefailure/1?timeout=20000</stringProp>
977 <stringProp name="HTTPSampler.method">GET</stringProp>
978 <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
979 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
980 <boolProp name="HTTPSampler.use_keepalive">false</boolProp>
981 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
982 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
983 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
984 <stringProp name="HTTPSampler.response_timeout"></stringProp>
987 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
988 <collectionProp name="Asserion.test_strings">
989 <stringProp name="49586">200</stringProp>
991 <stringProp name="Assertion.custom_message"></stringProp>
992 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
993 <boolProp name="Assertion.assume_success">false</boolProp>
994 <intProp name="Assertion.test_type">8</intProp>
998 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="PDP-D" enabled="true">
999 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
1000 <collectionProp name="Arguments.arguments"/>
1002 <stringProp name="HTTPSampler.domain">${DROOLS_HOST}</stringProp>
1003 <stringProp name="HTTPSampler.port">${DROOLS_PORT}</stringProp>
1004 <stringProp name="HTTPSampler.protocol">https</stringProp>
1005 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
1006 <stringProp name="HTTPSampler.path">policy/pdp/engine/controllers/usecases/drools/facts</stringProp>
1007 <stringProp name="HTTPSampler.method">GET</stringProp>
1008 <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
1009 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
1010 <boolProp name="HTTPSampler.use_keepalive">false</boolProp>
1011 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
1012 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
1013 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
1014 <stringProp name="HTTPSampler.response_timeout"></stringProp>
1017 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
1018 <collectionProp name="Asserion.test_strings">
1019 <stringProp name="49586">200</stringProp>
1021 <stringProp name="Assertion.custom_message"></stringProp>
1022 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
1023 <boolProp name="Assertion.assume_success">false</boolProp>
1024 <intProp name="Assertion.test_type">8</intProp>
1025 </ResponseAssertion>
1027 <JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="JSON Assertion" enabled="true">
1028 <stringProp name="JSON_PATH">$.usecases</stringProp>
1029 <stringProp name="EXPECTED_VALUE">10</stringProp>
1030 <boolProp name="JSONVALIDATION">true</boolProp>
1031 <boolProp name="EXPECT_NULL">false</boolProp>
1032 <boolProp name="INVERT">false</boolProp>
1033 <boolProp name="ISREGEX">false</boolProp>
1034 </JSONPathAssertion>
1038 <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="vCPE Success" enabled="true">
1039 <stringProp name="ThreadGroup.on_sample_error">startnextloop</stringProp>
1040 <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true">
1041 <boolProp name="LoopController.continue_forever">false</boolProp>
1042 <intProp name="LoopController.loops">-1</intProp>
1044 <stringProp name="ThreadGroup.num_threads">1</stringProp>
1045 <stringProp name="ThreadGroup.ramp_time">1</stringProp>
1046 <boolProp name="ThreadGroup.scheduler">true</boolProp>
1047 <stringProp name="ThreadGroup.duration">${duration}</stringProp>
1048 <stringProp name="ThreadGroup.delay">11</stringProp>
1049 <boolProp name="ThreadGroup.same_user_on_next_iteration">true</boolProp>
1052 <UserParameters guiclass="UserParametersGui" testclass="UserParameters" testname="Set consumer group per scenario" enabled="true">
1053 <collectionProp name="UserParameters.names">
1054 <stringProp name="-308835287">consumerGroup</stringProp>
1056 <collectionProp name="UserParameters.thread_values">
1057 <collectionProp name="-1571164782">
1058 <stringProp name="-2075285407">vcpesuccess</stringProp>
1061 <boolProp name="UserParameters.per_iteration">false</boolProp>
1062 <stringProp name="TestPlan.comments">Global to the thread group</stringProp>
1065 <UserParameters guiclass="UserParametersGui" testclass="UserParameters" testname="Set request id per cycle" enabled="true">
1066 <collectionProp name="UserParameters.names">
1067 <stringProp name="693933066">requestId</stringProp>
1069 <collectionProp name="UserParameters.thread_values">
1070 <collectionProp name="681405977">
1071 <stringProp name="118040362">${__UUID()}</stringProp>
1074 <boolProp name="UserParameters.per_iteration">true</boolProp>
1075 <stringProp name="TestPlan.comments">Update on a per iteration basis</stringProp>
1078 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="DCAE[DCAE_TOPIC]: ONSET" enabled="true">
1079 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
1080 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
1081 <collectionProp name="Arguments.arguments">
1082 <elementProp name="" elementType="HTTPArgument">
1083 <boolProp name="HTTPArgument.always_encode">false</boolProp>
1084 <stringProp name="Argument.value">{
1085 "closedLoopControlName": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e",
1086 "closedLoopAlarmStart": 1463679805324,
1087 "closedLoopEventClient": "DCAE_INSTANCE_ID.dcae-tca",
1088 "closedLoopEventStatus": "ONSET",
1089 "requestID": "${requestId}",
1090 "target_type": "VNF",
1091 "target": "generic-vnf.vnf-id",
1092 "AAI": {
1093 "vserver.is-closed-loop-disabled": "false",
1094 "vserver.prov-status": "ACTIVE",
1095 "generic-vnf.vnf-id": "vCPE_Infrastructure_vGMUX_demo_app"
1097 "from": "DCAE",
1098 "version": "1.0.2"
1100 <stringProp name="Argument.metadata">=</stringProp>
1104 <stringProp name="HTTPSampler.domain">${DROOLS_HOST}</stringProp>
1105 <stringProp name="HTTPSampler.port">${DROOLS_PORT}</stringProp>
1106 <stringProp name="HTTPSampler.protocol">https</stringProp>
1107 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
1108 <stringProp name="HTTPSampler.path">policy/pdp/engine/topics/sources/dmaap/DCAE_TOPIC/events</stringProp>
1109 <stringProp name="HTTPSampler.method">PUT</stringProp>
1110 <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
1111 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
1112 <boolProp name="HTTPSampler.use_keepalive">false</boolProp>
1113 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
1114 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
1115 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
1116 <stringProp name="HTTPSampler.response_timeout"></stringProp>
1119 <HeaderManager guiclass="HeaderPanel" testclass="HeaderManager" testname="HTTP Header Manager" enabled="true">
1120 <collectionProp name="HeaderManager.headers">
1121 <elementProp name="" elementType="Header">
1122 <stringProp name="Header.name">Content-Type</stringProp>
1123 <stringProp name="Header.value">text/plain</stringProp>
1129 <JSR223Sampler guiclass="TestBeanGUI" testclass="JSR223Sampler" testname="Init DMaaP Counter" enabled="true">
1130 <stringProp name="scriptLanguage">groovy</stringProp>
1131 <stringProp name="parameters"></stringProp>
1132 <stringProp name="filename"></stringProp>
1133 <stringProp name="cacheKey">true</stringProp>
1134 <stringProp name="script">vars.put("counter", "0");</stringProp>
1137 <WhileController guiclass="WhileControllerGui" testclass="WhileController" testname="APPCL Restart Loop Controller" enabled="true">
1138 <stringProp name="WhileController.condition">${__javaScript(${counter} < 10)}</stringProp>
1141 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="POLICY[APPC-LCM-READ]: Restart" enabled="true">
1142 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
1143 <collectionProp name="Arguments.arguments">
1144 <elementProp name="filter" elementType="HTTPArgument">
1145 <boolProp name="HTTPArgument.always_encode">true</boolProp>
1146 <stringProp name="Argument.value">{"class":"And", "filters": [ { "class":"Equals", "field":"request-id", "value":"${requestId}" }, { "class":"Equals", "field":"rpc-name", "value":"restart" }]}</stringProp>
1147 <stringProp name="Argument.metadata">=</stringProp>
1148 <boolProp name="HTTPArgument.use_equals">true</boolProp>
1149 <stringProp name="Argument.name">filter</stringProp>
1153 <stringProp name="HTTPSampler.domain">${DMAAP_HOST}</stringProp>
1154 <stringProp name="HTTPSampler.port">${DMAAP_PORT}</stringProp>
1155 <stringProp name="HTTPSampler.protocol">https</stringProp>
1156 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
1157 <stringProp name="HTTPSampler.path">events/APPC-LCM-READ/${consumerGroup}/1?timeout=15000&limit=1</stringProp>
1158 <stringProp name="HTTPSampler.method">GET</stringProp>
1159 <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
1160 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
1161 <boolProp name="HTTPSampler.use_keepalive">false</boolProp>
1162 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
1163 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
1164 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
1165 <stringProp name="HTTPSampler.response_timeout"></stringProp>
1168 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="No []" enabled="true">
1169 <collectionProp name="Asserion.test_strings">
1170 <stringProp name="2914">[]</stringProp>
1172 <stringProp name="Assertion.custom_message"></stringProp>
1173 <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
1174 <boolProp name="Assertion.assume_success">false</boolProp>
1175 <intProp name="Assertion.test_type">12</intProp>
1176 </ResponseAssertion>
1178 <RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor" testname="request-id extractor" enabled="true">
1179 <stringProp name="RegexExtractor.useHeaders">false</stringProp>
1180 <stringProp name="RegexExtractor.refname">requestIdOnset</stringProp>
1181 <stringProp name="RegexExtractor.regex">\\"request-id\\": \\"(.+?)\\"</stringProp>
1182 <stringProp name="RegexExtractor.template">$1$</stringProp>
1183 <stringProp name="RegexExtractor.default">none</stringProp>
1184 <stringProp name="RegexExtractor.match_number"></stringProp>
1187 <RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor" testname="correlation-id extractor" enabled="true">
1188 <stringProp name="RegexExtractor.useHeaders">false</stringProp>
1189 <stringProp name="RegexExtractor.refname">correlationId</stringProp>
1190 <stringProp name="RegexExtractor.regex">correlation-id\\": \\"(.+?)\\"</stringProp>
1191 <stringProp name="RegexExtractor.template">$1$</stringProp>
1192 <stringProp name="RegexExtractor.default">none</stringProp>
1193 <stringProp name="RegexExtractor.match_number"></stringProp>
1196 <RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor" testname="sub-request-id extractor" enabled="true">
1197 <stringProp name="RegexExtractor.useHeaders">false</stringProp>
1198 <stringProp name="RegexExtractor.refname">subRequestId</stringProp>
1199 <stringProp name="RegexExtractor.regex">sub-request-id\\": \\"(.+?)\\"</stringProp>
1200 <stringProp name="RegexExtractor.template">$1$</stringProp>
1201 <stringProp name="RegexExtractor.default">none</stringProp>
1202 <stringProp name="RegexExtractor.match_number"></stringProp>
1205 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
1206 <stringProp name="scriptLanguage">groovy</stringProp>
1207 <stringProp name="parameters"></stringProp>
1208 <stringProp name="filename"></stringProp>
1209 <stringProp name="cacheKey">true</stringProp>
1210 <stringProp name="script">String requestIdOnset = vars.get("requestIdOnset");
1211 String requestId = vars.get("requestId");
1212 String correlationId = vars.get("correlationId");
1213 String subRequestId = vars.get("subRequestId");
1214 String counter = vars.get("counter");
1216 String transaction = "none";
1218 log.info ("The requestId id is " + requestId);
1219 log.info ("The requestIdOnset id is " + requestIdOnset);
1220 log.info ("The correlation id is " + correlationId);
1221 log.info ("The subrequest id is " + subRequestId);
1222 log.info ("The counter is " + counter);
1224 if ( requestId == requestIdOnset ) {
1225 if ( correlationId == "none" || subRequestId == "none" ) {
1226 transaction = "FINAL";
1227 log.info ("Final Failure Transaction");
1228 AssertionResult.setFailureMessage("Missing correlationId or subRequestId");
1229 AssertionResult.setFailure(true);
1231 transaction = "FINAL";
1232 vars.put("transaction", "FINAL");
1233 log.info ("Final Success Transaction");
1237 int counterTemp = Integer.parseInt(counter) +1;
1238 if (transaction == "FINAL") {
1240 } else if (counterTemp >= 10) {
1241 AssertionResult.setFailureMessage("vCPE Success APPCL Failure, reached maximum number of 10 attempts ");
1242 AssertionResult.setFailure(true);
1245 vars.put("counter", Integer.toString(counterTemp));
1252 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="APPC[APPC-LCM-READ]: SUCCESS" enabled="true">
1253 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
1254 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
1255 <collectionProp name="Arguments.arguments">
1256 <elementProp name="" elementType="HTTPArgument">
1257 <boolProp name="HTTPArgument.always_encode">false</boolProp>
1258 <stringProp name="Argument.value">{
1259 "body": {
1260 "output": {
1261 "common-header": {
1262 "timestamp": "2020-05-05T15:56:34.845Z",
1263 "api-ver": "2.00",
1264 "originator-id": "${requestId}",
1265 "request-id": "${requestId}",
1266 "sub-request-id": "${subRequestId}",
1267 "flags": {}
1269 "status": {
1270 "code": 400,
1271 "message": "Restart Successful"
1275 "version": "2.0",
1276 "rpc-name": "restart",
1277 "correlation-id": "${correlationId}",
1278 "type": "response"
1281 <stringProp name="Argument.metadata">=</stringProp>
1285 <stringProp name="HTTPSampler.domain">${DROOLS_HOST}</stringProp>
1286 <stringProp name="HTTPSampler.port">${DROOLS_PORT}</stringProp>
1287 <stringProp name="HTTPSampler.protocol">https</stringProp>
1288 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
1289 <stringProp name="HTTPSampler.path">policy/pdp/engine/topics/sources/dmaap/APPC-LCM-WRITE/events</stringProp>
1290 <stringProp name="HTTPSampler.method">PUT</stringProp>
1291 <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
1292 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
1293 <boolProp name="HTTPSampler.use_keepalive">false</boolProp>
1294 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
1295 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
1296 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
1297 <stringProp name="HTTPSampler.response_timeout"></stringProp>
1300 <HeaderManager guiclass="HeaderPanel" testclass="HeaderManager" testname="HTTP Header Manager" enabled="true">
1301 <collectionProp name="HeaderManager.headers">
1302 <elementProp name="" elementType="Header">
1303 <stringProp name="Header.name">Content-Type</stringProp>
1304 <stringProp name="Header.value">text/plain</stringProp>
1310 <JSR223Sampler guiclass="TestBeanGUI" testclass="JSR223Sampler" testname="Init DMaaP Counter" enabled="true">
1311 <stringProp name="scriptLanguage">groovy</stringProp>
1312 <stringProp name="parameters"></stringProp>
1313 <stringProp name="filename"></stringProp>
1314 <stringProp name="cacheKey">true</stringProp>
1315 <stringProp name="script">vars.put("counter", "0");</stringProp>
1318 <WhileController guiclass="WhileControllerGui" testclass="WhileController" testname="Final Success Controller" enabled="true">
1319 <stringProp name="WhileController.condition">${__javaScript(${counter} < 60)}</stringProp>
1322 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="POLICY[POLICY-CL-MGT]: FINAL_SUCCESS" enabled="true">
1323 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
1324 <collectionProp name="Arguments.arguments">
1325 <elementProp name="filter" elementType="HTTPArgument">
1326 <boolProp name="HTTPArgument.always_encode">true</boolProp>
1327 <stringProp name="Argument.value">{"class":"And", "filters": [ { "class":"Equals", "field":"requestId", "value":"${requestId}" }, { "class":"Equals", "field":"notification", "value":"FINAL: SUCCESS" }]}</stringProp>
1328 <stringProp name="Argument.metadata">=</stringProp>
1329 <boolProp name="HTTPArgument.use_equals">true</boolProp>
1330 <stringProp name="Argument.name">filter</stringProp>
1334 <stringProp name="HTTPSampler.domain">${DMAAP_HOST}</stringProp>
1335 <stringProp name="HTTPSampler.port">${DMAAP_PORT}</stringProp>
1336 <stringProp name="HTTPSampler.protocol">https</stringProp>
1337 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
1338 <stringProp name="HTTPSampler.path">events/POLICY-CL-MGT/${consumerGroup}/1?timeout=15000&limit=1</stringProp>
1339 <stringProp name="HTTPSampler.method">GET</stringProp>
1340 <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
1341 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
1342 <boolProp name="HTTPSampler.use_keepalive">false</boolProp>
1343 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
1344 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
1345 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
1346 <stringProp name="HTTPSampler.response_timeout"></stringProp>
1349 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="No []" enabled="true">
1350 <collectionProp name="Asserion.test_strings">
1351 <stringProp name="2914">[]</stringProp>
1353 <stringProp name="Assertion.custom_message"></stringProp>
1354 <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
1355 <boolProp name="Assertion.assume_success">false</boolProp>
1356 <intProp name="Assertion.test_type">12</intProp>
1357 </ResponseAssertion>
1359 <RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor" testname="requestId extractor" enabled="true">
1360 <stringProp name="RegexExtractor.useHeaders">false</stringProp>
1361 <stringProp name="RegexExtractor.refname">requestIdOnset</stringProp>
1362 <stringProp name="RegexExtractor.regex">requestId\\": \\"(.+?)\\"</stringProp>
1363 <stringProp name="RegexExtractor.template">$1$</stringProp>
1364 <stringProp name="RegexExtractor.default">none</stringProp>
1365 <stringProp name="RegexExtractor.match_number"></stringProp>
1368 <RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor" testname="notification extractor" enabled="true">
1369 <stringProp name="RegexExtractor.useHeaders">false</stringProp>
1370 <stringProp name="RegexExtractor.refname">notification</stringProp>
1371 <stringProp name="RegexExtractor.regex">notification\\": \\"FINAL: (.+?)\\"</stringProp>
1372 <stringProp name="RegexExtractor.template">$1$</stringProp>
1373 <stringProp name="RegexExtractor.default">none</stringProp>
1374 <stringProp name="RegexExtractor.match_number"></stringProp>
1377 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
1378 <stringProp name="scriptLanguage">groovy</stringProp>
1379 <stringProp name="parameters"></stringProp>
1380 <stringProp name="filename"></stringProp>
1381 <stringProp name="cacheKey">true</stringProp>
1382 <stringProp name="script">String requestIdOnset = vars.get("requestIdOnset");
1383 String requestId = vars.get("requestId");
1384 String notification = vars.get("notification");
1385 String counter = vars.get("counter");
1387 String transaction = "none";
1389 log.info ("The requestId id is " + requestId);
1390 log.info ("The requestIdOnset id is " + requestIdOnset);
1391 log.info ("The notification is " + notification);
1392 log.info ("The transaction is " + transaction);
1393 log.info ("The counter is " + counter);
1395 if ( requestId == requestIdOnset ) {
1396 if ( notification == "SUCCESS" ) {
1397 transaction = "FINAL";
1398 log.info ("Final Success Transaction");
1399 log.info ("The notification is SUCCESS");
1400 } else if ( notification == "FAILURE" ) {
1401 transaction = "FINAL";
1402 log.info ("Final Failure Transaction");
1403 AssertionResult.setFailureMessage("Bad final notification");
1404 AssertionResult.setFailure(true);
1408 int counterTemp = Integer.parseInt(counter) +1;
1409 if (transaction == "FINAL") {
1411 } else if (counterTemp >= 60) {
1412 AssertionResult.setFailureMessage("vCPE Success POLICYCL Failure, reached maximum number of attempts ");
1413 AssertionResult.setFailure(true);
1416 vars.put("counter", Integer.toString(counterTemp));</stringProp>
1422 <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="vCPE Failure" enabled="true">
1423 <stringProp name="ThreadGroup.on_sample_error">startnextloop</stringProp>
1424 <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true">
1425 <boolProp name="LoopController.continue_forever">false</boolProp>
1426 <intProp name="LoopController.loops">-1</intProp>
1428 <stringProp name="ThreadGroup.num_threads">1</stringProp>
1429 <stringProp name="ThreadGroup.ramp_time">1</stringProp>
1430 <boolProp name="ThreadGroup.scheduler">true</boolProp>
1431 <stringProp name="ThreadGroup.duration">${duration}</stringProp>
1432 <stringProp name="ThreadGroup.delay">5</stringProp>
1433 <boolProp name="ThreadGroup.same_user_on_next_iteration">true</boolProp>
1436 <UserParameters guiclass="UserParametersGui" testclass="UserParameters" testname="Set consumer group per scenario" enabled="true">
1437 <collectionProp name="UserParameters.names">
1438 <stringProp name="-308835287">consumerGroup</stringProp>
1440 <collectionProp name="UserParameters.thread_values">
1441 <collectionProp name="-1129400645">
1442 <stringProp name="-1294689816">vcpefailure</stringProp>
1445 <boolProp name="UserParameters.per_iteration">false</boolProp>
1446 <stringProp name="TestPlan.comments">Global to the thread group</stringProp>
1449 <UserParameters guiclass="UserParametersGui" testclass="UserParameters" testname="Set request id per cycle" enabled="true">
1450 <collectionProp name="UserParameters.names">
1451 <stringProp name="693933066">requestId</stringProp>
1453 <collectionProp name="UserParameters.thread_values">
1454 <collectionProp name="681405977">
1455 <stringProp name="118040362">${__UUID()}</stringProp>
1458 <boolProp name="UserParameters.per_iteration">true</boolProp>
1459 <stringProp name="TestPlan.comments">Update on a per iteration basis</stringProp>
1462 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="DCAE[DCAE_TOPIC]: ONSET" enabled="true">
1463 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
1464 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
1465 <collectionProp name="Arguments.arguments">
1466 <elementProp name="" elementType="HTTPArgument">
1467 <boolProp name="HTTPArgument.always_encode">false</boolProp>
1468 <stringProp name="Argument.value">{
1469 "closedLoopControlName": "ControlLoop-vCPE-Fail",
1470 "closedLoopAlarmStart": 1463679805324,
1471 "closedLoopEventClient": "DCAE_INSTANCE_ID.dcae-tca",
1472 "closedLoopEventStatus": "ONSET",
1473 "requestID": "${requestId}",
1474 "target_type": "VNF",
1475 "target": "generic-vnf.vnf-id",
1476 "AAI": {
1477 "vserver.is-closed-loop-disabled": "false",
1478 "vserver.prov-status": "ACTIVE",
1479 "generic-vnf.vnf-id": "a_fail_vnf_id"
1481 "from": "DCAE",
1482 "version": "1.0.2"
1484 <stringProp name="Argument.metadata">=</stringProp>
1488 <stringProp name="HTTPSampler.domain">${DROOLS_HOST}</stringProp>
1489 <stringProp name="HTTPSampler.port">${DROOLS_PORT}</stringProp>
1490 <stringProp name="HTTPSampler.protocol">https</stringProp>
1491 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
1492 <stringProp name="HTTPSampler.path">policy/pdp/engine/topics/sources/dmaap/DCAE_TOPIC/events</stringProp>
1493 <stringProp name="HTTPSampler.method">PUT</stringProp>
1494 <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
1495 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
1496 <boolProp name="HTTPSampler.use_keepalive">false</boolProp>
1497 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
1498 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
1499 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
1500 <stringProp name="HTTPSampler.response_timeout"></stringProp>
1503 <HeaderManager guiclass="HeaderPanel" testclass="HeaderManager" testname="HTTP Header Manager" enabled="true">
1504 <collectionProp name="HeaderManager.headers">
1505 <elementProp name="" elementType="Header">
1506 <stringProp name="Header.name">Content-Type</stringProp>
1507 <stringProp name="Header.value">text/plain</stringProp>
1513 <JSR223Sampler guiclass="TestBeanGUI" testclass="JSR223Sampler" testname="Init DMaaP Counter" enabled="true">
1514 <stringProp name="scriptLanguage">groovy</stringProp>
1515 <stringProp name="parameters"></stringProp>
1516 <stringProp name="filename"></stringProp>
1517 <stringProp name="cacheKey">true</stringProp>
1518 <stringProp name="script">vars.put("counter", "0");</stringProp>
1521 <WhileController guiclass="WhileControllerGui" testclass="WhileController" testname="APPCL Restart Loop Controller" enabled="true">
1522 <stringProp name="WhileController.condition">${__javaScript(${counter} < 10)}</stringProp>
1525 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="POLICY[APPC-LCM-READ]: Restart" enabled="true">
1526 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
1527 <collectionProp name="Arguments.arguments">
1528 <elementProp name="filter" elementType="HTTPArgument">
1529 <boolProp name="HTTPArgument.always_encode">true</boolProp>
1530 <stringProp name="Argument.value">{"class":"And", "filters": [ { "class":"Equals", "field":"request-id", "value":"${requestId}" }, { "class":"Equals", "field":"rpc-name", "value":"restart" }]}</stringProp>
1531 <stringProp name="Argument.metadata">=</stringProp>
1532 <boolProp name="HTTPArgument.use_equals">true</boolProp>
1533 <stringProp name="Argument.name">filter</stringProp>
1537 <stringProp name="HTTPSampler.domain">${DMAAP_HOST}</stringProp>
1538 <stringProp name="HTTPSampler.port">${DMAAP_PORT}</stringProp>
1539 <stringProp name="HTTPSampler.protocol">https</stringProp>
1540 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
1541 <stringProp name="HTTPSampler.path">events/APPC-LCM-READ/${consumerGroup}/1?timeout=15000&limit=1</stringProp>
1542 <stringProp name="HTTPSampler.method">GET</stringProp>
1543 <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
1544 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
1545 <boolProp name="HTTPSampler.use_keepalive">false</boolProp>
1546 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
1547 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
1548 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
1549 <stringProp name="HTTPSampler.response_timeout"></stringProp>
1552 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="No []" enabled="true">
1553 <collectionProp name="Asserion.test_strings">
1554 <stringProp name="2914">[]</stringProp>
1556 <stringProp name="Assertion.custom_message"></stringProp>
1557 <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
1558 <boolProp name="Assertion.assume_success">false</boolProp>
1559 <intProp name="Assertion.test_type">12</intProp>
1560 </ResponseAssertion>
1562 <RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor" testname="request-id extractor" enabled="true">
1563 <stringProp name="RegexExtractor.useHeaders">false</stringProp>
1564 <stringProp name="RegexExtractor.refname">requestIdOnset</stringProp>
1565 <stringProp name="RegexExtractor.regex">\\"request-id\\": \\"(.+?)\\"</stringProp>
1566 <stringProp name="RegexExtractor.template">$1$</stringProp>
1567 <stringProp name="RegexExtractor.default">none</stringProp>
1568 <stringProp name="RegexExtractor.match_number"></stringProp>
1571 <RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor" testname="correlation-id extractor" enabled="true">
1572 <stringProp name="RegexExtractor.useHeaders">false</stringProp>
1573 <stringProp name="RegexExtractor.refname">correlationId</stringProp>
1574 <stringProp name="RegexExtractor.regex">correlation-id\\": \\"(.+?)\\"</stringProp>
1575 <stringProp name="RegexExtractor.template">$1$</stringProp>
1576 <stringProp name="RegexExtractor.default">none</stringProp>
1577 <stringProp name="RegexExtractor.match_number"></stringProp>
1580 <RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor" testname="sub-request-id extractor" enabled="true">
1581 <stringProp name="RegexExtractor.useHeaders">false</stringProp>
1582 <stringProp name="RegexExtractor.refname">subRequestId</stringProp>
1583 <stringProp name="RegexExtractor.regex">sub-request-id\\": \\"(.+?)\\"</stringProp>
1584 <stringProp name="RegexExtractor.template">$1$</stringProp>
1585 <stringProp name="RegexExtractor.default">none</stringProp>
1586 <stringProp name="RegexExtractor.match_number"></stringProp>
1589 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
1590 <stringProp name="scriptLanguage">groovy</stringProp>
1591 <stringProp name="parameters"></stringProp>
1592 <stringProp name="filename"></stringProp>
1593 <stringProp name="cacheKey">true</stringProp>
1594 <stringProp name="script">String requestIdOnset = vars.get("requestIdOnset");
1595 String requestId = vars.get("requestId");
1596 String correlationId = vars.get("correlationId");
1597 String subRequestId = vars.get("subRequestId");
1598 String counter = vars.get("counter");
1600 String transaction = "none";
1602 log.info ("The requestId id is " + requestId);
1603 log.info ("The requestIdOnset id is " + requestIdOnset);
1604 log.info ("The correlation id is " + correlationId);
1605 log.info ("The subrequest id is " + subRequestId);
1606 log.info ("The counter is " + counter);
1608 if ( requestId == requestIdOnset ) {
1609 if ( correlationId == "none" || subRequestId == "none" ) {
1610 transaction = "FINAL";
1611 log.info ("Final Failure Transaction");
1612 AssertionResult.setFailureMessage("Missing correlationId or subRequestId");
1613 AssertionResult.setFailure(true);
1615 transaction = "FINAL";
1616 vars.put("transaction", "FINAL");
1617 log.info ("Final Success Transaction");
1621 int counterTemp = Integer.parseInt(counter) +1;
1622 if (transaction == "FINAL") {
1624 } else if (counterTemp >= 10) {
1625 AssertionResult.setFailureMessage("vCPE Failure APPCL Failure, reached maximum number of 10 attempts ");
1626 AssertionResult.setFailure(true);
1629 vars.put("counter", Integer.toString(counterTemp));
1636 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="APPC[APPC-LCM-READ]: FAILURE" enabled="true">
1637 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
1638 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
1639 <collectionProp name="Arguments.arguments">
1640 <elementProp name="" elementType="HTTPArgument">
1641 <boolProp name="HTTPArgument.always_encode">false</boolProp>
1642 <stringProp name="Argument.value">{
1643 "body": {
1644 "output": {
1645 "common-header": {
1646 "timestamp": "2020-05-07T15:56:34.845Z",
1647 "api-ver": "2.00",
1648 "originator-id": "${requestId}",
1649 "request-id": "${requestId}",
1650 "sub-request-id": "${subRequestId}",
1651 "flags": {}
1653 "status": {
1654 "code": 450,
1655 "message": "Restart Failed"
1659 "version": "2.0",
1660 "rpc-name": "restart",
1661 "correlation-id": "${correlationId}",
1662 "type": "response"
1665 <stringProp name="Argument.metadata">=</stringProp>
1669 <stringProp name="HTTPSampler.domain">${DROOLS_HOST}</stringProp>
1670 <stringProp name="HTTPSampler.port">${DROOLS_PORT}</stringProp>
1671 <stringProp name="HTTPSampler.protocol">https</stringProp>
1672 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
1673 <stringProp name="HTTPSampler.path">policy/pdp/engine/topics/sources/dmaap/APPC-LCM-WRITE/events</stringProp>
1674 <stringProp name="HTTPSampler.method">PUT</stringProp>
1675 <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
1676 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
1677 <boolProp name="HTTPSampler.use_keepalive">false</boolProp>
1678 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
1679 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
1680 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
1681 <stringProp name="HTTPSampler.response_timeout"></stringProp>
1684 <HeaderManager guiclass="HeaderPanel" testclass="HeaderManager" testname="HTTP Header Manager" enabled="true">
1685 <collectionProp name="HeaderManager.headers">
1686 <elementProp name="" elementType="Header">
1687 <stringProp name="Header.name">Content-Type</stringProp>
1688 <stringProp name="Header.value">text/plain</stringProp>
1694 <JSR223Sampler guiclass="TestBeanGUI" testclass="JSR223Sampler" testname="Init DMaaP Counter" enabled="true">
1695 <stringProp name="scriptLanguage">groovy</stringProp>
1696 <stringProp name="parameters"></stringProp>
1697 <stringProp name="filename"></stringProp>
1698 <stringProp name="cacheKey">true</stringProp>
1699 <stringProp name="script">vars.put("counter", "0");</stringProp>
1702 <WhileController guiclass="WhileControllerGui" testclass="WhileController" testname="Final Success Controller" enabled="true">
1703 <stringProp name="WhileController.condition">${__javaScript(${counter} < 60)}</stringProp>
1706 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="POLICY[POLICY-CL-MGT]: FINAL_FAILURE" enabled="true">
1707 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
1708 <collectionProp name="Arguments.arguments">
1709 <elementProp name="filter" elementType="HTTPArgument">
1710 <boolProp name="HTTPArgument.always_encode">true</boolProp>
1711 <stringProp name="Argument.value">{"class":"And", "filters": [ { "class":"Equals", "field":"requestId", "value":"${requestId}" }, { "class":"Equals", "field":"notification", "value":"FINAL: FAILURE" }]}</stringProp>
1712 <stringProp name="Argument.metadata">=</stringProp>
1713 <boolProp name="HTTPArgument.use_equals">true</boolProp>
1714 <stringProp name="Argument.name">filter</stringProp>
1718 <stringProp name="HTTPSampler.domain">${DMAAP_HOST}</stringProp>
1719 <stringProp name="HTTPSampler.port">${DMAAP_PORT}</stringProp>
1720 <stringProp name="HTTPSampler.protocol">https</stringProp>
1721 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
1722 <stringProp name="HTTPSampler.path">events/POLICY-CL-MGT/${consumerGroup}/1?timeout=15000&limit=1</stringProp>
1723 <stringProp name="HTTPSampler.method">GET</stringProp>
1724 <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
1725 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
1726 <boolProp name="HTTPSampler.use_keepalive">false</boolProp>
1727 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
1728 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
1729 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
1730 <stringProp name="HTTPSampler.response_timeout"></stringProp>
1733 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="No []" enabled="true">
1734 <collectionProp name="Asserion.test_strings">
1735 <stringProp name="2914">[]</stringProp>
1737 <stringProp name="Assertion.custom_message"></stringProp>
1738 <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
1739 <boolProp name="Assertion.assume_success">false</boolProp>
1740 <intProp name="Assertion.test_type">12</intProp>
1741 </ResponseAssertion>
1743 <RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor" testname="requestId extractor" enabled="true">
1744 <stringProp name="RegexExtractor.useHeaders">false</stringProp>
1745 <stringProp name="RegexExtractor.refname">requestIdOnset</stringProp>
1746 <stringProp name="RegexExtractor.regex">requestId\\": \\"(.+?)\\"</stringProp>
1747 <stringProp name="RegexExtractor.template">$1$</stringProp>
1748 <stringProp name="RegexExtractor.default">none</stringProp>
1749 <stringProp name="RegexExtractor.match_number"></stringProp>
1752 <RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor" testname="notification extractor" enabled="true">
1753 <stringProp name="RegexExtractor.useHeaders">false</stringProp>
1754 <stringProp name="RegexExtractor.refname">notification</stringProp>
1755 <stringProp name="RegexExtractor.regex">notification\\": \\"FINAL: (.+?)\\"</stringProp>
1756 <stringProp name="RegexExtractor.template">$1$</stringProp>
1757 <stringProp name="RegexExtractor.default">none</stringProp>
1758 <stringProp name="RegexExtractor.match_number"></stringProp>
1761 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
1762 <stringProp name="scriptLanguage">groovy</stringProp>
1763 <stringProp name="parameters"></stringProp>
1764 <stringProp name="filename"></stringProp>
1765 <stringProp name="cacheKey">true</stringProp>
1766 <stringProp name="script">String requestIdOnset = vars.get("requestIdOnset");
1767 String requestId = vars.get("requestId");
1768 String notification = vars.get("notification");
1769 String counter = vars.get("counter");
1771 String transaction = "none";
1773 log.info ("The requestId id is " + requestId);
1774 log.info ("The requestIdOnset id is " + requestIdOnset);
1775 log.info ("The notification is " + notification);
1776 log.info ("The transaction is " + transaction);
1777 log.info ("The counter is " + counter);
1779 if ( requestId == requestIdOnset ) {
1780 if ( notification == "SUCCESS" ) {
1781 transaction = "FINAL";
1782 log.info ("Final Success Transaction");
1783 AssertionResult.setFailureMessage("Unexpected SUCCESS notification");
1784 AssertionResult.setFailure(true);
1785 } else if ( notification == "FAILURE" ) {
1786 transaction = "FINAL";
1787 log.info ("Final Failure Transaction");
1791 int counterTemp = Integer.parseInt(counter) +1;
1792 if (transaction == "FINAL") {
1794 } else if (counterTemp >= 60) {
1795 AssertionResult.setFailureMessage("vCPE Failure POLICYCL Failure, reached maximum number of 10 attempts ");
1796 AssertionResult.setFailure(true);
1799 vars.put("counter", Integer.toString(counterTemp));</stringProp>
1805 <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="vDNS Success" enabled="true">
1806 <stringProp name="ThreadGroup.on_sample_error">startnextloop</stringProp>
1807 <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true">
1808 <boolProp name="LoopController.continue_forever">false</boolProp>
1809 <intProp name="LoopController.loops">-1</intProp>
1811 <stringProp name="ThreadGroup.num_threads">1</stringProp>
1812 <stringProp name="ThreadGroup.ramp_time">1</stringProp>
1813 <boolProp name="ThreadGroup.scheduler">true</boolProp>
1814 <stringProp name="ThreadGroup.duration">${duration}</stringProp>
1815 <stringProp name="ThreadGroup.delay">10</stringProp>
1816 <boolProp name="ThreadGroup.same_user_on_next_iteration">true</boolProp>
1819 <UserParameters guiclass="UserParametersGui" testclass="UserParameters" testname="Set consumer group per scenario" enabled="true">
1820 <collectionProp name="UserParameters.names">
1821 <stringProp name="-308835287">consumerGroup</stringProp>
1823 <collectionProp name="UserParameters.thread_values">
1824 <collectionProp name="-2069404111">
1825 <stringProp name="-27349072">vdnssuccess</stringProp>
1828 <boolProp name="UserParameters.per_iteration">false</boolProp>
1829 <stringProp name="TestPlan.comments">Global to the thread group</stringProp>
1832 <UserParameters guiclass="UserParametersGui" testclass="UserParameters" testname="Set request id per cycle" enabled="true">
1833 <collectionProp name="UserParameters.names">
1834 <stringProp name="693933066">requestId</stringProp>
1836 <collectionProp name="UserParameters.thread_values">
1837 <collectionProp name="681405977">
1838 <stringProp name="118040362">${__UUID()}</stringProp>
1841 <boolProp name="UserParameters.per_iteration">true</boolProp>
1842 <stringProp name="TestPlan.comments">Update on a per iteration basis</stringProp>
1845 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="DCAE[DCAE_TOPIC]: ONSET" enabled="true">
1846 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
1847 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
1848 <collectionProp name="Arguments.arguments">
1849 <elementProp name="" elementType="HTTPArgument">
1850 <boolProp name="HTTPArgument.always_encode">false</boolProp>
1851 <stringProp name="Argument.value">{
1852 "closedLoopControlName": "ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3",
1853 "closedLoopAlarmStart": 1463679805324,
1854 "closedLoopEventClient": "microservice.stringmatcher",
1855 "closedLoopEventStatus": "ONSET",
1856 "requestID": "${requestId}",
1857 "target_type": "VNF",
1858 "target": "vserver.vserver-name",
1859 "AAI": {
1860 "vserver.is-closed-loop-disabled": "false",
1861 "vserver.prov-status": "ACTIVE",
1862 "vserver.vserver-name": "OzVServer"
1864 "from": "DCAE",
1865 "version": "1.0.2"
1867 <stringProp name="Argument.metadata">=</stringProp>
1871 <stringProp name="HTTPSampler.domain">${DROOLS_HOST}</stringProp>
1872 <stringProp name="HTTPSampler.port">${DROOLS_PORT}</stringProp>
1873 <stringProp name="HTTPSampler.protocol">https</stringProp>
1874 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
1875 <stringProp name="HTTPSampler.path">policy/pdp/engine/topics/sources/dmaap/DCAE_TOPIC/events</stringProp>
1876 <stringProp name="HTTPSampler.method">PUT</stringProp>
1877 <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
1878 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
1879 <boolProp name="HTTPSampler.use_keepalive">false</boolProp>
1880 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
1881 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
1882 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
1883 <stringProp name="HTTPSampler.response_timeout"></stringProp>
1886 <HeaderManager guiclass="HeaderPanel" testclass="HeaderManager" testname="HTTP Header Manager" enabled="true">
1887 <collectionProp name="HeaderManager.headers">
1888 <elementProp name="" elementType="Header">
1889 <stringProp name="Header.name">Content-Type</stringProp>
1890 <stringProp name="Header.value">text/plain</stringProp>
1896 <JSR223Sampler guiclass="TestBeanGUI" testclass="JSR223Sampler" testname="Init DMaaP Counter" enabled="true">
1897 <stringProp name="scriptLanguage">groovy</stringProp>
1898 <stringProp name="parameters"></stringProp>
1899 <stringProp name="filename"></stringProp>
1900 <stringProp name="cacheKey">true</stringProp>
1901 <stringProp name="script">vars.put("counter", "0");
1902 vars.put("transaction", "none");</stringProp>
1905 <WhileController guiclass="WhileControllerGui" testclass="WhileController" testname="Final Success Controller" enabled="true">
1906 <stringProp name="WhileController.condition">${__javaScript(${counter} < 60)}</stringProp>
1909 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="POLICY[POLICY-CL-MGT]: FINAL_SUCCESS" enabled="true">
1910 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
1911 <collectionProp name="Arguments.arguments">
1912 <elementProp name="filter" elementType="HTTPArgument">
1913 <boolProp name="HTTPArgument.always_encode">true</boolProp>
1914 <stringProp name="Argument.value">{"class":"And", "filters": [ { "class":"Equals", "field":"requestId", "value":"${requestId}" }, { "class":"Equals", "field":"notification", "value":"FINAL: SUCCESS" }]}</stringProp>
1915 <stringProp name="Argument.metadata">=</stringProp>
1916 <boolProp name="HTTPArgument.use_equals">true</boolProp>
1917 <stringProp name="Argument.name">filter</stringProp>
1921 <stringProp name="HTTPSampler.domain">${DMAAP_HOST}</stringProp>
1922 <stringProp name="HTTPSampler.port">${DMAAP_PORT}</stringProp>
1923 <stringProp name="HTTPSampler.protocol">https</stringProp>
1924 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
1925 <stringProp name="HTTPSampler.path">events/POLICY-CL-MGT/${consumerGroup}/1?timeout=20000&limit=1</stringProp>
1926 <stringProp name="HTTPSampler.method">GET</stringProp>
1927 <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
1928 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
1929 <boolProp name="HTTPSampler.use_keepalive">false</boolProp>
1930 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
1931 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
1932 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
1933 <stringProp name="HTTPSampler.response_timeout"></stringProp>
1936 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="No []" enabled="true">
1937 <collectionProp name="Asserion.test_strings">
1938 <stringProp name="2914">[]</stringProp>
1940 <stringProp name="Assertion.custom_message"></stringProp>
1941 <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
1942 <boolProp name="Assertion.assume_success">false</boolProp>
1943 <intProp name="Assertion.test_type">12</intProp>
1944 </ResponseAssertion>
1946 <RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor" testname="requestId extractor" enabled="true">
1947 <stringProp name="RegexExtractor.useHeaders">false</stringProp>
1948 <stringProp name="RegexExtractor.refname">requestIdOnset</stringProp>
1949 <stringProp name="RegexExtractor.regex">requestId\\": \\"(.+?)\\"</stringProp>
1950 <stringProp name="RegexExtractor.template">$1$</stringProp>
1951 <stringProp name="RegexExtractor.default">none</stringProp>
1952 <stringProp name="RegexExtractor.match_number"></stringProp>
1955 <RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor" testname="notification extractor" enabled="true">
1956 <stringProp name="RegexExtractor.useHeaders">false</stringProp>
1957 <stringProp name="RegexExtractor.refname">notification</stringProp>
1958 <stringProp name="RegexExtractor.regex">notification\\": \\"FINAL: (.+?)\\"</stringProp>
1959 <stringProp name="RegexExtractor.template">$1$</stringProp>
1960 <stringProp name="RegexExtractor.default">none</stringProp>
1961 <stringProp name="RegexExtractor.match_number"></stringProp>
1964 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
1965 <stringProp name="scriptLanguage">groovy</stringProp>
1966 <stringProp name="parameters"></stringProp>
1967 <stringProp name="filename"></stringProp>
1968 <stringProp name="cacheKey">true</stringProp>
1969 <stringProp name="script">String requestIdOnset = vars.get("requestIdOnset");
1970 String requestId = vars.get("requestId");
1971 String notification = vars.get("notification");
1972 String counter = vars.get("counter");
1974 String transaction = "none";
1976 log.info ("The requestId id is " + requestId);
1977 log.info ("The requestIdOnset id is " + requestIdOnset);
1978 log.info ("The notification is " + notification);
1979 log.info ("The transaction is " + transaction);
1980 log.info ("The counter is " + counter);
1982 if ( requestId == requestIdOnset ) {
1983 if ( notification == "SUCCESS" ) {
1984 transaction = "FINAL";
1985 log.info ("Final Success Transaction");
1986 log.info ("The notification is SUCCESS");
1987 } else if ( notification == "FAILURE" ) {
1988 transaction = "FINAL";
1989 log.info ("Final Failure Transaction");
1990 AssertionResult.setFailureMessage("Bad final notification");
1991 AssertionResult.setFailure(true);
1995 int counterTemp = Integer.parseInt(counter) +1;
1996 if (transaction == "FINAL") {
1998 } else if (counterTemp >= 60) {
1999 AssertionResult.setFailureMessage("vDNS Success POLICYCL Failure, reached maximum number of attempts ");
2000 AssertionResult.setFailure(true);
2003 vars.put("counter", Integer.toString(counterTemp));</stringProp>
2009 <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="vDNS Failure" enabled="true">
2010 <stringProp name="ThreadGroup.on_sample_error">startnextloop</stringProp>
2011 <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true">
2012 <boolProp name="LoopController.continue_forever">false</boolProp>
2013 <intProp name="LoopController.loops">-1</intProp>
2015 <stringProp name="ThreadGroup.num_threads">1</stringProp>
2016 <stringProp name="ThreadGroup.ramp_time">1</stringProp>
2017 <boolProp name="ThreadGroup.scheduler">true</boolProp>
2018 <stringProp name="ThreadGroup.duration">${duration}</stringProp>
2019 <stringProp name="ThreadGroup.delay">15</stringProp>
2020 <boolProp name="ThreadGroup.same_user_on_next_iteration">true</boolProp>
2023 <UserParameters guiclass="UserParametersGui" testclass="UserParameters" testname="Set consumer group per scenario" enabled="true">
2024 <collectionProp name="UserParameters.names">
2025 <stringProp name="-308835287">consumerGroup</stringProp>
2027 <collectionProp name="UserParameters.thread_values">
2028 <collectionProp name="877384373">
2029 <stringProp name="753246519">vdnsfailure</stringProp>
2032 <boolProp name="UserParameters.per_iteration">false</boolProp>
2033 <stringProp name="TestPlan.comments">Global to the thread group</stringProp>
2036 <UserParameters guiclass="UserParametersGui" testclass="UserParameters" testname="Set request id per cycle" enabled="true">
2037 <collectionProp name="UserParameters.names">
2038 <stringProp name="693933066">requestId</stringProp>
2040 <collectionProp name="UserParameters.thread_values">
2041 <collectionProp name="681405977">
2042 <stringProp name="118040362">${__UUID()}</stringProp>
2045 <boolProp name="UserParameters.per_iteration">true</boolProp>
2046 <stringProp name="TestPlan.comments">Update on a per iteration basis</stringProp>
2049 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="DCAE[DCAE_TOPIC]: ONSET" enabled="true">
2050 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
2051 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
2052 <collectionProp name="Arguments.arguments">
2053 <elementProp name="" elementType="HTTPArgument">
2054 <boolProp name="HTTPArgument.always_encode">false</boolProp>
2055 <stringProp name="Argument.value">{
2056 "closedLoopControlName": "ControlLoop-vDNS-Fail",
2057 "closedLoopAlarmStart": 1463679805324,
2058 "closedLoopEventClient": "microservice.stringmatcher",
2059 "closedLoopEventStatus": "ONSET",
2060 "requestID": "${requestId}",
2061 "target_type": "VNF",
2062 "target": "vserver.vserver-name",
2063 "AAI": {
2064 "vserver.is-closed-loop-disabled": "false",
2065 "vserver.prov-status": "ACTIVE",
2066 "vserver.vserver-name": "AAA"
2068 "from": "DCAE",
2069 "version": "1.0.2"
2071 <stringProp name="Argument.metadata">=</stringProp>
2075 <stringProp name="HTTPSampler.domain">${DROOLS_HOST}</stringProp>
2076 <stringProp name="HTTPSampler.port">${DROOLS_PORT}</stringProp>
2077 <stringProp name="HTTPSampler.protocol">https</stringProp>
2078 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
2079 <stringProp name="HTTPSampler.path">policy/pdp/engine/topics/sources/dmaap/DCAE_TOPIC/events</stringProp>
2080 <stringProp name="HTTPSampler.method">PUT</stringProp>
2081 <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
2082 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
2083 <boolProp name="HTTPSampler.use_keepalive">false</boolProp>
2084 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
2085 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
2086 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
2087 <stringProp name="HTTPSampler.response_timeout"></stringProp>
2090 <HeaderManager guiclass="HeaderPanel" testclass="HeaderManager" testname="HTTP Header Manager" enabled="true">
2091 <collectionProp name="HeaderManager.headers">
2092 <elementProp name="" elementType="Header">
2093 <stringProp name="Header.name">Content-Type</stringProp>
2094 <stringProp name="Header.value">text/plain</stringProp>
2100 <JSR223Sampler guiclass="TestBeanGUI" testclass="JSR223Sampler" testname="Init DMaaP Counter" enabled="true">
2101 <stringProp name="scriptLanguage">groovy</stringProp>
2102 <stringProp name="parameters"></stringProp>
2103 <stringProp name="filename"></stringProp>
2104 <stringProp name="cacheKey">true</stringProp>
2105 <stringProp name="script">vars.put("counter", "0");
2106 vars.put("transaction", "none");</stringProp>
2109 <WhileController guiclass="WhileControllerGui" testclass="WhileController" testname="Final Failure Controller" enabled="true">
2110 <stringProp name="WhileController.condition">${__javaScript(${counter} < 60)}</stringProp>
2113 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="POLICY[POLICY-CL-MGT]: FINAL_FAILURE" enabled="true">
2114 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
2115 <collectionProp name="Arguments.arguments">
2116 <elementProp name="filter" elementType="HTTPArgument">
2117 <boolProp name="HTTPArgument.always_encode">true</boolProp>
2118 <stringProp name="Argument.value">{"class":"And", "filters": [ { "class":"Equals", "field":"requestId", "value":"${requestId}" }, { "class":"Equals", "field":"notification", "value":"FINAL: SUCCESS" }]}</stringProp>
2119 <stringProp name="Argument.metadata">=</stringProp>
2120 <boolProp name="HTTPArgument.use_equals">true</boolProp>
2121 <stringProp name="Argument.name">filter</stringProp>
2125 <stringProp name="HTTPSampler.domain">${DMAAP_HOST}</stringProp>
2126 <stringProp name="HTTPSampler.port">${DMAAP_PORT}</stringProp>
2127 <stringProp name="HTTPSampler.protocol">https</stringProp>
2128 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
2129 <stringProp name="HTTPSampler.path">events/POLICY-CL-MGT/${consumerGroup}/1?timeout=20000&limit=1</stringProp>
2130 <stringProp name="HTTPSampler.method">GET</stringProp>
2131 <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
2132 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
2133 <boolProp name="HTTPSampler.use_keepalive">false</boolProp>
2134 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
2135 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
2136 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
2137 <stringProp name="HTTPSampler.response_timeout"></stringProp>
2140 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="No []" enabled="true">
2141 <collectionProp name="Asserion.test_strings">
2142 <stringProp name="2914">[]</stringProp>
2144 <stringProp name="Assertion.custom_message"></stringProp>
2145 <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
2146 <boolProp name="Assertion.assume_success">false</boolProp>
2147 <intProp name="Assertion.test_type">12</intProp>
2148 </ResponseAssertion>
2150 <RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor" testname="requestId extractor" enabled="true">
2151 <stringProp name="RegexExtractor.useHeaders">false</stringProp>
2152 <stringProp name="RegexExtractor.refname">requestIdOnset</stringProp>
2153 <stringProp name="RegexExtractor.regex">requestId\\": \\"(.+?)\\"</stringProp>
2154 <stringProp name="RegexExtractor.template">$1$</stringProp>
2155 <stringProp name="RegexExtractor.default">none</stringProp>
2156 <stringProp name="RegexExtractor.match_number"></stringProp>
2159 <RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor" testname="notification extractor" enabled="true">
2160 <stringProp name="RegexExtractor.useHeaders">false</stringProp>
2161 <stringProp name="RegexExtractor.refname">notification</stringProp>
2162 <stringProp name="RegexExtractor.regex">notification\\": \\"FINAL: (.+?)\\"</stringProp>
2163 <stringProp name="RegexExtractor.template">$1$</stringProp>
2164 <stringProp name="RegexExtractor.default">none</stringProp>
2165 <stringProp name="RegexExtractor.match_number"></stringProp>
2168 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
2169 <stringProp name="scriptLanguage">groovy</stringProp>
2170 <stringProp name="parameters"></stringProp>
2171 <stringProp name="filename"></stringProp>
2172 <stringProp name="cacheKey">true</stringProp>
2173 <stringProp name="script">String requestIdOnset = vars.get("requestIdOnset");
2174 String requestId = vars.get("requestId");
2175 String notification = vars.get("notification");
2176 String counter = vars.get("counter");
2178 String transaction = "none";
2180 log.info ("The requestId id is " + requestId);
2181 log.info ("The requestIdOnset id is " + requestIdOnset);
2182 log.info ("The notification is " + notification);
2183 log.info ("The transaction is " + transaction);
2184 log.info ("The counter is " + counter);
2186 if ( requestId == requestIdOnset ) {
2187 if ( notification == "SUCCESS" ) {
2188 transaction = "FINAL";
2189 log.info ("Final Success Transaction");
2190 AssertionResult.setFailureMessage("Bad final notification");
2191 AssertionResult.setFailure(true);
2192 } else if ( notification == "FAILURE" ) {
2193 transaction = "FINAL";
2194 log.info ("Final Failure Transaction");
2198 int counterTemp = Integer.parseInt(counter) +1;
2199 if (transaction == "FINAL") {
2201 } else if (counterTemp >= 60) {
2202 AssertionResult.setFailureMessage("vDNS Failure POLICYCL Failure, reached maximum number of attempts ");
2203 AssertionResult.setFailure(true);
2206 vars.put("counter", Integer.toString(counterTemp));</stringProp>
2212 <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="vFW Success" enabled="true">
2213 <stringProp name="ThreadGroup.on_sample_error">startnextloop</stringProp>
2214 <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true">
2215 <boolProp name="LoopController.continue_forever">false</boolProp>
2216 <intProp name="LoopController.loops">-1</intProp>
2218 <stringProp name="ThreadGroup.num_threads">1</stringProp>
2219 <stringProp name="ThreadGroup.ramp_time">1</stringProp>
2220 <boolProp name="ThreadGroup.scheduler">true</boolProp>
2221 <stringProp name="ThreadGroup.duration">${duration}</stringProp>
2222 <stringProp name="ThreadGroup.delay">20</stringProp>
2223 <boolProp name="ThreadGroup.same_user_on_next_iteration">true</boolProp>
2226 <UserParameters guiclass="UserParametersGui" testclass="UserParameters" testname="Set consumer group per scenario" enabled="true">
2227 <collectionProp name="UserParameters.names">
2228 <stringProp name="-308835287">consumerGroup</stringProp>
2230 <collectionProp name="UserParameters.thread_values">
2231 <collectionProp name="-75926649">
2232 <stringProp name="-2021688740">vfwsuccess</stringProp>
2235 <boolProp name="UserParameters.per_iteration">false</boolProp>
2236 <stringProp name="TestPlan.comments">Global to the thread group</stringProp>
2239 <UserParameters guiclass="UserParametersGui" testclass="UserParameters" testname="Set request id per cycle" enabled="true">
2240 <collectionProp name="UserParameters.names">
2241 <stringProp name="693933066">requestId</stringProp>
2243 <collectionProp name="UserParameters.thread_values">
2244 <collectionProp name="681405977">
2245 <stringProp name="118040362">${__UUID()}</stringProp>
2248 <boolProp name="UserParameters.per_iteration">true</boolProp>
2249 <stringProp name="TestPlan.comments">Update on a per iteration basis</stringProp>
2252 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="DCAE[DCAE_TOPIC]: ONSET" enabled="true">
2253 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
2254 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
2255 <collectionProp name="Arguments.arguments">
2256 <elementProp name="" elementType="HTTPArgument">
2257 <boolProp name="HTTPArgument.always_encode">false</boolProp>
2258 <stringProp name="Argument.value">{
2259 "closedLoopControlName": "ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a",
2260 "closedLoopAlarmStart": 1463679805324,
2261 "closedLoopEventClient": "microservice.stringmatcher",
2262 "closedLoopEventStatus": "ONSET",
2263 "requestID": "${requestId}",
2264 "target_type": "VNF",
2265 "target": "generic-vnf.vnf-name",
2266 "AAI": {
2267 "vserver.is-closed-loop-disabled": "false",
2268 "vserver.prov-status": "ACTIVE",
2269 "generic-vnf.vnf-name": "fw0002vm002fw002",
2270 "vserver.vserver-name": "OzVServer"
2272 "from": "DCAE",
2273 "version": "1.0.2"
2276 <stringProp name="Argument.metadata">=</stringProp>
2280 <stringProp name="HTTPSampler.domain">${DROOLS_HOST}</stringProp>
2281 <stringProp name="HTTPSampler.port">${DROOLS_PORT}</stringProp>
2282 <stringProp name="HTTPSampler.protocol">https</stringProp>
2283 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
2284 <stringProp name="HTTPSampler.path">policy/pdp/engine/topics/sources/dmaap/DCAE_TOPIC/events</stringProp>
2285 <stringProp name="HTTPSampler.method">PUT</stringProp>
2286 <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
2287 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
2288 <boolProp name="HTTPSampler.use_keepalive">false</boolProp>
2289 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
2290 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
2291 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
2292 <stringProp name="HTTPSampler.response_timeout"></stringProp>
2295 <HeaderManager guiclass="HeaderPanel" testclass="HeaderManager" testname="HTTP Header Manager" enabled="true">
2296 <collectionProp name="HeaderManager.headers">
2297 <elementProp name="" elementType="Header">
2298 <stringProp name="Header.name">Content-Type</stringProp>
2299 <stringProp name="Header.value">text/plain</stringProp>
2305 <JSR223Sampler guiclass="TestBeanGUI" testclass="JSR223Sampler" testname="Init DMaaP Counter" enabled="true">
2306 <stringProp name="scriptLanguage">groovy</stringProp>
2307 <stringProp name="parameters"></stringProp>
2308 <stringProp name="filename"></stringProp>
2309 <stringProp name="cacheKey">true</stringProp>
2310 <stringProp name="script">vars.put("counter", "0");</stringProp>
2313 <WhileController guiclass="WhileControllerGui" testclass="WhileController" testname="APPCL Restart Loop Controller" enabled="true">
2314 <stringProp name="WhileController.condition">${__javaScript(${counter} < 10)}</stringProp>
2317 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="POLICY[APPC-CL]: Restart" enabled="true">
2318 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
2319 <collectionProp name="Arguments.arguments">
2320 <elementProp name="filter" elementType="HTTPArgument">
2321 <boolProp name="HTTPArgument.always_encode">true</boolProp>
2322 <stringProp name="Argument.value">{"class":"And", "filters": [ { "class":"Equals", "field":"RequestID", "value":"${requestId}" }, { "class":"Equals", "field":"Action", "value":"ModifyConfig" }]}</stringProp>
2323 <stringProp name="Argument.metadata">=</stringProp>
2324 <boolProp name="HTTPArgument.use_equals">true</boolProp>
2325 <stringProp name="Argument.name">filter</stringProp>
2329 <stringProp name="HTTPSampler.domain">${DMAAP_HOST}</stringProp>
2330 <stringProp name="HTTPSampler.port">${DMAAP_PORT}</stringProp>
2331 <stringProp name="HTTPSampler.protocol">https</stringProp>
2332 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
2333 <stringProp name="HTTPSampler.path">events/APPC-CL/${consumerGroup}/1?timeout=15000&limit=1</stringProp>
2334 <stringProp name="HTTPSampler.method">GET</stringProp>
2335 <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
2336 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
2337 <boolProp name="HTTPSampler.use_keepalive">false</boolProp>
2338 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
2339 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
2340 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
2341 <stringProp name="HTTPSampler.response_timeout"></stringProp>
2344 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="No []" enabled="true">
2345 <collectionProp name="Asserion.test_strings">
2346 <stringProp name="2914">[]</stringProp>
2348 <stringProp name="Assertion.custom_message"></stringProp>
2349 <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
2350 <boolProp name="Assertion.assume_success">false</boolProp>
2351 <intProp name="Assertion.test_type">12</intProp>
2352 </ResponseAssertion>
2354 <RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor" testname="RequestID extractor" enabled="true">
2355 <stringProp name="RegexExtractor.useHeaders">false</stringProp>
2356 <stringProp name="RegexExtractor.refname">requestIdOnset</stringProp>
2357 <stringProp name="RegexExtractor.regex">\\"RequestID\\": \\"(.+?)\\"</stringProp>
2358 <stringProp name="RegexExtractor.template">$1$</stringProp>
2359 <stringProp name="RegexExtractor.default">none</stringProp>
2360 <stringProp name="RegexExtractor.match_number"></stringProp>
2363 <RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor" testname="SubRequestID extractor" enabled="true">
2364 <stringProp name="RegexExtractor.useHeaders">false</stringProp>
2365 <stringProp name="RegexExtractor.refname">subRequestId</stringProp>
2366 <stringProp name="RegexExtractor.regex">SubRequestID\\": \\"(.+?)\\"</stringProp>
2367 <stringProp name="RegexExtractor.template">$1$</stringProp>
2368 <stringProp name="RegexExtractor.default">none</stringProp>
2369 <stringProp name="RegexExtractor.match_number"></stringProp>
2372 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
2373 <stringProp name="scriptLanguage">groovy</stringProp>
2374 <stringProp name="parameters"></stringProp>
2375 <stringProp name="filename"></stringProp>
2376 <stringProp name="cacheKey">true</stringProp>
2377 <stringProp name="script">String requestIdOnset = vars.get("requestIdOnset");
2378 String requestId = vars.get("requestId");
2379 String subRequestId = vars.get("subRequestId");
2380 String counter = vars.get("counter");
2382 String transaction = "none";
2384 log.info ("The requestId id is " + requestId);
2385 log.info ("The requestIdOnset id is " + requestIdOnset);
2386 log.info ("The subrequest id is " + subRequestId);
2387 log.info ("The counter is " + counter);
2389 if ( requestId == requestIdOnset ) {
2390 if ( subRequestId == "none" ) {
2391 transaction = "FINAL";
2392 log.info ("APPC ModifyConfig does not contain enough information");
2393 AssertionResult.setFailureMessage("Missing subRequestId");
2394 AssertionResult.setFailure(true);
2396 transaction = "FINAL";
2397 vars.put("transaction", "FINAL");
2398 log.info ("Final Success Transaction");
2402 int counterTemp = Integer.parseInt(counter) +1;
2403 if (transaction == "FINAL") {
2405 } else if (counterTemp >= 10) {
2406 AssertionResult.setFailureMessage("vFW Success APPCCL Failure, reached maximum number of 10 attempts ");
2407 AssertionResult.setFailure(true);
2410 vars.put("counter", Integer.toString(counterTemp));
2417 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="APPC[APPC-CL]: SUCCESS" enabled="true">
2418 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
2419 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
2420 <collectionProp name="Arguments.arguments">
2421 <elementProp name="" elementType="HTTPArgument">
2422 <boolProp name="HTTPArgument.always_encode">false</boolProp>
2423 <stringProp name="Argument.value">{
2424 "CommonHeader": {
2425 "TimeStamp": 1506051879001,
2426 "APIver": "1.01",
2427 "RequestID": "${requestId}",
2428 "SubRequestID": "${subRequestId}",
2429 "RequestTrack": [],
2430 "Flags": []
2432 "Status": {
2433 "Code": 400,
2434 "Value": "SUCCESS"
2436 "Payload": {
2437 "generic-vnf.vnf-id": "f17face5-69cb-4c88-9e0b-7426db7edddd"
2440 <stringProp name="Argument.metadata">=</stringProp>
2444 <stringProp name="HTTPSampler.domain">${DROOLS_HOST}</stringProp>
2445 <stringProp name="HTTPSampler.port">${DROOLS_PORT}</stringProp>
2446 <stringProp name="HTTPSampler.protocol">https</stringProp>
2447 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
2448 <stringProp name="HTTPSampler.path">policy/pdp/engine/topics/sources/dmaap/APPC-CL/events</stringProp>
2449 <stringProp name="HTTPSampler.method">PUT</stringProp>
2450 <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
2451 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
2452 <boolProp name="HTTPSampler.use_keepalive">false</boolProp>
2453 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
2454 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
2455 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
2456 <stringProp name="HTTPSampler.response_timeout"></stringProp>
2459 <HeaderManager guiclass="HeaderPanel" testclass="HeaderManager" testname="HTTP Header Manager" enabled="true">
2460 <collectionProp name="HeaderManager.headers">
2461 <elementProp name="" elementType="Header">
2462 <stringProp name="Header.name">Content-Type</stringProp>
2463 <stringProp name="Header.value">text/plain</stringProp>
2469 <JSR223Sampler guiclass="TestBeanGUI" testclass="JSR223Sampler" testname="Init DMaaP Counter" enabled="true">
2470 <stringProp name="scriptLanguage">groovy</stringProp>
2471 <stringProp name="parameters"></stringProp>
2472 <stringProp name="filename"></stringProp>
2473 <stringProp name="cacheKey">true</stringProp>
2474 <stringProp name="script">vars.put("counter", "0");</stringProp>
2477 <WhileController guiclass="WhileControllerGui" testclass="WhileController" testname="Final Success Controller" enabled="true">
2478 <stringProp name="WhileController.condition">${__javaScript(${counter} < 60)}</stringProp>
2481 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="POLICY[POLICY-CL-MGT]: FINAL_SUCCESS" enabled="true">
2482 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
2483 <collectionProp name="Arguments.arguments">
2484 <elementProp name="filter" elementType="HTTPArgument">
2485 <boolProp name="HTTPArgument.always_encode">true</boolProp>
2486 <stringProp name="Argument.value">{"class":"And", "filters": [ { "class":"Equals", "field":"requestId", "value":"${requestId}" }, { "class":"Equals", "field":"notification", "value":"FINAL: SUCCESS" }]}</stringProp>
2487 <stringProp name="Argument.metadata">=</stringProp>
2488 <boolProp name="HTTPArgument.use_equals">true</boolProp>
2489 <stringProp name="Argument.name">filter</stringProp>
2493 <stringProp name="HTTPSampler.domain">${DMAAP_HOST}</stringProp>
2494 <stringProp name="HTTPSampler.port">${DMAAP_PORT}</stringProp>
2495 <stringProp name="HTTPSampler.protocol">https</stringProp>
2496 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
2497 <stringProp name="HTTPSampler.path">events/POLICY-CL-MGT/${consumerGroup}/1?timeout=15000&limit=1</stringProp>
2498 <stringProp name="HTTPSampler.method">GET</stringProp>
2499 <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
2500 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
2501 <boolProp name="HTTPSampler.use_keepalive">false</boolProp>
2502 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
2503 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
2504 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
2505 <stringProp name="HTTPSampler.response_timeout"></stringProp>
2508 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="No []" enabled="true">
2509 <collectionProp name="Asserion.test_strings">
2510 <stringProp name="2914">[]</stringProp>
2512 <stringProp name="Assertion.custom_message"></stringProp>
2513 <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
2514 <boolProp name="Assertion.assume_success">false</boolProp>
2515 <intProp name="Assertion.test_type">12</intProp>
2516 </ResponseAssertion>
2518 <RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor" testname="requestId extractor" enabled="true">
2519 <stringProp name="RegexExtractor.useHeaders">false</stringProp>
2520 <stringProp name="RegexExtractor.refname">requestIdOnset</stringProp>
2521 <stringProp name="RegexExtractor.regex">requestId\\": \\"(.+?)\\"</stringProp>
2522 <stringProp name="RegexExtractor.template">$1$</stringProp>
2523 <stringProp name="RegexExtractor.default">none</stringProp>
2524 <stringProp name="RegexExtractor.match_number"></stringProp>
2527 <RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor" testname="notification extractor" enabled="true">
2528 <stringProp name="RegexExtractor.useHeaders">false</stringProp>
2529 <stringProp name="RegexExtractor.refname">notification</stringProp>
2530 <stringProp name="RegexExtractor.regex">notification\\": \\"FINAL: (.+?)\\"</stringProp>
2531 <stringProp name="RegexExtractor.template">$1$</stringProp>
2532 <stringProp name="RegexExtractor.default">none</stringProp>
2533 <stringProp name="RegexExtractor.match_number"></stringProp>
2536 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
2537 <stringProp name="scriptLanguage">groovy</stringProp>
2538 <stringProp name="parameters"></stringProp>
2539 <stringProp name="filename"></stringProp>
2540 <stringProp name="cacheKey">true</stringProp>
2541 <stringProp name="script">String requestIdOnset = vars.get("requestIdOnset");
2542 String requestId = vars.get("requestId");
2543 String notification = vars.get("notification");
2544 String counter = vars.get("counter");
2546 String transaction = "none";
2548 log.info ("The requestId id is " + requestId);
2549 log.info ("The requestIdOnset id is " + requestIdOnset);
2550 log.info ("The notification is " + notification);
2551 log.info ("The transaction is " + transaction);
2552 log.info ("The counter is " + counter);
2554 if ( requestId == requestIdOnset ) {
2555 if ( notification == "SUCCESS" ) {
2556 transaction = "FINAL";
2557 log.info ("Final Success Transaction");
2558 log.info ("The notification is SUCCESS");
2559 } else if ( notification == "FAILURE" ) {
2560 transaction = "FINAL";
2561 log.info ("Final Failure Transaction");
2562 AssertionResult.setFailureMessage("Bad final notification");
2563 AssertionResult.setFailure(true);
2567 int counterTemp = Integer.parseInt(counter) +1;
2568 if (transaction == "FINAL") {
2570 } else if (counterTemp >= 60) {
2571 AssertionResult.setFailureMessage("vFW Success POLICYCL Failure, reached maximum number of attempts ");
2572 AssertionResult.setFailure(true);
2575 vars.put("counter", Integer.toString(counterTemp));</stringProp>
2581 <PostThreadGroup guiclass="PostThreadGroupGui" testclass="PostThreadGroup" testname="Tear down" enabled="true">
2582 <stringProp name="ThreadGroup.on_sample_error">continue</stringProp>
2583 <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true">
2584 <boolProp name="LoopController.continue_forever">false</boolProp>
2585 <stringProp name="LoopController.loops">1</stringProp>
2587 <stringProp name="ThreadGroup.num_threads">1</stringProp>
2588 <stringProp name="ThreadGroup.ramp_time">1</stringProp>
2589 <boolProp name="ThreadGroup.scheduler">false</boolProp>
2590 <stringProp name="ThreadGroup.duration"></stringProp>
2591 <stringProp name="ThreadGroup.delay"></stringProp>
2592 <boolProp name="ThreadGroup.same_user_on_next_iteration">true</boolProp>
2595 <GenericController guiclass="LogicControllerGui" testclass="GenericController" testname="PAP" enabled="true"/>
2597 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Undeploy vCPE Policy" enabled="true">
2598 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
2599 <collectionProp name="Arguments.arguments"/>
2601 <stringProp name="HTTPSampler.domain">${PAP_HOST}</stringProp>
2602 <stringProp name="HTTPSampler.port">${PAP_PORT}</stringProp>
2603 <stringProp name="HTTPSampler.protocol">https</stringProp>
2604 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
2605 <stringProp name="HTTPSampler.path">policy/pap/v1/pdps/policies/operational.restart/versions/1.0.0</stringProp>
2606 <stringProp name="HTTPSampler.method">DELETE</stringProp>
2607 <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
2608 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
2609 <boolProp name="HTTPSampler.use_keepalive">false</boolProp>
2610 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
2611 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
2612 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
2613 <stringProp name="HTTPSampler.response_timeout"></stringProp>
2616 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
2617 <collectionProp name="Asserion.test_strings">
2618 <stringProp name="49588">202</stringProp>
2620 <stringProp name="Assertion.custom_message"></stringProp>
2621 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
2622 <boolProp name="Assertion.assume_success">false</boolProp>
2623 <intProp name="Assertion.test_type">16</intProp>
2624 </ResponseAssertion>
2627 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Undeploy vCPE Fail Policy" enabled="true">
2628 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
2629 <collectionProp name="Arguments.arguments"/>
2631 <stringProp name="HTTPSampler.domain">${PAP_HOST}</stringProp>
2632 <stringProp name="HTTPSampler.port">${PAP_PORT}</stringProp>
2633 <stringProp name="HTTPSampler.protocol">https</stringProp>
2634 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
2635 <stringProp name="HTTPSampler.path">policy/pap/v1/pdps/policies/operational.restart.fail/versions/1.0.0</stringProp>
2636 <stringProp name="HTTPSampler.method">DELETE</stringProp>
2637 <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
2638 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
2639 <boolProp name="HTTPSampler.use_keepalive">false</boolProp>
2640 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
2641 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
2642 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
2643 <stringProp name="HTTPSampler.response_timeout"></stringProp>
2646 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
2647 <collectionProp name="Asserion.test_strings">
2648 <stringProp name="49588">202</stringProp>
2650 <stringProp name="Assertion.custom_message"></stringProp>
2651 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
2652 <boolProp name="Assertion.assume_success">false</boolProp>
2653 <intProp name="Assertion.test_type">16</intProp>
2654 </ResponseAssertion>
2657 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Undeploy vFirewall Policy" enabled="true">
2658 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
2659 <collectionProp name="Arguments.arguments"/>
2661 <stringProp name="HTTPSampler.domain">${PAP_HOST}</stringProp>
2662 <stringProp name="HTTPSampler.port">${PAP_PORT}</stringProp>
2663 <stringProp name="HTTPSampler.protocol">https</stringProp>
2664 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
2665 <stringProp name="HTTPSampler.path">policy/pap/v1/pdps/policies/operational.modifyconfig/versions/1.0.0</stringProp>
2666 <stringProp name="HTTPSampler.method">DELETE</stringProp>
2667 <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
2668 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
2669 <boolProp name="HTTPSampler.use_keepalive">false</boolProp>
2670 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
2671 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
2672 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
2673 <stringProp name="HTTPSampler.response_timeout"></stringProp>
2676 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
2677 <collectionProp name="Asserion.test_strings">
2678 <stringProp name="49588">202</stringProp>
2680 <stringProp name="Assertion.custom_message"></stringProp>
2681 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
2682 <boolProp name="Assertion.assume_success">false</boolProp>
2683 <intProp name="Assertion.test_type">16</intProp>
2684 </ResponseAssertion>
2687 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Undeploy vDNS Policy" enabled="true">
2688 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
2689 <collectionProp name="Arguments.arguments"/>
2691 <stringProp name="HTTPSampler.domain">${PAP_HOST}</stringProp>
2692 <stringProp name="HTTPSampler.port">${PAP_PORT}</stringProp>
2693 <stringProp name="HTTPSampler.protocol">https</stringProp>
2694 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
2695 <stringProp name="HTTPSampler.path">policy/pap/v1/pdps/policies/operational.scaleout/versions/1.0.0</stringProp>
2696 <stringProp name="HTTPSampler.method">DELETE</stringProp>
2697 <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
2698 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
2699 <boolProp name="HTTPSampler.use_keepalive">false</boolProp>
2700 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
2701 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
2702 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
2703 <stringProp name="HTTPSampler.response_timeout"></stringProp>
2706 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
2707 <collectionProp name="Asserion.test_strings">
2708 <stringProp name="49588">202</stringProp>
2710 <stringProp name="Assertion.custom_message"></stringProp>
2711 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
2712 <boolProp name="Assertion.assume_success">false</boolProp>
2713 <intProp name="Assertion.test_type">16</intProp>
2714 </ResponseAssertion>
2717 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Undeploy vDNS Fail Policy" enabled="true">
2718 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
2719 <collectionProp name="Arguments.arguments"/>
2721 <stringProp name="HTTPSampler.domain">${PAP_HOST}</stringProp>
2722 <stringProp name="HTTPSampler.port">${PAP_PORT}</stringProp>
2723 <stringProp name="HTTPSampler.protocol">https</stringProp>
2724 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
2725 <stringProp name="HTTPSampler.path">policy/pap/v1/pdps/policies/operational.scaleout.fail/versions/1.0.0</stringProp>
2726 <stringProp name="HTTPSampler.method">DELETE</stringProp>
2727 <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
2728 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
2729 <boolProp name="HTTPSampler.use_keepalive">false</boolProp>
2730 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
2731 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
2732 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
2733 <stringProp name="HTTPSampler.response_timeout"></stringProp>
2736 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
2737 <collectionProp name="Asserion.test_strings">
2738 <stringProp name="49588">202</stringProp>
2740 <stringProp name="Assertion.custom_message"></stringProp>
2741 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
2742 <boolProp name="Assertion.assume_success">false</boolProp>
2743 <intProp name="Assertion.test_type">16</intProp>
2744 </ResponseAssertion>
2748 <GenericController guiclass="LogicControllerGui" testclass="GenericController" testname="API" enabled="true"/>
2750 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete vCPE Policy" enabled="true">
2751 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
2752 <collectionProp name="Arguments.arguments"/>
2754 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
2755 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
2756 <stringProp name="HTTPSampler.protocol">https</stringProp>
2757 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
2758 <stringProp name="HTTPSampler.path">policy/api/v1/policytypes/onap.policies.controlloop.operational.common.Drools/versions/1.0.0/policies/operational.restart/versions/1.0.0</stringProp>
2759 <stringProp name="HTTPSampler.method">DELETE</stringProp>
2760 <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
2761 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
2762 <boolProp name="HTTPSampler.use_keepalive">false</boolProp>
2763 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
2764 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
2765 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
2766 <stringProp name="HTTPSampler.response_timeout"></stringProp>
2769 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
2770 <collectionProp name="Asserion.test_strings">
2771 <stringProp name="49586">200</stringProp>
2773 <stringProp name="Assertion.custom_message"></stringProp>
2774 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
2775 <boolProp name="Assertion.assume_success">false</boolProp>
2776 <intProp name="Assertion.test_type">16</intProp>
2777 </ResponseAssertion>
2780 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete vCPE Fail Policy" enabled="true">
2781 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
2782 <collectionProp name="Arguments.arguments"/>
2784 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
2785 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
2786 <stringProp name="HTTPSampler.protocol">https</stringProp>
2787 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
2788 <stringProp name="HTTPSampler.path">policy/api/v1/policytypes/onap.policies.controlloop.operational.common.Drools/versions/1.0.0/policies/operational.restart.fail/versions/1.0.0</stringProp>
2789 <stringProp name="HTTPSampler.method">DELETE</stringProp>
2790 <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
2791 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
2792 <boolProp name="HTTPSampler.use_keepalive">false</boolProp>
2793 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
2794 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
2795 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
2796 <stringProp name="HTTPSampler.response_timeout"></stringProp>
2799 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
2800 <collectionProp name="Asserion.test_strings">
2801 <stringProp name="49586">200</stringProp>
2803 <stringProp name="Assertion.custom_message"></stringProp>
2804 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
2805 <boolProp name="Assertion.assume_success">false</boolProp>
2806 <intProp name="Assertion.test_type">16</intProp>
2807 </ResponseAssertion>
2810 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete vFirewall Policy" enabled="true">
2811 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
2812 <collectionProp name="Arguments.arguments"/>
2814 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
2815 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
2816 <stringProp name="HTTPSampler.protocol">https</stringProp>
2817 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
2818 <stringProp name="HTTPSampler.path">policy/api/v1/policytypes/onap.policies.controlloop.operational.common.Drools/versions/1.0.0/policies/operational.modifyconfig/versions/1.0.0</stringProp>
2819 <stringProp name="HTTPSampler.method">DELETE</stringProp>
2820 <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
2821 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
2822 <boolProp name="HTTPSampler.use_keepalive">false</boolProp>
2823 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
2824 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
2825 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
2826 <stringProp name="HTTPSampler.response_timeout"></stringProp>
2829 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
2830 <collectionProp name="Asserion.test_strings">
2831 <stringProp name="49586">200</stringProp>
2833 <stringProp name="Assertion.custom_message"></stringProp>
2834 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
2835 <boolProp name="Assertion.assume_success">false</boolProp>
2836 <intProp name="Assertion.test_type">16</intProp>
2837 </ResponseAssertion>
2840 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete vDNS Policy" enabled="true">
2841 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
2842 <collectionProp name="Arguments.arguments"/>
2844 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
2845 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
2846 <stringProp name="HTTPSampler.protocol">https</stringProp>
2847 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
2848 <stringProp name="HTTPSampler.path">policy/api/v1/policytypes/onap.policies.controlloop.operational.common.Drools/versions/1.0.0/policies/operational.scaleout/versions/1.0.0</stringProp>
2849 <stringProp name="HTTPSampler.method">DELETE</stringProp>
2850 <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
2851 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
2852 <boolProp name="HTTPSampler.use_keepalive">false</boolProp>
2853 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
2854 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
2855 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
2856 <stringProp name="HTTPSampler.response_timeout"></stringProp>
2859 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
2860 <collectionProp name="Asserion.test_strings">
2861 <stringProp name="49586">200</stringProp>
2863 <stringProp name="Assertion.custom_message"></stringProp>
2864 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
2865 <boolProp name="Assertion.assume_success">false</boolProp>
2866 <intProp name="Assertion.test_type">16</intProp>
2867 </ResponseAssertion>
2870 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete vDNS Fail Policy" enabled="true">
2871 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
2872 <collectionProp name="Arguments.arguments"/>
2874 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
2875 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
2876 <stringProp name="HTTPSampler.protocol">https</stringProp>
2877 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
2878 <stringProp name="HTTPSampler.path">policy/api/v1/policytypes/onap.policies.controlloop.operational.common.Drools/versions/1.0.0/policies/operational.scaleout.fail/versions/1.0.0</stringProp>
2879 <stringProp name="HTTPSampler.method">DELETE</stringProp>
2880 <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
2881 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
2882 <boolProp name="HTTPSampler.use_keepalive">false</boolProp>
2883 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
2884 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
2885 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
2886 <stringProp name="HTTPSampler.response_timeout"></stringProp>
2889 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
2890 <collectionProp name="Asserion.test_strings">
2891 <stringProp name="49586">200</stringProp>
2893 <stringProp name="Assertion.custom_message"></stringProp>
2894 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
2895 <boolProp name="Assertion.assume_success">false</boolProp>
2896 <intProp name="Assertion.test_type">16</intProp>
2897 </ResponseAssertion>