Merge "add jmx and shell script for s3p drools-app"
[policy/drools-applications.git] / testsuites / stability / src / main / resources / guilin / s3p.jmx
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
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=========================================================
18   -->
19 <jmeterTestPlan version="1.2" properties="5.0" jmeter="5.1.1 r1855137">
20   <hashTree>
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>
32           </elementProp>
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>
37           </elementProp>
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>
42           </elementProp>
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>
47           </elementProp>
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>
52           </elementProp>
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>
57           </elementProp>
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>
62           </elementProp>
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>
67           </elementProp>
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>
72           </elementProp>
73         </collectionProp>
74       </elementProp>
75       <stringProp name="TestPlan.user_define_classpath"></stringProp>
76     </TestPlan>
77     <hashTree>
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>
83           </elementProp>
84           <elementProp name="" elementType="Header">
85             <stringProp name="Header.name">Content-Type</stringProp>
86             <stringProp name="Header.value">application/json</stringProp>
87           </elementProp>
88         </collectionProp>
89       </HeaderManager>
90       <hashTree/>
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>
99           </elementProp>
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>
106           </elementProp>
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>
113           </elementProp>
114         </collectionProp>
115       </AuthManager>
116       <hashTree/>
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"/>
120         </elementProp>
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>
129       </ConfigTestElement>
130       <hashTree/>
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>
136         </elementProp>
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>
142       </SetupThreadGroup>
143       <hashTree>
144         <GenericController guiclass="LogicControllerGui" testclass="GenericController" testname="API" enabled="true"/>
145         <hashTree>
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"/>
149             </elementProp>
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>
163           </HTTPSamplerProxy>
164           <hashTree>
165             <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
166               <collectionProp name="Asserion.test_strings">
167                 <stringProp name="49586">200</stringProp>
168               </collectionProp>
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>
173             </ResponseAssertion>
174             <hashTree/>
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>
182             </JSONPathAssertion>
183             <hashTree/>
184           </hashTree>
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">{&#xd;
192   &quot;tosca_definitions_version&quot;: &quot;tosca_simple_yaml_1_1_0&quot;,&#xd;
193   &quot;topology_template&quot;: {&#xd;
194     &quot;policies&quot;: [&#xd;
195       {&#xd;
196         &quot;operational.restart&quot;: {&#xd;
197           &quot;type&quot;: &quot;onap.policies.controlloop.operational.common.Drools&quot;,&#xd;
198           &quot;type_version&quot;: &quot;1.0.0&quot;,&#xd;
199           &quot;version&quot;: &quot;1.0.0&quot;,&#xd;
200           &quot;metadata&quot;: {&#xd;
201             &quot;policy-id&quot;: &quot;operational.restart&quot;&#xd;
202           },&#xd;
203           &quot;properties&quot;: {&#xd;
204             &quot;id&quot;: &quot;ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e&quot;,&#xd;
205             &quot;timeout&quot;: 60,&#xd;
206             &quot;abatement&quot;: false,&#xd;
207             &quot;trigger&quot;: &quot;unique-policy-id-1-restart&quot;,&#xd;
208             &quot;operations&quot;: [&#xd;
209               {&#xd;
210                 &quot;id&quot;: &quot;unique-policy-id-1-restart&quot;,&#xd;
211                 &quot;description&quot;: &quot;Restart the VM&quot;,&#xd;
212                 &quot;operation&quot;: {&#xd;
213                   &quot;actor&quot;: &quot;APPC&quot;,&#xd;
214                   &quot;operation&quot;: &quot;Restart&quot;,&#xd;
215                   &quot;target&quot;: {&#xd;
216                     &quot;targetType&quot;: &quot;VNF&quot;&#xd;
217                   }&#xd;
218                 },&#xd;
219                 &quot;timeout&quot;: 20,&#xd;
220                 &quot;retries&quot;: 0,&#xd;
221                 &quot;success&quot;: &quot;final_success&quot;,&#xd;
222                 &quot;failure&quot;: &quot;final_failure&quot;,&#xd;
223                 &quot;failure_timeout&quot;: &quot;final_failure_timeout&quot;,&#xd;
224                 &quot;failure_retries&quot;: &quot;final_failure_retries&quot;,&#xd;
225                 &quot;failure_exception&quot;: &quot;final_failure_exception&quot;,&#xd;
226                 &quot;failure_guard&quot;: &quot;final_failure_guard&quot;&#xd;
227               }&#xd;
228             ],&#xd;
229             &quot;controllerName&quot;: &quot;usecases&quot;&#xd;
230           }&#xd;
231         }&#xd;
232       }&#xd;
233     ]&#xd;
234   }&#xd;
235 }</stringProp>
236                   <stringProp name="Argument.metadata">=</stringProp>
237                 </elementProp>
238               </collectionProp>
239             </elementProp>
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>
253           </HTTPSamplerProxy>
254           <hashTree>
255             <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
256               <collectionProp name="Asserion.test_strings">
257                 <stringProp name="49586">200</stringProp>
258               </collectionProp>
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>
263             </ResponseAssertion>
264             <hashTree/>
265           </hashTree>
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">{&#xd;
273   &quot;tosca_definitions_version&quot;: &quot;tosca_simple_yaml_1_1_0&quot;,&#xd;
274   &quot;topology_template&quot;: {&#xd;
275     &quot;policies&quot;: [&#xd;
276       {&#xd;
277         &quot;operational.restart.fail&quot;: {&#xd;
278           &quot;type&quot;: &quot;onap.policies.controlloop.operational.common.Drools&quot;,&#xd;
279           &quot;type_version&quot;: &quot;1.0.0&quot;,&#xd;
280           &quot;version&quot;: &quot;1.0.0&quot;,&#xd;
281           &quot;metadata&quot;: {&#xd;
282             &quot;policy-id&quot;: &quot;operational.restart.fail&quot;&#xd;
283           },&#xd;
284           &quot;properties&quot;: {&#xd;
285             &quot;id&quot;: &quot;ControlLoop-vCPE-Fail&quot;,&#xd;
286             &quot;timeout&quot;: 60,&#xd;
287             &quot;abatement&quot;: false,&#xd;
288             &quot;trigger&quot;: &quot;unique-policy-id-1-restart&quot;,&#xd;
289             &quot;operations&quot;: [&#xd;
290               {&#xd;
291                 &quot;id&quot;: &quot;unique-policy-id-1-restart&quot;,&#xd;
292                 &quot;description&quot;: &quot;Restart the VM&quot;,&#xd;
293                 &quot;operation&quot;: {&#xd;
294                   &quot;actor&quot;: &quot;APPC&quot;,&#xd;
295                   &quot;operation&quot;: &quot;Restart&quot;,&#xd;
296                   &quot;target&quot;: {&#xd;
297                     &quot;targetType&quot;: &quot;VNF&quot;&#xd;
298                   }&#xd;
299                 },&#xd;
300                 &quot;timeout&quot;: 20,&#xd;
301                 &quot;retries&quot;: 0,&#xd;
302                 &quot;success&quot;: &quot;final_success&quot;,&#xd;
303                 &quot;failure&quot;: &quot;final_failure&quot;,&#xd;
304                 &quot;failure_timeout&quot;: &quot;final_failure_timeout&quot;,&#xd;
305                 &quot;failure_retries&quot;: &quot;final_failure_retries&quot;,&#xd;
306                 &quot;failure_exception&quot;: &quot;final_failure_exception&quot;,&#xd;
307                 &quot;failure_guard&quot;: &quot;final_failure_guard&quot;&#xd;
308               }&#xd;
309             ],&#xd;
310             &quot;controllerName&quot;: &quot;usecases&quot;&#xd;
311           }&#xd;
312         }&#xd;
313       }&#xd;
314     ]&#xd;
315   }&#xd;
316 }</stringProp>
317                   <stringProp name="Argument.metadata">=</stringProp>
318                 </elementProp>
319               </collectionProp>
320             </elementProp>
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>
334           </HTTPSamplerProxy>
335           <hashTree>
336             <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
337               <collectionProp name="Asserion.test_strings">
338                 <stringProp name="49586">200</stringProp>
339               </collectionProp>
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>
344             </ResponseAssertion>
345             <hashTree/>
346           </hashTree>
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">{&#xd;
354     &quot;tosca_definitions_version&quot;: &quot;tosca_simple_yaml_1_1_0&quot;,&#xd;
355     &quot;topology_template&quot;: {&#xd;
356         &quot;policies&quot;: [&#xd;
357             {&#xd;
358                 &quot;operational.modifyconfig&quot;: {&#xd;
359                     &quot;type&quot;: &quot;onap.policies.controlloop.operational.common.Drools&quot;,&#xd;
360                     &quot;type_version&quot;: &quot;1.0.0&quot;,&#xd;
361                     &quot;version&quot;: &quot;1.0.0&quot;,&#xd;
362                     &quot;metadata&quot;: {&#xd;
363                         &quot;policy-id&quot;: &quot;operational.modifyconfig&quot;&#xd;
364                     },&#xd;
365                     &quot;properties&quot;: {&#xd;
366                         &quot;id&quot;: &quot;ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a&quot;,&#xd;
367                         &quot;timeout&quot;: 60,&#xd;
368                         &quot;abatement&quot;: false,&#xd;
369                         &quot;trigger&quot;: &quot;unique-policy-id-1-modifyConfig&quot;,&#xd;
370                         &quot;operations&quot;: [&#xd;
371                             {&#xd;
372                                 &quot;id&quot;: &quot;unique-policy-id-1-modifyConfig&quot;,&#xd;
373                                 &quot;description&quot;: &quot;Modify the packet generator&quot;,&#xd;
374                                 &quot;operation&quot;: {&#xd;
375                                     &quot;actor&quot;: &quot;APPC&quot;,&#xd;
376                                     &quot;operation&quot;: &quot;ModifyConfig&quot;,&#xd;
377                                     &quot;target&quot;: {&#xd;
378                                         &quot;targetType&quot;: &quot;VNF&quot;,&#xd;
379                                         &quot;entityIds&quot;: {&#xd;
380                                             &quot;resourceID&quot;: &quot;bbb3cefd-01c8-413c-9bdd-2b92f9ca3d38&quot;&#xd;
381                                         }&#xd;
382                                     },&#xd;
383                                     &quot;payload&quot;: {&#xd;
384                                         &quot;streams&quot;: &quot;{\&quot;active-streams\&quot;: 5 }&quot;&#xd;
385                                      }&#xd;
386                                 },&#xd;
387                                 &quot;timeout&quot;: 20,&#xd;
388                                 &quot;retries&quot;: 0,&#xd;
389                                 &quot;success&quot;: &quot;final_success&quot;,&#xd;
390                                 &quot;failure&quot;: &quot;final_failure&quot;,&#xd;
391                                 &quot;failure_timeout&quot;: &quot;final_failure_timeout&quot;,&#xd;
392                                 &quot;failure_retries&quot;: &quot;final_failure_retries&quot;,&#xd;
393                                 &quot;failure_exception&quot;: &quot;final_failure_exception&quot;,&#xd;
394                                 &quot;failure_guard&quot;: &quot;final_failure_guard&quot;&#xd;
395                             }&#xd;
396                         ],&#xd;
397                         &quot;controllerName&quot;: &quot;usecases&quot;&#xd;
398                     }&#xd;
399                 }&#xd;
400             }&#xd;
401         ]&#xd;
402     }&#xd;
403 }</stringProp>
404                   <stringProp name="Argument.metadata">=</stringProp>
405                 </elementProp>
406               </collectionProp>
407             </elementProp>
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>
421           </HTTPSamplerProxy>
422           <hashTree>
423             <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
424               <collectionProp name="Asserion.test_strings">
425                 <stringProp name="49586">200</stringProp>
426               </collectionProp>
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>
431             </ResponseAssertion>
432             <hashTree/>
433           </hashTree>
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">{&#xd;
441     &quot;tosca_definitions_version&quot;: &quot;tosca_simple_yaml_1_1_0&quot;,&#xd;
442     &quot;topology_template&quot;: {&#xd;
443         &quot;policies&quot;: [&#xd;
444             {&#xd;
445                 &quot;operational.scaleout&quot;: {&#xd;
446                     &quot;type&quot;: &quot;onap.policies.controlloop.operational.common.Drools&quot;,&#xd;
447                     &quot;type_version&quot;: &quot;1.0.0&quot;,&#xd;
448                     &quot;version&quot;: &quot;1.0.0&quot;,&#xd;
449                     &quot;metadata&quot;: {&#xd;
450                         &quot;policy-id&quot;: &quot;operational.scaleout&quot;&#xd;
451                     },&#xd;
452                     &quot;properties&quot;: {&#xd;
453                         &quot;id&quot;: &quot;ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3&quot;,&#xd;
454                         &quot;timeout&quot;: 60,&#xd;
455                         &quot;abatement&quot;: false,&#xd;
456                         &quot;trigger&quot;: &quot;unique-policy-id-1-scale-up&quot;,&#xd;
457                         &quot;operations&quot;: [&#xd;
458                             {&#xd;
459                                 &quot;id&quot;: &quot;unique-policy-id-1-scale-up&quot;,&#xd;
460                                 &quot;description&quot;: &quot;Create a new VF Module&quot;,&#xd;
461                                 &quot;operation&quot;: {&#xd;
462                                     &quot;actor&quot;: &quot;SO&quot;,&#xd;
463                                     &quot;operation&quot;: &quot;VF Module Create&quot;,&#xd;
464                                     &quot;target&quot;: {&#xd;
465                                         &quot;targetType&quot;: &quot;VFMODULE&quot;,&#xd;
466                                         &quot;entityIds&quot;: {&#xd;
467                                             &quot;modelInvariantId&quot;: &quot;e6130d03-56f1-4b0a-9a1d-e1b2ebc30e0e&quot;,&#xd;
468                                             &quot;modelVersionId&quot;: &quot;94b18b1d-cc91-4f43-911a-e6348665f292&quot;,&#xd;
469                                             &quot;modelName&quot;: &quot;VfwclVfwsnkBbefb8ce2bde..base_vfw..module-0&quot;,&#xd;
470                                             &quot;modelVersion&quot;: &quot;1&quot;,&#xd;
471                                             &quot;modelCustomizationId&quot;: &quot;47958575-138f-452a-8c8d-d89b595f8164&quot;&#xd;
472                                         }&#xd;
473                                     },&#xd;
474                                     &quot;payload&quot;: {&#xd;
475                                         &quot;requestParameters&quot;: &quot;{\&quot;usePreload\&quot;:true,\&quot;userParams\&quot;:[]}&quot;,&#xd;
476                                         &quot;configurationParameters&quot;: &quot;[{\&quot;ip-addr\&quot;:\&quot;$.vf-module-topology.vf-module-parameters.param[9]\&quot;,\&quot;oam-ip-addr\&quot;:\&quot;$.vf-module-topology.vf-module-parameters.param[16]\&quot;,\&quot;enabled\&quot;:\&quot;$.vf-module-topology.vf-module-parameters.param[23]\&quot;}]&quot;&#xd;
477                                     }&#xd;
478                                 },&#xd;
479                                 &quot;timeout&quot;: 20,&#xd;
480                                 &quot;retries&quot;: 0,&#xd;
481                                 &quot;success&quot;: &quot;final_success&quot;,&#xd;
482                                 &quot;failure&quot;: &quot;final_failure&quot;,&#xd;
483                                 &quot;failure_timeout&quot;: &quot;final_failure_timeout&quot;,&#xd;
484                                 &quot;failure_retries&quot;: &quot;final_failure_retries&quot;,&#xd;
485                                 &quot;failure_exception&quot;: &quot;final_failure_exception&quot;,&#xd;
486                                 &quot;failure_guard&quot;: &quot;final_failure_guard&quot;&#xd;
487                             }&#xd;
488                         ],&#xd;
489                         &quot;controllerName&quot;: &quot;usecases&quot;&#xd;
490                     }&#xd;
491                 }&#xd;
492             }&#xd;
493         ]&#xd;
494     }&#xd;
495 }</stringProp>
496                   <stringProp name="Argument.metadata">=</stringProp>
497                 </elementProp>
498               </collectionProp>
499             </elementProp>
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>
513           </HTTPSamplerProxy>
514           <hashTree>
515             <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
516               <collectionProp name="Asserion.test_strings">
517                 <stringProp name="49586">200</stringProp>
518               </collectionProp>
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>
523             </ResponseAssertion>
524             <hashTree/>
525           </hashTree>
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">{&#xd;
533     &quot;tosca_definitions_version&quot;: &quot;tosca_simple_yaml_1_1_0&quot;,&#xd;
534     &quot;topology_template&quot;: {&#xd;
535         &quot;policies&quot;: [&#xd;
536             {&#xd;
537                 &quot;operational.scaleout.fail&quot;: {&#xd;
538                     &quot;type&quot;: &quot;onap.policies.controlloop.operational.common.Drools&quot;,&#xd;
539                     &quot;type_version&quot;: &quot;1.0.0&quot;,&#xd;
540                     &quot;version&quot;: &quot;1.0.0&quot;,&#xd;
541                     &quot;metadata&quot;: {&#xd;
542                         &quot;policy-id&quot;: &quot;operational.scaleout.fail&quot;&#xd;
543                     },&#xd;
544                     &quot;properties&quot;: {&#xd;
545                         &quot;id&quot;: &quot;ControlLoop-vDNS-Fail&quot;,&#xd;
546                         &quot;timeout&quot;: 60,&#xd;
547                         &quot;abatement&quot;: false,&#xd;
548                         &quot;trigger&quot;: &quot;unique-policy-id-1-scale-up&quot;,&#xd;
549                         &quot;operations&quot;: [&#xd;
550                             {&#xd;
551                                 &quot;id&quot;: &quot;unique-policy-id-1-scale-up&quot;,&#xd;
552                                 &quot;description&quot;: &quot;Create a new VF Module&quot;,&#xd;
553                                 &quot;operation&quot;: {&#xd;
554                                     &quot;actor&quot;: &quot;SO&quot;,&#xd;
555                                     &quot;operation&quot;: &quot;VF Module Create&quot;,&#xd;
556                                     &quot;target&quot;: {&#xd;
557                                         &quot;targetType&quot;: &quot;VFMODULE&quot;,&#xd;
558                                         &quot;entityIds&quot;: {&#xd;
559                                             &quot;modelInvariantId&quot;: &quot;e6130d03-56f1-4b0a-9a1d-e1b2ebc30e0e&quot;,&#xd;
560                                             &quot;modelVersionId&quot;: &quot;94b18b1d-cc91-4f43-911a-e6348665f292&quot;,&#xd;
561                                             &quot;modelName&quot;: &quot;VfwclVfwsnkBbefb8ce2bde..base_vfw..module-0&quot;,&#xd;
562                                             &quot;modelVersion&quot;: &quot;1&quot;,&#xd;
563                                             &quot;modelCustomizationId&quot;: &quot;47958575-138f-452a-8c8d-d89b595f8164&quot;&#xd;
564                                         }&#xd;
565                                     },&#xd;
566                                     &quot;payload&quot;: {&#xd;
567                                         &quot;requestParameters&quot;: &quot;{\&quot;usePreload\&quot;:true,\&quot;userParams\&quot;:[]}&quot;,&#xd;
568                                         &quot;configurationParameters&quot;: &quot;[{\&quot;ip-addr\&quot;:\&quot;$.vf-module-topology.vf-module-parameters.param[9]\&quot;,\&quot;oam-ip-addr\&quot;:\&quot;$.vf-module-topology.vf-module-parameters.param[16]\&quot;,\&quot;enabled\&quot;:\&quot;$.vf-module-topology.vf-module-parameters.param[23]\&quot;}]&quot;&#xd;
569                                     }&#xd;
570                                 },&#xd;
571                                 &quot;timeout&quot;: 20,&#xd;
572                                 &quot;retries&quot;: 0,&#xd;
573                                 &quot;success&quot;: &quot;final_success&quot;,&#xd;
574                                 &quot;failure&quot;: &quot;final_failure&quot;,&#xd;
575                                 &quot;failure_timeout&quot;: &quot;final_failure_timeout&quot;,&#xd;
576                                 &quot;failure_retries&quot;: &quot;final_failure_retries&quot;,&#xd;
577                                 &quot;failure_exception&quot;: &quot;final_failure_exception&quot;,&#xd;
578                                 &quot;failure_guard&quot;: &quot;final_failure_guard&quot;&#xd;
579                             }&#xd;
580                         ],&#xd;
581                         &quot;controllerName&quot;: &quot;usecases&quot;&#xd;
582                     }&#xd;
583                 }&#xd;
584             }&#xd;
585         ]&#xd;
586     }&#xd;
587 }</stringProp>
588                   <stringProp name="Argument.metadata">=</stringProp>
589                 </elementProp>
590               </collectionProp>
591             </elementProp>
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>
605           </HTTPSamplerProxy>
606           <hashTree>
607             <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
608               <collectionProp name="Asserion.test_strings">
609                 <stringProp name="49586">200</stringProp>
610               </collectionProp>
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>
615             </ResponseAssertion>
616             <hashTree/>
617           </hashTree>
618         </hashTree>
619         <GenericController guiclass="LogicControllerGui" testclass="GenericController" testname="PAP" enabled="true"/>
620         <hashTree>
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"/>
624             </elementProp>
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>
638           </HTTPSamplerProxy>
639           <hashTree>
640             <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
641               <collectionProp name="Asserion.test_strings">
642                 <stringProp name="49586">200</stringProp>
643               </collectionProp>
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>
648             </ResponseAssertion>
649             <hashTree/>
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>
657             </JSONPathAssertion>
658             <hashTree/>
659           </hashTree>
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">{&quot;policies&quot;:[{&quot;policy-id&quot;:&quot;operational.restart&quot;, &quot;version&quot;: &quot;1.0.0&quot;}]}</stringProp>
667                   <stringProp name="Argument.metadata">=</stringProp>
668                 </elementProp>
669               </collectionProp>
670             </elementProp>
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>
684           </HTTPSamplerProxy>
685           <hashTree>
686             <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
687               <collectionProp name="Asserion.test_strings">
688                 <stringProp name="49586">200</stringProp>
689               </collectionProp>
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>
694             </ResponseAssertion>
695             <hashTree/>
696           </hashTree>
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">{&quot;policies&quot;:[{&quot;policy-id&quot;:&quot;operational.restart.fail&quot;, &quot;version&quot;: &quot;1.0.0&quot;}]}</stringProp>
704                   <stringProp name="Argument.metadata">=</stringProp>
705                 </elementProp>
706               </collectionProp>
707             </elementProp>
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>
721           </HTTPSamplerProxy>
722           <hashTree>
723             <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
724               <collectionProp name="Asserion.test_strings">
725                 <stringProp name="49586">200</stringProp>
726               </collectionProp>
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>
731             </ResponseAssertion>
732             <hashTree/>
733           </hashTree>
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">{&quot;policies&quot;:[{&quot;policy-id&quot;:&quot;operational.modifyconfig&quot;, &quot;version&quot;: &quot;1.0.0&quot;}]}</stringProp>
741                   <stringProp name="Argument.metadata">=</stringProp>
742                 </elementProp>
743               </collectionProp>
744             </elementProp>
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>
758           </HTTPSamplerProxy>
759           <hashTree>
760             <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
761               <collectionProp name="Asserion.test_strings">
762                 <stringProp name="49586">200</stringProp>
763               </collectionProp>
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>
768             </ResponseAssertion>
769             <hashTree/>
770           </hashTree>
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">{&quot;policies&quot;:[{&quot;policy-id&quot;:&quot;operational.scaleout&quot;, &quot;version&quot;: &quot;1.0.0&quot;}]}</stringProp>
778                   <stringProp name="Argument.metadata">=</stringProp>
779                 </elementProp>
780               </collectionProp>
781             </elementProp>
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>
795           </HTTPSamplerProxy>
796           <hashTree>
797             <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
798               <collectionProp name="Asserion.test_strings">
799                 <stringProp name="49586">200</stringProp>
800               </collectionProp>
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>
805             </ResponseAssertion>
806             <hashTree/>
807           </hashTree>
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">{&quot;policies&quot;:[{&quot;policy-id&quot;:&quot;operational.scaleout.fail&quot;, &quot;version&quot;: &quot;1.0.0&quot;}]}</stringProp>
815                   <stringProp name="Argument.metadata">=</stringProp>
816                 </elementProp>
817               </collectionProp>
818             </elementProp>
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>
832           </HTTPSamplerProxy>
833           <hashTree>
834             <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
835               <collectionProp name="Asserion.test_strings">
836                 <stringProp name="49586">200</stringProp>
837               </collectionProp>
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>
842             </ResponseAssertion>
843             <hashTree/>
844           </hashTree>
845         </hashTree>
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"/>
849           </elementProp>
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>
863         </HTTPSamplerProxy>
864         <hashTree>
865           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
866             <collectionProp name="Asserion.test_strings">
867               <stringProp name="49586">200</stringProp>
868             </collectionProp>
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>
873           </ResponseAssertion>
874           <hashTree/>
875         </hashTree>
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"/>
879           </elementProp>
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>
893         </HTTPSamplerProxy>
894         <hashTree>
895           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
896             <collectionProp name="Asserion.test_strings">
897               <stringProp name="49586">200</stringProp>
898             </collectionProp>
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>
903           </ResponseAssertion>
904           <hashTree/>
905         </hashTree>
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"/>
909           </elementProp>
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>
923         </HTTPSamplerProxy>
924         <hashTree>
925           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
926             <collectionProp name="Asserion.test_strings">
927               <stringProp name="49586">200</stringProp>
928             </collectionProp>
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>
933           </ResponseAssertion>
934           <hashTree/>
935         </hashTree>
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"/>
939           </elementProp>
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>
953         </HTTPSamplerProxy>
954         <hashTree>
955           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
956             <collectionProp name="Asserion.test_strings">
957               <stringProp name="49586">200</stringProp>
958             </collectionProp>
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>
963           </ResponseAssertion>
964           <hashTree/>
965         </hashTree>
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"/>
969           </elementProp>
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>
983         </HTTPSamplerProxy>
984         <hashTree>
985           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
986             <collectionProp name="Asserion.test_strings">
987               <stringProp name="49586">200</stringProp>
988             </collectionProp>
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>
993           </ResponseAssertion>
994           <hashTree/>
995         </hashTree>
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"/>
999           </elementProp>
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>
1013         </HTTPSamplerProxy>
1014         <hashTree>
1015           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
1016             <collectionProp name="Asserion.test_strings">
1017               <stringProp name="49586">200</stringProp>
1018             </collectionProp>
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>
1024           <hashTree/>
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>
1033           <hashTree/>
1034         </hashTree>
1035       </hashTree>
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>
1041         </elementProp>
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>
1047       </ThreadGroup>
1048       <hashTree>
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>
1052           </collectionProp>
1053           <collectionProp name="UserParameters.thread_values">
1054             <collectionProp name="-1571164782">
1055               <stringProp name="-2075285407">vcpesuccess</stringProp>
1056             </collectionProp>
1057           </collectionProp>
1058           <boolProp name="UserParameters.per_iteration">false</boolProp>
1059           <stringProp name="TestPlan.comments">Global to the thread group</stringProp>
1060         </UserParameters>
1061         <hashTree/>
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>
1065           </collectionProp>
1066           <collectionProp name="UserParameters.thread_values">
1067             <collectionProp name="681405977">
1068               <stringProp name="118040362">${__UUID()}</stringProp>
1069             </collectionProp>
1070           </collectionProp>
1071           <boolProp name="UserParameters.per_iteration">true</boolProp>
1072           <stringProp name="TestPlan.comments">Update on a per iteration basis</stringProp>
1073         </UserParameters>
1074         <hashTree/>
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">{&#xd;
1082   &quot;closedLoopControlName&quot;: &quot;ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e&quot;,&#xd;
1083   &quot;closedLoopAlarmStart&quot;: 1463679805324,&#xd;
1084   &quot;closedLoopEventClient&quot;: &quot;DCAE_INSTANCE_ID.dcae-tca&quot;,&#xd;
1085   &quot;closedLoopEventStatus&quot;: &quot;ONSET&quot;,&#xd;
1086   &quot;requestID&quot;: &quot;${requestId}&quot;,&#xd;
1087   &quot;target_type&quot;: &quot;VNF&quot;,&#xd;
1088   &quot;target&quot;: &quot;generic-vnf.vnf-id&quot;,&#xd;
1089   &quot;AAI&quot;: {&#xd;
1090     &quot;vserver.is-closed-loop-disabled&quot;: &quot;false&quot;,&#xd;
1091     &quot;vserver.prov-status&quot;: &quot;ACTIVE&quot;,&#xd;
1092     &quot;generic-vnf.vnf-id&quot;: &quot;vCPE_Infrastructure_vGMUX_demo_app&quot;&#xd;
1093   },&#xd;
1094   &quot;from&quot;: &quot;DCAE&quot;,&#xd;
1095   &quot;version&quot;: &quot;1.0.2&quot;&#xd;
1096 }</stringProp>
1097                 <stringProp name="Argument.metadata">=</stringProp>
1098               </elementProp>
1099             </collectionProp>
1100           </elementProp>
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>
1114         </HTTPSamplerProxy>
1115         <hashTree>
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>
1121               </elementProp>
1122             </collectionProp>
1123           </HeaderManager>
1124           <hashTree/>
1125         </hashTree>
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(&quot;counter&quot;, &quot;0&quot;);</stringProp>
1132         </JSR223Sampler>
1133         <hashTree/>
1134         <WhileController guiclass="WhileControllerGui" testclass="WhileController" testname="APPCL Restart Loop Controller" enabled="true">
1135           <stringProp name="WhileController.condition">${__javaScript(${counter} &lt; 10)}</stringProp>
1136         </WhileController>
1137         <hashTree>
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">{&quot;class&quot;:&quot;And&quot;, &quot;filters&quot;: [ { &quot;class&quot;:&quot;Equals&quot;, &quot;field&quot;:&quot;request-id&quot;, &quot;value&quot;:&quot;${requestId}&quot; }, { &quot;class&quot;:&quot;Equals&quot;, &quot;field&quot;:&quot;rpc-name&quot;, &quot;value&quot;:&quot;restart&quot; }]}</stringProp>
1144                   <stringProp name="Argument.metadata">=</stringProp>
1145                   <boolProp name="HTTPArgument.use_equals">true</boolProp>
1146                   <stringProp name="Argument.name">filter</stringProp>
1147                 </elementProp>
1148               </collectionProp>
1149             </elementProp>
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&amp;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>
1163           </HTTPSamplerProxy>
1164           <hashTree>
1165             <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="No []" enabled="true">
1166               <collectionProp name="Asserion.test_strings">
1167                 <stringProp name="2914">[]</stringProp>
1168               </collectionProp>
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>
1174             <hashTree/>
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">\\&quot;request-id\\&quot;: \\&quot;(.+?)\\&quot;</stringProp>
1179               <stringProp name="RegexExtractor.template">$1$</stringProp>
1180               <stringProp name="RegexExtractor.default">none</stringProp>
1181               <stringProp name="RegexExtractor.match_number"></stringProp>
1182             </RegexExtractor>
1183             <hashTree/>
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\\&quot;: \\&quot;(.+?)\\&quot;</stringProp>
1188               <stringProp name="RegexExtractor.template">$1$</stringProp>
1189               <stringProp name="RegexExtractor.default">none</stringProp>
1190               <stringProp name="RegexExtractor.match_number"></stringProp>
1191             </RegexExtractor>
1192             <hashTree/>
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\\&quot;: \\&quot;(.+?)\\&quot;</stringProp>
1197               <stringProp name="RegexExtractor.template">$1$</stringProp>
1198               <stringProp name="RegexExtractor.default">none</stringProp>
1199               <stringProp name="RegexExtractor.match_number"></stringProp>
1200             </RegexExtractor>
1201             <hashTree/>
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(&quot;requestIdOnset&quot;);
1208 String requestId =  vars.get(&quot;requestId&quot;);
1209 String correlationId =  vars.get(&quot;correlationId&quot;);
1210 String subRequestId =  vars.get(&quot;subRequestId&quot;);
1211 String counter =  vars.get(&quot;counter&quot;);
1212
1213 String transaction = &quot;none&quot;;
1214
1215 log.info (&quot;The requestId id is &quot; + requestId);
1216 log.info (&quot;The requestIdOnset id is &quot; + requestIdOnset);
1217 log.info (&quot;The correlation id is &quot; + correlationId);
1218 log.info (&quot;The subrequest id is &quot; + subRequestId);
1219 log.info (&quot;The counter is &quot; + counter);       
1220
1221 if (    requestId == requestIdOnset ) {
1222         if (    correlationId == &quot;none&quot; || subRequestId == &quot;none&quot; ) {
1223                 transaction = &quot;FINAL&quot;;
1224                 log.info (&quot;Final Failure Transaction&quot;);
1225                 AssertionResult.setFailureMessage(&quot;Missing correlationId or subRequestId&quot;);
1226                 AssertionResult.setFailure(true);
1227         } else {
1228                 transaction = &quot;FINAL&quot;;
1229                 vars.put(&quot;transaction&quot;, &quot;FINAL&quot;);
1230                 log.info (&quot;Final Success Transaction&quot;);
1231         }
1232 }
1233
1234 int counterTemp = Integer.parseInt(counter) +1;
1235 if (transaction == &quot;FINAL&quot;) {
1236         counterTemp = 99;
1237 } else if (counterTemp &gt;= 10) {
1238         AssertionResult.setFailureMessage(&quot;vCPE Success APPCL Failure, reached maximum number of 10 attempts &quot;);
1239         AssertionResult.setFailure(true);               
1240 }
1241
1242 vars.put(&quot;counter&quot;, Integer.toString(counterTemp));
1243
1244 </stringProp>
1245             </JSR223Assertion>
1246             <hashTree/>
1247           </hashTree>
1248         </hashTree>
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">{&#xd;
1256   &quot;body&quot;: {&#xd;
1257     &quot;output&quot;: {&#xd;
1258       &quot;common-header&quot;: {&#xd;
1259         &quot;timestamp&quot;: &quot;2020-05-05T15:56:34.845Z&quot;,&#xd;
1260         &quot;api-ver&quot;: &quot;2.00&quot;,&#xd;
1261         &quot;originator-id&quot;: &quot;${requestId}&quot;,&#xd;
1262         &quot;request-id&quot;: &quot;${requestId}&quot;,&#xd;
1263         &quot;sub-request-id&quot;: &quot;${subRequestId}&quot;,&#xd;
1264         &quot;flags&quot;: {}&#xd;
1265       },&#xd;
1266       &quot;status&quot;: {&#xd;
1267         &quot;code&quot;: 400,&#xd;
1268         &quot;message&quot;: &quot;Restart Successful&quot;&#xd;
1269       }&#xd;
1270     }&#xd;
1271   },&#xd;
1272   &quot;version&quot;: &quot;2.0&quot;,&#xd;
1273   &quot;rpc-name&quot;: &quot;restart&quot;,&#xd;
1274   &quot;correlation-id&quot;: &quot;${correlationId}&quot;,&#xd;
1275   &quot;type&quot;: &quot;response&quot;&#xd;
1276 }&#xd;
1277 </stringProp>
1278                 <stringProp name="Argument.metadata">=</stringProp>
1279               </elementProp>
1280             </collectionProp>
1281           </elementProp>
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>
1295         </HTTPSamplerProxy>
1296         <hashTree>
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>
1302               </elementProp>
1303             </collectionProp>
1304           </HeaderManager>
1305           <hashTree/>
1306         </hashTree>
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(&quot;counter&quot;, &quot;0&quot;);</stringProp>
1313         </JSR223Sampler>
1314         <hashTree/>
1315         <WhileController guiclass="WhileControllerGui" testclass="WhileController" testname="Final Success Controller" enabled="true">
1316           <stringProp name="WhileController.condition">${__javaScript(${counter} &lt; 60)}</stringProp>
1317         </WhileController>
1318         <hashTree>
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">{&quot;class&quot;:&quot;And&quot;, &quot;filters&quot;: [ { &quot;class&quot;:&quot;Equals&quot;, &quot;field&quot;:&quot;requestId&quot;, &quot;value&quot;:&quot;${requestId}&quot; }, { &quot;class&quot;:&quot;Equals&quot;, &quot;field&quot;:&quot;notification&quot;, &quot;value&quot;:&quot;FINAL: SUCCESS&quot; }]}</stringProp>
1325                   <stringProp name="Argument.metadata">=</stringProp>
1326                   <boolProp name="HTTPArgument.use_equals">true</boolProp>
1327                   <stringProp name="Argument.name">filter</stringProp>
1328                 </elementProp>
1329               </collectionProp>
1330             </elementProp>
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&amp;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>
1344           </HTTPSamplerProxy>
1345           <hashTree>
1346             <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="No []" enabled="true">
1347               <collectionProp name="Asserion.test_strings">
1348                 <stringProp name="2914">[]</stringProp>
1349               </collectionProp>
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>
1355             <hashTree/>
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\\&quot;: \\&quot;(.+?)\\&quot;</stringProp>
1360               <stringProp name="RegexExtractor.template">$1$</stringProp>
1361               <stringProp name="RegexExtractor.default">none</stringProp>
1362               <stringProp name="RegexExtractor.match_number"></stringProp>
1363             </RegexExtractor>
1364             <hashTree/>
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\\&quot;: \\&quot;FINAL: (.+?)\\&quot;</stringProp>
1369               <stringProp name="RegexExtractor.template">$1$</stringProp>
1370               <stringProp name="RegexExtractor.default">none</stringProp>
1371               <stringProp name="RegexExtractor.match_number"></stringProp>
1372             </RegexExtractor>
1373             <hashTree/>
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(&quot;requestIdOnset&quot;);
1380 String requestId =  vars.get(&quot;requestId&quot;);
1381 String notification =  vars.get(&quot;notification&quot;);
1382 String counter =  vars.get(&quot;counter&quot;);
1383
1384 String transaction = &quot;none&quot;;
1385
1386 log.info (&quot;The requestId id is &quot; + requestId);
1387 log.info (&quot;The requestIdOnset id is &quot; + requestIdOnset);
1388 log.info (&quot;The notification is &quot; + notification);
1389 log.info (&quot;The transaction is &quot; + transaction);
1390 log.info (&quot;The counter is &quot; + counter);
1391
1392 if (    requestId == requestIdOnset ) {
1393         if ( notification == &quot;SUCCESS&quot; ) {
1394                 transaction = &quot;FINAL&quot;;
1395                 log.info (&quot;Final Success Transaction&quot;);
1396                 log.info (&quot;The notification is SUCCESS&quot;);
1397         } else if ( notification == &quot;FAILURE&quot; ) {
1398                 transaction = &quot;FINAL&quot;;
1399                 log.info (&quot;Final Failure Transaction&quot;);
1400                 AssertionResult.setFailureMessage(&quot;Bad final notification&quot;);
1401                 AssertionResult.setFailure(true);
1402         } 
1403 }
1404
1405 int counterTemp = Integer.parseInt(counter) +1;
1406 if (transaction == &quot;FINAL&quot;) {
1407         counterTemp = 99;
1408 } else if (counterTemp &gt;= 60) {
1409         AssertionResult.setFailureMessage(&quot;vCPE Success POLICYCL Failure, reached maximum number of attempts &quot;);
1410         AssertionResult.setFailure(true);               
1411 }
1412
1413 vars.put(&quot;counter&quot;, Integer.toString(counterTemp));</stringProp>
1414             </JSR223Assertion>
1415             <hashTree/>
1416           </hashTree>
1417         </hashTree>
1418         <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true">
1419           <boolProp name="ResultCollector.error_logging">false</boolProp>
1420           <objProp>
1421             <name>saveConfig</name>
1422             <value class="SampleSaveConfiguration">
1423               <time>true</time>
1424               <latency>true</latency>
1425               <timestamp>true</timestamp>
1426               <success>true</success>
1427               <label>true</label>
1428               <code>true</code>
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>
1437               <xml>false</xml>
1438               <fieldNames>true</fieldNames>
1439               <responseHeaders>false</responseHeaders>
1440               <requestHeaders>false</requestHeaders>
1441               <responseDataOnError>false</responseDataOnError>
1442               <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
1443               <assertionsResultsToSave>0</assertionsResultsToSave>
1444               <bytes>true</bytes>
1445               <sentBytes>true</sentBytes>
1446               <url>true</url>
1447               <threadCounts>true</threadCounts>
1448               <idleTime>true</idleTime>
1449               <connectTime>true</connectTime>
1450             </value>
1451           </objProp>
1452           <stringProp name="filename"></stringProp>
1453         </ResultCollector>
1454         <hashTree/>
1455       </hashTree>
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>
1461         </elementProp>
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>
1467       </ThreadGroup>
1468       <hashTree>
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>
1472           </collectionProp>
1473           <collectionProp name="UserParameters.thread_values">
1474             <collectionProp name="-1129400645">
1475               <stringProp name="-1294689816">vcpefailure</stringProp>
1476             </collectionProp>
1477           </collectionProp>
1478           <boolProp name="UserParameters.per_iteration">false</boolProp>
1479           <stringProp name="TestPlan.comments">Global to the thread group</stringProp>
1480         </UserParameters>
1481         <hashTree/>
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>
1485           </collectionProp>
1486           <collectionProp name="UserParameters.thread_values">
1487             <collectionProp name="681405977">
1488               <stringProp name="118040362">${__UUID()}</stringProp>
1489             </collectionProp>
1490           </collectionProp>
1491           <boolProp name="UserParameters.per_iteration">true</boolProp>
1492           <stringProp name="TestPlan.comments">Update on a per iteration basis</stringProp>
1493         </UserParameters>
1494         <hashTree/>
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">{&#xd;
1502   &quot;closedLoopControlName&quot;: &quot;ControlLoop-vCPE-Fail&quot;,&#xd;
1503   &quot;closedLoopAlarmStart&quot;: 1463679805324,&#xd;
1504   &quot;closedLoopEventClient&quot;: &quot;DCAE_INSTANCE_ID.dcae-tca&quot;,&#xd;
1505   &quot;closedLoopEventStatus&quot;: &quot;ONSET&quot;,&#xd;
1506   &quot;requestID&quot;: &quot;${requestId}&quot;,&#xd;
1507   &quot;target_type&quot;: &quot;VNF&quot;,&#xd;
1508   &quot;target&quot;: &quot;generic-vnf.vnf-id&quot;,&#xd;
1509   &quot;AAI&quot;: {&#xd;
1510     &quot;vserver.is-closed-loop-disabled&quot;: &quot;false&quot;,&#xd;
1511     &quot;vserver.prov-status&quot;: &quot;ACTIVE&quot;,&#xd;
1512     &quot;generic-vnf.vnf-id&quot;: &quot;a_fail_vnf_id&quot;&#xd;
1513   },&#xd;
1514   &quot;from&quot;: &quot;DCAE&quot;,&#xd;
1515   &quot;version&quot;: &quot;1.0.2&quot;&#xd;
1516 }</stringProp>
1517                 <stringProp name="Argument.metadata">=</stringProp>
1518               </elementProp>
1519             </collectionProp>
1520           </elementProp>
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>
1534         </HTTPSamplerProxy>
1535         <hashTree>
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>
1541               </elementProp>
1542             </collectionProp>
1543           </HeaderManager>
1544           <hashTree/>
1545         </hashTree>
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(&quot;counter&quot;, &quot;0&quot;);</stringProp>
1552         </JSR223Sampler>
1553         <hashTree/>
1554         <WhileController guiclass="WhileControllerGui" testclass="WhileController" testname="APPCL Restart Loop Controller" enabled="true">
1555           <stringProp name="WhileController.condition">${__javaScript(${counter} &lt; 10)}</stringProp>
1556         </WhileController>
1557         <hashTree>
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">{&quot;class&quot;:&quot;And&quot;, &quot;filters&quot;: [ { &quot;class&quot;:&quot;Equals&quot;, &quot;field&quot;:&quot;request-id&quot;, &quot;value&quot;:&quot;${requestId}&quot; }, { &quot;class&quot;:&quot;Equals&quot;, &quot;field&quot;:&quot;rpc-name&quot;, &quot;value&quot;:&quot;restart&quot; }]}</stringProp>
1564                   <stringProp name="Argument.metadata">=</stringProp>
1565                   <boolProp name="HTTPArgument.use_equals">true</boolProp>
1566                   <stringProp name="Argument.name">filter</stringProp>
1567                 </elementProp>
1568               </collectionProp>
1569             </elementProp>
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&amp;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>
1583           </HTTPSamplerProxy>
1584           <hashTree>
1585             <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="No []" enabled="true">
1586               <collectionProp name="Asserion.test_strings">
1587                 <stringProp name="2914">[]</stringProp>
1588               </collectionProp>
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>
1594             <hashTree/>
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">\\&quot;request-id\\&quot;: \\&quot;(.+?)\\&quot;</stringProp>
1599               <stringProp name="RegexExtractor.template">$1$</stringProp>
1600               <stringProp name="RegexExtractor.default">none</stringProp>
1601               <stringProp name="RegexExtractor.match_number"></stringProp>
1602             </RegexExtractor>
1603             <hashTree/>
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\\&quot;: \\&quot;(.+?)\\&quot;</stringProp>
1608               <stringProp name="RegexExtractor.template">$1$</stringProp>
1609               <stringProp name="RegexExtractor.default">none</stringProp>
1610               <stringProp name="RegexExtractor.match_number"></stringProp>
1611             </RegexExtractor>
1612             <hashTree/>
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\\&quot;: \\&quot;(.+?)\\&quot;</stringProp>
1617               <stringProp name="RegexExtractor.template">$1$</stringProp>
1618               <stringProp name="RegexExtractor.default">none</stringProp>
1619               <stringProp name="RegexExtractor.match_number"></stringProp>
1620             </RegexExtractor>
1621             <hashTree/>
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(&quot;requestIdOnset&quot;);
1628 String requestId =  vars.get(&quot;requestId&quot;);
1629 String correlationId =  vars.get(&quot;correlationId&quot;);
1630 String subRequestId =  vars.get(&quot;subRequestId&quot;);
1631 String counter =  vars.get(&quot;counter&quot;);
1632
1633 String transaction = &quot;none&quot;;
1634
1635 log.info (&quot;The requestId id is &quot; + requestId);
1636 log.info (&quot;The requestIdOnset id is &quot; + requestIdOnset);
1637 log.info (&quot;The correlation id is &quot; + correlationId);
1638 log.info (&quot;The subrequest id is &quot; + subRequestId);
1639 log.info (&quot;The counter is &quot; + counter);       
1640
1641 if (    requestId == requestIdOnset ) {
1642         if (    correlationId == &quot;none&quot; || subRequestId == &quot;none&quot; ) {
1643                 transaction = &quot;FINAL&quot;;
1644                 log.info (&quot;Final Failure Transaction&quot;);
1645                 AssertionResult.setFailureMessage(&quot;Missing correlationId or subRequestId&quot;);
1646                 AssertionResult.setFailure(true);
1647         } else {
1648                 transaction = &quot;FINAL&quot;;
1649                 vars.put(&quot;transaction&quot;, &quot;FINAL&quot;);
1650                 log.info (&quot;Final Success Transaction&quot;);
1651         }
1652 }
1653
1654 int counterTemp = Integer.parseInt(counter) +1;
1655 if (transaction == &quot;FINAL&quot;) {
1656         counterTemp = 99;
1657 } else if (counterTemp &gt;= 10) {
1658         AssertionResult.setFailureMessage(&quot;vCPE Failure APPCL Failure, reached maximum number of 10 attempts &quot;);
1659         AssertionResult.setFailure(true);               
1660 }
1661
1662 vars.put(&quot;counter&quot;, Integer.toString(counterTemp));
1663
1664 </stringProp>
1665             </JSR223Assertion>
1666             <hashTree/>
1667           </hashTree>
1668         </hashTree>
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">{&#xd;
1676   &quot;body&quot;: {&#xd;
1677     &quot;output&quot;: {&#xd;
1678       &quot;common-header&quot;: {&#xd;
1679         &quot;timestamp&quot;: &quot;2020-05-07T15:56:34.845Z&quot;,&#xd;
1680         &quot;api-ver&quot;: &quot;2.00&quot;,&#xd;
1681         &quot;originator-id&quot;: &quot;${requestId}&quot;,&#xd;
1682         &quot;request-id&quot;: &quot;${requestId}&quot;,&#xd;
1683         &quot;sub-request-id&quot;: &quot;${subRequestId}&quot;,&#xd;
1684         &quot;flags&quot;: {}&#xd;
1685       },&#xd;
1686       &quot;status&quot;: {&#xd;
1687         &quot;code&quot;: 450,&#xd;
1688         &quot;message&quot;: &quot;Restart Failed&quot;&#xd;
1689       }&#xd;
1690     }&#xd;
1691   },&#xd;
1692   &quot;version&quot;: &quot;2.0&quot;,&#xd;
1693   &quot;rpc-name&quot;: &quot;restart&quot;,&#xd;
1694   &quot;correlation-id&quot;: &quot;${correlationId}&quot;,&#xd;
1695   &quot;type&quot;: &quot;response&quot;&#xd;
1696 }&#xd;
1697 </stringProp>
1698                 <stringProp name="Argument.metadata">=</stringProp>
1699               </elementProp>
1700             </collectionProp>
1701           </elementProp>
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>
1715         </HTTPSamplerProxy>
1716         <hashTree>
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>
1722               </elementProp>
1723             </collectionProp>
1724           </HeaderManager>
1725           <hashTree/>
1726         </hashTree>
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(&quot;counter&quot;, &quot;0&quot;);</stringProp>
1733         </JSR223Sampler>
1734         <hashTree/>
1735         <WhileController guiclass="WhileControllerGui" testclass="WhileController" testname="Final Success Controller" enabled="true">
1736           <stringProp name="WhileController.condition">${__javaScript(${counter} &lt; 60)}</stringProp>
1737         </WhileController>
1738         <hashTree>
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">{&quot;class&quot;:&quot;And&quot;, &quot;filters&quot;: [ { &quot;class&quot;:&quot;Equals&quot;, &quot;field&quot;:&quot;requestId&quot;, &quot;value&quot;:&quot;${requestId}&quot; }, { &quot;class&quot;:&quot;Equals&quot;, &quot;field&quot;:&quot;notification&quot;, &quot;value&quot;:&quot;FINAL: FAILURE&quot; }]}</stringProp>
1745                   <stringProp name="Argument.metadata">=</stringProp>
1746                   <boolProp name="HTTPArgument.use_equals">true</boolProp>
1747                   <stringProp name="Argument.name">filter</stringProp>
1748                 </elementProp>
1749               </collectionProp>
1750             </elementProp>
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&amp;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>
1764           </HTTPSamplerProxy>
1765           <hashTree>
1766             <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="No []" enabled="true">
1767               <collectionProp name="Asserion.test_strings">
1768                 <stringProp name="2914">[]</stringProp>
1769               </collectionProp>
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>
1775             <hashTree/>
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\\&quot;: \\&quot;(.+?)\\&quot;</stringProp>
1780               <stringProp name="RegexExtractor.template">$1$</stringProp>
1781               <stringProp name="RegexExtractor.default">none</stringProp>
1782               <stringProp name="RegexExtractor.match_number"></stringProp>
1783             </RegexExtractor>
1784             <hashTree/>
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\\&quot;: \\&quot;FINAL: (.+?)\\&quot;</stringProp>
1789               <stringProp name="RegexExtractor.template">$1$</stringProp>
1790               <stringProp name="RegexExtractor.default">none</stringProp>
1791               <stringProp name="RegexExtractor.match_number"></stringProp>
1792             </RegexExtractor>
1793             <hashTree/>
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(&quot;requestIdOnset&quot;);
1800 String requestId =  vars.get(&quot;requestId&quot;);
1801 String notification =  vars.get(&quot;notification&quot;);
1802 String counter =  vars.get(&quot;counter&quot;);
1803
1804 String transaction = &quot;none&quot;;
1805
1806 log.info (&quot;The requestId id is &quot; + requestId);
1807 log.info (&quot;The requestIdOnset id is &quot; + requestIdOnset);
1808 log.info (&quot;The notification is &quot; + notification);
1809 log.info (&quot;The transaction is &quot; + transaction);
1810 log.info (&quot;The counter is &quot; + counter);
1811
1812 if (    requestId == requestIdOnset ) {
1813         if ( notification == &quot;SUCCESS&quot; ) {
1814                 transaction = &quot;FINAL&quot;;
1815                 log.info (&quot;Final Success Transaction&quot;);
1816                 AssertionResult.setFailureMessage(&quot;Unexpected SUCCESS notification&quot;);
1817                 AssertionResult.setFailure(true);
1818         } else if ( notification == &quot;FAILURE&quot; ) {
1819                 transaction = &quot;FINAL&quot;;
1820                 log.info (&quot;Final Failure Transaction&quot;);
1821         } 
1822 }
1823
1824 int counterTemp = Integer.parseInt(counter) +1;
1825 if (transaction == &quot;FINAL&quot;) {
1826         counterTemp = 99;
1827 } else if (counterTemp &gt;= 60) {
1828         AssertionResult.setFailureMessage(&quot;vCPE Failure POLICYCL Failure, reached maximum number of 10 attempts &quot;);
1829         AssertionResult.setFailure(true);               
1830 }
1831
1832 vars.put(&quot;counter&quot;, Integer.toString(counterTemp));</stringProp>
1833             </JSR223Assertion>
1834             <hashTree/>
1835           </hashTree>
1836         </hashTree>
1837         <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true">
1838           <boolProp name="ResultCollector.error_logging">false</boolProp>
1839           <objProp>
1840             <name>saveConfig</name>
1841             <value class="SampleSaveConfiguration">
1842               <time>true</time>
1843               <latency>true</latency>
1844               <timestamp>true</timestamp>
1845               <success>true</success>
1846               <label>true</label>
1847               <code>true</code>
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>
1856               <xml>false</xml>
1857               <fieldNames>true</fieldNames>
1858               <responseHeaders>false</responseHeaders>
1859               <requestHeaders>false</requestHeaders>
1860               <responseDataOnError>false</responseDataOnError>
1861               <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
1862               <assertionsResultsToSave>0</assertionsResultsToSave>
1863               <bytes>true</bytes>
1864               <sentBytes>true</sentBytes>
1865               <url>true</url>
1866               <threadCounts>true</threadCounts>
1867               <idleTime>true</idleTime>
1868               <connectTime>true</connectTime>
1869             </value>
1870           </objProp>
1871           <stringProp name="filename"></stringProp>
1872         </ResultCollector>
1873         <hashTree/>
1874       </hashTree>
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>
1880         </elementProp>
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>
1886       </ThreadGroup>
1887       <hashTree>
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>
1891           </collectionProp>
1892           <collectionProp name="UserParameters.thread_values">
1893             <collectionProp name="-2069404111">
1894               <stringProp name="-27349072">vdnssuccess</stringProp>
1895             </collectionProp>
1896           </collectionProp>
1897           <boolProp name="UserParameters.per_iteration">false</boolProp>
1898           <stringProp name="TestPlan.comments">Global to the thread group</stringProp>
1899         </UserParameters>
1900         <hashTree/>
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>
1904           </collectionProp>
1905           <collectionProp name="UserParameters.thread_values">
1906             <collectionProp name="681405977">
1907               <stringProp name="118040362">${__UUID()}</stringProp>
1908             </collectionProp>
1909           </collectionProp>
1910           <boolProp name="UserParameters.per_iteration">true</boolProp>
1911           <stringProp name="TestPlan.comments">Update on a per iteration basis</stringProp>
1912         </UserParameters>
1913         <hashTree/>
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">{&#xd;
1921   &quot;closedLoopControlName&quot;: &quot;ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3&quot;,&#xd;
1922   &quot;closedLoopAlarmStart&quot;: 1463679805324,&#xd;
1923   &quot;closedLoopEventClient&quot;: &quot;microservice.stringmatcher&quot;,&#xd;
1924   &quot;closedLoopEventStatus&quot;: &quot;ONSET&quot;,&#xd;
1925   &quot;requestID&quot;: &quot;${requestId}&quot;,&#xd;
1926   &quot;target_type&quot;: &quot;VNF&quot;,&#xd;
1927   &quot;target&quot;: &quot;vserver.vserver-name&quot;,&#xd;
1928   &quot;AAI&quot;: {&#xd;
1929     &quot;vserver.is-closed-loop-disabled&quot;: &quot;false&quot;,&#xd;
1930     &quot;vserver.prov-status&quot;: &quot;ACTIVE&quot;,&#xd;
1931     &quot;vserver.vserver-name&quot;: &quot;OzVServer&quot;&#xd;
1932   },&#xd;
1933   &quot;from&quot;: &quot;DCAE&quot;,&#xd;
1934   &quot;version&quot;: &quot;1.0.2&quot;&#xd;
1935 }</stringProp>
1936                 <stringProp name="Argument.metadata">=</stringProp>
1937               </elementProp>
1938             </collectionProp>
1939           </elementProp>
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>
1953         </HTTPSamplerProxy>
1954         <hashTree>
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>
1960               </elementProp>
1961             </collectionProp>
1962           </HeaderManager>
1963           <hashTree/>
1964         </hashTree>
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(&quot;counter&quot;, &quot;0&quot;);
1971 vars.put(&quot;transaction&quot;, &quot;none&quot;);</stringProp>
1972         </JSR223Sampler>
1973         <hashTree/>
1974         <WhileController guiclass="WhileControllerGui" testclass="WhileController" testname="Final Success Controller" enabled="true">
1975           <stringProp name="WhileController.condition">${__javaScript(${counter} &lt; 60)}</stringProp>
1976         </WhileController>
1977         <hashTree>
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">{&quot;class&quot;:&quot;And&quot;, &quot;filters&quot;: [ { &quot;class&quot;:&quot;Equals&quot;, &quot;field&quot;:&quot;requestId&quot;, &quot;value&quot;:&quot;${requestId}&quot; }, { &quot;class&quot;:&quot;Equals&quot;, &quot;field&quot;:&quot;notification&quot;, &quot;value&quot;:&quot;FINAL: SUCCESS&quot; }]}</stringProp>
1984                   <stringProp name="Argument.metadata">=</stringProp>
1985                   <boolProp name="HTTPArgument.use_equals">true</boolProp>
1986                   <stringProp name="Argument.name">filter</stringProp>
1987                 </elementProp>
1988               </collectionProp>
1989             </elementProp>
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&amp;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>
2003           </HTTPSamplerProxy>
2004           <hashTree>
2005             <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="No []" enabled="true">
2006               <collectionProp name="Asserion.test_strings">
2007                 <stringProp name="2914">[]</stringProp>
2008               </collectionProp>
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>
2014             <hashTree/>
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\\&quot;: \\&quot;(.+?)\\&quot;</stringProp>
2019               <stringProp name="RegexExtractor.template">$1$</stringProp>
2020               <stringProp name="RegexExtractor.default">none</stringProp>
2021               <stringProp name="RegexExtractor.match_number"></stringProp>
2022             </RegexExtractor>
2023             <hashTree/>
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\\&quot;: \\&quot;FINAL: (.+?)\\&quot;</stringProp>
2028               <stringProp name="RegexExtractor.template">$1$</stringProp>
2029               <stringProp name="RegexExtractor.default">none</stringProp>
2030               <stringProp name="RegexExtractor.match_number"></stringProp>
2031             </RegexExtractor>
2032             <hashTree/>
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(&quot;requestIdOnset&quot;);
2039 String requestId =  vars.get(&quot;requestId&quot;);
2040 String notification =  vars.get(&quot;notification&quot;);
2041 String counter =  vars.get(&quot;counter&quot;);
2042
2043 String transaction = &quot;none&quot;;
2044
2045 log.info (&quot;The requestId id is &quot; + requestId);
2046 log.info (&quot;The requestIdOnset id is &quot; + requestIdOnset);
2047 log.info (&quot;The notification is &quot; + notification);
2048 log.info (&quot;The transaction is &quot; + transaction);
2049 log.info (&quot;The counter is &quot; + counter);
2050
2051 if (    requestId == requestIdOnset ) {
2052         if ( notification == &quot;SUCCESS&quot; ) {
2053                 transaction = &quot;FINAL&quot;;
2054                 log.info (&quot;Final Success Transaction&quot;);
2055                 log.info (&quot;The notification is SUCCESS&quot;);
2056         } else if ( notification == &quot;FAILURE&quot; ) {
2057                 transaction = &quot;FINAL&quot;;
2058                 log.info (&quot;Final Failure Transaction&quot;);
2059                 AssertionResult.setFailureMessage(&quot;Bad final notification&quot;);
2060                 AssertionResult.setFailure(true);
2061         } 
2062 }
2063
2064 int counterTemp = Integer.parseInt(counter) +1;
2065 if (transaction == &quot;FINAL&quot;) {
2066         counterTemp = 99;
2067 } else if (counterTemp &gt;= 60) {
2068         AssertionResult.setFailureMessage(&quot;vDNS Success POLICYCL Failure, reached maximum number of attempts &quot;);
2069         AssertionResult.setFailure(true);               
2070 }
2071
2072 vars.put(&quot;counter&quot;, Integer.toString(counterTemp));</stringProp>
2073             </JSR223Assertion>
2074             <hashTree/>
2075           </hashTree>
2076         </hashTree>
2077         <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true">
2078           <boolProp name="ResultCollector.error_logging">false</boolProp>
2079           <objProp>
2080             <name>saveConfig</name>
2081             <value class="SampleSaveConfiguration">
2082               <time>true</time>
2083               <latency>true</latency>
2084               <timestamp>true</timestamp>
2085               <success>true</success>
2086               <label>true</label>
2087               <code>true</code>
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>
2096               <xml>false</xml>
2097               <fieldNames>true</fieldNames>
2098               <responseHeaders>false</responseHeaders>
2099               <requestHeaders>false</requestHeaders>
2100               <responseDataOnError>false</responseDataOnError>
2101               <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
2102               <assertionsResultsToSave>0</assertionsResultsToSave>
2103               <bytes>true</bytes>
2104               <sentBytes>true</sentBytes>
2105               <url>true</url>
2106               <threadCounts>true</threadCounts>
2107               <idleTime>true</idleTime>
2108               <connectTime>true</connectTime>
2109             </value>
2110           </objProp>
2111           <stringProp name="filename"></stringProp>
2112         </ResultCollector>
2113         <hashTree/>
2114       </hashTree>
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>
2120         </elementProp>
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>
2126       </ThreadGroup>
2127       <hashTree>
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>
2131           </collectionProp>
2132           <collectionProp name="UserParameters.thread_values">
2133             <collectionProp name="877384373">
2134               <stringProp name="753246519">vdnsfailure</stringProp>
2135             </collectionProp>
2136           </collectionProp>
2137           <boolProp name="UserParameters.per_iteration">false</boolProp>
2138           <stringProp name="TestPlan.comments">Global to the thread group</stringProp>
2139         </UserParameters>
2140         <hashTree/>
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>
2144           </collectionProp>
2145           <collectionProp name="UserParameters.thread_values">
2146             <collectionProp name="681405977">
2147               <stringProp name="118040362">${__UUID()}</stringProp>
2148             </collectionProp>
2149           </collectionProp>
2150           <boolProp name="UserParameters.per_iteration">true</boolProp>
2151           <stringProp name="TestPlan.comments">Update on a per iteration basis</stringProp>
2152         </UserParameters>
2153         <hashTree/>
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">{&#xd;
2161   &quot;closedLoopControlName&quot;: &quot;ControlLoop-vDNS-Fail&quot;,&#xd;
2162   &quot;closedLoopAlarmStart&quot;: 1463679805324,&#xd;
2163   &quot;closedLoopEventClient&quot;: &quot;microservice.stringmatcher&quot;,&#xd;
2164   &quot;closedLoopEventStatus&quot;: &quot;ONSET&quot;,&#xd;
2165   &quot;requestID&quot;: &quot;${requestId}&quot;,&#xd;
2166   &quot;target_type&quot;: &quot;VNF&quot;,&#xd;
2167   &quot;target&quot;: &quot;vserver.vserver-name&quot;,&#xd;
2168   &quot;AAI&quot;: {&#xd;
2169     &quot;vserver.is-closed-loop-disabled&quot;: &quot;false&quot;,&#xd;
2170     &quot;vserver.prov-status&quot;: &quot;ACTIVE&quot;,&#xd;
2171     &quot;vserver.vserver-name&quot;: &quot;AAA&quot;&#xd;
2172   },&#xd;
2173   &quot;from&quot;: &quot;DCAE&quot;,&#xd;
2174   &quot;version&quot;: &quot;1.0.2&quot;&#xd;
2175 }</stringProp>
2176                 <stringProp name="Argument.metadata">=</stringProp>
2177               </elementProp>
2178             </collectionProp>
2179           </elementProp>
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>
2193         </HTTPSamplerProxy>
2194         <hashTree>
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>
2200               </elementProp>
2201             </collectionProp>
2202           </HeaderManager>
2203           <hashTree/>
2204         </hashTree>
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(&quot;counter&quot;, &quot;0&quot;);
2211 vars.put(&quot;transaction&quot;, &quot;none&quot;);</stringProp>
2212         </JSR223Sampler>
2213         <hashTree/>
2214         <WhileController guiclass="WhileControllerGui" testclass="WhileController" testname="Final Failure Controller" enabled="true">
2215           <stringProp name="WhileController.condition">${__javaScript(${counter} &lt; 60)}</stringProp>
2216         </WhileController>
2217         <hashTree>
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">{&quot;class&quot;:&quot;And&quot;, &quot;filters&quot;: [ { &quot;class&quot;:&quot;Equals&quot;, &quot;field&quot;:&quot;requestId&quot;, &quot;value&quot;:&quot;${requestId}&quot; }, { &quot;class&quot;:&quot;Equals&quot;, &quot;field&quot;:&quot;notification&quot;, &quot;value&quot;:&quot;FINAL: SUCCESS&quot; }]}</stringProp>
2224                   <stringProp name="Argument.metadata">=</stringProp>
2225                   <boolProp name="HTTPArgument.use_equals">true</boolProp>
2226                   <stringProp name="Argument.name">filter</stringProp>
2227                 </elementProp>
2228               </collectionProp>
2229             </elementProp>
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&amp;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>
2243           </HTTPSamplerProxy>
2244           <hashTree>
2245             <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="No []" enabled="true">
2246               <collectionProp name="Asserion.test_strings">
2247                 <stringProp name="2914">[]</stringProp>
2248               </collectionProp>
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>
2254             <hashTree/>
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\\&quot;: \\&quot;(.+?)\\&quot;</stringProp>
2259               <stringProp name="RegexExtractor.template">$1$</stringProp>
2260               <stringProp name="RegexExtractor.default">none</stringProp>
2261               <stringProp name="RegexExtractor.match_number"></stringProp>
2262             </RegexExtractor>
2263             <hashTree/>
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\\&quot;: \\&quot;FINAL: (.+?)\\&quot;</stringProp>
2268               <stringProp name="RegexExtractor.template">$1$</stringProp>
2269               <stringProp name="RegexExtractor.default">none</stringProp>
2270               <stringProp name="RegexExtractor.match_number"></stringProp>
2271             </RegexExtractor>
2272             <hashTree/>
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(&quot;requestIdOnset&quot;);
2279 String requestId =  vars.get(&quot;requestId&quot;);
2280 String notification =  vars.get(&quot;notification&quot;);
2281 String counter =  vars.get(&quot;counter&quot;);
2282
2283 String transaction = &quot;none&quot;;
2284
2285 log.info (&quot;The requestId id is &quot; + requestId);
2286 log.info (&quot;The requestIdOnset id is &quot; + requestIdOnset);
2287 log.info (&quot;The notification is &quot; + notification);
2288 log.info (&quot;The transaction is &quot; + transaction);
2289 log.info (&quot;The counter is &quot; + counter);
2290
2291 if (    requestId == requestIdOnset ) {
2292         if ( notification == &quot;SUCCESS&quot; ) {
2293                 transaction = &quot;FINAL&quot;;
2294                 log.info (&quot;Final Success Transaction&quot;);
2295                 AssertionResult.setFailureMessage(&quot;Bad final notification&quot;);
2296                 AssertionResult.setFailure(true);
2297         } else if ( notification == &quot;FAILURE&quot; ) {
2298                 transaction = &quot;FINAL&quot;;
2299                 log.info (&quot;Final Failure Transaction&quot;);
2300         } 
2301 }
2302
2303 int counterTemp = Integer.parseInt(counter) +1;
2304 if (transaction == &quot;FINAL&quot;) {
2305         counterTemp = 99;
2306 } else if (counterTemp &gt;= 60) {
2307         AssertionResult.setFailureMessage(&quot;vDNS Failure POLICYCL Failure, reached maximum number of attempts &quot;);
2308         AssertionResult.setFailure(true);               
2309 }
2310
2311 vars.put(&quot;counter&quot;, Integer.toString(counterTemp));</stringProp>
2312             </JSR223Assertion>
2313             <hashTree/>
2314           </hashTree>
2315         </hashTree>
2316         <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true">
2317           <boolProp name="ResultCollector.error_logging">false</boolProp>
2318           <objProp>
2319             <name>saveConfig</name>
2320             <value class="SampleSaveConfiguration">
2321               <time>true</time>
2322               <latency>true</latency>
2323               <timestamp>true</timestamp>
2324               <success>true</success>
2325               <label>true</label>
2326               <code>true</code>
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>
2335               <xml>false</xml>
2336               <fieldNames>true</fieldNames>
2337               <responseHeaders>false</responseHeaders>
2338               <requestHeaders>false</requestHeaders>
2339               <responseDataOnError>false</responseDataOnError>
2340               <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
2341               <assertionsResultsToSave>0</assertionsResultsToSave>
2342               <bytes>true</bytes>
2343               <sentBytes>true</sentBytes>
2344               <url>true</url>
2345               <threadCounts>true</threadCounts>
2346               <idleTime>true</idleTime>
2347               <connectTime>true</connectTime>
2348             </value>
2349           </objProp>
2350           <stringProp name="filename"></stringProp>
2351         </ResultCollector>
2352         <hashTree/>
2353       </hashTree>
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>
2359         </elementProp>
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>
2365       </ThreadGroup>
2366       <hashTree>
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>
2370           </collectionProp>
2371           <collectionProp name="UserParameters.thread_values">
2372             <collectionProp name="-75926649">
2373               <stringProp name="-2021688740">vfwsuccess</stringProp>
2374             </collectionProp>
2375           </collectionProp>
2376           <boolProp name="UserParameters.per_iteration">false</boolProp>
2377           <stringProp name="TestPlan.comments">Global to the thread group</stringProp>
2378         </UserParameters>
2379         <hashTree/>
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>
2383           </collectionProp>
2384           <collectionProp name="UserParameters.thread_values">
2385             <collectionProp name="681405977">
2386               <stringProp name="118040362">${__UUID()}</stringProp>
2387             </collectionProp>
2388           </collectionProp>
2389           <boolProp name="UserParameters.per_iteration">true</boolProp>
2390           <stringProp name="TestPlan.comments">Update on a per iteration basis</stringProp>
2391         </UserParameters>
2392         <hashTree/>
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">{&#xd;
2400   &quot;closedLoopControlName&quot;: &quot;ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a&quot;,&#xd;
2401   &quot;closedLoopAlarmStart&quot;: 1463679805324,&#xd;
2402   &quot;closedLoopEventClient&quot;: &quot;microservice.stringmatcher&quot;,&#xd;
2403   &quot;closedLoopEventStatus&quot;: &quot;ONSET&quot;,&#xd;
2404   &quot;requestID&quot;: &quot;${requestId}&quot;,&#xd;
2405   &quot;target_type&quot;: &quot;VNF&quot;,&#xd;
2406   &quot;target&quot;: &quot;generic-vnf.vnf-name&quot;,&#xd;
2407   &quot;AAI&quot;: {&#xd;
2408     &quot;vserver.is-closed-loop-disabled&quot;: &quot;false&quot;,&#xd;
2409     &quot;vserver.prov-status&quot;: &quot;ACTIVE&quot;,&#xd;
2410     &quot;generic-vnf.vnf-name&quot;: &quot;fw0002vm002fw002&quot;,&#xd;
2411     &quot;vserver.vserver-name&quot;: &quot;OzVServer&quot;&#xd;
2412   },&#xd;
2413   &quot;from&quot;: &quot;DCAE&quot;,&#xd;
2414   &quot;version&quot;: &quot;1.0.2&quot;&#xd;
2415 }&#xd;
2416 </stringProp>
2417                 <stringProp name="Argument.metadata">=</stringProp>
2418               </elementProp>
2419             </collectionProp>
2420           </elementProp>
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>
2434         </HTTPSamplerProxy>
2435         <hashTree>
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>
2441               </elementProp>
2442             </collectionProp>
2443           </HeaderManager>
2444           <hashTree/>
2445         </hashTree>
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(&quot;counter&quot;, &quot;0&quot;);</stringProp>
2452         </JSR223Sampler>
2453         <hashTree/>
2454         <WhileController guiclass="WhileControllerGui" testclass="WhileController" testname="APPCL Restart Loop Controller" enabled="true">
2455           <stringProp name="WhileController.condition">${__javaScript(${counter} &lt; 10)}</stringProp>
2456         </WhileController>
2457         <hashTree>
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">{&quot;class&quot;:&quot;And&quot;, &quot;filters&quot;: [ { &quot;class&quot;:&quot;Equals&quot;, &quot;field&quot;:&quot;RequestID&quot;, &quot;value&quot;:&quot;${requestId}&quot; }, { &quot;class&quot;:&quot;Equals&quot;, &quot;field&quot;:&quot;Action&quot;, &quot;value&quot;:&quot;ModifyConfig&quot; }]}</stringProp>
2464                   <stringProp name="Argument.metadata">=</stringProp>
2465                   <boolProp name="HTTPArgument.use_equals">true</boolProp>
2466                   <stringProp name="Argument.name">filter</stringProp>
2467                 </elementProp>
2468               </collectionProp>
2469             </elementProp>
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&amp;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>
2483           </HTTPSamplerProxy>
2484           <hashTree>
2485             <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="No []" enabled="true">
2486               <collectionProp name="Asserion.test_strings">
2487                 <stringProp name="2914">[]</stringProp>
2488               </collectionProp>
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>
2494             <hashTree/>
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">\\&quot;RequestID\\&quot;: \\&quot;(.+?)\\&quot;</stringProp>
2499               <stringProp name="RegexExtractor.template">$1$</stringProp>
2500               <stringProp name="RegexExtractor.default">none</stringProp>
2501               <stringProp name="RegexExtractor.match_number"></stringProp>
2502             </RegexExtractor>
2503             <hashTree/>
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\\&quot;: \\&quot;(.+?)\\&quot;</stringProp>
2508               <stringProp name="RegexExtractor.template">$1$</stringProp>
2509               <stringProp name="RegexExtractor.default">none</stringProp>
2510               <stringProp name="RegexExtractor.match_number"></stringProp>
2511             </RegexExtractor>
2512             <hashTree/>
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(&quot;requestIdOnset&quot;);
2519 String requestId =  vars.get(&quot;requestId&quot;);
2520 String subRequestId =  vars.get(&quot;subRequestId&quot;);
2521 String counter =  vars.get(&quot;counter&quot;);
2522
2523 String transaction = &quot;none&quot;;
2524
2525 log.info (&quot;The requestId id is &quot; + requestId);
2526 log.info (&quot;The requestIdOnset id is &quot; + requestIdOnset);
2527 log.info (&quot;The subrequest id is &quot; + subRequestId);
2528 log.info (&quot;The counter is &quot; + counter);       
2529
2530 if (    requestId == requestIdOnset ) {
2531         if (    subRequestId == &quot;none&quot; ) {
2532                 transaction = &quot;FINAL&quot;;
2533                 log.info (&quot;APPC ModifyConfig does not contain enough information&quot;);
2534                 AssertionResult.setFailureMessage(&quot;Missing subRequestId&quot;);
2535                 AssertionResult.setFailure(true);
2536         } else {
2537                 transaction = &quot;FINAL&quot;;
2538                 vars.put(&quot;transaction&quot;, &quot;FINAL&quot;);
2539                 log.info (&quot;Final Success Transaction&quot;);
2540         }
2541 }
2542
2543 int counterTemp = Integer.parseInt(counter) +1;
2544 if (transaction == &quot;FINAL&quot;) {
2545         counterTemp = 99;
2546 } else if (counterTemp &gt;= 10) {
2547         AssertionResult.setFailureMessage(&quot;vFW Success APPCCL Failure, reached maximum number of 10 attempts &quot;);
2548         AssertionResult.setFailure(true);               
2549 }
2550
2551 vars.put(&quot;counter&quot;, Integer.toString(counterTemp));
2552
2553 </stringProp>
2554             </JSR223Assertion>
2555             <hashTree/>
2556           </hashTree>
2557         </hashTree>
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">{&#xd;
2565   &quot;CommonHeader&quot;: {&#xd;
2566     &quot;TimeStamp&quot;: 1506051879001,&#xd;
2567     &quot;APIver&quot;: &quot;1.01&quot;,&#xd;
2568     &quot;RequestID&quot;: &quot;${requestId}&quot;,&#xd;
2569     &quot;SubRequestID&quot;: &quot;${subRequestId}&quot;,&#xd;
2570     &quot;RequestTrack&quot;: [],&#xd;
2571     &quot;Flags&quot;: []&#xd;
2572   },&#xd;
2573   &quot;Status&quot;: {&#xd;
2574     &quot;Code&quot;: 400,&#xd;
2575     &quot;Value&quot;: &quot;SUCCESS&quot;&#xd;
2576   },&#xd;
2577   &quot;Payload&quot;: {&#xd;
2578     &quot;generic-vnf.vnf-id&quot;: &quot;f17face5-69cb-4c88-9e0b-7426db7edddd&quot;&#xd;
2579   }&#xd;
2580 }</stringProp>
2581                 <stringProp name="Argument.metadata">=</stringProp>
2582               </elementProp>
2583             </collectionProp>
2584           </elementProp>
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>
2598         </HTTPSamplerProxy>
2599         <hashTree>
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>
2605               </elementProp>
2606             </collectionProp>
2607           </HeaderManager>
2608           <hashTree/>
2609         </hashTree>
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(&quot;counter&quot;, &quot;0&quot;);</stringProp>
2616         </JSR223Sampler>
2617         <hashTree/>
2618         <WhileController guiclass="WhileControllerGui" testclass="WhileController" testname="Final Success Controller" enabled="true">
2619           <stringProp name="WhileController.condition">${__javaScript(${counter} &lt; 60)}</stringProp>
2620         </WhileController>
2621         <hashTree>
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">{&quot;class&quot;:&quot;And&quot;, &quot;filters&quot;: [ { &quot;class&quot;:&quot;Equals&quot;, &quot;field&quot;:&quot;requestId&quot;, &quot;value&quot;:&quot;${requestId}&quot; }, { &quot;class&quot;:&quot;Equals&quot;, &quot;field&quot;:&quot;notification&quot;, &quot;value&quot;:&quot;FINAL: SUCCESS&quot; }]}</stringProp>
2628                   <stringProp name="Argument.metadata">=</stringProp>
2629                   <boolProp name="HTTPArgument.use_equals">true</boolProp>
2630                   <stringProp name="Argument.name">filter</stringProp>
2631                 </elementProp>
2632               </collectionProp>
2633             </elementProp>
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&amp;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>
2647           </HTTPSamplerProxy>
2648           <hashTree>
2649             <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="No []" enabled="true">
2650               <collectionProp name="Asserion.test_strings">
2651                 <stringProp name="2914">[]</stringProp>
2652               </collectionProp>
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>
2658             <hashTree/>
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\\&quot;: \\&quot;(.+?)\\&quot;</stringProp>
2663               <stringProp name="RegexExtractor.template">$1$</stringProp>
2664               <stringProp name="RegexExtractor.default">none</stringProp>
2665               <stringProp name="RegexExtractor.match_number"></stringProp>
2666             </RegexExtractor>
2667             <hashTree/>
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\\&quot;: \\&quot;FINAL: (.+?)\\&quot;</stringProp>
2672               <stringProp name="RegexExtractor.template">$1$</stringProp>
2673               <stringProp name="RegexExtractor.default">none</stringProp>
2674               <stringProp name="RegexExtractor.match_number"></stringProp>
2675             </RegexExtractor>
2676             <hashTree/>
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(&quot;requestIdOnset&quot;);
2683 String requestId =  vars.get(&quot;requestId&quot;);
2684 String notification =  vars.get(&quot;notification&quot;);
2685 String counter =  vars.get(&quot;counter&quot;);
2686
2687 String transaction = &quot;none&quot;;
2688
2689 log.info (&quot;The requestId id is &quot; + requestId);
2690 log.info (&quot;The requestIdOnset id is &quot; + requestIdOnset);
2691 log.info (&quot;The notification is &quot; + notification);
2692 log.info (&quot;The transaction is &quot; + transaction);
2693 log.info (&quot;The counter is &quot; + counter);
2694
2695 if (    requestId == requestIdOnset ) {
2696         if ( notification == &quot;SUCCESS&quot; ) {
2697                 transaction = &quot;FINAL&quot;;
2698                 log.info (&quot;Final Success Transaction&quot;);
2699                 log.info (&quot;The notification is SUCCESS&quot;);
2700         } else if ( notification == &quot;FAILURE&quot; ) {
2701                 transaction = &quot;FINAL&quot;;
2702                 log.info (&quot;Final Failure Transaction&quot;);
2703                 AssertionResult.setFailureMessage(&quot;Bad final notification&quot;);
2704                 AssertionResult.setFailure(true);
2705         } 
2706 }
2707
2708 int counterTemp = Integer.parseInt(counter) +1;
2709 if (transaction == &quot;FINAL&quot;) {
2710         counterTemp = 99;
2711 } else if (counterTemp &gt;= 60) {
2712         AssertionResult.setFailureMessage(&quot;vFW Success POLICYCL Failure, reached maximum number of attempts &quot;);
2713         AssertionResult.setFailure(true);               
2714 }
2715
2716 vars.put(&quot;counter&quot;, Integer.toString(counterTemp));</stringProp>
2717             </JSR223Assertion>
2718             <hashTree/>
2719           </hashTree>
2720         </hashTree>
2721         <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true">
2722           <boolProp name="ResultCollector.error_logging">false</boolProp>
2723           <objProp>
2724             <name>saveConfig</name>
2725             <value class="SampleSaveConfiguration">
2726               <time>true</time>
2727               <latency>true</latency>
2728               <timestamp>true</timestamp>
2729               <success>true</success>
2730               <label>true</label>
2731               <code>true</code>
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>
2740               <xml>false</xml>
2741               <fieldNames>true</fieldNames>
2742               <responseHeaders>false</responseHeaders>
2743               <requestHeaders>false</requestHeaders>
2744               <responseDataOnError>false</responseDataOnError>
2745               <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
2746               <assertionsResultsToSave>0</assertionsResultsToSave>
2747               <bytes>true</bytes>
2748               <sentBytes>true</sentBytes>
2749               <url>true</url>
2750               <threadCounts>true</threadCounts>
2751               <idleTime>true</idleTime>
2752               <connectTime>true</connectTime>
2753             </value>
2754           </objProp>
2755           <stringProp name="filename"></stringProp>
2756         </ResultCollector>
2757         <hashTree/>
2758       </hashTree>
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>
2764         </elementProp>
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>
2770       </PostThreadGroup>
2771       <hashTree>
2772         <GenericController guiclass="LogicControllerGui" testclass="GenericController" testname="PAP" enabled="true"/>
2773         <hashTree>
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"/>
2777             </elementProp>
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>
2791           </HTTPSamplerProxy>
2792           <hashTree>
2793             <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
2794               <collectionProp name="Asserion.test_strings">
2795                 <stringProp name="49586">200</stringProp>
2796               </collectionProp>
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>
2802             <hashTree/>
2803           </hashTree>
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"/>
2807             </elementProp>
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>
2821           </HTTPSamplerProxy>
2822           <hashTree>
2823             <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
2824               <collectionProp name="Asserion.test_strings">
2825                 <stringProp name="49586">200</stringProp>
2826               </collectionProp>
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>
2832             <hashTree/>
2833           </hashTree>
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"/>
2837             </elementProp>
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>
2851           </HTTPSamplerProxy>
2852           <hashTree>
2853             <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
2854               <collectionProp name="Asserion.test_strings">
2855                 <stringProp name="49586">200</stringProp>
2856               </collectionProp>
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>
2862             <hashTree/>
2863           </hashTree>
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"/>
2867             </elementProp>
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>
2881           </HTTPSamplerProxy>
2882           <hashTree>
2883             <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
2884               <collectionProp name="Asserion.test_strings">
2885                 <stringProp name="49586">200</stringProp>
2886               </collectionProp>
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>
2892             <hashTree/>
2893           </hashTree>
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"/>
2897             </elementProp>
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>
2911           </HTTPSamplerProxy>
2912           <hashTree>
2913             <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
2914               <collectionProp name="Asserion.test_strings">
2915                 <stringProp name="49586">200</stringProp>
2916               </collectionProp>
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>
2922             <hashTree/>
2923           </hashTree>
2924         </hashTree>
2925         <GenericController guiclass="LogicControllerGui" testclass="GenericController" testname="API" enabled="true"/>
2926         <hashTree>
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"/>
2930             </elementProp>
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>
2944           </HTTPSamplerProxy>
2945           <hashTree>
2946             <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
2947               <collectionProp name="Asserion.test_strings">
2948                 <stringProp name="49586">200</stringProp>
2949               </collectionProp>
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>
2955             <hashTree/>
2956           </hashTree>
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"/>
2960             </elementProp>
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>
2974           </HTTPSamplerProxy>
2975           <hashTree>
2976             <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
2977               <collectionProp name="Asserion.test_strings">
2978                 <stringProp name="49586">200</stringProp>
2979               </collectionProp>
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>
2985             <hashTree/>
2986           </hashTree>
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"/>
2990             </elementProp>
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>
3004           </HTTPSamplerProxy>
3005           <hashTree>
3006             <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
3007               <collectionProp name="Asserion.test_strings">
3008                 <stringProp name="49586">200</stringProp>
3009               </collectionProp>
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>
3015             <hashTree/>
3016           </hashTree>
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"/>
3020             </elementProp>
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>
3034           </HTTPSamplerProxy>
3035           <hashTree>
3036             <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
3037               <collectionProp name="Asserion.test_strings">
3038                 <stringProp name="49586">200</stringProp>
3039               </collectionProp>
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>
3045             <hashTree/>
3046           </hashTree>
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"/>
3050             </elementProp>
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>
3064           </HTTPSamplerProxy>
3065           <hashTree>
3066             <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
3067               <collectionProp name="Asserion.test_strings">
3068                 <stringProp name="49586">200</stringProp>
3069               </collectionProp>
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>
3075             <hashTree/>
3076           </hashTree>
3077         </hashTree>
3078       </hashTree>
3079       <ResultCollector guiclass="SummaryReport" testclass="ResultCollector" testname="Summary Report" enabled="true">
3080         <boolProp name="ResultCollector.error_logging">false</boolProp>
3081         <objProp>
3082           <name>saveConfig</name>
3083           <value class="SampleSaveConfiguration">
3084             <time>true</time>
3085             <latency>true</latency>
3086             <timestamp>true</timestamp>
3087             <success>true</success>
3088             <label>true</label>
3089             <code>true</code>
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>
3098             <xml>false</xml>
3099             <fieldNames>true</fieldNames>
3100             <responseHeaders>false</responseHeaders>
3101             <requestHeaders>false</requestHeaders>
3102             <responseDataOnError>false</responseDataOnError>
3103             <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
3104             <assertionsResultsToSave>0</assertionsResultsToSave>
3105             <bytes>true</bytes>
3106             <sentBytes>true</sentBytes>
3107             <threadCounts>true</threadCounts>
3108             <idleTime>true</idleTime>
3109             <connectTime>true</connectTime>
3110           </value>
3111         </objProp>
3112         <stringProp name="filename"></stringProp>
3113       </ResultCollector>
3114       <hashTree/>
3115       <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true">
3116         <boolProp name="ResultCollector.error_logging">false</boolProp>
3117         <objProp>
3118           <name>saveConfig</name>
3119           <value class="SampleSaveConfiguration">
3120             <time>true</time>
3121             <latency>true</latency>
3122             <timestamp>true</timestamp>
3123             <success>true</success>
3124             <label>true</label>
3125             <code>true</code>
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>
3134             <xml>false</xml>
3135             <fieldNames>true</fieldNames>
3136             <responseHeaders>false</responseHeaders>
3137             <requestHeaders>false</requestHeaders>
3138             <responseDataOnError>false</responseDataOnError>
3139             <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
3140             <assertionsResultsToSave>0</assertionsResultsToSave>
3141             <bytes>true</bytes>
3142             <sentBytes>true</sentBytes>
3143             <threadCounts>true</threadCounts>
3144             <idleTime>true</idleTime>
3145             <connectTime>true</connectTime>
3146           </value>
3147         </objProp>
3148         <stringProp name="filename"></stringProp>
3149       </ResultCollector>
3150       <hashTree/>
3151       <ResultCollector guiclass="TableVisualizer" testclass="ResultCollector" testname="View Results in Table" enabled="true">
3152         <boolProp name="ResultCollector.error_logging">false</boolProp>
3153         <objProp>
3154           <name>saveConfig</name>
3155           <value class="SampleSaveConfiguration">
3156             <time>true</time>
3157             <latency>true</latency>
3158             <timestamp>true</timestamp>
3159             <success>true</success>
3160             <label>true</label>
3161             <code>true</code>
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>
3170             <xml>false</xml>
3171             <fieldNames>true</fieldNames>
3172             <responseHeaders>false</responseHeaders>
3173             <requestHeaders>false</requestHeaders>
3174             <responseDataOnError>false</responseDataOnError>
3175             <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
3176             <assertionsResultsToSave>0</assertionsResultsToSave>
3177             <bytes>true</bytes>
3178             <sentBytes>true</sentBytes>
3179             <threadCounts>true</threadCounts>
3180             <idleTime>true</idleTime>
3181             <connectTime>true</connectTime>
3182           </value>
3183         </objProp>
3184         <stringProp name="filename"></stringProp>
3185       </ResultCollector>
3186       <hashTree/>
3187     </hashTree>
3188   </hashTree>
3189 </jmeterTestPlan>