1 <?xml version="1.0" encoding="UTF-8"?>
3 ============LICENSE_START=======================================================
4 ONAP Policy Drools-Application
5 ================================================================================
6 Copyright (C) 2020 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.1.1 r1855137">
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.5.232</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">30044</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.5.232</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">30656</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.5.232</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.5.232</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">32161</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>
117 <ConfigTestElement guiclass="HttpDefaultsGui" testclass="ConfigTestElement" testname="HTTP Request Defaults" enabled="true">
118 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
119 <collectionProp name="Arguments.arguments"/>
121 <stringProp name="HTTPSampler.domain"></stringProp>
122 <stringProp name="HTTPSampler.port">9696</stringProp>
123 <stringProp name="HTTPSampler.protocol">http</stringProp>
124 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
125 <stringProp name="HTTPSampler.path"></stringProp>
126 <stringProp name="HTTPSampler.concurrentPool">6</stringProp>
127 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
128 <stringProp name="HTTPSampler.response_timeout"></stringProp>
131 <SetupThreadGroup guiclass="SetupThreadGroupGui" testclass="SetupThreadGroup" testname="Set up" enabled="true">
132 <stringProp name="ThreadGroup.on_sample_error">continue</stringProp>
133 <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true">
134 <boolProp name="LoopController.continue_forever">false</boolProp>
135 <stringProp name="LoopController.loops">1</stringProp>
137 <stringProp name="ThreadGroup.num_threads">1</stringProp>
138 <stringProp name="ThreadGroup.ramp_time">1</stringProp>
139 <boolProp name="ThreadGroup.scheduler">false</boolProp>
140 <stringProp name="ThreadGroup.duration"></stringProp>
141 <stringProp name="ThreadGroup.delay"></stringProp>
144 <GenericController guiclass="LogicControllerGui" testclass="GenericController" testname="API" enabled="true"/>
146 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API Healthcheck" enabled="true">
147 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
148 <collectionProp name="Arguments.arguments"/>
150 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
151 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
152 <stringProp name="HTTPSampler.protocol">https</stringProp>
153 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
154 <stringProp name="HTTPSampler.path">/policy/api/v1/healthcheck</stringProp>
155 <stringProp name="HTTPSampler.method">GET</stringProp>
156 <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
157 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
158 <boolProp name="HTTPSampler.use_keepalive">false</boolProp>
159 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
160 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
161 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
162 <stringProp name="HTTPSampler.response_timeout"></stringProp>
165 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
166 <collectionProp name="Asserion.test_strings">
167 <stringProp name="49586">200</stringProp>
169 <stringProp name="Assertion.custom_message"></stringProp>
170 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
171 <boolProp name="Assertion.assume_success">false</boolProp>
172 <intProp name="Assertion.test_type">8</intProp>
175 <JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="JSON Assertion" enabled="true">
176 <stringProp name="JSON_PATH">$.healthy</stringProp>
177 <stringProp name="EXPECTED_VALUE">true</stringProp>
178 <boolProp name="JSONVALIDATION">true</boolProp>
179 <boolProp name="EXPECT_NULL">false</boolProp>
180 <boolProp name="INVERT">false</boolProp>
181 <boolProp name="ISREGEX">false</boolProp>
185 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create vCPE Policy" enabled="true">
186 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
187 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
188 <collectionProp name="Arguments.arguments">
189 <elementProp name="" elementType="HTTPArgument">
190 <boolProp name="HTTPArgument.always_encode">false</boolProp>
191 <stringProp name="Argument.value">{
192 "tosca_definitions_version": "tosca_simple_yaml_1_1_0",
193 "topology_template": {
194 "policies": [
196 "operational.restart": {
197 "type": "onap.policies.controlloop.operational.common.Drools",
198 "type_version": "1.0.0",
199 "version": "1.0.0",
200 "metadata": {
201 "policy-id": "operational.restart"
203 "properties": {
204 "id": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e",
205 "timeout": 60,
206 "abatement": false,
207 "trigger": "unique-policy-id-1-restart",
208 "operations": [
210 "id": "unique-policy-id-1-restart",
211 "description": "Restart the VM",
212 "operation": {
213 "actor": "APPC",
214 "operation": "Restart",
215 "target": {
216 "targetType": "VNF"
219 "timeout": 20,
220 "retries": 0,
221 "success": "final_success",
222 "failure": "final_failure",
223 "failure_timeout": "final_failure_timeout",
224 "failure_retries": "final_failure_retries",
225 "failure_exception": "final_failure_exception",
226 "failure_guard": "final_failure_guard"
229 "controllerName": "usecases"
236 <stringProp name="Argument.metadata">=</stringProp>
240 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
241 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
242 <stringProp name="HTTPSampler.protocol">https</stringProp>
243 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
244 <stringProp name="HTTPSampler.path">policy/api/v1/policytypes/onap.policies.controlloop.operational.common.Drools/versions/1.0.0/policies</stringProp>
245 <stringProp name="HTTPSampler.method">POST</stringProp>
246 <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
247 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
248 <boolProp name="HTTPSampler.use_keepalive">false</boolProp>
249 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
250 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
251 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
252 <stringProp name="HTTPSampler.response_timeout"></stringProp>
255 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
256 <collectionProp name="Asserion.test_strings">
257 <stringProp name="49586">200</stringProp>
259 <stringProp name="Assertion.custom_message"></stringProp>
260 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
261 <boolProp name="Assertion.assume_success">false</boolProp>
262 <intProp name="Assertion.test_type">8</intProp>
266 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create vCPE Fail Policy" enabled="true">
267 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
268 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
269 <collectionProp name="Arguments.arguments">
270 <elementProp name="" elementType="HTTPArgument">
271 <boolProp name="HTTPArgument.always_encode">false</boolProp>
272 <stringProp name="Argument.value">{
273 "tosca_definitions_version": "tosca_simple_yaml_1_1_0",
274 "topology_template": {
275 "policies": [
277 "operational.restart.fail": {
278 "type": "onap.policies.controlloop.operational.common.Drools",
279 "type_version": "1.0.0",
280 "version": "1.0.0",
281 "metadata": {
282 "policy-id": "operational.restart.fail"
284 "properties": {
285 "id": "ControlLoop-vCPE-Fail",
286 "timeout": 60,
287 "abatement": false,
288 "trigger": "unique-policy-id-1-restart",
289 "operations": [
291 "id": "unique-policy-id-1-restart",
292 "description": "Restart the VM",
293 "operation": {
294 "actor": "APPC",
295 "operation": "Restart",
296 "target": {
297 "targetType": "VNF"
300 "timeout": 20,
301 "retries": 0,
302 "success": "final_success",
303 "failure": "final_failure",
304 "failure_timeout": "final_failure_timeout",
305 "failure_retries": "final_failure_retries",
306 "failure_exception": "final_failure_exception",
307 "failure_guard": "final_failure_guard"
310 "controllerName": "usecases"
317 <stringProp name="Argument.metadata">=</stringProp>
321 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
322 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
323 <stringProp name="HTTPSampler.protocol">https</stringProp>
324 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
325 <stringProp name="HTTPSampler.path">policy/api/v1/policytypes/onap.policies.controlloop.operational.common.Drools/versions/1.0.0/policies</stringProp>
326 <stringProp name="HTTPSampler.method">POST</stringProp>
327 <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
328 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
329 <boolProp name="HTTPSampler.use_keepalive">false</boolProp>
330 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
331 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
332 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
333 <stringProp name="HTTPSampler.response_timeout"></stringProp>
336 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
337 <collectionProp name="Asserion.test_strings">
338 <stringProp name="49586">200</stringProp>
340 <stringProp name="Assertion.custom_message"></stringProp>
341 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
342 <boolProp name="Assertion.assume_success">false</boolProp>
343 <intProp name="Assertion.test_type">8</intProp>
347 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create vFirewall Policy" enabled="true">
348 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
349 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
350 <collectionProp name="Arguments.arguments">
351 <elementProp name="" elementType="HTTPArgument">
352 <boolProp name="HTTPArgument.always_encode">false</boolProp>
353 <stringProp name="Argument.value">{
354 "tosca_definitions_version": "tosca_simple_yaml_1_1_0",
355 "topology_template": {
356 "policies": [
358 "operational.modifyconfig": {
359 "type": "onap.policies.controlloop.operational.common.Drools",
360 "type_version": "1.0.0",
361 "version": "1.0.0",
362 "metadata": {
363 "policy-id": "operational.modifyconfig"
365 "properties": {
366 "id": "ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a",
367 "timeout": 60,
368 "abatement": false,
369 "trigger": "unique-policy-id-1-modifyConfig",
370 "operations": [
372 "id": "unique-policy-id-1-modifyConfig",
373 "description": "Modify the packet generator",
374 "operation": {
375 "actor": "APPC",
376 "operation": "ModifyConfig",
377 "target": {
378 "targetType": "VNF",
379 "entityIds": {
380 "resourceID": "bbb3cefd-01c8-413c-9bdd-2b92f9ca3d38"
383 "payload": {
384 "streams": "{\"active-streams\": 5 }"
387 "timeout": 20,
388 "retries": 0,
389 "success": "final_success",
390 "failure": "final_failure",
391 "failure_timeout": "final_failure_timeout",
392 "failure_retries": "final_failure_retries",
393 "failure_exception": "final_failure_exception",
394 "failure_guard": "final_failure_guard"
397 "controllerName": "usecases"
404 <stringProp name="Argument.metadata">=</stringProp>
408 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
409 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
410 <stringProp name="HTTPSampler.protocol">https</stringProp>
411 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
412 <stringProp name="HTTPSampler.path">policy/api/v1/policytypes/onap.policies.controlloop.operational.common.Drools/versions/1.0.0/policies</stringProp>
413 <stringProp name="HTTPSampler.method">POST</stringProp>
414 <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
415 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
416 <boolProp name="HTTPSampler.use_keepalive">false</boolProp>
417 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
418 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
419 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
420 <stringProp name="HTTPSampler.response_timeout"></stringProp>
423 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
424 <collectionProp name="Asserion.test_strings">
425 <stringProp name="49586">200</stringProp>
427 <stringProp name="Assertion.custom_message"></stringProp>
428 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
429 <boolProp name="Assertion.assume_success">false</boolProp>
430 <intProp name="Assertion.test_type">8</intProp>
434 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create vDNS Policy" enabled="true">
435 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
436 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
437 <collectionProp name="Arguments.arguments">
438 <elementProp name="" elementType="HTTPArgument">
439 <boolProp name="HTTPArgument.always_encode">false</boolProp>
440 <stringProp name="Argument.value">{
441 "tosca_definitions_version": "tosca_simple_yaml_1_1_0",
442 "topology_template": {
443 "policies": [
445 "operational.scaleout": {
446 "type": "onap.policies.controlloop.operational.common.Drools",
447 "type_version": "1.0.0",
448 "version": "1.0.0",
449 "metadata": {
450 "policy-id": "operational.scaleout"
452 "properties": {
453 "id": "ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3",
454 "timeout": 60,
455 "abatement": false,
456 "trigger": "unique-policy-id-1-scale-up",
457 "operations": [
459 "id": "unique-policy-id-1-scale-up",
460 "description": "Create a new VF Module",
461 "operation": {
462 "actor": "SO",
463 "operation": "VF Module Create",
464 "target": {
465 "targetType": "VFMODULE",
466 "entityIds": {
467 "modelInvariantId": "e6130d03-56f1-4b0a-9a1d-e1b2ebc30e0e",
468 "modelVersionId": "94b18b1d-cc91-4f43-911a-e6348665f292",
469 "modelName": "VfwclVfwsnkBbefb8ce2bde..base_vfw..module-0",
470 "modelVersion": "1",
471 "modelCustomizationId": "47958575-138f-452a-8c8d-d89b595f8164"
474 "payload": {
475 "requestParameters": "{\"usePreload\":true,\"userParams\":[]}",
476 "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]\"}]"
479 "timeout": 20,
480 "retries": 0,
481 "success": "final_success",
482 "failure": "final_failure",
483 "failure_timeout": "final_failure_timeout",
484 "failure_retries": "final_failure_retries",
485 "failure_exception": "final_failure_exception",
486 "failure_guard": "final_failure_guard"
489 "controllerName": "usecases"
496 <stringProp name="Argument.metadata">=</stringProp>
500 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
501 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
502 <stringProp name="HTTPSampler.protocol">https</stringProp>
503 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
504 <stringProp name="HTTPSampler.path">policy/api/v1/policytypes/onap.policies.controlloop.operational.common.Drools/versions/1.0.0/policies</stringProp>
505 <stringProp name="HTTPSampler.method">POST</stringProp>
506 <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
507 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
508 <boolProp name="HTTPSampler.use_keepalive">false</boolProp>
509 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
510 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
511 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
512 <stringProp name="HTTPSampler.response_timeout"></stringProp>
515 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
516 <collectionProp name="Asserion.test_strings">
517 <stringProp name="49586">200</stringProp>
519 <stringProp name="Assertion.custom_message"></stringProp>
520 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
521 <boolProp name="Assertion.assume_success">false</boolProp>
522 <intProp name="Assertion.test_type">8</intProp>
526 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create vDNS Fail Policy" enabled="true">
527 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
528 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
529 <collectionProp name="Arguments.arguments">
530 <elementProp name="" elementType="HTTPArgument">
531 <boolProp name="HTTPArgument.always_encode">false</boolProp>
532 <stringProp name="Argument.value">{
533 "tosca_definitions_version": "tosca_simple_yaml_1_1_0",
534 "topology_template": {
535 "policies": [
537 "operational.scaleout.fail": {
538 "type": "onap.policies.controlloop.operational.common.Drools",
539 "type_version": "1.0.0",
540 "version": "1.0.0",
541 "metadata": {
542 "policy-id": "operational.scaleout.fail"
544 "properties": {
545 "id": "ControlLoop-vDNS-Fail",
546 "timeout": 60,
547 "abatement": false,
548 "trigger": "unique-policy-id-1-scale-up",
549 "operations": [
551 "id": "unique-policy-id-1-scale-up",
552 "description": "Create a new VF Module",
553 "operation": {
554 "actor": "SO",
555 "operation": "VF Module Create",
556 "target": {
557 "targetType": "VFMODULE",
558 "entityIds": {
559 "modelInvariantId": "e6130d03-56f1-4b0a-9a1d-e1b2ebc30e0e",
560 "modelVersionId": "94b18b1d-cc91-4f43-911a-e6348665f292",
561 "modelName": "VfwclVfwsnkBbefb8ce2bde..base_vfw..module-0",
562 "modelVersion": "1",
563 "modelCustomizationId": "47958575-138f-452a-8c8d-d89b595f8164"
566 "payload": {
567 "requestParameters": "{\"usePreload\":true,\"userParams\":[]}",
568 "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]\"}]"
571 "timeout": 20,
572 "retries": 0,
573 "success": "final_success",
574 "failure": "final_failure",
575 "failure_timeout": "final_failure_timeout",
576 "failure_retries": "final_failure_retries",
577 "failure_exception": "final_failure_exception",
578 "failure_guard": "final_failure_guard"
581 "controllerName": "usecases"
588 <stringProp name="Argument.metadata">=</stringProp>
592 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
593 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
594 <stringProp name="HTTPSampler.protocol">https</stringProp>
595 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
596 <stringProp name="HTTPSampler.path">policy/api/v1/policytypes/onap.policies.controlloop.operational.common.Drools/versions/1.0.0/policies</stringProp>
597 <stringProp name="HTTPSampler.method">POST</stringProp>
598 <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
599 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
600 <boolProp name="HTTPSampler.use_keepalive">false</boolProp>
601 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
602 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
603 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
604 <stringProp name="HTTPSampler.response_timeout"></stringProp>
607 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
608 <collectionProp name="Asserion.test_strings">
609 <stringProp name="49586">200</stringProp>
611 <stringProp name="Assertion.custom_message"></stringProp>
612 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
613 <boolProp name="Assertion.assume_success">false</boolProp>
614 <intProp name="Assertion.test_type">8</intProp>
619 <GenericController guiclass="LogicControllerGui" testclass="GenericController" testname="PAP" enabled="true"/>
621 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="PAP Healthcheck" enabled="true">
622 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
623 <collectionProp name="Arguments.arguments"/>
625 <stringProp name="HTTPSampler.domain">${PAP_HOST}</stringProp>
626 <stringProp name="HTTPSampler.port">${PAP_PORT}</stringProp>
627 <stringProp name="HTTPSampler.protocol">https</stringProp>
628 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
629 <stringProp name="HTTPSampler.path">/policy/pap/v1/healthcheck</stringProp>
630 <stringProp name="HTTPSampler.method">GET</stringProp>
631 <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
632 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
633 <boolProp name="HTTPSampler.use_keepalive">false</boolProp>
634 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
635 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
636 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
637 <stringProp name="HTTPSampler.response_timeout"></stringProp>
640 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
641 <collectionProp name="Asserion.test_strings">
642 <stringProp name="49586">200</stringProp>
644 <stringProp name="Assertion.custom_message"></stringProp>
645 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
646 <boolProp name="Assertion.assume_success">false</boolProp>
647 <intProp name="Assertion.test_type">8</intProp>
650 <JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="JSON Assertion" enabled="true">
651 <stringProp name="JSON_PATH">$.healthy</stringProp>
652 <stringProp name="EXPECTED_VALUE">true</stringProp>
653 <boolProp name="JSONVALIDATION">true</boolProp>
654 <boolProp name="EXPECT_NULL">false</boolProp>
655 <boolProp name="INVERT">false</boolProp>
656 <boolProp name="ISREGEX">false</boolProp>
660 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Deploy vCPE Policy" enabled="true">
661 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
662 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
663 <collectionProp name="Arguments.arguments">
664 <elementProp name="" elementType="HTTPArgument">
665 <boolProp name="HTTPArgument.always_encode">false</boolProp>
666 <stringProp name="Argument.value">{"policies":[{"policy-id":"operational.restart", "version": "1.0.0"}]}</stringProp>
667 <stringProp name="Argument.metadata">=</stringProp>
671 <stringProp name="HTTPSampler.domain">${PAP_HOST}</stringProp>
672 <stringProp name="HTTPSampler.port">${PAP_PORT}</stringProp>
673 <stringProp name="HTTPSampler.protocol">https</stringProp>
674 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
675 <stringProp name="HTTPSampler.path">policy/pap/v1/pdps/policies</stringProp>
676 <stringProp name="HTTPSampler.method">POST</stringProp>
677 <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
678 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
679 <boolProp name="HTTPSampler.use_keepalive">false</boolProp>
680 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
681 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
682 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
683 <stringProp name="HTTPSampler.response_timeout"></stringProp>
686 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
687 <collectionProp name="Asserion.test_strings">
688 <stringProp name="49586">200</stringProp>
690 <stringProp name="Assertion.custom_message"></stringProp>
691 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
692 <boolProp name="Assertion.assume_success">false</boolProp>
693 <intProp name="Assertion.test_type">8</intProp>
697 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Deploy vCPE Fail Policy" enabled="true">
698 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
699 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
700 <collectionProp name="Arguments.arguments">
701 <elementProp name="" elementType="HTTPArgument">
702 <boolProp name="HTTPArgument.always_encode">false</boolProp>
703 <stringProp name="Argument.value">{"policies":[{"policy-id":"operational.restart.fail", "version": "1.0.0"}]}</stringProp>
704 <stringProp name="Argument.metadata">=</stringProp>
708 <stringProp name="HTTPSampler.domain">${PAP_HOST}</stringProp>
709 <stringProp name="HTTPSampler.port">${PAP_PORT}</stringProp>
710 <stringProp name="HTTPSampler.protocol">https</stringProp>
711 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
712 <stringProp name="HTTPSampler.path">policy/pap/v1/pdps/policies</stringProp>
713 <stringProp name="HTTPSampler.method">POST</stringProp>
714 <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
715 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
716 <boolProp name="HTTPSampler.use_keepalive">false</boolProp>
717 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
718 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
719 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
720 <stringProp name="HTTPSampler.response_timeout"></stringProp>
723 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
724 <collectionProp name="Asserion.test_strings">
725 <stringProp name="49586">200</stringProp>
727 <stringProp name="Assertion.custom_message"></stringProp>
728 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
729 <boolProp name="Assertion.assume_success">false</boolProp>
730 <intProp name="Assertion.test_type">8</intProp>
734 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Deploy vFirewall Policy" enabled="true">
735 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
736 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
737 <collectionProp name="Arguments.arguments">
738 <elementProp name="" elementType="HTTPArgument">
739 <boolProp name="HTTPArgument.always_encode">false</boolProp>
740 <stringProp name="Argument.value">{"policies":[{"policy-id":"operational.modifyconfig", "version": "1.0.0"}]}</stringProp>
741 <stringProp name="Argument.metadata">=</stringProp>
745 <stringProp name="HTTPSampler.domain">${PAP_HOST}</stringProp>
746 <stringProp name="HTTPSampler.port">${PAP_PORT}</stringProp>
747 <stringProp name="HTTPSampler.protocol">https</stringProp>
748 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
749 <stringProp name="HTTPSampler.path">policy/pap/v1/pdps/policies</stringProp>
750 <stringProp name="HTTPSampler.method">POST</stringProp>
751 <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
752 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
753 <boolProp name="HTTPSampler.use_keepalive">false</boolProp>
754 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
755 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
756 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
757 <stringProp name="HTTPSampler.response_timeout"></stringProp>
760 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
761 <collectionProp name="Asserion.test_strings">
762 <stringProp name="49586">200</stringProp>
764 <stringProp name="Assertion.custom_message"></stringProp>
765 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
766 <boolProp name="Assertion.assume_success">false</boolProp>
767 <intProp name="Assertion.test_type">8</intProp>
771 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Deploy vDNS Policy" enabled="true">
772 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
773 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
774 <collectionProp name="Arguments.arguments">
775 <elementProp name="" elementType="HTTPArgument">
776 <boolProp name="HTTPArgument.always_encode">false</boolProp>
777 <stringProp name="Argument.value">{"policies":[{"policy-id":"operational.scaleout", "version": "1.0.0"}]}</stringProp>
778 <stringProp name="Argument.metadata">=</stringProp>
782 <stringProp name="HTTPSampler.domain">${PAP_HOST}</stringProp>
783 <stringProp name="HTTPSampler.port">${PAP_PORT}</stringProp>
784 <stringProp name="HTTPSampler.protocol">https</stringProp>
785 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
786 <stringProp name="HTTPSampler.path">policy/pap/v1/pdps/policies</stringProp>
787 <stringProp name="HTTPSampler.method">POST</stringProp>
788 <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
789 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
790 <boolProp name="HTTPSampler.use_keepalive">false</boolProp>
791 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
792 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
793 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
794 <stringProp name="HTTPSampler.response_timeout"></stringProp>
797 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
798 <collectionProp name="Asserion.test_strings">
799 <stringProp name="49586">200</stringProp>
801 <stringProp name="Assertion.custom_message"></stringProp>
802 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
803 <boolProp name="Assertion.assume_success">false</boolProp>
804 <intProp name="Assertion.test_type">8</intProp>
808 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Deploy vDNS Fail Policy" enabled="true">
809 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
810 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
811 <collectionProp name="Arguments.arguments">
812 <elementProp name="" elementType="HTTPArgument">
813 <boolProp name="HTTPArgument.always_encode">false</boolProp>
814 <stringProp name="Argument.value">{"policies":[{"policy-id":"operational.scaleout.fail", "version": "1.0.0"}]}</stringProp>
815 <stringProp name="Argument.metadata">=</stringProp>
819 <stringProp name="HTTPSampler.domain">${PAP_HOST}</stringProp>
820 <stringProp name="HTTPSampler.port">${PAP_PORT}</stringProp>
821 <stringProp name="HTTPSampler.protocol">https</stringProp>
822 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
823 <stringProp name="HTTPSampler.path">policy/pap/v1/pdps/policies</stringProp>
824 <stringProp name="HTTPSampler.method">POST</stringProp>
825 <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
826 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
827 <boolProp name="HTTPSampler.use_keepalive">false</boolProp>
828 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
829 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
830 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
831 <stringProp name="HTTPSampler.response_timeout"></stringProp>
834 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
835 <collectionProp name="Asserion.test_strings">
836 <stringProp name="49586">200</stringProp>
838 <stringProp name="Assertion.custom_message"></stringProp>
839 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
840 <boolProp name="Assertion.assume_success">false</boolProp>
841 <intProp name="Assertion.test_type">8</intProp>
846 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="POLICY-PDP-PAP " enabled="true">
847 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
848 <collectionProp name="Arguments.arguments"/>
850 <stringProp name="HTTPSampler.domain">${DMAAP_HOST}</stringProp>
851 <stringProp name="HTTPSampler.port">${DMAAP_PORT}</stringProp>
852 <stringProp name="HTTPSampler.protocol">https</stringProp>
853 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
854 <stringProp name="HTTPSampler.path">events/POLICY-PDP-PAP/${__time()}/1?timeout=2000</stringProp>
855 <stringProp name="HTTPSampler.method">GET</stringProp>
856 <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
857 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
858 <boolProp name="HTTPSampler.use_keepalive">false</boolProp>
859 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
860 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
861 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
862 <stringProp name="HTTPSampler.response_timeout"></stringProp>
865 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
866 <collectionProp name="Asserion.test_strings">
867 <stringProp name="49586">200</stringProp>
869 <stringProp name="Assertion.custom_message"></stringProp>
870 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
871 <boolProp name="Assertion.assume_success">false</boolProp>
872 <intProp name="Assertion.test_type">8</intProp>
876 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Drain vCPE success POLICY-CL-MGT" enabled="true">
877 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
878 <collectionProp name="Arguments.arguments"/>
880 <stringProp name="HTTPSampler.domain">${DMAAP_HOST}</stringProp>
881 <stringProp name="HTTPSampler.port">${DMAAP_PORT}</stringProp>
882 <stringProp name="HTTPSampler.protocol">https</stringProp>
883 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
884 <stringProp name="HTTPSampler.path">events/POLICY-CL-MGT/vcpesuccess/1?timeout=20000</stringProp>
885 <stringProp name="HTTPSampler.method">GET</stringProp>
886 <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
887 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
888 <boolProp name="HTTPSampler.use_keepalive">false</boolProp>
889 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
890 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
891 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
892 <stringProp name="HTTPSampler.response_timeout"></stringProp>
895 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
896 <collectionProp name="Asserion.test_strings">
897 <stringProp name="49586">200</stringProp>
899 <stringProp name="Assertion.custom_message"></stringProp>
900 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
901 <boolProp name="Assertion.assume_success">false</boolProp>
902 <intProp name="Assertion.test_type">8</intProp>
906 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Drain vCPE success APPC-LCM-READ" enabled="true">
907 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
908 <collectionProp name="Arguments.arguments"/>
910 <stringProp name="HTTPSampler.domain">${DMAAP_HOST}</stringProp>
911 <stringProp name="HTTPSampler.port">${DMAAP_PORT}</stringProp>
912 <stringProp name="HTTPSampler.protocol">https</stringProp>
913 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
914 <stringProp name="HTTPSampler.path">events/APPC-LCM-READ/vcpesuccess/1?timeout=20000</stringProp>
915 <stringProp name="HTTPSampler.method">GET</stringProp>
916 <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
917 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
918 <boolProp name="HTTPSampler.use_keepalive">false</boolProp>
919 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
920 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
921 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
922 <stringProp name="HTTPSampler.response_timeout"></stringProp>
925 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
926 <collectionProp name="Asserion.test_strings">
927 <stringProp name="49586">200</stringProp>
929 <stringProp name="Assertion.custom_message"></stringProp>
930 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
931 <boolProp name="Assertion.assume_success">false</boolProp>
932 <intProp name="Assertion.test_type">8</intProp>
936 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Drain vCPE failure POLICY-CL-MGT" enabled="true">
937 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
938 <collectionProp name="Arguments.arguments"/>
940 <stringProp name="HTTPSampler.domain">${DMAAP_HOST}</stringProp>
941 <stringProp name="HTTPSampler.port">${DMAAP_PORT}</stringProp>
942 <stringProp name="HTTPSampler.protocol">https</stringProp>
943 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
944 <stringProp name="HTTPSampler.path">events/POLICY-CL-MGT/vcpefailure/1?timeout=20000</stringProp>
945 <stringProp name="HTTPSampler.method">GET</stringProp>
946 <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
947 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
948 <boolProp name="HTTPSampler.use_keepalive">false</boolProp>
949 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
950 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
951 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
952 <stringProp name="HTTPSampler.response_timeout"></stringProp>
955 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
956 <collectionProp name="Asserion.test_strings">
957 <stringProp name="49586">200</stringProp>
959 <stringProp name="Assertion.custom_message"></stringProp>
960 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
961 <boolProp name="Assertion.assume_success">false</boolProp>
962 <intProp name="Assertion.test_type">8</intProp>
966 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Drain vCPE failure APPC-LCM-READ" enabled="true">
967 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
968 <collectionProp name="Arguments.arguments"/>
970 <stringProp name="HTTPSampler.domain">${DMAAP_HOST}</stringProp>
971 <stringProp name="HTTPSampler.port">${DMAAP_PORT}</stringProp>
972 <stringProp name="HTTPSampler.protocol">https</stringProp>
973 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
974 <stringProp name="HTTPSampler.path">events/APPC-LCM-READ/vcpefailure/1?timeout=20000</stringProp>
975 <stringProp name="HTTPSampler.method">GET</stringProp>
976 <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
977 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
978 <boolProp name="HTTPSampler.use_keepalive">false</boolProp>
979 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
980 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
981 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
982 <stringProp name="HTTPSampler.response_timeout"></stringProp>
985 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
986 <collectionProp name="Asserion.test_strings">
987 <stringProp name="49586">200</stringProp>
989 <stringProp name="Assertion.custom_message"></stringProp>
990 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
991 <boolProp name="Assertion.assume_success">false</boolProp>
992 <intProp name="Assertion.test_type">8</intProp>
996 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="PDP-D" enabled="true">
997 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
998 <collectionProp name="Arguments.arguments"/>
1000 <stringProp name="HTTPSampler.domain">${DROOLS_HOST}</stringProp>
1001 <stringProp name="HTTPSampler.port">${DROOLS_PORT}</stringProp>
1002 <stringProp name="HTTPSampler.protocol">https</stringProp>
1003 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
1004 <stringProp name="HTTPSampler.path">policy/pdp/engine/controllers/usecases/drools/facts</stringProp>
1005 <stringProp name="HTTPSampler.method">GET</stringProp>
1006 <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
1007 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
1008 <boolProp name="HTTPSampler.use_keepalive">false</boolProp>
1009 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
1010 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
1011 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
1012 <stringProp name="HTTPSampler.response_timeout"></stringProp>
1015 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
1016 <collectionProp name="Asserion.test_strings">
1017 <stringProp name="49586">200</stringProp>
1019 <stringProp name="Assertion.custom_message"></stringProp>
1020 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
1021 <boolProp name="Assertion.assume_success">false</boolProp>
1022 <intProp name="Assertion.test_type">8</intProp>
1023 </ResponseAssertion>
1025 <JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="JSON Assertion" enabled="true">
1026 <stringProp name="JSON_PATH">$.usecases</stringProp>
1027 <stringProp name="EXPECTED_VALUE">10</stringProp>
1028 <boolProp name="JSONVALIDATION">true</boolProp>
1029 <boolProp name="EXPECT_NULL">false</boolProp>
1030 <boolProp name="INVERT">false</boolProp>
1031 <boolProp name="ISREGEX">false</boolProp>
1032 </JSONPathAssertion>
1036 <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="vCPE Success" enabled="true">
1037 <stringProp name="ThreadGroup.on_sample_error">startnextloop</stringProp>
1038 <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true">
1039 <boolProp name="LoopController.continue_forever">false</boolProp>
1040 <intProp name="LoopController.loops">-1</intProp>
1042 <stringProp name="ThreadGroup.num_threads">1</stringProp>
1043 <stringProp name="ThreadGroup.ramp_time">1</stringProp>
1044 <boolProp name="ThreadGroup.scheduler">true</boolProp>
1045 <stringProp name="ThreadGroup.duration">${duration}</stringProp>
1046 <stringProp name="ThreadGroup.delay">1</stringProp>
1049 <UserParameters guiclass="UserParametersGui" testclass="UserParameters" testname="Set consumer group per scenario" enabled="true">
1050 <collectionProp name="UserParameters.names">
1051 <stringProp name="-308835287">consumerGroup</stringProp>
1053 <collectionProp name="UserParameters.thread_values">
1054 <collectionProp name="-1571164782">
1055 <stringProp name="-2075285407">vcpesuccess</stringProp>
1058 <boolProp name="UserParameters.per_iteration">false</boolProp>
1059 <stringProp name="TestPlan.comments">Global to the thread group</stringProp>
1062 <UserParameters guiclass="UserParametersGui" testclass="UserParameters" testname="Set request id per cycle" enabled="true">
1063 <collectionProp name="UserParameters.names">
1064 <stringProp name="693933066">requestId</stringProp>
1066 <collectionProp name="UserParameters.thread_values">
1067 <collectionProp name="681405977">
1068 <stringProp name="118040362">${__UUID()}</stringProp>
1071 <boolProp name="UserParameters.per_iteration">true</boolProp>
1072 <stringProp name="TestPlan.comments">Update on a per iteration basis</stringProp>
1075 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="DCAE[DCAE_TOPIC]: ONSET" enabled="true">
1076 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
1077 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
1078 <collectionProp name="Arguments.arguments">
1079 <elementProp name="" elementType="HTTPArgument">
1080 <boolProp name="HTTPArgument.always_encode">false</boolProp>
1081 <stringProp name="Argument.value">{
1082 "closedLoopControlName": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e",
1083 "closedLoopAlarmStart": 1463679805324,
1084 "closedLoopEventClient": "DCAE_INSTANCE_ID.dcae-tca",
1085 "closedLoopEventStatus": "ONSET",
1086 "requestID": "${requestId}",
1087 "target_type": "VNF",
1088 "target": "generic-vnf.vnf-id",
1089 "AAI": {
1090 "vserver.is-closed-loop-disabled": "false",
1091 "vserver.prov-status": "ACTIVE",
1092 "generic-vnf.vnf-id": "vCPE_Infrastructure_vGMUX_demo_app"
1094 "from": "DCAE",
1095 "version": "1.0.2"
1097 <stringProp name="Argument.metadata">=</stringProp>
1101 <stringProp name="HTTPSampler.domain">${DROOLS_HOST}</stringProp>
1102 <stringProp name="HTTPSampler.port">${DROOLS_PORT}</stringProp>
1103 <stringProp name="HTTPSampler.protocol">https</stringProp>
1104 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
1105 <stringProp name="HTTPSampler.path">policy/pdp/engine/topics/sources/dmaap/DCAE_TOPIC/events</stringProp>
1106 <stringProp name="HTTPSampler.method">PUT</stringProp>
1107 <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
1108 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
1109 <boolProp name="HTTPSampler.use_keepalive">false</boolProp>
1110 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
1111 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
1112 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
1113 <stringProp name="HTTPSampler.response_timeout"></stringProp>
1116 <HeaderManager guiclass="HeaderPanel" testclass="HeaderManager" testname="HTTP Header Manager" enabled="true">
1117 <collectionProp name="HeaderManager.headers">
1118 <elementProp name="" elementType="Header">
1119 <stringProp name="Header.name">Content-Type</stringProp>
1120 <stringProp name="Header.value">text/plain</stringProp>
1126 <JSR223Sampler guiclass="TestBeanGUI" testclass="JSR223Sampler" testname="Init DMaaP Counter" enabled="true">
1127 <stringProp name="scriptLanguage">groovy</stringProp>
1128 <stringProp name="parameters"></stringProp>
1129 <stringProp name="filename"></stringProp>
1130 <stringProp name="cacheKey">true</stringProp>
1131 <stringProp name="script">vars.put("counter", "0");</stringProp>
1134 <WhileController guiclass="WhileControllerGui" testclass="WhileController" testname="APPCL Restart Loop Controller" enabled="true">
1135 <stringProp name="WhileController.condition">${__javaScript(${counter} < 10)}</stringProp>
1138 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="POLICY[APPC-LCM-READ]: Restart" enabled="true">
1139 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
1140 <collectionProp name="Arguments.arguments">
1141 <elementProp name="filter" elementType="HTTPArgument">
1142 <boolProp name="HTTPArgument.always_encode">true</boolProp>
1143 <stringProp name="Argument.value">{"class":"And", "filters": [ { "class":"Equals", "field":"request-id", "value":"${requestId}" }, { "class":"Equals", "field":"rpc-name", "value":"restart" }]}</stringProp>
1144 <stringProp name="Argument.metadata">=</stringProp>
1145 <boolProp name="HTTPArgument.use_equals">true</boolProp>
1146 <stringProp name="Argument.name">filter</stringProp>
1150 <stringProp name="HTTPSampler.domain">${DMAAP_HOST}</stringProp>
1151 <stringProp name="HTTPSampler.port">${DMAAP_PORT}</stringProp>
1152 <stringProp name="HTTPSampler.protocol">https</stringProp>
1153 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
1154 <stringProp name="HTTPSampler.path">events/APPC-LCM-READ/${consumerGroup}/1?timeout=15000&limit=1</stringProp>
1155 <stringProp name="HTTPSampler.method">GET</stringProp>
1156 <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
1157 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
1158 <boolProp name="HTTPSampler.use_keepalive">false</boolProp>
1159 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
1160 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
1161 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
1162 <stringProp name="HTTPSampler.response_timeout"></stringProp>
1165 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="No []" enabled="true">
1166 <collectionProp name="Asserion.test_strings">
1167 <stringProp name="2914">[]</stringProp>
1169 <stringProp name="Assertion.custom_message"></stringProp>
1170 <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
1171 <boolProp name="Assertion.assume_success">false</boolProp>
1172 <intProp name="Assertion.test_type">12</intProp>
1173 </ResponseAssertion>
1175 <RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor" testname="request-id extractor" enabled="true">
1176 <stringProp name="RegexExtractor.useHeaders">false</stringProp>
1177 <stringProp name="RegexExtractor.refname">requestIdOnset</stringProp>
1178 <stringProp name="RegexExtractor.regex">\\"request-id\\": \\"(.+?)\\"</stringProp>
1179 <stringProp name="RegexExtractor.template">$1$</stringProp>
1180 <stringProp name="RegexExtractor.default">none</stringProp>
1181 <stringProp name="RegexExtractor.match_number"></stringProp>
1184 <RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor" testname="correlation-id extractor" enabled="true">
1185 <stringProp name="RegexExtractor.useHeaders">false</stringProp>
1186 <stringProp name="RegexExtractor.refname">correlationId</stringProp>
1187 <stringProp name="RegexExtractor.regex">correlation-id\\": \\"(.+?)\\"</stringProp>
1188 <stringProp name="RegexExtractor.template">$1$</stringProp>
1189 <stringProp name="RegexExtractor.default">none</stringProp>
1190 <stringProp name="RegexExtractor.match_number"></stringProp>
1193 <RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor" testname="sub-request-id extractor" enabled="true">
1194 <stringProp name="RegexExtractor.useHeaders">false</stringProp>
1195 <stringProp name="RegexExtractor.refname">subRequestId</stringProp>
1196 <stringProp name="RegexExtractor.regex">sub-request-id\\": \\"(.+?)\\"</stringProp>
1197 <stringProp name="RegexExtractor.template">$1$</stringProp>
1198 <stringProp name="RegexExtractor.default">none</stringProp>
1199 <stringProp name="RegexExtractor.match_number"></stringProp>
1202 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
1203 <stringProp name="scriptLanguage">groovy</stringProp>
1204 <stringProp name="parameters"></stringProp>
1205 <stringProp name="filename"></stringProp>
1206 <stringProp name="cacheKey">true</stringProp>
1207 <stringProp name="script">String requestIdOnset = vars.get("requestIdOnset");
1208 String requestId = vars.get("requestId");
1209 String correlationId = vars.get("correlationId");
1210 String subRequestId = vars.get("subRequestId");
1211 String counter = vars.get("counter");
1213 String transaction = "none";
1215 log.info ("The requestId id is " + requestId);
1216 log.info ("The requestIdOnset id is " + requestIdOnset);
1217 log.info ("The correlation id is " + correlationId);
1218 log.info ("The subrequest id is " + subRequestId);
1219 log.info ("The counter is " + counter);
1221 if ( requestId == requestIdOnset ) {
1222 if ( correlationId == "none" || subRequestId == "none" ) {
1223 transaction = "FINAL";
1224 log.info ("Final Failure Transaction");
1225 AssertionResult.setFailureMessage("Missing correlationId or subRequestId");
1226 AssertionResult.setFailure(true);
1228 transaction = "FINAL";
1229 vars.put("transaction", "FINAL");
1230 log.info ("Final Success Transaction");
1234 int counterTemp = Integer.parseInt(counter) +1;
1235 if (transaction == "FINAL") {
1237 } else if (counterTemp >= 10) {
1238 AssertionResult.setFailureMessage("vCPE Success APPCL Failure, reached maximum number of 10 attempts ");
1239 AssertionResult.setFailure(true);
1242 vars.put("counter", Integer.toString(counterTemp));
1249 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="APPC[APPC-LCM-READ]: SUCCESS" enabled="true">
1250 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
1251 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
1252 <collectionProp name="Arguments.arguments">
1253 <elementProp name="" elementType="HTTPArgument">
1254 <boolProp name="HTTPArgument.always_encode">false</boolProp>
1255 <stringProp name="Argument.value">{
1256 "body": {
1257 "output": {
1258 "common-header": {
1259 "timestamp": "2020-05-05T15:56:34.845Z",
1260 "api-ver": "2.00",
1261 "originator-id": "${requestId}",
1262 "request-id": "${requestId}",
1263 "sub-request-id": "${subRequestId}",
1264 "flags": {}
1266 "status": {
1267 "code": 400,
1268 "message": "Restart Successful"
1272 "version": "2.0",
1273 "rpc-name": "restart",
1274 "correlation-id": "${correlationId}",
1275 "type": "response"
1278 <stringProp name="Argument.metadata">=</stringProp>
1282 <stringProp name="HTTPSampler.domain">${DROOLS_HOST}</stringProp>
1283 <stringProp name="HTTPSampler.port">${DROOLS_PORT}</stringProp>
1284 <stringProp name="HTTPSampler.protocol">https</stringProp>
1285 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
1286 <stringProp name="HTTPSampler.path">policy/pdp/engine/topics/sources/dmaap/APPC-LCM-WRITE/events</stringProp>
1287 <stringProp name="HTTPSampler.method">PUT</stringProp>
1288 <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
1289 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
1290 <boolProp name="HTTPSampler.use_keepalive">false</boolProp>
1291 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
1292 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
1293 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
1294 <stringProp name="HTTPSampler.response_timeout"></stringProp>
1297 <HeaderManager guiclass="HeaderPanel" testclass="HeaderManager" testname="HTTP Header Manager" enabled="true">
1298 <collectionProp name="HeaderManager.headers">
1299 <elementProp name="" elementType="Header">
1300 <stringProp name="Header.name">Content-Type</stringProp>
1301 <stringProp name="Header.value">text/plain</stringProp>
1307 <JSR223Sampler guiclass="TestBeanGUI" testclass="JSR223Sampler" testname="Init DMaaP Counter" enabled="true">
1308 <stringProp name="scriptLanguage">groovy</stringProp>
1309 <stringProp name="parameters"></stringProp>
1310 <stringProp name="filename"></stringProp>
1311 <stringProp name="cacheKey">true</stringProp>
1312 <stringProp name="script">vars.put("counter", "0");</stringProp>
1315 <WhileController guiclass="WhileControllerGui" testclass="WhileController" testname="Final Success Controller" enabled="true">
1316 <stringProp name="WhileController.condition">${__javaScript(${counter} < 60)}</stringProp>
1319 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="POLICY[POLICY-CL-MGT]: FINAL_SUCCESS" enabled="true">
1320 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
1321 <collectionProp name="Arguments.arguments">
1322 <elementProp name="filter" elementType="HTTPArgument">
1323 <boolProp name="HTTPArgument.always_encode">true</boolProp>
1324 <stringProp name="Argument.value">{"class":"And", "filters": [ { "class":"Equals", "field":"requestId", "value":"${requestId}" }, { "class":"Equals", "field":"notification", "value":"FINAL: SUCCESS" }]}</stringProp>
1325 <stringProp name="Argument.metadata">=</stringProp>
1326 <boolProp name="HTTPArgument.use_equals">true</boolProp>
1327 <stringProp name="Argument.name">filter</stringProp>
1331 <stringProp name="HTTPSampler.domain">${DMAAP_HOST}</stringProp>
1332 <stringProp name="HTTPSampler.port">${DMAAP_PORT}</stringProp>
1333 <stringProp name="HTTPSampler.protocol">https</stringProp>
1334 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
1335 <stringProp name="HTTPSampler.path">events/POLICY-CL-MGT/${consumerGroup}/1?timeout=15000&limit=1</stringProp>
1336 <stringProp name="HTTPSampler.method">GET</stringProp>
1337 <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
1338 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
1339 <boolProp name="HTTPSampler.use_keepalive">false</boolProp>
1340 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
1341 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
1342 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
1343 <stringProp name="HTTPSampler.response_timeout"></stringProp>
1346 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="No []" enabled="true">
1347 <collectionProp name="Asserion.test_strings">
1348 <stringProp name="2914">[]</stringProp>
1350 <stringProp name="Assertion.custom_message"></stringProp>
1351 <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
1352 <boolProp name="Assertion.assume_success">false</boolProp>
1353 <intProp name="Assertion.test_type">12</intProp>
1354 </ResponseAssertion>
1356 <RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor" testname="requestId extractor" enabled="true">
1357 <stringProp name="RegexExtractor.useHeaders">false</stringProp>
1358 <stringProp name="RegexExtractor.refname">requestIdOnset</stringProp>
1359 <stringProp name="RegexExtractor.regex">requestId\\": \\"(.+?)\\"</stringProp>
1360 <stringProp name="RegexExtractor.template">$1$</stringProp>
1361 <stringProp name="RegexExtractor.default">none</stringProp>
1362 <stringProp name="RegexExtractor.match_number"></stringProp>
1365 <RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor" testname="notification extractor" enabled="true">
1366 <stringProp name="RegexExtractor.useHeaders">false</stringProp>
1367 <stringProp name="RegexExtractor.refname">notification</stringProp>
1368 <stringProp name="RegexExtractor.regex">notification\\": \\"FINAL: (.+?)\\"</stringProp>
1369 <stringProp name="RegexExtractor.template">$1$</stringProp>
1370 <stringProp name="RegexExtractor.default">none</stringProp>
1371 <stringProp name="RegexExtractor.match_number"></stringProp>
1374 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
1375 <stringProp name="scriptLanguage">groovy</stringProp>
1376 <stringProp name="parameters"></stringProp>
1377 <stringProp name="filename"></stringProp>
1378 <stringProp name="cacheKey">true</stringProp>
1379 <stringProp name="script">String requestIdOnset = vars.get("requestIdOnset");
1380 String requestId = vars.get("requestId");
1381 String notification = vars.get("notification");
1382 String counter = vars.get("counter");
1384 String transaction = "none";
1386 log.info ("The requestId id is " + requestId);
1387 log.info ("The requestIdOnset id is " + requestIdOnset);
1388 log.info ("The notification is " + notification);
1389 log.info ("The transaction is " + transaction);
1390 log.info ("The counter is " + counter);
1392 if ( requestId == requestIdOnset ) {
1393 if ( notification == "SUCCESS" ) {
1394 transaction = "FINAL";
1395 log.info ("Final Success Transaction");
1396 log.info ("The notification is SUCCESS");
1397 } else if ( notification == "FAILURE" ) {
1398 transaction = "FINAL";
1399 log.info ("Final Failure Transaction");
1400 AssertionResult.setFailureMessage("Bad final notification");
1401 AssertionResult.setFailure(true);
1405 int counterTemp = Integer.parseInt(counter) +1;
1406 if (transaction == "FINAL") {
1408 } else if (counterTemp >= 60) {
1409 AssertionResult.setFailureMessage("vCPE Success POLICYCL Failure, reached maximum number of attempts ");
1410 AssertionResult.setFailure(true);
1413 vars.put("counter", Integer.toString(counterTemp));</stringProp>
1418 <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true">
1419 <boolProp name="ResultCollector.error_logging">false</boolProp>
1421 <name>saveConfig</name>
1422 <value class="SampleSaveConfiguration">
1424 <latency>true</latency>
1425 <timestamp>true</timestamp>
1426 <success>true</success>
1429 <message>true</message>
1430 <threadName>true</threadName>
1431 <dataType>true</dataType>
1432 <encoding>false</encoding>
1433 <assertions>true</assertions>
1434 <subresults>true</subresults>
1435 <responseData>false</responseData>
1436 <samplerData>false</samplerData>
1438 <fieldNames>true</fieldNames>
1439 <responseHeaders>false</responseHeaders>
1440 <requestHeaders>false</requestHeaders>
1441 <responseDataOnError>false</responseDataOnError>
1442 <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
1443 <assertionsResultsToSave>0</assertionsResultsToSave>
1445 <sentBytes>true</sentBytes>
1447 <threadCounts>true</threadCounts>
1448 <idleTime>true</idleTime>
1449 <connectTime>true</connectTime>
1452 <stringProp name="filename"></stringProp>
1456 <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="vCPE Failure" enabled="true">
1457 <stringProp name="ThreadGroup.on_sample_error">startnextloop</stringProp>
1458 <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true">
1459 <boolProp name="LoopController.continue_forever">false</boolProp>
1460 <intProp name="LoopController.loops">-1</intProp>
1462 <stringProp name="ThreadGroup.num_threads">1</stringProp>
1463 <stringProp name="ThreadGroup.ramp_time">1</stringProp>
1464 <boolProp name="ThreadGroup.scheduler">true</boolProp>
1465 <stringProp name="ThreadGroup.duration">${duration}</stringProp>
1466 <stringProp name="ThreadGroup.delay">5</stringProp>
1469 <UserParameters guiclass="UserParametersGui" testclass="UserParameters" testname="Set consumer group per scenario" enabled="true">
1470 <collectionProp name="UserParameters.names">
1471 <stringProp name="-308835287">consumerGroup</stringProp>
1473 <collectionProp name="UserParameters.thread_values">
1474 <collectionProp name="-1129400645">
1475 <stringProp name="-1294689816">vcpefailure</stringProp>
1478 <boolProp name="UserParameters.per_iteration">false</boolProp>
1479 <stringProp name="TestPlan.comments">Global to the thread group</stringProp>
1482 <UserParameters guiclass="UserParametersGui" testclass="UserParameters" testname="Set request id per cycle" enabled="true">
1483 <collectionProp name="UserParameters.names">
1484 <stringProp name="693933066">requestId</stringProp>
1486 <collectionProp name="UserParameters.thread_values">
1487 <collectionProp name="681405977">
1488 <stringProp name="118040362">${__UUID()}</stringProp>
1491 <boolProp name="UserParameters.per_iteration">true</boolProp>
1492 <stringProp name="TestPlan.comments">Update on a per iteration basis</stringProp>
1495 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="DCAE[DCAE_TOPIC]: ONSET" enabled="true">
1496 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
1497 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
1498 <collectionProp name="Arguments.arguments">
1499 <elementProp name="" elementType="HTTPArgument">
1500 <boolProp name="HTTPArgument.always_encode">false</boolProp>
1501 <stringProp name="Argument.value">{
1502 "closedLoopControlName": "ControlLoop-vCPE-Fail",
1503 "closedLoopAlarmStart": 1463679805324,
1504 "closedLoopEventClient": "DCAE_INSTANCE_ID.dcae-tca",
1505 "closedLoopEventStatus": "ONSET",
1506 "requestID": "${requestId}",
1507 "target_type": "VNF",
1508 "target": "generic-vnf.vnf-id",
1509 "AAI": {
1510 "vserver.is-closed-loop-disabled": "false",
1511 "vserver.prov-status": "ACTIVE",
1512 "generic-vnf.vnf-id": "a_fail_vnf_id"
1514 "from": "DCAE",
1515 "version": "1.0.2"
1517 <stringProp name="Argument.metadata">=</stringProp>
1521 <stringProp name="HTTPSampler.domain">${DROOLS_HOST}</stringProp>
1522 <stringProp name="HTTPSampler.port">${DROOLS_PORT}</stringProp>
1523 <stringProp name="HTTPSampler.protocol">https</stringProp>
1524 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
1525 <stringProp name="HTTPSampler.path">policy/pdp/engine/topics/sources/dmaap/DCAE_TOPIC/events</stringProp>
1526 <stringProp name="HTTPSampler.method">PUT</stringProp>
1527 <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
1528 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
1529 <boolProp name="HTTPSampler.use_keepalive">false</boolProp>
1530 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
1531 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
1532 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
1533 <stringProp name="HTTPSampler.response_timeout"></stringProp>
1536 <HeaderManager guiclass="HeaderPanel" testclass="HeaderManager" testname="HTTP Header Manager" enabled="true">
1537 <collectionProp name="HeaderManager.headers">
1538 <elementProp name="" elementType="Header">
1539 <stringProp name="Header.name">Content-Type</stringProp>
1540 <stringProp name="Header.value">text/plain</stringProp>
1546 <JSR223Sampler guiclass="TestBeanGUI" testclass="JSR223Sampler" testname="Init DMaaP Counter" enabled="true">
1547 <stringProp name="scriptLanguage">groovy</stringProp>
1548 <stringProp name="parameters"></stringProp>
1549 <stringProp name="filename"></stringProp>
1550 <stringProp name="cacheKey">true</stringProp>
1551 <stringProp name="script">vars.put("counter", "0");</stringProp>
1554 <WhileController guiclass="WhileControllerGui" testclass="WhileController" testname="APPCL Restart Loop Controller" enabled="true">
1555 <stringProp name="WhileController.condition">${__javaScript(${counter} < 10)}</stringProp>
1558 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="POLICY[APPC-LCM-READ]: Restart" enabled="true">
1559 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
1560 <collectionProp name="Arguments.arguments">
1561 <elementProp name="filter" elementType="HTTPArgument">
1562 <boolProp name="HTTPArgument.always_encode">true</boolProp>
1563 <stringProp name="Argument.value">{"class":"And", "filters": [ { "class":"Equals", "field":"request-id", "value":"${requestId}" }, { "class":"Equals", "field":"rpc-name", "value":"restart" }]}</stringProp>
1564 <stringProp name="Argument.metadata">=</stringProp>
1565 <boolProp name="HTTPArgument.use_equals">true</boolProp>
1566 <stringProp name="Argument.name">filter</stringProp>
1570 <stringProp name="HTTPSampler.domain">${DMAAP_HOST}</stringProp>
1571 <stringProp name="HTTPSampler.port">${DMAAP_PORT}</stringProp>
1572 <stringProp name="HTTPSampler.protocol">https</stringProp>
1573 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
1574 <stringProp name="HTTPSampler.path">events/APPC-LCM-READ/${consumerGroup}/1?timeout=15000&limit=1</stringProp>
1575 <stringProp name="HTTPSampler.method">GET</stringProp>
1576 <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
1577 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
1578 <boolProp name="HTTPSampler.use_keepalive">false</boolProp>
1579 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
1580 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
1581 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
1582 <stringProp name="HTTPSampler.response_timeout"></stringProp>
1585 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="No []" enabled="true">
1586 <collectionProp name="Asserion.test_strings">
1587 <stringProp name="2914">[]</stringProp>
1589 <stringProp name="Assertion.custom_message"></stringProp>
1590 <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
1591 <boolProp name="Assertion.assume_success">false</boolProp>
1592 <intProp name="Assertion.test_type">12</intProp>
1593 </ResponseAssertion>
1595 <RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor" testname="request-id extractor" enabled="true">
1596 <stringProp name="RegexExtractor.useHeaders">false</stringProp>
1597 <stringProp name="RegexExtractor.refname">requestIdOnset</stringProp>
1598 <stringProp name="RegexExtractor.regex">\\"request-id\\": \\"(.+?)\\"</stringProp>
1599 <stringProp name="RegexExtractor.template">$1$</stringProp>
1600 <stringProp name="RegexExtractor.default">none</stringProp>
1601 <stringProp name="RegexExtractor.match_number"></stringProp>
1604 <RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor" testname="correlation-id extractor" enabled="true">
1605 <stringProp name="RegexExtractor.useHeaders">false</stringProp>
1606 <stringProp name="RegexExtractor.refname">correlationId</stringProp>
1607 <stringProp name="RegexExtractor.regex">correlation-id\\": \\"(.+?)\\"</stringProp>
1608 <stringProp name="RegexExtractor.template">$1$</stringProp>
1609 <stringProp name="RegexExtractor.default">none</stringProp>
1610 <stringProp name="RegexExtractor.match_number"></stringProp>
1613 <RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor" testname="sub-request-id extractor" enabled="true">
1614 <stringProp name="RegexExtractor.useHeaders">false</stringProp>
1615 <stringProp name="RegexExtractor.refname">subRequestId</stringProp>
1616 <stringProp name="RegexExtractor.regex">sub-request-id\\": \\"(.+?)\\"</stringProp>
1617 <stringProp name="RegexExtractor.template">$1$</stringProp>
1618 <stringProp name="RegexExtractor.default">none</stringProp>
1619 <stringProp name="RegexExtractor.match_number"></stringProp>
1622 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
1623 <stringProp name="scriptLanguage">groovy</stringProp>
1624 <stringProp name="parameters"></stringProp>
1625 <stringProp name="filename"></stringProp>
1626 <stringProp name="cacheKey">true</stringProp>
1627 <stringProp name="script">String requestIdOnset = vars.get("requestIdOnset");
1628 String requestId = vars.get("requestId");
1629 String correlationId = vars.get("correlationId");
1630 String subRequestId = vars.get("subRequestId");
1631 String counter = vars.get("counter");
1633 String transaction = "none";
1635 log.info ("The requestId id is " + requestId);
1636 log.info ("The requestIdOnset id is " + requestIdOnset);
1637 log.info ("The correlation id is " + correlationId);
1638 log.info ("The subrequest id is " + subRequestId);
1639 log.info ("The counter is " + counter);
1641 if ( requestId == requestIdOnset ) {
1642 if ( correlationId == "none" || subRequestId == "none" ) {
1643 transaction = "FINAL";
1644 log.info ("Final Failure Transaction");
1645 AssertionResult.setFailureMessage("Missing correlationId or subRequestId");
1646 AssertionResult.setFailure(true);
1648 transaction = "FINAL";
1649 vars.put("transaction", "FINAL");
1650 log.info ("Final Success Transaction");
1654 int counterTemp = Integer.parseInt(counter) +1;
1655 if (transaction == "FINAL") {
1657 } else if (counterTemp >= 10) {
1658 AssertionResult.setFailureMessage("vCPE Failure APPCL Failure, reached maximum number of 10 attempts ");
1659 AssertionResult.setFailure(true);
1662 vars.put("counter", Integer.toString(counterTemp));
1669 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="APPC[APPC-LCM-READ]: FAILURE" enabled="true">
1670 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
1671 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
1672 <collectionProp name="Arguments.arguments">
1673 <elementProp name="" elementType="HTTPArgument">
1674 <boolProp name="HTTPArgument.always_encode">false</boolProp>
1675 <stringProp name="Argument.value">{
1676 "body": {
1677 "output": {
1678 "common-header": {
1679 "timestamp": "2020-05-07T15:56:34.845Z",
1680 "api-ver": "2.00",
1681 "originator-id": "${requestId}",
1682 "request-id": "${requestId}",
1683 "sub-request-id": "${subRequestId}",
1684 "flags": {}
1686 "status": {
1687 "code": 450,
1688 "message": "Restart Failed"
1692 "version": "2.0",
1693 "rpc-name": "restart",
1694 "correlation-id": "${correlationId}",
1695 "type": "response"
1698 <stringProp name="Argument.metadata">=</stringProp>
1702 <stringProp name="HTTPSampler.domain">${DROOLS_HOST}</stringProp>
1703 <stringProp name="HTTPSampler.port">${DROOLS_PORT}</stringProp>
1704 <stringProp name="HTTPSampler.protocol">https</stringProp>
1705 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
1706 <stringProp name="HTTPSampler.path">policy/pdp/engine/topics/sources/dmaap/APPC-LCM-WRITE/events</stringProp>
1707 <stringProp name="HTTPSampler.method">PUT</stringProp>
1708 <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
1709 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
1710 <boolProp name="HTTPSampler.use_keepalive">false</boolProp>
1711 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
1712 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
1713 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
1714 <stringProp name="HTTPSampler.response_timeout"></stringProp>
1717 <HeaderManager guiclass="HeaderPanel" testclass="HeaderManager" testname="HTTP Header Manager" enabled="true">
1718 <collectionProp name="HeaderManager.headers">
1719 <elementProp name="" elementType="Header">
1720 <stringProp name="Header.name">Content-Type</stringProp>
1721 <stringProp name="Header.value">text/plain</stringProp>
1727 <JSR223Sampler guiclass="TestBeanGUI" testclass="JSR223Sampler" testname="Init DMaaP Counter" enabled="true">
1728 <stringProp name="scriptLanguage">groovy</stringProp>
1729 <stringProp name="parameters"></stringProp>
1730 <stringProp name="filename"></stringProp>
1731 <stringProp name="cacheKey">true</stringProp>
1732 <stringProp name="script">vars.put("counter", "0");</stringProp>
1735 <WhileController guiclass="WhileControllerGui" testclass="WhileController" testname="Final Success Controller" enabled="true">
1736 <stringProp name="WhileController.condition">${__javaScript(${counter} < 60)}</stringProp>
1739 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="POLICY[POLICY-CL-MGT]: FINAL_FAILURE" enabled="true">
1740 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
1741 <collectionProp name="Arguments.arguments">
1742 <elementProp name="filter" elementType="HTTPArgument">
1743 <boolProp name="HTTPArgument.always_encode">true</boolProp>
1744 <stringProp name="Argument.value">{"class":"And", "filters": [ { "class":"Equals", "field":"requestId", "value":"${requestId}" }, { "class":"Equals", "field":"notification", "value":"FINAL: FAILURE" }]}</stringProp>
1745 <stringProp name="Argument.metadata">=</stringProp>
1746 <boolProp name="HTTPArgument.use_equals">true</boolProp>
1747 <stringProp name="Argument.name">filter</stringProp>
1751 <stringProp name="HTTPSampler.domain">${DMAAP_HOST}</stringProp>
1752 <stringProp name="HTTPSampler.port">${DMAAP_PORT}</stringProp>
1753 <stringProp name="HTTPSampler.protocol">https</stringProp>
1754 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
1755 <stringProp name="HTTPSampler.path">events/POLICY-CL-MGT/${consumerGroup}/1?timeout=15000&limit=1</stringProp>
1756 <stringProp name="HTTPSampler.method">GET</stringProp>
1757 <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
1758 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
1759 <boolProp name="HTTPSampler.use_keepalive">false</boolProp>
1760 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
1761 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
1762 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
1763 <stringProp name="HTTPSampler.response_timeout"></stringProp>
1766 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="No []" enabled="true">
1767 <collectionProp name="Asserion.test_strings">
1768 <stringProp name="2914">[]</stringProp>
1770 <stringProp name="Assertion.custom_message"></stringProp>
1771 <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
1772 <boolProp name="Assertion.assume_success">false</boolProp>
1773 <intProp name="Assertion.test_type">12</intProp>
1774 </ResponseAssertion>
1776 <RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor" testname="requestId extractor" enabled="true">
1777 <stringProp name="RegexExtractor.useHeaders">false</stringProp>
1778 <stringProp name="RegexExtractor.refname">requestIdOnset</stringProp>
1779 <stringProp name="RegexExtractor.regex">requestId\\": \\"(.+?)\\"</stringProp>
1780 <stringProp name="RegexExtractor.template">$1$</stringProp>
1781 <stringProp name="RegexExtractor.default">none</stringProp>
1782 <stringProp name="RegexExtractor.match_number"></stringProp>
1785 <RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor" testname="notification extractor" enabled="true">
1786 <stringProp name="RegexExtractor.useHeaders">false</stringProp>
1787 <stringProp name="RegexExtractor.refname">notification</stringProp>
1788 <stringProp name="RegexExtractor.regex">notification\\": \\"FINAL: (.+?)\\"</stringProp>
1789 <stringProp name="RegexExtractor.template">$1$</stringProp>
1790 <stringProp name="RegexExtractor.default">none</stringProp>
1791 <stringProp name="RegexExtractor.match_number"></stringProp>
1794 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
1795 <stringProp name="scriptLanguage">groovy</stringProp>
1796 <stringProp name="parameters"></stringProp>
1797 <stringProp name="filename"></stringProp>
1798 <stringProp name="cacheKey">true</stringProp>
1799 <stringProp name="script">String requestIdOnset = vars.get("requestIdOnset");
1800 String requestId = vars.get("requestId");
1801 String notification = vars.get("notification");
1802 String counter = vars.get("counter");
1804 String transaction = "none";
1806 log.info ("The requestId id is " + requestId);
1807 log.info ("The requestIdOnset id is " + requestIdOnset);
1808 log.info ("The notification is " + notification);
1809 log.info ("The transaction is " + transaction);
1810 log.info ("The counter is " + counter);
1812 if ( requestId == requestIdOnset ) {
1813 if ( notification == "SUCCESS" ) {
1814 transaction = "FINAL";
1815 log.info ("Final Success Transaction");
1816 AssertionResult.setFailureMessage("Unexpected SUCCESS notification");
1817 AssertionResult.setFailure(true);
1818 } else if ( notification == "FAILURE" ) {
1819 transaction = "FINAL";
1820 log.info ("Final Failure Transaction");
1824 int counterTemp = Integer.parseInt(counter) +1;
1825 if (transaction == "FINAL") {
1827 } else if (counterTemp >= 60) {
1828 AssertionResult.setFailureMessage("vCPE Failure POLICYCL Failure, reached maximum number of 10 attempts ");
1829 AssertionResult.setFailure(true);
1832 vars.put("counter", Integer.toString(counterTemp));</stringProp>
1837 <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true">
1838 <boolProp name="ResultCollector.error_logging">false</boolProp>
1840 <name>saveConfig</name>
1841 <value class="SampleSaveConfiguration">
1843 <latency>true</latency>
1844 <timestamp>true</timestamp>
1845 <success>true</success>
1848 <message>true</message>
1849 <threadName>true</threadName>
1850 <dataType>true</dataType>
1851 <encoding>false</encoding>
1852 <assertions>true</assertions>
1853 <subresults>true</subresults>
1854 <responseData>false</responseData>
1855 <samplerData>false</samplerData>
1857 <fieldNames>true</fieldNames>
1858 <responseHeaders>false</responseHeaders>
1859 <requestHeaders>false</requestHeaders>
1860 <responseDataOnError>false</responseDataOnError>
1861 <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
1862 <assertionsResultsToSave>0</assertionsResultsToSave>
1864 <sentBytes>true</sentBytes>
1866 <threadCounts>true</threadCounts>
1867 <idleTime>true</idleTime>
1868 <connectTime>true</connectTime>
1871 <stringProp name="filename"></stringProp>
1875 <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="vDNS Success" enabled="true">
1876 <stringProp name="ThreadGroup.on_sample_error">startnextloop</stringProp>
1877 <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true">
1878 <boolProp name="LoopController.continue_forever">false</boolProp>
1879 <intProp name="LoopController.loops">-1</intProp>
1881 <stringProp name="ThreadGroup.num_threads">1</stringProp>
1882 <stringProp name="ThreadGroup.ramp_time">1</stringProp>
1883 <boolProp name="ThreadGroup.scheduler">true</boolProp>
1884 <stringProp name="ThreadGroup.duration">${duration}</stringProp>
1885 <stringProp name="ThreadGroup.delay">10</stringProp>
1888 <UserParameters guiclass="UserParametersGui" testclass="UserParameters" testname="Set consumer group per scenario" enabled="true">
1889 <collectionProp name="UserParameters.names">
1890 <stringProp name="-308835287">consumerGroup</stringProp>
1892 <collectionProp name="UserParameters.thread_values">
1893 <collectionProp name="-2069404111">
1894 <stringProp name="-27349072">vdnssuccess</stringProp>
1897 <boolProp name="UserParameters.per_iteration">false</boolProp>
1898 <stringProp name="TestPlan.comments">Global to the thread group</stringProp>
1901 <UserParameters guiclass="UserParametersGui" testclass="UserParameters" testname="Set request id per cycle" enabled="true">
1902 <collectionProp name="UserParameters.names">
1903 <stringProp name="693933066">requestId</stringProp>
1905 <collectionProp name="UserParameters.thread_values">
1906 <collectionProp name="681405977">
1907 <stringProp name="118040362">${__UUID()}</stringProp>
1910 <boolProp name="UserParameters.per_iteration">true</boolProp>
1911 <stringProp name="TestPlan.comments">Update on a per iteration basis</stringProp>
1914 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="DCAE[DCAE_TOPIC]: ONSET" enabled="true">
1915 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
1916 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
1917 <collectionProp name="Arguments.arguments">
1918 <elementProp name="" elementType="HTTPArgument">
1919 <boolProp name="HTTPArgument.always_encode">false</boolProp>
1920 <stringProp name="Argument.value">{
1921 "closedLoopControlName": "ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3",
1922 "closedLoopAlarmStart": 1463679805324,
1923 "closedLoopEventClient": "microservice.stringmatcher",
1924 "closedLoopEventStatus": "ONSET",
1925 "requestID": "${requestId}",
1926 "target_type": "VNF",
1927 "target": "vserver.vserver-name",
1928 "AAI": {
1929 "vserver.is-closed-loop-disabled": "false",
1930 "vserver.prov-status": "ACTIVE",
1931 "vserver.vserver-name": "OzVServer"
1933 "from": "DCAE",
1934 "version": "1.0.2"
1936 <stringProp name="Argument.metadata">=</stringProp>
1940 <stringProp name="HTTPSampler.domain">${DROOLS_HOST}</stringProp>
1941 <stringProp name="HTTPSampler.port">${DROOLS_PORT}</stringProp>
1942 <stringProp name="HTTPSampler.protocol">https</stringProp>
1943 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
1944 <stringProp name="HTTPSampler.path">policy/pdp/engine/topics/sources/dmaap/DCAE_TOPIC/events</stringProp>
1945 <stringProp name="HTTPSampler.method">PUT</stringProp>
1946 <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
1947 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
1948 <boolProp name="HTTPSampler.use_keepalive">false</boolProp>
1949 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
1950 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
1951 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
1952 <stringProp name="HTTPSampler.response_timeout"></stringProp>
1955 <HeaderManager guiclass="HeaderPanel" testclass="HeaderManager" testname="HTTP Header Manager" enabled="true">
1956 <collectionProp name="HeaderManager.headers">
1957 <elementProp name="" elementType="Header">
1958 <stringProp name="Header.name">Content-Type</stringProp>
1959 <stringProp name="Header.value">text/plain</stringProp>
1965 <JSR223Sampler guiclass="TestBeanGUI" testclass="JSR223Sampler" testname="Init DMaaP Counter" enabled="true">
1966 <stringProp name="scriptLanguage">groovy</stringProp>
1967 <stringProp name="parameters"></stringProp>
1968 <stringProp name="filename"></stringProp>
1969 <stringProp name="cacheKey">true</stringProp>
1970 <stringProp name="script">vars.put("counter", "0");
1971 vars.put("transaction", "none");</stringProp>
1974 <WhileController guiclass="WhileControllerGui" testclass="WhileController" testname="Final Success Controller" enabled="true">
1975 <stringProp name="WhileController.condition">${__javaScript(${counter} < 60)}</stringProp>
1978 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="POLICY[POLICY-CL-MGT]: FINAL_SUCCESS" enabled="true">
1979 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
1980 <collectionProp name="Arguments.arguments">
1981 <elementProp name="filter" elementType="HTTPArgument">
1982 <boolProp name="HTTPArgument.always_encode">true</boolProp>
1983 <stringProp name="Argument.value">{"class":"And", "filters": [ { "class":"Equals", "field":"requestId", "value":"${requestId}" }, { "class":"Equals", "field":"notification", "value":"FINAL: SUCCESS" }]}</stringProp>
1984 <stringProp name="Argument.metadata">=</stringProp>
1985 <boolProp name="HTTPArgument.use_equals">true</boolProp>
1986 <stringProp name="Argument.name">filter</stringProp>
1990 <stringProp name="HTTPSampler.domain">${DMAAP_HOST}</stringProp>
1991 <stringProp name="HTTPSampler.port">${DMAAP_PORT}</stringProp>
1992 <stringProp name="HTTPSampler.protocol">https</stringProp>
1993 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
1994 <stringProp name="HTTPSampler.path">events/POLICY-CL-MGT/${consumerGroup}/1?timeout=20000&limit=1</stringProp>
1995 <stringProp name="HTTPSampler.method">GET</stringProp>
1996 <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
1997 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
1998 <boolProp name="HTTPSampler.use_keepalive">false</boolProp>
1999 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
2000 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
2001 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
2002 <stringProp name="HTTPSampler.response_timeout"></stringProp>
2005 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="No []" enabled="true">
2006 <collectionProp name="Asserion.test_strings">
2007 <stringProp name="2914">[]</stringProp>
2009 <stringProp name="Assertion.custom_message"></stringProp>
2010 <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
2011 <boolProp name="Assertion.assume_success">false</boolProp>
2012 <intProp name="Assertion.test_type">12</intProp>
2013 </ResponseAssertion>
2015 <RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor" testname="requestId extractor" enabled="true">
2016 <stringProp name="RegexExtractor.useHeaders">false</stringProp>
2017 <stringProp name="RegexExtractor.refname">requestIdOnset</stringProp>
2018 <stringProp name="RegexExtractor.regex">requestId\\": \\"(.+?)\\"</stringProp>
2019 <stringProp name="RegexExtractor.template">$1$</stringProp>
2020 <stringProp name="RegexExtractor.default">none</stringProp>
2021 <stringProp name="RegexExtractor.match_number"></stringProp>
2024 <RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor" testname="notification extractor" enabled="true">
2025 <stringProp name="RegexExtractor.useHeaders">false</stringProp>
2026 <stringProp name="RegexExtractor.refname">notification</stringProp>
2027 <stringProp name="RegexExtractor.regex">notification\\": \\"FINAL: (.+?)\\"</stringProp>
2028 <stringProp name="RegexExtractor.template">$1$</stringProp>
2029 <stringProp name="RegexExtractor.default">none</stringProp>
2030 <stringProp name="RegexExtractor.match_number"></stringProp>
2033 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
2034 <stringProp name="scriptLanguage">groovy</stringProp>
2035 <stringProp name="parameters"></stringProp>
2036 <stringProp name="filename"></stringProp>
2037 <stringProp name="cacheKey">true</stringProp>
2038 <stringProp name="script">String requestIdOnset = vars.get("requestIdOnset");
2039 String requestId = vars.get("requestId");
2040 String notification = vars.get("notification");
2041 String counter = vars.get("counter");
2043 String transaction = "none";
2045 log.info ("The requestId id is " + requestId);
2046 log.info ("The requestIdOnset id is " + requestIdOnset);
2047 log.info ("The notification is " + notification);
2048 log.info ("The transaction is " + transaction);
2049 log.info ("The counter is " + counter);
2051 if ( requestId == requestIdOnset ) {
2052 if ( notification == "SUCCESS" ) {
2053 transaction = "FINAL";
2054 log.info ("Final Success Transaction");
2055 log.info ("The notification is SUCCESS");
2056 } else if ( notification == "FAILURE" ) {
2057 transaction = "FINAL";
2058 log.info ("Final Failure Transaction");
2059 AssertionResult.setFailureMessage("Bad final notification");
2060 AssertionResult.setFailure(true);
2064 int counterTemp = Integer.parseInt(counter) +1;
2065 if (transaction == "FINAL") {
2067 } else if (counterTemp >= 60) {
2068 AssertionResult.setFailureMessage("vDNS Success POLICYCL Failure, reached maximum number of attempts ");
2069 AssertionResult.setFailure(true);
2072 vars.put("counter", Integer.toString(counterTemp));</stringProp>
2077 <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true">
2078 <boolProp name="ResultCollector.error_logging">false</boolProp>
2080 <name>saveConfig</name>
2081 <value class="SampleSaveConfiguration">
2083 <latency>true</latency>
2084 <timestamp>true</timestamp>
2085 <success>true</success>
2088 <message>true</message>
2089 <threadName>true</threadName>
2090 <dataType>true</dataType>
2091 <encoding>false</encoding>
2092 <assertions>true</assertions>
2093 <subresults>true</subresults>
2094 <responseData>false</responseData>
2095 <samplerData>false</samplerData>
2097 <fieldNames>true</fieldNames>
2098 <responseHeaders>false</responseHeaders>
2099 <requestHeaders>false</requestHeaders>
2100 <responseDataOnError>false</responseDataOnError>
2101 <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
2102 <assertionsResultsToSave>0</assertionsResultsToSave>
2104 <sentBytes>true</sentBytes>
2106 <threadCounts>true</threadCounts>
2107 <idleTime>true</idleTime>
2108 <connectTime>true</connectTime>
2111 <stringProp name="filename"></stringProp>
2115 <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="vDNS Failure" enabled="true">
2116 <stringProp name="ThreadGroup.on_sample_error">startnextloop</stringProp>
2117 <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true">
2118 <boolProp name="LoopController.continue_forever">false</boolProp>
2119 <intProp name="LoopController.loops">-1</intProp>
2121 <stringProp name="ThreadGroup.num_threads">1</stringProp>
2122 <stringProp name="ThreadGroup.ramp_time">1</stringProp>
2123 <boolProp name="ThreadGroup.scheduler">true</boolProp>
2124 <stringProp name="ThreadGroup.duration">${duration}</stringProp>
2125 <stringProp name="ThreadGroup.delay">15</stringProp>
2128 <UserParameters guiclass="UserParametersGui" testclass="UserParameters" testname="Set consumer group per scenario" enabled="true">
2129 <collectionProp name="UserParameters.names">
2130 <stringProp name="-308835287">consumerGroup</stringProp>
2132 <collectionProp name="UserParameters.thread_values">
2133 <collectionProp name="877384373">
2134 <stringProp name="753246519">vdnsfailure</stringProp>
2137 <boolProp name="UserParameters.per_iteration">false</boolProp>
2138 <stringProp name="TestPlan.comments">Global to the thread group</stringProp>
2141 <UserParameters guiclass="UserParametersGui" testclass="UserParameters" testname="Set request id per cycle" enabled="true">
2142 <collectionProp name="UserParameters.names">
2143 <stringProp name="693933066">requestId</stringProp>
2145 <collectionProp name="UserParameters.thread_values">
2146 <collectionProp name="681405977">
2147 <stringProp name="118040362">${__UUID()}</stringProp>
2150 <boolProp name="UserParameters.per_iteration">true</boolProp>
2151 <stringProp name="TestPlan.comments">Update on a per iteration basis</stringProp>
2154 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="DCAE[DCAE_TOPIC]: ONSET" enabled="true">
2155 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
2156 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
2157 <collectionProp name="Arguments.arguments">
2158 <elementProp name="" elementType="HTTPArgument">
2159 <boolProp name="HTTPArgument.always_encode">false</boolProp>
2160 <stringProp name="Argument.value">{
2161 "closedLoopControlName": "ControlLoop-vDNS-Fail",
2162 "closedLoopAlarmStart": 1463679805324,
2163 "closedLoopEventClient": "microservice.stringmatcher",
2164 "closedLoopEventStatus": "ONSET",
2165 "requestID": "${requestId}",
2166 "target_type": "VNF",
2167 "target": "vserver.vserver-name",
2168 "AAI": {
2169 "vserver.is-closed-loop-disabled": "false",
2170 "vserver.prov-status": "ACTIVE",
2171 "vserver.vserver-name": "AAA"
2173 "from": "DCAE",
2174 "version": "1.0.2"
2176 <stringProp name="Argument.metadata">=</stringProp>
2180 <stringProp name="HTTPSampler.domain">${DROOLS_HOST}</stringProp>
2181 <stringProp name="HTTPSampler.port">${DROOLS_PORT}</stringProp>
2182 <stringProp name="HTTPSampler.protocol">https</stringProp>
2183 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
2184 <stringProp name="HTTPSampler.path">policy/pdp/engine/topics/sources/dmaap/DCAE_TOPIC/events</stringProp>
2185 <stringProp name="HTTPSampler.method">PUT</stringProp>
2186 <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
2187 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
2188 <boolProp name="HTTPSampler.use_keepalive">false</boolProp>
2189 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
2190 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
2191 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
2192 <stringProp name="HTTPSampler.response_timeout"></stringProp>
2195 <HeaderManager guiclass="HeaderPanel" testclass="HeaderManager" testname="HTTP Header Manager" enabled="true">
2196 <collectionProp name="HeaderManager.headers">
2197 <elementProp name="" elementType="Header">
2198 <stringProp name="Header.name">Content-Type</stringProp>
2199 <stringProp name="Header.value">text/plain</stringProp>
2205 <JSR223Sampler guiclass="TestBeanGUI" testclass="JSR223Sampler" testname="Init DMaaP Counter" enabled="true">
2206 <stringProp name="scriptLanguage">groovy</stringProp>
2207 <stringProp name="parameters"></stringProp>
2208 <stringProp name="filename"></stringProp>
2209 <stringProp name="cacheKey">true</stringProp>
2210 <stringProp name="script">vars.put("counter", "0");
2211 vars.put("transaction", "none");</stringProp>
2214 <WhileController guiclass="WhileControllerGui" testclass="WhileController" testname="Final Failure Controller" enabled="true">
2215 <stringProp name="WhileController.condition">${__javaScript(${counter} < 60)}</stringProp>
2218 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="POLICY[POLICY-CL-MGT]: FINAL_FAILURE" enabled="true">
2219 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
2220 <collectionProp name="Arguments.arguments">
2221 <elementProp name="filter" elementType="HTTPArgument">
2222 <boolProp name="HTTPArgument.always_encode">true</boolProp>
2223 <stringProp name="Argument.value">{"class":"And", "filters": [ { "class":"Equals", "field":"requestId", "value":"${requestId}" }, { "class":"Equals", "field":"notification", "value":"FINAL: SUCCESS" }]}</stringProp>
2224 <stringProp name="Argument.metadata">=</stringProp>
2225 <boolProp name="HTTPArgument.use_equals">true</boolProp>
2226 <stringProp name="Argument.name">filter</stringProp>
2230 <stringProp name="HTTPSampler.domain">${DMAAP_HOST}</stringProp>
2231 <stringProp name="HTTPSampler.port">${DMAAP_PORT}</stringProp>
2232 <stringProp name="HTTPSampler.protocol">https</stringProp>
2233 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
2234 <stringProp name="HTTPSampler.path">events/POLICY-CL-MGT/${consumerGroup}/1?timeout=20000&limit=1</stringProp>
2235 <stringProp name="HTTPSampler.method">GET</stringProp>
2236 <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
2237 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
2238 <boolProp name="HTTPSampler.use_keepalive">false</boolProp>
2239 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
2240 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
2241 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
2242 <stringProp name="HTTPSampler.response_timeout"></stringProp>
2245 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="No []" enabled="true">
2246 <collectionProp name="Asserion.test_strings">
2247 <stringProp name="2914">[]</stringProp>
2249 <stringProp name="Assertion.custom_message"></stringProp>
2250 <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
2251 <boolProp name="Assertion.assume_success">false</boolProp>
2252 <intProp name="Assertion.test_type">12</intProp>
2253 </ResponseAssertion>
2255 <RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor" testname="requestId extractor" enabled="true">
2256 <stringProp name="RegexExtractor.useHeaders">false</stringProp>
2257 <stringProp name="RegexExtractor.refname">requestIdOnset</stringProp>
2258 <stringProp name="RegexExtractor.regex">requestId\\": \\"(.+?)\\"</stringProp>
2259 <stringProp name="RegexExtractor.template">$1$</stringProp>
2260 <stringProp name="RegexExtractor.default">none</stringProp>
2261 <stringProp name="RegexExtractor.match_number"></stringProp>
2264 <RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor" testname="notification extractor" enabled="true">
2265 <stringProp name="RegexExtractor.useHeaders">false</stringProp>
2266 <stringProp name="RegexExtractor.refname">notification</stringProp>
2267 <stringProp name="RegexExtractor.regex">notification\\": \\"FINAL: (.+?)\\"</stringProp>
2268 <stringProp name="RegexExtractor.template">$1$</stringProp>
2269 <stringProp name="RegexExtractor.default">none</stringProp>
2270 <stringProp name="RegexExtractor.match_number"></stringProp>
2273 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
2274 <stringProp name="scriptLanguage">groovy</stringProp>
2275 <stringProp name="parameters"></stringProp>
2276 <stringProp name="filename"></stringProp>
2277 <stringProp name="cacheKey">true</stringProp>
2278 <stringProp name="script">String requestIdOnset = vars.get("requestIdOnset");
2279 String requestId = vars.get("requestId");
2280 String notification = vars.get("notification");
2281 String counter = vars.get("counter");
2283 String transaction = "none";
2285 log.info ("The requestId id is " + requestId);
2286 log.info ("The requestIdOnset id is " + requestIdOnset);
2287 log.info ("The notification is " + notification);
2288 log.info ("The transaction is " + transaction);
2289 log.info ("The counter is " + counter);
2291 if ( requestId == requestIdOnset ) {
2292 if ( notification == "SUCCESS" ) {
2293 transaction = "FINAL";
2294 log.info ("Final Success Transaction");
2295 AssertionResult.setFailureMessage("Bad final notification");
2296 AssertionResult.setFailure(true);
2297 } else if ( notification == "FAILURE" ) {
2298 transaction = "FINAL";
2299 log.info ("Final Failure Transaction");
2303 int counterTemp = Integer.parseInt(counter) +1;
2304 if (transaction == "FINAL") {
2306 } else if (counterTemp >= 60) {
2307 AssertionResult.setFailureMessage("vDNS Failure POLICYCL Failure, reached maximum number of attempts ");
2308 AssertionResult.setFailure(true);
2311 vars.put("counter", Integer.toString(counterTemp));</stringProp>
2316 <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true">
2317 <boolProp name="ResultCollector.error_logging">false</boolProp>
2319 <name>saveConfig</name>
2320 <value class="SampleSaveConfiguration">
2322 <latency>true</latency>
2323 <timestamp>true</timestamp>
2324 <success>true</success>
2327 <message>true</message>
2328 <threadName>true</threadName>
2329 <dataType>true</dataType>
2330 <encoding>false</encoding>
2331 <assertions>true</assertions>
2332 <subresults>true</subresults>
2333 <responseData>false</responseData>
2334 <samplerData>false</samplerData>
2336 <fieldNames>true</fieldNames>
2337 <responseHeaders>false</responseHeaders>
2338 <requestHeaders>false</requestHeaders>
2339 <responseDataOnError>false</responseDataOnError>
2340 <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
2341 <assertionsResultsToSave>0</assertionsResultsToSave>
2343 <sentBytes>true</sentBytes>
2345 <threadCounts>true</threadCounts>
2346 <idleTime>true</idleTime>
2347 <connectTime>true</connectTime>
2350 <stringProp name="filename"></stringProp>
2354 <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="vFW Success" enabled="true">
2355 <stringProp name="ThreadGroup.on_sample_error">startnextloop</stringProp>
2356 <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true">
2357 <boolProp name="LoopController.continue_forever">false</boolProp>
2358 <intProp name="LoopController.loops">-1</intProp>
2360 <stringProp name="ThreadGroup.num_threads">1</stringProp>
2361 <stringProp name="ThreadGroup.ramp_time">1</stringProp>
2362 <boolProp name="ThreadGroup.scheduler">true</boolProp>
2363 <stringProp name="ThreadGroup.duration">${duration}</stringProp>
2364 <stringProp name="ThreadGroup.delay">20</stringProp>
2367 <UserParameters guiclass="UserParametersGui" testclass="UserParameters" testname="Set consumer group per scenario" enabled="true">
2368 <collectionProp name="UserParameters.names">
2369 <stringProp name="-308835287">consumerGroup</stringProp>
2371 <collectionProp name="UserParameters.thread_values">
2372 <collectionProp name="-75926649">
2373 <stringProp name="-2021688740">vfwsuccess</stringProp>
2376 <boolProp name="UserParameters.per_iteration">false</boolProp>
2377 <stringProp name="TestPlan.comments">Global to the thread group</stringProp>
2380 <UserParameters guiclass="UserParametersGui" testclass="UserParameters" testname="Set request id per cycle" enabled="true">
2381 <collectionProp name="UserParameters.names">
2382 <stringProp name="693933066">requestId</stringProp>
2384 <collectionProp name="UserParameters.thread_values">
2385 <collectionProp name="681405977">
2386 <stringProp name="118040362">${__UUID()}</stringProp>
2389 <boolProp name="UserParameters.per_iteration">true</boolProp>
2390 <stringProp name="TestPlan.comments">Update on a per iteration basis</stringProp>
2393 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="DCAE[DCAE_TOPIC]: ONSET" enabled="true">
2394 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
2395 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
2396 <collectionProp name="Arguments.arguments">
2397 <elementProp name="" elementType="HTTPArgument">
2398 <boolProp name="HTTPArgument.always_encode">false</boolProp>
2399 <stringProp name="Argument.value">{
2400 "closedLoopControlName": "ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a",
2401 "closedLoopAlarmStart": 1463679805324,
2402 "closedLoopEventClient": "microservice.stringmatcher",
2403 "closedLoopEventStatus": "ONSET",
2404 "requestID": "${requestId}",
2405 "target_type": "VNF",
2406 "target": "generic-vnf.vnf-name",
2407 "AAI": {
2408 "vserver.is-closed-loop-disabled": "false",
2409 "vserver.prov-status": "ACTIVE",
2410 "generic-vnf.vnf-name": "fw0002vm002fw002",
2411 "vserver.vserver-name": "OzVServer"
2413 "from": "DCAE",
2414 "version": "1.0.2"
2417 <stringProp name="Argument.metadata">=</stringProp>
2421 <stringProp name="HTTPSampler.domain">${DROOLS_HOST}</stringProp>
2422 <stringProp name="HTTPSampler.port">${DROOLS_PORT}</stringProp>
2423 <stringProp name="HTTPSampler.protocol">https</stringProp>
2424 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
2425 <stringProp name="HTTPSampler.path">policy/pdp/engine/topics/sources/dmaap/DCAE_TOPIC/events</stringProp>
2426 <stringProp name="HTTPSampler.method">PUT</stringProp>
2427 <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
2428 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
2429 <boolProp name="HTTPSampler.use_keepalive">false</boolProp>
2430 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
2431 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
2432 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
2433 <stringProp name="HTTPSampler.response_timeout"></stringProp>
2436 <HeaderManager guiclass="HeaderPanel" testclass="HeaderManager" testname="HTTP Header Manager" enabled="true">
2437 <collectionProp name="HeaderManager.headers">
2438 <elementProp name="" elementType="Header">
2439 <stringProp name="Header.name">Content-Type</stringProp>
2440 <stringProp name="Header.value">text/plain</stringProp>
2446 <JSR223Sampler guiclass="TestBeanGUI" testclass="JSR223Sampler" testname="Init DMaaP Counter" enabled="true">
2447 <stringProp name="scriptLanguage">groovy</stringProp>
2448 <stringProp name="parameters"></stringProp>
2449 <stringProp name="filename"></stringProp>
2450 <stringProp name="cacheKey">true</stringProp>
2451 <stringProp name="script">vars.put("counter", "0");</stringProp>
2454 <WhileController guiclass="WhileControllerGui" testclass="WhileController" testname="APPCL Restart Loop Controller" enabled="true">
2455 <stringProp name="WhileController.condition">${__javaScript(${counter} < 10)}</stringProp>
2458 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="POLICY[APPC-CL]: Restart" enabled="true">
2459 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
2460 <collectionProp name="Arguments.arguments">
2461 <elementProp name="filter" elementType="HTTPArgument">
2462 <boolProp name="HTTPArgument.always_encode">true</boolProp>
2463 <stringProp name="Argument.value">{"class":"And", "filters": [ { "class":"Equals", "field":"RequestID", "value":"${requestId}" }, { "class":"Equals", "field":"Action", "value":"ModifyConfig" }]}</stringProp>
2464 <stringProp name="Argument.metadata">=</stringProp>
2465 <boolProp name="HTTPArgument.use_equals">true</boolProp>
2466 <stringProp name="Argument.name">filter</stringProp>
2470 <stringProp name="HTTPSampler.domain">${DMAAP_HOST}</stringProp>
2471 <stringProp name="HTTPSampler.port">${DMAAP_PORT}</stringProp>
2472 <stringProp name="HTTPSampler.protocol">https</stringProp>
2473 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
2474 <stringProp name="HTTPSampler.path">events/APPC-CL/${consumerGroup}/1?timeout=15000&limit=1</stringProp>
2475 <stringProp name="HTTPSampler.method">GET</stringProp>
2476 <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
2477 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
2478 <boolProp name="HTTPSampler.use_keepalive">false</boolProp>
2479 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
2480 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
2481 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
2482 <stringProp name="HTTPSampler.response_timeout"></stringProp>
2485 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="No []" enabled="true">
2486 <collectionProp name="Asserion.test_strings">
2487 <stringProp name="2914">[]</stringProp>
2489 <stringProp name="Assertion.custom_message"></stringProp>
2490 <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
2491 <boolProp name="Assertion.assume_success">false</boolProp>
2492 <intProp name="Assertion.test_type">12</intProp>
2493 </ResponseAssertion>
2495 <RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor" testname="RequestID extractor" enabled="true">
2496 <stringProp name="RegexExtractor.useHeaders">false</stringProp>
2497 <stringProp name="RegexExtractor.refname">requestIdOnset</stringProp>
2498 <stringProp name="RegexExtractor.regex">\\"RequestID\\": \\"(.+?)\\"</stringProp>
2499 <stringProp name="RegexExtractor.template">$1$</stringProp>
2500 <stringProp name="RegexExtractor.default">none</stringProp>
2501 <stringProp name="RegexExtractor.match_number"></stringProp>
2504 <RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor" testname="SubRequestID extractor" enabled="true">
2505 <stringProp name="RegexExtractor.useHeaders">false</stringProp>
2506 <stringProp name="RegexExtractor.refname">subRequestId</stringProp>
2507 <stringProp name="RegexExtractor.regex">SubRequestID\\": \\"(.+?)\\"</stringProp>
2508 <stringProp name="RegexExtractor.template">$1$</stringProp>
2509 <stringProp name="RegexExtractor.default">none</stringProp>
2510 <stringProp name="RegexExtractor.match_number"></stringProp>
2513 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
2514 <stringProp name="scriptLanguage">groovy</stringProp>
2515 <stringProp name="parameters"></stringProp>
2516 <stringProp name="filename"></stringProp>
2517 <stringProp name="cacheKey">true</stringProp>
2518 <stringProp name="script">String requestIdOnset = vars.get("requestIdOnset");
2519 String requestId = vars.get("requestId");
2520 String subRequestId = vars.get("subRequestId");
2521 String counter = vars.get("counter");
2523 String transaction = "none";
2525 log.info ("The requestId id is " + requestId);
2526 log.info ("The requestIdOnset id is " + requestIdOnset);
2527 log.info ("The subrequest id is " + subRequestId);
2528 log.info ("The counter is " + counter);
2530 if ( requestId == requestIdOnset ) {
2531 if ( subRequestId == "none" ) {
2532 transaction = "FINAL";
2533 log.info ("APPC ModifyConfig does not contain enough information");
2534 AssertionResult.setFailureMessage("Missing subRequestId");
2535 AssertionResult.setFailure(true);
2537 transaction = "FINAL";
2538 vars.put("transaction", "FINAL");
2539 log.info ("Final Success Transaction");
2543 int counterTemp = Integer.parseInt(counter) +1;
2544 if (transaction == "FINAL") {
2546 } else if (counterTemp >= 10) {
2547 AssertionResult.setFailureMessage("vFW Success APPCCL Failure, reached maximum number of 10 attempts ");
2548 AssertionResult.setFailure(true);
2551 vars.put("counter", Integer.toString(counterTemp));
2558 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="APPC[APPC-CL]: SUCCESS" enabled="true">
2559 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
2560 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
2561 <collectionProp name="Arguments.arguments">
2562 <elementProp name="" elementType="HTTPArgument">
2563 <boolProp name="HTTPArgument.always_encode">false</boolProp>
2564 <stringProp name="Argument.value">{
2565 "CommonHeader": {
2566 "TimeStamp": 1506051879001,
2567 "APIver": "1.01",
2568 "RequestID": "${requestId}",
2569 "SubRequestID": "${subRequestId}",
2570 "RequestTrack": [],
2571 "Flags": []
2573 "Status": {
2574 "Code": 400,
2575 "Value": "SUCCESS"
2577 "Payload": {
2578 "generic-vnf.vnf-id": "f17face5-69cb-4c88-9e0b-7426db7edddd"
2581 <stringProp name="Argument.metadata">=</stringProp>
2585 <stringProp name="HTTPSampler.domain">${DROOLS_HOST}</stringProp>
2586 <stringProp name="HTTPSampler.port">${DROOLS_PORT}</stringProp>
2587 <stringProp name="HTTPSampler.protocol">https</stringProp>
2588 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
2589 <stringProp name="HTTPSampler.path">policy/pdp/engine/topics/sources/dmaap/APPC-CL/events</stringProp>
2590 <stringProp name="HTTPSampler.method">PUT</stringProp>
2591 <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
2592 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
2593 <boolProp name="HTTPSampler.use_keepalive">false</boolProp>
2594 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
2595 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
2596 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
2597 <stringProp name="HTTPSampler.response_timeout"></stringProp>
2600 <HeaderManager guiclass="HeaderPanel" testclass="HeaderManager" testname="HTTP Header Manager" enabled="true">
2601 <collectionProp name="HeaderManager.headers">
2602 <elementProp name="" elementType="Header">
2603 <stringProp name="Header.name">Content-Type</stringProp>
2604 <stringProp name="Header.value">text/plain</stringProp>
2610 <JSR223Sampler guiclass="TestBeanGUI" testclass="JSR223Sampler" testname="Init DMaaP Counter" enabled="true">
2611 <stringProp name="scriptLanguage">groovy</stringProp>
2612 <stringProp name="parameters"></stringProp>
2613 <stringProp name="filename"></stringProp>
2614 <stringProp name="cacheKey">true</stringProp>
2615 <stringProp name="script">vars.put("counter", "0");</stringProp>
2618 <WhileController guiclass="WhileControllerGui" testclass="WhileController" testname="Final Success Controller" enabled="true">
2619 <stringProp name="WhileController.condition">${__javaScript(${counter} < 60)}</stringProp>
2622 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="POLICY[POLICY-CL-MGT]: FINAL_SUCCESS" enabled="true">
2623 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
2624 <collectionProp name="Arguments.arguments">
2625 <elementProp name="filter" elementType="HTTPArgument">
2626 <boolProp name="HTTPArgument.always_encode">true</boolProp>
2627 <stringProp name="Argument.value">{"class":"And", "filters": [ { "class":"Equals", "field":"requestId", "value":"${requestId}" }, { "class":"Equals", "field":"notification", "value":"FINAL: SUCCESS" }]}</stringProp>
2628 <stringProp name="Argument.metadata">=</stringProp>
2629 <boolProp name="HTTPArgument.use_equals">true</boolProp>
2630 <stringProp name="Argument.name">filter</stringProp>
2634 <stringProp name="HTTPSampler.domain">${DMAAP_HOST}</stringProp>
2635 <stringProp name="HTTPSampler.port">${DMAAP_PORT}</stringProp>
2636 <stringProp name="HTTPSampler.protocol">https</stringProp>
2637 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
2638 <stringProp name="HTTPSampler.path">events/POLICY-CL-MGT/${consumerGroup}/1?timeout=15000&limit=1</stringProp>
2639 <stringProp name="HTTPSampler.method">GET</stringProp>
2640 <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
2641 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
2642 <boolProp name="HTTPSampler.use_keepalive">false</boolProp>
2643 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
2644 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
2645 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
2646 <stringProp name="HTTPSampler.response_timeout"></stringProp>
2649 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="No []" enabled="true">
2650 <collectionProp name="Asserion.test_strings">
2651 <stringProp name="2914">[]</stringProp>
2653 <stringProp name="Assertion.custom_message"></stringProp>
2654 <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
2655 <boolProp name="Assertion.assume_success">false</boolProp>
2656 <intProp name="Assertion.test_type">12</intProp>
2657 </ResponseAssertion>
2659 <RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor" testname="requestId extractor" enabled="true">
2660 <stringProp name="RegexExtractor.useHeaders">false</stringProp>
2661 <stringProp name="RegexExtractor.refname">requestIdOnset</stringProp>
2662 <stringProp name="RegexExtractor.regex">requestId\\": \\"(.+?)\\"</stringProp>
2663 <stringProp name="RegexExtractor.template">$1$</stringProp>
2664 <stringProp name="RegexExtractor.default">none</stringProp>
2665 <stringProp name="RegexExtractor.match_number"></stringProp>
2668 <RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor" testname="notification extractor" enabled="true">
2669 <stringProp name="RegexExtractor.useHeaders">false</stringProp>
2670 <stringProp name="RegexExtractor.refname">notification</stringProp>
2671 <stringProp name="RegexExtractor.regex">notification\\": \\"FINAL: (.+?)\\"</stringProp>
2672 <stringProp name="RegexExtractor.template">$1$</stringProp>
2673 <stringProp name="RegexExtractor.default">none</stringProp>
2674 <stringProp name="RegexExtractor.match_number"></stringProp>
2677 <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
2678 <stringProp name="scriptLanguage">groovy</stringProp>
2679 <stringProp name="parameters"></stringProp>
2680 <stringProp name="filename"></stringProp>
2681 <stringProp name="cacheKey">true</stringProp>
2682 <stringProp name="script">String requestIdOnset = vars.get("requestIdOnset");
2683 String requestId = vars.get("requestId");
2684 String notification = vars.get("notification");
2685 String counter = vars.get("counter");
2687 String transaction = "none";
2689 log.info ("The requestId id is " + requestId);
2690 log.info ("The requestIdOnset id is " + requestIdOnset);
2691 log.info ("The notification is " + notification);
2692 log.info ("The transaction is " + transaction);
2693 log.info ("The counter is " + counter);
2695 if ( requestId == requestIdOnset ) {
2696 if ( notification == "SUCCESS" ) {
2697 transaction = "FINAL";
2698 log.info ("Final Success Transaction");
2699 log.info ("The notification is SUCCESS");
2700 } else if ( notification == "FAILURE" ) {
2701 transaction = "FINAL";
2702 log.info ("Final Failure Transaction");
2703 AssertionResult.setFailureMessage("Bad final notification");
2704 AssertionResult.setFailure(true);
2708 int counterTemp = Integer.parseInt(counter) +1;
2709 if (transaction == "FINAL") {
2711 } else if (counterTemp >= 60) {
2712 AssertionResult.setFailureMessage("vFW Success POLICYCL Failure, reached maximum number of attempts ");
2713 AssertionResult.setFailure(true);
2716 vars.put("counter", Integer.toString(counterTemp));</stringProp>
2721 <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true">
2722 <boolProp name="ResultCollector.error_logging">false</boolProp>
2724 <name>saveConfig</name>
2725 <value class="SampleSaveConfiguration">
2727 <latency>true</latency>
2728 <timestamp>true</timestamp>
2729 <success>true</success>
2732 <message>true</message>
2733 <threadName>true</threadName>
2734 <dataType>true</dataType>
2735 <encoding>false</encoding>
2736 <assertions>true</assertions>
2737 <subresults>true</subresults>
2738 <responseData>false</responseData>
2739 <samplerData>false</samplerData>
2741 <fieldNames>true</fieldNames>
2742 <responseHeaders>false</responseHeaders>
2743 <requestHeaders>false</requestHeaders>
2744 <responseDataOnError>false</responseDataOnError>
2745 <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
2746 <assertionsResultsToSave>0</assertionsResultsToSave>
2748 <sentBytes>true</sentBytes>
2750 <threadCounts>true</threadCounts>
2751 <idleTime>true</idleTime>
2752 <connectTime>true</connectTime>
2755 <stringProp name="filename"></stringProp>
2759 <PostThreadGroup guiclass="PostThreadGroupGui" testclass="PostThreadGroup" testname="Tear down" enabled="true">
2760 <stringProp name="ThreadGroup.on_sample_error">continue</stringProp>
2761 <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true">
2762 <boolProp name="LoopController.continue_forever">false</boolProp>
2763 <stringProp name="LoopController.loops">1</stringProp>
2765 <stringProp name="ThreadGroup.num_threads">1</stringProp>
2766 <stringProp name="ThreadGroup.ramp_time">1</stringProp>
2767 <boolProp name="ThreadGroup.scheduler">false</boolProp>
2768 <stringProp name="ThreadGroup.duration"></stringProp>
2769 <stringProp name="ThreadGroup.delay"></stringProp>
2772 <GenericController guiclass="LogicControllerGui" testclass="GenericController" testname="PAP" enabled="true"/>
2774 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Undeploy vCPE Policy" enabled="true">
2775 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
2776 <collectionProp name="Arguments.arguments"/>
2778 <stringProp name="HTTPSampler.domain">${PAP_HOST}</stringProp>
2779 <stringProp name="HTTPSampler.port">${PAP_PORT}</stringProp>
2780 <stringProp name="HTTPSampler.protocol">https</stringProp>
2781 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
2782 <stringProp name="HTTPSampler.path">policy/pap/v1/pdps/policies/operational.restart/versions/1.0.0</stringProp>
2783 <stringProp name="HTTPSampler.method">DELETE</stringProp>
2784 <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
2785 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
2786 <boolProp name="HTTPSampler.use_keepalive">false</boolProp>
2787 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
2788 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
2789 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
2790 <stringProp name="HTTPSampler.response_timeout"></stringProp>
2793 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
2794 <collectionProp name="Asserion.test_strings">
2795 <stringProp name="49586">200</stringProp>
2797 <stringProp name="Assertion.custom_message"></stringProp>
2798 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
2799 <boolProp name="Assertion.assume_success">false</boolProp>
2800 <intProp name="Assertion.test_type">16</intProp>
2801 </ResponseAssertion>
2804 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Undeploy vCPE Fail Policy" enabled="true">
2805 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
2806 <collectionProp name="Arguments.arguments"/>
2808 <stringProp name="HTTPSampler.domain">${PAP_HOST}</stringProp>
2809 <stringProp name="HTTPSampler.port">${PAP_PORT}</stringProp>
2810 <stringProp name="HTTPSampler.protocol">https</stringProp>
2811 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
2812 <stringProp name="HTTPSampler.path">policy/pap/v1/pdps/policies/operational.restart.fail/versions/1.0.0</stringProp>
2813 <stringProp name="HTTPSampler.method">DELETE</stringProp>
2814 <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
2815 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
2816 <boolProp name="HTTPSampler.use_keepalive">false</boolProp>
2817 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
2818 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
2819 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
2820 <stringProp name="HTTPSampler.response_timeout"></stringProp>
2823 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
2824 <collectionProp name="Asserion.test_strings">
2825 <stringProp name="49586">200</stringProp>
2827 <stringProp name="Assertion.custom_message"></stringProp>
2828 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
2829 <boolProp name="Assertion.assume_success">false</boolProp>
2830 <intProp name="Assertion.test_type">16</intProp>
2831 </ResponseAssertion>
2834 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Undeploy vFirewall Policy" enabled="true">
2835 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
2836 <collectionProp name="Arguments.arguments"/>
2838 <stringProp name="HTTPSampler.domain">${PAP_HOST}</stringProp>
2839 <stringProp name="HTTPSampler.port">${PAP_PORT}</stringProp>
2840 <stringProp name="HTTPSampler.protocol">https</stringProp>
2841 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
2842 <stringProp name="HTTPSampler.path">policy/pap/v1/pdps/policies/operational.modifyconfig/versions/1.0.0</stringProp>
2843 <stringProp name="HTTPSampler.method">DELETE</stringProp>
2844 <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
2845 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
2846 <boolProp name="HTTPSampler.use_keepalive">false</boolProp>
2847 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
2848 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
2849 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
2850 <stringProp name="HTTPSampler.response_timeout"></stringProp>
2853 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
2854 <collectionProp name="Asserion.test_strings">
2855 <stringProp name="49586">200</stringProp>
2857 <stringProp name="Assertion.custom_message"></stringProp>
2858 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
2859 <boolProp name="Assertion.assume_success">false</boolProp>
2860 <intProp name="Assertion.test_type">16</intProp>
2861 </ResponseAssertion>
2864 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Undeploy vDNS Policy" enabled="true">
2865 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
2866 <collectionProp name="Arguments.arguments"/>
2868 <stringProp name="HTTPSampler.domain">${PAP_HOST}</stringProp>
2869 <stringProp name="HTTPSampler.port">${PAP_PORT}</stringProp>
2870 <stringProp name="HTTPSampler.protocol">https</stringProp>
2871 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
2872 <stringProp name="HTTPSampler.path">policy/pap/v1/pdps/policies/operational.scaleout/versions/1.0.0</stringProp>
2873 <stringProp name="HTTPSampler.method">DELETE</stringProp>
2874 <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
2875 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
2876 <boolProp name="HTTPSampler.use_keepalive">false</boolProp>
2877 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
2878 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
2879 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
2880 <stringProp name="HTTPSampler.response_timeout"></stringProp>
2883 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
2884 <collectionProp name="Asserion.test_strings">
2885 <stringProp name="49586">200</stringProp>
2887 <stringProp name="Assertion.custom_message"></stringProp>
2888 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
2889 <boolProp name="Assertion.assume_success">false</boolProp>
2890 <intProp name="Assertion.test_type">16</intProp>
2891 </ResponseAssertion>
2894 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Undeploy vDNS Fail Policy" enabled="true">
2895 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
2896 <collectionProp name="Arguments.arguments"/>
2898 <stringProp name="HTTPSampler.domain">${PAP_HOST}</stringProp>
2899 <stringProp name="HTTPSampler.port">${PAP_PORT}</stringProp>
2900 <stringProp name="HTTPSampler.protocol">https</stringProp>
2901 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
2902 <stringProp name="HTTPSampler.path">policy/pap/v1/pdps/policies/operational.scaleout.fail/versions/1.0.0</stringProp>
2903 <stringProp name="HTTPSampler.method">DELETE</stringProp>
2904 <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
2905 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
2906 <boolProp name="HTTPSampler.use_keepalive">false</boolProp>
2907 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
2908 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
2909 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
2910 <stringProp name="HTTPSampler.response_timeout"></stringProp>
2913 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
2914 <collectionProp name="Asserion.test_strings">
2915 <stringProp name="49586">200</stringProp>
2917 <stringProp name="Assertion.custom_message"></stringProp>
2918 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
2919 <boolProp name="Assertion.assume_success">false</boolProp>
2920 <intProp name="Assertion.test_type">16</intProp>
2921 </ResponseAssertion>
2925 <GenericController guiclass="LogicControllerGui" testclass="GenericController" testname="API" enabled="true"/>
2927 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete vCPE Policy" enabled="true">
2928 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
2929 <collectionProp name="Arguments.arguments"/>
2931 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
2932 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
2933 <stringProp name="HTTPSampler.protocol">https</stringProp>
2934 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
2935 <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>
2936 <stringProp name="HTTPSampler.method">DELETE</stringProp>
2937 <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
2938 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
2939 <boolProp name="HTTPSampler.use_keepalive">false</boolProp>
2940 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
2941 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
2942 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
2943 <stringProp name="HTTPSampler.response_timeout"></stringProp>
2946 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
2947 <collectionProp name="Asserion.test_strings">
2948 <stringProp name="49586">200</stringProp>
2950 <stringProp name="Assertion.custom_message"></stringProp>
2951 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
2952 <boolProp name="Assertion.assume_success">false</boolProp>
2953 <intProp name="Assertion.test_type">16</intProp>
2954 </ResponseAssertion>
2957 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete vCPE Fail Policy" enabled="true">
2958 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
2959 <collectionProp name="Arguments.arguments"/>
2961 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
2962 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
2963 <stringProp name="HTTPSampler.protocol">https</stringProp>
2964 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
2965 <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>
2966 <stringProp name="HTTPSampler.method">DELETE</stringProp>
2967 <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
2968 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
2969 <boolProp name="HTTPSampler.use_keepalive">false</boolProp>
2970 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
2971 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
2972 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
2973 <stringProp name="HTTPSampler.response_timeout"></stringProp>
2976 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
2977 <collectionProp name="Asserion.test_strings">
2978 <stringProp name="49586">200</stringProp>
2980 <stringProp name="Assertion.custom_message"></stringProp>
2981 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
2982 <boolProp name="Assertion.assume_success">false</boolProp>
2983 <intProp name="Assertion.test_type">16</intProp>
2984 </ResponseAssertion>
2987 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete vFirewall Policy" enabled="true">
2988 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
2989 <collectionProp name="Arguments.arguments"/>
2991 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
2992 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
2993 <stringProp name="HTTPSampler.protocol">https</stringProp>
2994 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
2995 <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>
2996 <stringProp name="HTTPSampler.method">DELETE</stringProp>
2997 <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
2998 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
2999 <boolProp name="HTTPSampler.use_keepalive">false</boolProp>
3000 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
3001 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
3002 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
3003 <stringProp name="HTTPSampler.response_timeout"></stringProp>
3006 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
3007 <collectionProp name="Asserion.test_strings">
3008 <stringProp name="49586">200</stringProp>
3010 <stringProp name="Assertion.custom_message"></stringProp>
3011 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
3012 <boolProp name="Assertion.assume_success">false</boolProp>
3013 <intProp name="Assertion.test_type">16</intProp>
3014 </ResponseAssertion>
3017 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete vDNS Policy" enabled="true">
3018 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
3019 <collectionProp name="Arguments.arguments"/>
3021 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
3022 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
3023 <stringProp name="HTTPSampler.protocol">https</stringProp>
3024 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
3025 <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>
3026 <stringProp name="HTTPSampler.method">DELETE</stringProp>
3027 <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
3028 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
3029 <boolProp name="HTTPSampler.use_keepalive">false</boolProp>
3030 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
3031 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
3032 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
3033 <stringProp name="HTTPSampler.response_timeout"></stringProp>
3036 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
3037 <collectionProp name="Asserion.test_strings">
3038 <stringProp name="49586">200</stringProp>
3040 <stringProp name="Assertion.custom_message"></stringProp>
3041 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
3042 <boolProp name="Assertion.assume_success">false</boolProp>
3043 <intProp name="Assertion.test_type">16</intProp>
3044 </ResponseAssertion>
3047 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete vDNS Fail Policy" enabled="true">
3048 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
3049 <collectionProp name="Arguments.arguments"/>
3051 <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
3052 <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
3053 <stringProp name="HTTPSampler.protocol">https</stringProp>
3054 <stringProp name="HTTPSampler.contentEncoding"></stringProp>
3055 <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>
3056 <stringProp name="HTTPSampler.method">DELETE</stringProp>
3057 <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
3058 <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
3059 <boolProp name="HTTPSampler.use_keepalive">false</boolProp>
3060 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
3061 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
3062 <stringProp name="HTTPSampler.connect_timeout"></stringProp>
3063 <stringProp name="HTTPSampler.response_timeout"></stringProp>
3066 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
3067 <collectionProp name="Asserion.test_strings">
3068 <stringProp name="49586">200</stringProp>
3070 <stringProp name="Assertion.custom_message"></stringProp>
3071 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
3072 <boolProp name="Assertion.assume_success">false</boolProp>
3073 <intProp name="Assertion.test_type">16</intProp>
3074 </ResponseAssertion>
3079 <ResultCollector guiclass="SummaryReport" testclass="ResultCollector" testname="Summary Report" enabled="true">
3080 <boolProp name="ResultCollector.error_logging">false</boolProp>
3082 <name>saveConfig</name>
3083 <value class="SampleSaveConfiguration">
3085 <latency>true</latency>
3086 <timestamp>true</timestamp>
3087 <success>true</success>
3090 <message>true</message>
3091 <threadName>true</threadName>
3092 <dataType>true</dataType>
3093 <encoding>false</encoding>
3094 <assertions>true</assertions>
3095 <subresults>true</subresults>
3096 <responseData>false</responseData>
3097 <samplerData>false</samplerData>
3099 <fieldNames>true</fieldNames>
3100 <responseHeaders>false</responseHeaders>
3101 <requestHeaders>false</requestHeaders>
3102 <responseDataOnError>false</responseDataOnError>
3103 <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
3104 <assertionsResultsToSave>0</assertionsResultsToSave>
3106 <sentBytes>true</sentBytes>
3107 <threadCounts>true</threadCounts>
3108 <idleTime>true</idleTime>
3109 <connectTime>true</connectTime>
3112 <stringProp name="filename"></stringProp>
3115 <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true">
3116 <boolProp name="ResultCollector.error_logging">false</boolProp>
3118 <name>saveConfig</name>
3119 <value class="SampleSaveConfiguration">
3121 <latency>true</latency>
3122 <timestamp>true</timestamp>
3123 <success>true</success>
3126 <message>true</message>
3127 <threadName>true</threadName>
3128 <dataType>true</dataType>
3129 <encoding>false</encoding>
3130 <assertions>true</assertions>
3131 <subresults>true</subresults>
3132 <responseData>false</responseData>
3133 <samplerData>false</samplerData>
3135 <fieldNames>true</fieldNames>
3136 <responseHeaders>false</responseHeaders>
3137 <requestHeaders>false</requestHeaders>
3138 <responseDataOnError>false</responseDataOnError>
3139 <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
3140 <assertionsResultsToSave>0</assertionsResultsToSave>
3142 <sentBytes>true</sentBytes>
3143 <threadCounts>true</threadCounts>
3144 <idleTime>true</idleTime>
3145 <connectTime>true</connectTime>
3148 <stringProp name="filename"></stringProp>
3151 <ResultCollector guiclass="TableVisualizer" testclass="ResultCollector" testname="View Results in Table" enabled="true">
3152 <boolProp name="ResultCollector.error_logging">false</boolProp>
3154 <name>saveConfig</name>
3155 <value class="SampleSaveConfiguration">
3157 <latency>true</latency>
3158 <timestamp>true</timestamp>
3159 <success>true</success>
3162 <message>true</message>
3163 <threadName>true</threadName>
3164 <dataType>true</dataType>
3165 <encoding>false</encoding>
3166 <assertions>true</assertions>
3167 <subresults>true</subresults>
3168 <responseData>false</responseData>
3169 <samplerData>false</samplerData>
3171 <fieldNames>true</fieldNames>
3172 <responseHeaders>false</responseHeaders>
3173 <requestHeaders>false</requestHeaders>
3174 <responseDataOnError>false</responseDataOnError>
3175 <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
3176 <assertionsResultsToSave>0</assertionsResultsToSave>
3178 <sentBytes>true</sentBytes>
3179 <threadCounts>true</threadCounts>
3180 <idleTime>true</idleTime>
3181 <connectTime>true</connectTime>
3184 <stringProp name="filename"></stringProp>