Update S3P for new API endpoint
[policy/api.git] / testsuites / stability / src / main / resources / testplans / policy_api_stability.jmx
1 <?xml version="1.0" encoding="UTF-8"?>
2 <jmeterTestPlan version="1.2" properties="5.0" jmeter="5.1.1 r1855137">
3   <hashTree>
4     <TestPlan guiclass="TestPlanGui" testclass="TestPlan" testname="Policy API Performance" enabled="true">
5       <stringProp name="TestPlan.comments"></stringProp>
6       <boolProp name="TestPlan.functional_mode">false</boolProp>
7       <boolProp name="TestPlan.tearDown_on_shutdown">true</boolProp>
8       <boolProp name="TestPlan.serialize_threadgroups">false</boolProp>
9       <elementProp name="TestPlan.user_defined_variables" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
10         <collectionProp name="Arguments.arguments">
11           <elementProp name="API_HOST" elementType="Argument">
12             <stringProp name="Argument.name">API_HOST</stringProp>
13             <stringProp name="Argument.value">10.12.6.151</stringProp>
14             <stringProp name="Argument.metadata">=</stringProp>
15           </elementProp>
16           <elementProp name="API_PORT" elementType="Argument">
17             <stringProp name="Argument.name">API_PORT</stringProp>
18             <stringProp name="Argument.value">6969</stringProp>
19             <stringProp name="Argument.metadata">=</stringProp>
20           </elementProp>
21         </collectionProp>
22       </elementProp>
23       <stringProp name="TestPlan.user_define_classpath"></stringProp>
24     </TestPlan>
25     <hashTree>
26       <AuthManager guiclass="AuthPanel" testclass="AuthManager" testname="HTTP Authorization Manager" enabled="true">
27         <collectionProp name="AuthManager.auth_list">
28           <elementProp name="" elementType="Authorization">
29             <stringProp name="Authorization.url">https://${API_HOST}:6969/policy/api/v1</stringProp>
30             <stringProp name="Authorization.username">healthcheck</stringProp>
31             <stringProp name="Authorization.password">zb!XztG34</stringProp>
32             <stringProp name="Authorization.domain"></stringProp>
33             <stringProp name="Authorization.realm"></stringProp>
34           </elementProp>
35         </collectionProp>
36         <boolProp name="AuthManager.clearEachIteration">true</boolProp>
37       </AuthManager>
38       <hashTree/>
39       <HeaderManager guiclass="HeaderPanel" testclass="HeaderManager" testname="HTTP Header Manager" enabled="true">
40         <collectionProp name="HeaderManager.headers">
41           <elementProp name="" elementType="Header">
42             <stringProp name="Header.name">Accept</stringProp>
43             <stringProp name="Header.value">application/json</stringProp>
44           </elementProp>
45           <elementProp name="" elementType="Header">
46             <stringProp name="Header.name">Content-Type</stringProp>
47             <stringProp name="Header.value">application/json</stringProp>
48           </elementProp>
49         </collectionProp>
50       </HeaderManager>
51       <hashTree/>
52       <SetupThreadGroup guiclass="SetupThreadGroupGui" testclass="SetupThreadGroup" testname="setUp Thread Group" enabled="true">
53         <stringProp name="ThreadGroup.on_sample_error">stoptest</stringProp>
54         <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true">
55           <boolProp name="LoopController.continue_forever">false</boolProp>
56           <stringProp name="LoopController.loops">1</stringProp>
57         </elementProp>
58         <stringProp name="ThreadGroup.num_threads">1</stringProp>
59         <stringProp name="ThreadGroup.ramp_time">1</stringProp>
60         <boolProp name="ThreadGroup.scheduler">false</boolProp>
61         <stringProp name="ThreadGroup.duration"></stringProp>
62         <stringProp name="ThreadGroup.delay"></stringProp>
63       </SetupThreadGroup>
64       <hashTree>
65         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Healthcheck" enabled="true">
66           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
67             <collectionProp name="Arguments.arguments"/>
68           </elementProp>
69           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
70           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
71           <stringProp name="HTTPSampler.protocol">https</stringProp>
72           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
73           <stringProp name="HTTPSampler.path">/policy/api/v1/healthcheck</stringProp>
74           <stringProp name="HTTPSampler.method">GET</stringProp>
75           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
76           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
77           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
78           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
79           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
80           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
81           <stringProp name="HTTPSampler.response_timeout"></stringProp>
82         </HTTPSamplerProxy>
83         <hashTree>
84           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
85             <collectionProp name="Asserion.test_strings">
86               <stringProp name="49586">200</stringProp>
87             </collectionProp>
88             <stringProp name="Assertion.custom_message"></stringProp>
89             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
90             <boolProp name="Assertion.assume_success">false</boolProp>
91             <intProp name="Assertion.test_type">1</intProp>
92           </ResponseAssertion>
93           <hashTree/>
94           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
95             <stringProp name="cacheKey">true</stringProp>
96             <stringProp name="filename"></stringProp>
97             <stringProp name="parameters"></stringProp>
98             <stringProp name="script">import groovy.json.JsonSlurper;
99
100 def res = [];
101 if (prev.getResponseCode() == &apos;200&apos;) {
102     def jsonSlurper = new JsonSlurper();
103     res = jsonSlurper.parseText(prev.getResponseDataAsString());
104
105     assert res instanceof Map;
106     assert res.code == 200;
107     assert res.name == &quot;Policy API&quot;;
108     assert res.healthy==true;
109     assert res.message==&quot;alive&quot;;
110 }</stringProp>
111             <stringProp name="scriptLanguage">groovy</stringProp>
112           </JSR223Assertion>
113           <hashTree/>
114         </hashTree>
115         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Statistics" enabled="true">
116           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
117             <collectionProp name="Arguments.arguments"/>
118           </elementProp>
119           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
120           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
121           <stringProp name="HTTPSampler.protocol">https</stringProp>
122           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
123           <stringProp name="HTTPSampler.path">/policy/api/v1/statistics</stringProp>
124           <stringProp name="HTTPSampler.method">GET</stringProp>
125           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
126           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
127           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
128           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
129           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
130           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
131           <stringProp name="HTTPSampler.response_timeout"></stringProp>
132         </HTTPSamplerProxy>
133         <hashTree>
134           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
135             <collectionProp name="Asserion.test_strings">
136               <stringProp name="49586">200</stringProp>
137             </collectionProp>
138             <stringProp name="Assertion.custom_message"></stringProp>
139             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
140             <boolProp name="Assertion.assume_success">false</boolProp>
141             <intProp name="Assertion.test_type">1</intProp>
142           </ResponseAssertion>
143           <hashTree/>
144           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
145             <stringProp name="scriptLanguage">groovy</stringProp>
146             <stringProp name="parameters"></stringProp>
147             <stringProp name="filename"></stringProp>
148             <stringProp name="cacheKey">true</stringProp>
149             <stringProp name="script">import groovy.json.JsonSlurper;
150
151 def res = [];
152 if (prev.getResponseCode() == &apos;200&apos;) {
153     def jsonSlurper = new JsonSlurper();
154     res = jsonSlurper.parseText(prev.getResponseDataAsString());
155
156     assert res instanceof Map;
157     assert res.code == 200;
158 }</stringProp>
159           </JSR223Assertion>
160           <hashTree/>
161         </hashTree>
162         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Preloaded Policy Types" enabled="true">
163           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
164             <collectionProp name="Arguments.arguments"/>
165           </elementProp>
166           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
167           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
168           <stringProp name="HTTPSampler.protocol">https</stringProp>
169           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
170           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes</stringProp>
171           <stringProp name="HTTPSampler.method">GET</stringProp>
172           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
173           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
174           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
175           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
176           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
177           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
178           <stringProp name="HTTPSampler.response_timeout"></stringProp>
179         </HTTPSamplerProxy>
180         <hashTree>
181           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
182             <collectionProp name="Asserion.test_strings">
183               <stringProp name="49586">200</stringProp>
184             </collectionProp>
185             <stringProp name="Assertion.custom_message"></stringProp>
186             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
187             <boolProp name="Assertion.assume_success">false</boolProp>
188             <intProp name="Assertion.test_type">1</intProp>
189           </ResponseAssertion>
190           <hashTree/>
191           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
192             <stringProp name="scriptLanguage">groovy</stringProp>
193             <stringProp name="parameters"></stringProp>
194             <stringProp name="filename"></stringProp>
195             <stringProp name="cacheKey">true</stringProp>
196             <stringProp name="script">import groovy.json.JsonSlurper;
197
198 def res = [];
199 if (prev.getResponseCode() == &apos;200&apos;) {
200     def jsonSlurper = new JsonSlurper();
201     res = jsonSlurper.parseText(prev.getResponseDataAsString());
202
203     assert res instanceof Map;
204     assert res.policy_types instanceof List;
205     assert res.policy_types.size == 18;
206 }</stringProp>
207           </JSR223Assertion>
208           <hashTree/>
209         </hashTree>
210       </hashTree>
211       <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="API Test Flow" enabled="true">
212         <stringProp name="ThreadGroup.on_sample_error">stoptest</stringProp>
213         <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true">
214           <boolProp name="LoopController.continue_forever">false</boolProp>
215           <stringProp name="LoopController.loops">10000000</stringProp>
216         </elementProp>
217         <stringProp name="ThreadGroup.num_threads">5</stringProp>
218         <stringProp name="ThreadGroup.ramp_time">5</stringProp>
219         <boolProp name="ThreadGroup.scheduler">true</boolProp>
220         <stringProp name="ThreadGroup.duration">259200</stringProp>
221         <stringProp name="ThreadGroup.delay">5</stringProp>
222       </ThreadGroup>
223       <hashTree>
224         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create TCA Policy Type V1" enabled="true">
225           <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
226           <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
227             <collectionProp name="Arguments.arguments">
228               <elementProp name="" elementType="HTTPArgument">
229                 <boolProp name="HTTPArgument.always_encode">false</boolProp>
230                 <stringProp name="Argument.value">{&#xd;
231     &quot;tosca_definitions_version&quot;: &quot;tosca_simple_yaml_1_0_0&quot;,&#xd;
232     &quot;policy_types&quot;: [&#xd;
233         {&#xd;
234             &quot;onap.policies.Monitoring&quot;: {&#xd;
235                 &quot;derived_from&quot;: &quot;tosca.policies.Root&quot;,&#xd;
236                 &quot;version&quot;: &quot;1.0.0&quot;,&#xd;
237                 &quot;description&quot;: &quot;a base policy type for all policies that governs monitoring provisioning&quot;&#xd;
238             }&#xd;
239         },&#xd;
240         {&#xd;
241             &quot;onap.policies.monitoring.cdap.tca.hi.lo.app&quot;: {&#xd;
242                 &quot;derived_from&quot;: &quot;onap.policies.Monitoring&quot;,&#xd;
243                 &quot;version&quot;: &quot;1.0.0&quot;,&#xd;
244                 &quot;properties&quot;: {&#xd;
245                     &quot;tca_policy&quot;: {&#xd;
246                         &quot;type&quot;: &quot;map&quot;,&#xd;
247                         &quot;description&quot;: &quot;TCA Policy JSON&quot;,&#xd;
248                         &quot;entry_schema&quot;: {&#xd;
249                             &quot;type&quot;: &quot;onap.datatypes.monitoring.tca_policy&quot;&#xd;
250                         }&#xd;
251                     }&#xd;
252                 }&#xd;
253             }&#xd;
254         }&#xd;
255     ],&#xd;
256     &quot;data_types&quot;: [&#xd;
257         {&#xd;
258             &quot;onap.datatypes.monitoring.metricsPerEventName&quot;: {&#xd;
259                 &quot;derived_from&quot;: &quot;tosca.datatypes.Root&quot;,&#xd;
260                 &quot;properties&quot;: {&#xd;
261                     &quot;controlLoopSchemaType&quot;: {&#xd;
262                         &quot;type&quot;: &quot;string&quot;,&#xd;
263                         &quot;required&quot;: true,&#xd;
264                         &quot;description&quot;: &quot;Specifies Control Loop Schema Type for the event Name e.g. VNF, VM&quot;,&#xd;
265                         &quot;constraints&quot;: [&#xd;
266                             {&#xd;
267                                 &quot;valid_values&quot;: [&#xd;
268                                     &quot;VM&quot;,&#xd;
269                                     &quot;VNF&quot;&#xd;
270                                 ]&#xd;
271                             }&#xd;
272                         ]&#xd;
273                     },&#xd;
274                     &quot;eventName&quot;: {&#xd;
275                         &quot;type&quot;: &quot;string&quot;,&#xd;
276                         &quot;required&quot;: true,&#xd;
277                         &quot;description&quot;: &quot;Event name to which thresholds need to be applied&quot;&#xd;
278                     },&#xd;
279                     &quot;policyName&quot;: {&#xd;
280                         &quot;type&quot;: &quot;string&quot;,&#xd;
281                         &quot;required&quot;: true,&#xd;
282                         &quot;description&quot;: &quot;TCA Policy Scope Name&quot;&#xd;
283                     },&#xd;
284                     &quot;policyScope&quot;: {&#xd;
285                         &quot;type&quot;: &quot;string&quot;,&#xd;
286                         &quot;required&quot;: true,&#xd;
287                         &quot;description&quot;: &quot;TCA Policy Scope&quot;&#xd;
288                     },&#xd;
289                     &quot;policyVersion&quot;: {&#xd;
290                         &quot;type&quot;: &quot;string&quot;,&#xd;
291                         &quot;required&quot;: true,&#xd;
292                         &quot;description&quot;: &quot;TCA Policy Scope Version&quot;&#xd;
293                     },&#xd;
294                     &quot;thresholds&quot;: {&#xd;
295                         &quot;type&quot;: &quot;list&quot;,&#xd;
296                         &quot;required&quot;: true,&#xd;
297                         &quot;description&quot;: &quot;Thresholds associated with eventName&quot;,&#xd;
298                         &quot;entry_schema&quot;: {&#xd;
299                             &quot;type&quot;: &quot;onap.datatypes.monitoring.thresholds&quot;&#xd;
300                         }&#xd;
301                     }&#xd;
302                 }&#xd;
303             }&#xd;
304         },&#xd;
305         {&#xd;
306             &quot;onap.datatypes.monitoring.tca_policy&quot;: {&#xd;
307                 &quot;derived_from&quot;: &quot;tosca.datatypes.Root&quot;,&#xd;
308                 &quot;properties&quot;: {&#xd;
309                     &quot;domain&quot;: {&#xd;
310                         &quot;type&quot;: &quot;string&quot;,&#xd;
311                         &quot;required&quot;: true,&#xd;
312                         &quot;description&quot;: &quot;Domain name to which TCA needs to be applied&quot;,&#xd;
313                         &quot;default&quot;: &quot;measurementsForVfScaling&quot;,&#xd;
314                         &quot;constraints&quot;: [&#xd;
315                             {&#xd;
316                                 &quot;equal&quot;: &quot;measurementsForVfScaling&quot;&#xd;
317                             }&#xd;
318                         ]&#xd;
319                     },&#xd;
320                     &quot;metricsPerEventName&quot;: {&#xd;
321                         &quot;type&quot;: &quot;list&quot;,&#xd;
322                         &quot;required&quot;: true,&#xd;
323                         &quot;description&quot;: &quot;Contains eventName and threshold details that need to be applied to given eventName&quot;,&#xd;
324                         &quot;entry_schema&quot;: {&#xd;
325                             &quot;type&quot;: &quot;onap.datatypes.monitoring.metricsPerEventName&quot;&#xd;
326                         }&#xd;
327                     }&#xd;
328                 }&#xd;
329             }&#xd;
330         },&#xd;
331         {&#xd;
332             &quot;onap.datatypes.monitoring.thresholds&quot;: {&#xd;
333                 &quot;derived_from&quot;: &quot;tosca.datatypes.Root&quot;,&#xd;
334                 &quot;properties&quot;: {&#xd;
335                     &quot;closedLoopControlName&quot;: {&#xd;
336                         &quot;type&quot;: &quot;string&quot;,&#xd;
337                         &quot;required&quot;: true,&#xd;
338                         &quot;description&quot;: &quot;Closed Loop Control Name associated with the threshold&quot;&#xd;
339                     },&#xd;
340                     &quot;closedLoopEventStatus&quot;: {&#xd;
341                         &quot;type&quot;: &quot;string&quot;,&#xd;
342                         &quot;required&quot;: true,&#xd;
343                         &quot;description&quot;: &quot;Closed Loop Event Status of the threshold&quot;,&#xd;
344                         &quot;constraints&quot;: [&#xd;
345                             {&#xd;
346                                 &quot;valid_values&quot;: [&#xd;
347                                     &quot;ONSET&quot;,&#xd;
348                                     &quot;ABATED&quot;&#xd;
349                                 ]&#xd;
350                             }&#xd;
351                         ]&#xd;
352                     },&#xd;
353                     &quot;direction&quot;: {&#xd;
354                         &quot;type&quot;: &quot;string&quot;,&#xd;
355                         &quot;required&quot;: true,&#xd;
356                         &quot;description&quot;: &quot;Direction of the threshold&quot;,&#xd;
357                         &quot;constraints&quot;: [&#xd;
358                             {&#xd;
359                                 &quot;valid_values&quot;: [&#xd;
360                                     &quot;LESS&quot;,&#xd;
361                                     &quot;LESS_OR_EQUAL&quot;,&#xd;
362                                     &quot;GREATER&quot;,&#xd;
363                                     &quot;GREATER_OR_EQUAL&quot;,&#xd;
364                                     &quot;EQUAL&quot;&#xd;
365                                 ]&#xd;
366                             }&#xd;
367                         ]&#xd;
368                     },&#xd;
369                     &quot;fieldPath&quot;: {&#xd;
370                         &quot;type&quot;: &quot;string&quot;,&#xd;
371                         &quot;required&quot;: true,&#xd;
372                         &quot;description&quot;: &quot;Json field Path as per CEF message which needs to be analyzed for TCA&quot;,&#xd;
373                         &quot;constraints&quot;: [&#xd;
374                             {&#xd;
375                                 &quot;valid_values&quot;: [&#xd;
376                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta&quot;,&#xd;
377                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsDelta&quot;,&#xd;
378                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsDelta&quot;,&#xd;
379                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsDelta&quot;,&#xd;
380                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsDelta&quot;,&#xd;
381                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsDelta&quot;,&#xd;
382                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsDelta&quot;,&#xd;
383                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsAccumulated&quot;,&#xd;
384                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsAccumulated&quot;,&#xd;
385                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsAccumulated&quot;,&#xd;
386                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsAccumulated&quot;,&#xd;
387                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated&quot;,&#xd;
388                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsAccumulated&quot;,&#xd;
389                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsAccumulated&quot;,&#xd;
390                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsDelta&quot;,&#xd;
391                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsDelta&quot;,&#xd;
392                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsDelta&quot;,&#xd;
393                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsDelta&quot;,&#xd;
394                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsDelta&quot;,&#xd;
395                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsDelta&quot;,&#xd;
396                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsDelta&quot;,&#xd;
397                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsAccumulated&quot;,&#xd;
398                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsAccumulated&quot;,&#xd;
399                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsAccumulated&quot;,&#xd;
400                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsAccumulated&quot;,&#xd;
401                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsAccumulated&quot;,&#xd;
402                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsAccumulated&quot;,&#xd;
403                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsAccumulated&quot;,&#xd;
404                                     &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuIdle&quot;,&#xd;
405                                     &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageInterrupt&quot;,&#xd;
406                                     &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageNice&quot;,&#xd;
407                                     &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSoftIrq&quot;,&#xd;
408                                     &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSteal&quot;,&#xd;
409                                     &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSystem&quot;,&#xd;
410                                     &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuWait&quot;,&#xd;
411                                     &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].percentUsage&quot;,&#xd;
412                                     &quot;$.event.measurementsForVfScalingFields.meanRequestLatency&quot;,&#xd;
413                                     &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryBuffered&quot;,&#xd;
414                                     &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryCached&quot;,&#xd;
415                                     &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryConfigured&quot;,&#xd;
416                                     &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryFree&quot;,&#xd;
417                                     &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryUsed&quot;,&#xd;
418                                     &quot;$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value&quot;&#xd;
419                                 ]&#xd;
420                             }&#xd;
421                         ]&#xd;
422                     },&#xd;
423                     &quot;severity&quot;: {&#xd;
424                         &quot;type&quot;: &quot;string&quot;,&#xd;
425                         &quot;required&quot;: true,&#xd;
426                         &quot;description&quot;: &quot;Threshold Event Severity&quot;,&#xd;
427                         &quot;constraints&quot;: [&#xd;
428                             {&#xd;
429                                 &quot;valid_values&quot;: [&#xd;
430                                     &quot;CRITICAL&quot;,&#xd;
431                                     &quot;MAJOR&quot;,&#xd;
432                                     &quot;MINOR&quot;,&#xd;
433                                     &quot;WARNING&quot;,&#xd;
434                                     &quot;NORMAL&quot;&#xd;
435                                 ]&#xd;
436                             }&#xd;
437                         ]&#xd;
438                     },&#xd;
439                     &quot;thresholdValue&quot;: {&#xd;
440                         &quot;type&quot;: &quot;integer&quot;,&#xd;
441                         &quot;required&quot;: true,&#xd;
442                         &quot;description&quot;: &quot;Threshold value for the field Path inside CEF message&quot;&#xd;
443                     },&#xd;
444                     &quot;version&quot;: {&#xd;
445                         &quot;type&quot;: &quot;string&quot;,&#xd;
446                         &quot;required&quot;: true,&#xd;
447                         &quot;description&quot;: &quot;Version number associated with the threshold&quot;&#xd;
448                     }&#xd;
449                 }&#xd;
450             }&#xd;
451         }&#xd;
452     ]&#xd;
453 }</stringProp>
454                 <stringProp name="Argument.metadata">=</stringProp>
455               </elementProp>
456             </collectionProp>
457           </elementProp>
458           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
459           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
460           <stringProp name="HTTPSampler.protocol">https</stringProp>
461           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
462           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes</stringProp>
463           <stringProp name="HTTPSampler.method">POST</stringProp>
464           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
465           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
466           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
467           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
468           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
469           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
470           <stringProp name="HTTPSampler.response_timeout"></stringProp>
471         </HTTPSamplerProxy>
472         <hashTree>
473           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
474             <collectionProp name="Asserion.test_strings">
475               <stringProp name="49586">200</stringProp>
476             </collectionProp>
477             <stringProp name="Assertion.custom_message"></stringProp>
478             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
479             <boolProp name="Assertion.assume_success">false</boolProp>
480             <intProp name="Assertion.test_type">1</intProp>
481           </ResponseAssertion>
482           <hashTree/>
483           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
484             <stringProp name="scriptLanguage">groovy</stringProp>
485             <stringProp name="parameters"></stringProp>
486             <stringProp name="filename"></stringProp>
487             <stringProp name="cacheKey">true</stringProp>
488             <stringProp name="script">import groovy.json.JsonSlurper;
489
490 def res = [];
491 if (prev.getResponseCode() == &apos;200&apos;) {
492     def jsonSlurper = new JsonSlurper();
493     res = jsonSlurper.parseText(prev.getResponseDataAsString());
494
495     assert res instanceof Map;
496     assert res.policy_types instanceof List;
497     assert res.policy_types.size == 2;
498     assert res.policy_types[0] instanceof Map;
499     assert res.policy_types[1] instanceof Map;
500 }</stringProp>
501           </JSR223Assertion>
502           <hashTree/>
503         </hashTree>
504         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create TCA Policy Type V2" enabled="true">
505           <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
506           <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
507             <collectionProp name="Arguments.arguments">
508               <elementProp name="" elementType="HTTPArgument">
509                 <boolProp name="HTTPArgument.always_encode">false</boolProp>
510                 <stringProp name="Argument.value">{&#xd;
511     &quot;tosca_definitions_version&quot;: &quot;tosca_simple_yaml_1_0_0&quot;,&#xd;
512     &quot;policy_types&quot;: [&#xd;
513         {&#xd;
514             &quot;onap.policies.Monitoring&quot;: {&#xd;
515                 &quot;derived_from&quot;: &quot;tosca.policies.Root&quot;,&#xd;
516                 &quot;version&quot;: &quot;1.0.0&quot;,&#xd;
517                 &quot;description&quot;: &quot;a base policy type for all policies that governs monitoring provisioning&quot;&#xd;
518             }&#xd;
519         },&#xd;
520         {&#xd;
521             &quot;onap.policies.monitoring.cdap.tca.hi.lo.app&quot;: {&#xd;
522                 &quot;derived_from&quot;: &quot;onap.policies.Monitoring&quot;,&#xd;
523                 &quot;version&quot;: &quot;2.0.0&quot;,&#xd;
524                 &quot;properties&quot;: {&#xd;
525                     &quot;tca_policy&quot;: {&#xd;
526                         &quot;type&quot;: &quot;map&quot;,&#xd;
527                         &quot;description&quot;: &quot;TCA Policy JSON&quot;,&#xd;
528                         &quot;entry_schema&quot;: {&#xd;
529                             &quot;type&quot;: &quot;onap.datatypes.monitoring.tca_policy&quot;&#xd;
530                         }&#xd;
531                     }&#xd;
532                 }&#xd;
533             }&#xd;
534         }&#xd;
535     ],&#xd;
536     &quot;data_types&quot;: [&#xd;
537         {&#xd;
538             &quot;onap.datatypes.monitoring.metricsPerEventName&quot;: {&#xd;
539                 &quot;derived_from&quot;: &quot;tosca.datatypes.Root&quot;,&#xd;
540                 &quot;properties&quot;: {&#xd;
541                     &quot;controlLoopSchemaType&quot;: {&#xd;
542                         &quot;type&quot;: &quot;string&quot;,&#xd;
543                         &quot;required&quot;: true,&#xd;
544                         &quot;description&quot;: &quot;Specifies Control Loop Schema Type for the event Name e.g. VNF, VM&quot;,&#xd;
545                         &quot;constraints&quot;: [&#xd;
546                             {&#xd;
547                                 &quot;valid_values&quot;: [&#xd;
548                                     &quot;VM&quot;,&#xd;
549                                     &quot;VNF&quot;&#xd;
550                                 ]&#xd;
551                             }&#xd;
552                         ]&#xd;
553                     },&#xd;
554                     &quot;eventName&quot;: {&#xd;
555                         &quot;type&quot;: &quot;string&quot;,&#xd;
556                         &quot;required&quot;: true,&#xd;
557                         &quot;description&quot;: &quot;Event name to which thresholds need to be applied&quot;&#xd;
558                     },&#xd;
559                     &quot;policyName&quot;: {&#xd;
560                         &quot;type&quot;: &quot;string&quot;,&#xd;
561                         &quot;required&quot;: true,&#xd;
562                         &quot;description&quot;: &quot;TCA Policy Scope Name&quot;&#xd;
563                     },&#xd;
564                     &quot;policyScope&quot;: {&#xd;
565                         &quot;type&quot;: &quot;string&quot;,&#xd;
566                         &quot;required&quot;: true,&#xd;
567                         &quot;description&quot;: &quot;TCA Policy Scope&quot;&#xd;
568                     },&#xd;
569                     &quot;policyVersion&quot;: {&#xd;
570                         &quot;type&quot;: &quot;string&quot;,&#xd;
571                         &quot;required&quot;: true,&#xd;
572                         &quot;description&quot;: &quot;TCA Policy Scope Version&quot;&#xd;
573                     },&#xd;
574                     &quot;thresholds&quot;: {&#xd;
575                         &quot;type&quot;: &quot;list&quot;,&#xd;
576                         &quot;required&quot;: true,&#xd;
577                         &quot;description&quot;: &quot;Thresholds associated with eventName&quot;,&#xd;
578                         &quot;entry_schema&quot;: {&#xd;
579                             &quot;type&quot;: &quot;onap.datatypes.monitoring.thresholds&quot;&#xd;
580                         }&#xd;
581                     }&#xd;
582                 }&#xd;
583             }&#xd;
584         },&#xd;
585         {&#xd;
586             &quot;onap.datatypes.monitoring.tca_policy&quot;: {&#xd;
587                 &quot;derived_from&quot;: &quot;tosca.datatypes.Root&quot;,&#xd;
588                 &quot;properties&quot;: {&#xd;
589                     &quot;domain&quot;: {&#xd;
590                         &quot;type&quot;: &quot;string&quot;,&#xd;
591                         &quot;required&quot;: true,&#xd;
592                         &quot;description&quot;: &quot;Domain name to which TCA needs to be applied&quot;,&#xd;
593                         &quot;default&quot;: &quot;measurementsForVfScaling&quot;,&#xd;
594                         &quot;constraints&quot;: [&#xd;
595                             {&#xd;
596                                 &quot;equal&quot;: &quot;measurementsForVfScaling&quot;&#xd;
597                             }&#xd;
598                         ]&#xd;
599                     },&#xd;
600                     &quot;metricsPerEventName&quot;: {&#xd;
601                         &quot;type&quot;: &quot;list&quot;,&#xd;
602                         &quot;required&quot;: true,&#xd;
603                         &quot;description&quot;: &quot;Contains eventName and threshold details that need to be applied to given eventName&quot;,&#xd;
604                         &quot;entry_schema&quot;: {&#xd;
605                             &quot;type&quot;: &quot;onap.datatypes.monitoring.metricsPerEventName&quot;&#xd;
606                         }&#xd;
607                     }&#xd;
608                 }&#xd;
609             }&#xd;
610         },&#xd;
611         {&#xd;
612             &quot;onap.datatypes.monitoring.thresholds&quot;: {&#xd;
613                 &quot;derived_from&quot;: &quot;tosca.datatypes.Root&quot;,&#xd;
614                 &quot;properties&quot;: {&#xd;
615                     &quot;closedLoopControlName&quot;: {&#xd;
616                         &quot;type&quot;: &quot;string&quot;,&#xd;
617                         &quot;required&quot;: true,&#xd;
618                         &quot;description&quot;: &quot;Closed Loop Control Name associated with the threshold&quot;&#xd;
619                     },&#xd;
620                     &quot;closedLoopEventStatus&quot;: {&#xd;
621                         &quot;type&quot;: &quot;string&quot;,&#xd;
622                         &quot;required&quot;: true,&#xd;
623                         &quot;description&quot;: &quot;Closed Loop Event Status of the threshold&quot;,&#xd;
624                         &quot;constraints&quot;: [&#xd;
625                             {&#xd;
626                                 &quot;valid_values&quot;: [&#xd;
627                                     &quot;ONSET&quot;,&#xd;
628                                     &quot;ABATED&quot;&#xd;
629                                 ]&#xd;
630                             }&#xd;
631                         ]&#xd;
632                     },&#xd;
633                     &quot;direction&quot;: {&#xd;
634                         &quot;type&quot;: &quot;string&quot;,&#xd;
635                         &quot;required&quot;: true,&#xd;
636                         &quot;description&quot;: &quot;Direction of the threshold&quot;,&#xd;
637                         &quot;constraints&quot;: [&#xd;
638                             {&#xd;
639                                 &quot;valid_values&quot;: [&#xd;
640                                     &quot;LESS&quot;,&#xd;
641                                     &quot;LESS_OR_EQUAL&quot;,&#xd;
642                                     &quot;GREATER&quot;,&#xd;
643                                     &quot;GREATER_OR_EQUAL&quot;,&#xd;
644                                     &quot;EQUAL&quot;&#xd;
645                                 ]&#xd;
646                             }&#xd;
647                         ]&#xd;
648                     },&#xd;
649                     &quot;fieldPath&quot;: {&#xd;
650                         &quot;type&quot;: &quot;string&quot;,&#xd;
651                         &quot;required&quot;: true,&#xd;
652                         &quot;description&quot;: &quot;Json field Path as per CEF message which needs to be analyzed for TCA&quot;,&#xd;
653                         &quot;constraints&quot;: [&#xd;
654                             {&#xd;
655                                 &quot;valid_values&quot;: [&#xd;
656                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta&quot;,&#xd;
657                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsDelta&quot;,&#xd;
658                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsDelta&quot;,&#xd;
659                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsDelta&quot;,&#xd;
660                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsDelta&quot;,&#xd;
661                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsDelta&quot;,&#xd;
662                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsDelta&quot;,&#xd;
663                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsAccumulated&quot;,&#xd;
664                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsAccumulated&quot;,&#xd;
665                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsAccumulated&quot;,&#xd;
666                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsAccumulated&quot;,&#xd;
667                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated&quot;,&#xd;
668                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsAccumulated&quot;,&#xd;
669                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsAccumulated&quot;,&#xd;
670                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsDelta&quot;,&#xd;
671                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsDelta&quot;,&#xd;
672                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsDelta&quot;,&#xd;
673                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsDelta&quot;,&#xd;
674                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsDelta&quot;,&#xd;
675                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsDelta&quot;,&#xd;
676                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsDelta&quot;,&#xd;
677                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsAccumulated&quot;,&#xd;
678                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsAccumulated&quot;,&#xd;
679                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsAccumulated&quot;,&#xd;
680                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsAccumulated&quot;,&#xd;
681                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsAccumulated&quot;,&#xd;
682                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsAccumulated&quot;,&#xd;
683                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsAccumulated&quot;,&#xd;
684                                     &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuIdle&quot;,&#xd;
685                                     &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageInterrupt&quot;,&#xd;
686                                     &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageNice&quot;,&#xd;
687                                     &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSoftIrq&quot;,&#xd;
688                                     &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSteal&quot;,&#xd;
689                                     &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSystem&quot;,&#xd;
690                                     &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuWait&quot;,&#xd;
691                                     &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].percentUsage&quot;,&#xd;
692                                     &quot;$.event.measurementsForVfScalingFields.meanRequestLatency&quot;,&#xd;
693                                     &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryBuffered&quot;,&#xd;
694                                     &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryCached&quot;,&#xd;
695                                     &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryConfigured&quot;,&#xd;
696                                     &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryFree&quot;,&#xd;
697                                     &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryUsed&quot;,&#xd;
698                                     &quot;$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value&quot;&#xd;
699                                 ]&#xd;
700                             }&#xd;
701                         ]&#xd;
702                     },&#xd;
703                     &quot;severity&quot;: {&#xd;
704                         &quot;type&quot;: &quot;string&quot;,&#xd;
705                         &quot;required&quot;: true,&#xd;
706                         &quot;description&quot;: &quot;Threshold Event Severity&quot;,&#xd;
707                         &quot;constraints&quot;: [&#xd;
708                             {&#xd;
709                                 &quot;valid_values&quot;: [&#xd;
710                                     &quot;CRITICAL&quot;,&#xd;
711                                     &quot;MAJOR&quot;,&#xd;
712                                     &quot;MINOR&quot;,&#xd;
713                                     &quot;WARNING&quot;,&#xd;
714                                     &quot;NORMAL&quot;&#xd;
715                                 ]&#xd;
716                             }&#xd;
717                         ]&#xd;
718                     },&#xd;
719                     &quot;thresholdValue&quot;: {&#xd;
720                         &quot;type&quot;: &quot;integer&quot;,&#xd;
721                         &quot;required&quot;: true,&#xd;
722                         &quot;description&quot;: &quot;Threshold value for the field Path inside CEF message&quot;&#xd;
723                     },&#xd;
724                     &quot;version&quot;: {&#xd;
725                         &quot;type&quot;: &quot;string&quot;,&#xd;
726                         &quot;required&quot;: true,&#xd;
727                         &quot;description&quot;: &quot;Version number associated with the threshold&quot;&#xd;
728                     }&#xd;
729                 }&#xd;
730             }&#xd;
731         }&#xd;
732     ]&#xd;
733 }</stringProp>
734                 <stringProp name="Argument.metadata">=</stringProp>
735               </elementProp>
736             </collectionProp>
737           </elementProp>
738           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
739           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
740           <stringProp name="HTTPSampler.protocol">https</stringProp>
741           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
742           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes</stringProp>
743           <stringProp name="HTTPSampler.method">POST</stringProp>
744           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
745           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
746           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
747           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
748           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
749           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
750           <stringProp name="HTTPSampler.response_timeout"></stringProp>
751         </HTTPSamplerProxy>
752         <hashTree>
753           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
754             <collectionProp name="Asserion.test_strings">
755               <stringProp name="49586">200</stringProp>
756             </collectionProp>
757             <stringProp name="Assertion.custom_message"></stringProp>
758             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
759             <boolProp name="Assertion.assume_success">false</boolProp>
760             <intProp name="Assertion.test_type">1</intProp>
761           </ResponseAssertion>
762           <hashTree/>
763           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
764             <stringProp name="scriptLanguage">groovy</stringProp>
765             <stringProp name="parameters"></stringProp>
766             <stringProp name="filename"></stringProp>
767             <stringProp name="cacheKey">true</stringProp>
768             <stringProp name="script">import groovy.json.JsonSlurper;
769
770 def res = [];
771 if (prev.getResponseCode() == &apos;200&apos;) {
772     def jsonSlurper = new JsonSlurper();
773     res = jsonSlurper.parseText(prev.getResponseDataAsString());
774
775     assert res instanceof Map;
776     assert res.policy_types instanceof List;
777     assert res.policy_types.size == 2;
778     assert res.policy_types[0] instanceof Map;
779     assert res.policy_types[1] instanceof Map;
780 }</stringProp>
781           </JSR223Assertion>
782           <hashTree/>
783         </hashTree>
784         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create TCA Policy Type V3" enabled="true">
785           <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
786           <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
787             <collectionProp name="Arguments.arguments">
788               <elementProp name="" elementType="HTTPArgument">
789                 <boolProp name="HTTPArgument.always_encode">false</boolProp>
790                 <stringProp name="Argument.value">{&#xd;
791     &quot;tosca_definitions_version&quot;: &quot;tosca_simple_yaml_1_0_0&quot;,&#xd;
792     &quot;policy_types&quot;: [&#xd;
793         {&#xd;
794             &quot;onap.policies.Monitoring&quot;: {&#xd;
795                 &quot;derived_from&quot;: &quot;tosca.policies.Root&quot;,&#xd;
796                 &quot;version&quot;: &quot;1.0.0&quot;,&#xd;
797                 &quot;description&quot;: &quot;a base policy type for all policies that governs monitoring provisioning&quot;&#xd;
798             }&#xd;
799         },&#xd;
800         {&#xd;
801             &quot;onap.policies.monitoring.cdap.tca.hi.lo.app&quot;: {&#xd;
802                 &quot;derived_from&quot;: &quot;onap.policies.Monitoring&quot;,&#xd;
803                 &quot;version&quot;: &quot;3.0.0&quot;,&#xd;
804                 &quot;properties&quot;: {&#xd;
805                     &quot;tca_policy&quot;: {&#xd;
806                         &quot;type&quot;: &quot;map&quot;,&#xd;
807                         &quot;description&quot;: &quot;TCA Policy JSON&quot;,&#xd;
808                         &quot;entry_schema&quot;: {&#xd;
809                             &quot;type&quot;: &quot;onap.datatypes.monitoring.tca_policy&quot;&#xd;
810                         }&#xd;
811                     }&#xd;
812                 }&#xd;
813             }&#xd;
814         }&#xd;
815     ],&#xd;
816     &quot;data_types&quot;: [&#xd;
817         {&#xd;
818             &quot;onap.datatypes.monitoring.metricsPerEventName&quot;: {&#xd;
819                 &quot;derived_from&quot;: &quot;tosca.datatypes.Root&quot;,&#xd;
820                 &quot;properties&quot;: {&#xd;
821                     &quot;controlLoopSchemaType&quot;: {&#xd;
822                         &quot;type&quot;: &quot;string&quot;,&#xd;
823                         &quot;required&quot;: true,&#xd;
824                         &quot;description&quot;: &quot;Specifies Control Loop Schema Type for the event Name e.g. VNF, VM&quot;,&#xd;
825                         &quot;constraints&quot;: [&#xd;
826                             {&#xd;
827                                 &quot;valid_values&quot;: [&#xd;
828                                     &quot;VM&quot;,&#xd;
829                                     &quot;VNF&quot;&#xd;
830                                 ]&#xd;
831                             }&#xd;
832                         ]&#xd;
833                     },&#xd;
834                     &quot;eventName&quot;: {&#xd;
835                         &quot;type&quot;: &quot;string&quot;,&#xd;
836                         &quot;required&quot;: true,&#xd;
837                         &quot;description&quot;: &quot;Event name to which thresholds need to be applied&quot;&#xd;
838                     },&#xd;
839                     &quot;policyName&quot;: {&#xd;
840                         &quot;type&quot;: &quot;string&quot;,&#xd;
841                         &quot;required&quot;: true,&#xd;
842                         &quot;description&quot;: &quot;TCA Policy Scope Name&quot;&#xd;
843                     },&#xd;
844                     &quot;policyScope&quot;: {&#xd;
845                         &quot;type&quot;: &quot;string&quot;,&#xd;
846                         &quot;required&quot;: true,&#xd;
847                         &quot;description&quot;: &quot;TCA Policy Scope&quot;&#xd;
848                     },&#xd;
849                     &quot;policyVersion&quot;: {&#xd;
850                         &quot;type&quot;: &quot;string&quot;,&#xd;
851                         &quot;required&quot;: true,&#xd;
852                         &quot;description&quot;: &quot;TCA Policy Scope Version&quot;&#xd;
853                     },&#xd;
854                     &quot;thresholds&quot;: {&#xd;
855                         &quot;type&quot;: &quot;list&quot;,&#xd;
856                         &quot;required&quot;: true,&#xd;
857                         &quot;description&quot;: &quot;Thresholds associated with eventName&quot;,&#xd;
858                         &quot;entry_schema&quot;: {&#xd;
859                             &quot;type&quot;: &quot;onap.datatypes.monitoring.thresholds&quot;&#xd;
860                         }&#xd;
861                     }&#xd;
862                 }&#xd;
863             }&#xd;
864         },&#xd;
865         {&#xd;
866             &quot;onap.datatypes.monitoring.tca_policy&quot;: {&#xd;
867                 &quot;derived_from&quot;: &quot;tosca.datatypes.Root&quot;,&#xd;
868                 &quot;properties&quot;: {&#xd;
869                     &quot;domain&quot;: {&#xd;
870                         &quot;type&quot;: &quot;string&quot;,&#xd;
871                         &quot;required&quot;: true,&#xd;
872                         &quot;description&quot;: &quot;Domain name to which TCA needs to be applied&quot;,&#xd;
873                         &quot;default&quot;: &quot;measurementsForVfScaling&quot;,&#xd;
874                         &quot;constraints&quot;: [&#xd;
875                             {&#xd;
876                                 &quot;equal&quot;: &quot;measurementsForVfScaling&quot;&#xd;
877                             }&#xd;
878                         ]&#xd;
879                     },&#xd;
880                     &quot;metricsPerEventName&quot;: {&#xd;
881                         &quot;type&quot;: &quot;list&quot;,&#xd;
882                         &quot;required&quot;: true,&#xd;
883                         &quot;description&quot;: &quot;Contains eventName and threshold details that need to be applied to given eventName&quot;,&#xd;
884                         &quot;entry_schema&quot;: {&#xd;
885                             &quot;type&quot;: &quot;onap.datatypes.monitoring.metricsPerEventName&quot;&#xd;
886                         }&#xd;
887                     }&#xd;
888                 }&#xd;
889             }&#xd;
890         },&#xd;
891         {&#xd;
892             &quot;onap.datatypes.monitoring.thresholds&quot;: {&#xd;
893                 &quot;derived_from&quot;: &quot;tosca.datatypes.Root&quot;,&#xd;
894                 &quot;properties&quot;: {&#xd;
895                     &quot;closedLoopControlName&quot;: {&#xd;
896                         &quot;type&quot;: &quot;string&quot;,&#xd;
897                         &quot;required&quot;: true,&#xd;
898                         &quot;description&quot;: &quot;Closed Loop Control Name associated with the threshold&quot;&#xd;
899                     },&#xd;
900                     &quot;closedLoopEventStatus&quot;: {&#xd;
901                         &quot;type&quot;: &quot;string&quot;,&#xd;
902                         &quot;required&quot;: true,&#xd;
903                         &quot;description&quot;: &quot;Closed Loop Event Status of the threshold&quot;,&#xd;
904                         &quot;constraints&quot;: [&#xd;
905                             {&#xd;
906                                 &quot;valid_values&quot;: [&#xd;
907                                     &quot;ONSET&quot;,&#xd;
908                                     &quot;ABATED&quot;&#xd;
909                                 ]&#xd;
910                             }&#xd;
911                         ]&#xd;
912                     },&#xd;
913                     &quot;direction&quot;: {&#xd;
914                         &quot;type&quot;: &quot;string&quot;,&#xd;
915                         &quot;required&quot;: true,&#xd;
916                         &quot;description&quot;: &quot;Direction of the threshold&quot;,&#xd;
917                         &quot;constraints&quot;: [&#xd;
918                             {&#xd;
919                                 &quot;valid_values&quot;: [&#xd;
920                                     &quot;LESS&quot;,&#xd;
921                                     &quot;LESS_OR_EQUAL&quot;,&#xd;
922                                     &quot;GREATER&quot;,&#xd;
923                                     &quot;GREATER_OR_EQUAL&quot;,&#xd;
924                                     &quot;EQUAL&quot;&#xd;
925                                 ]&#xd;
926                             }&#xd;
927                         ]&#xd;
928                     },&#xd;
929                     &quot;fieldPath&quot;: {&#xd;
930                         &quot;type&quot;: &quot;string&quot;,&#xd;
931                         &quot;required&quot;: true,&#xd;
932                         &quot;description&quot;: &quot;Json field Path as per CEF message which needs to be analyzed for TCA&quot;,&#xd;
933                         &quot;constraints&quot;: [&#xd;
934                             {&#xd;
935                                 &quot;valid_values&quot;: [&#xd;
936                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta&quot;,&#xd;
937                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsDelta&quot;,&#xd;
938                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsDelta&quot;,&#xd;
939                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsDelta&quot;,&#xd;
940                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsDelta&quot;,&#xd;
941                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsDelta&quot;,&#xd;
942                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsDelta&quot;,&#xd;
943                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsAccumulated&quot;,&#xd;
944                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsAccumulated&quot;,&#xd;
945                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsAccumulated&quot;,&#xd;
946                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsAccumulated&quot;,&#xd;
947                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated&quot;,&#xd;
948                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsAccumulated&quot;,&#xd;
949                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsAccumulated&quot;,&#xd;
950                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsDelta&quot;,&#xd;
951                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsDelta&quot;,&#xd;
952                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsDelta&quot;,&#xd;
953                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsDelta&quot;,&#xd;
954                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsDelta&quot;,&#xd;
955                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsDelta&quot;,&#xd;
956                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsDelta&quot;,&#xd;
957                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsAccumulated&quot;,&#xd;
958                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsAccumulated&quot;,&#xd;
959                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsAccumulated&quot;,&#xd;
960                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsAccumulated&quot;,&#xd;
961                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsAccumulated&quot;,&#xd;
962                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsAccumulated&quot;,&#xd;
963                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsAccumulated&quot;,&#xd;
964                                     &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuIdle&quot;,&#xd;
965                                     &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageInterrupt&quot;,&#xd;
966                                     &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageNice&quot;,&#xd;
967                                     &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSoftIrq&quot;,&#xd;
968                                     &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSteal&quot;,&#xd;
969                                     &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSystem&quot;,&#xd;
970                                     &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuWait&quot;,&#xd;
971                                     &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].percentUsage&quot;,&#xd;
972                                     &quot;$.event.measurementsForVfScalingFields.meanRequestLatency&quot;,&#xd;
973                                     &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryBuffered&quot;,&#xd;
974                                     &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryCached&quot;,&#xd;
975                                     &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryConfigured&quot;,&#xd;
976                                     &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryFree&quot;,&#xd;
977                                     &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryUsed&quot;,&#xd;
978                                     &quot;$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value&quot;&#xd;
979                                 ]&#xd;
980                             }&#xd;
981                         ]&#xd;
982                     },&#xd;
983                     &quot;severity&quot;: {&#xd;
984                         &quot;type&quot;: &quot;string&quot;,&#xd;
985                         &quot;required&quot;: true,&#xd;
986                         &quot;description&quot;: &quot;Threshold Event Severity&quot;,&#xd;
987                         &quot;constraints&quot;: [&#xd;
988                             {&#xd;
989                                 &quot;valid_values&quot;: [&#xd;
990                                     &quot;CRITICAL&quot;,&#xd;
991                                     &quot;MAJOR&quot;,&#xd;
992                                     &quot;MINOR&quot;,&#xd;
993                                     &quot;WARNING&quot;,&#xd;
994                                     &quot;NORMAL&quot;&#xd;
995                                 ]&#xd;
996                             }&#xd;
997                         ]&#xd;
998                     },&#xd;
999                     &quot;thresholdValue&quot;: {&#xd;
1000                         &quot;type&quot;: &quot;integer&quot;,&#xd;
1001                         &quot;required&quot;: true,&#xd;
1002                         &quot;description&quot;: &quot;Threshold value for the field Path inside CEF message&quot;&#xd;
1003                     },&#xd;
1004                     &quot;version&quot;: {&#xd;
1005                         &quot;type&quot;: &quot;string&quot;,&#xd;
1006                         &quot;required&quot;: true,&#xd;
1007                         &quot;description&quot;: &quot;Version number associated with the threshold&quot;&#xd;
1008                     }&#xd;
1009                 }&#xd;
1010             }&#xd;
1011         }&#xd;
1012     ]&#xd;
1013 }</stringProp>
1014                 <stringProp name="Argument.metadata">=</stringProp>
1015               </elementProp>
1016             </collectionProp>
1017           </elementProp>
1018           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
1019           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
1020           <stringProp name="HTTPSampler.protocol">https</stringProp>
1021           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
1022           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes</stringProp>
1023           <stringProp name="HTTPSampler.method">POST</stringProp>
1024           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
1025           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
1026           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
1027           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
1028           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
1029           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
1030           <stringProp name="HTTPSampler.response_timeout"></stringProp>
1031         </HTTPSamplerProxy>
1032         <hashTree>
1033           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
1034             <collectionProp name="Asserion.test_strings">
1035               <stringProp name="49586">200</stringProp>
1036             </collectionProp>
1037             <stringProp name="Assertion.custom_message"></stringProp>
1038             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
1039             <boolProp name="Assertion.assume_success">false</boolProp>
1040             <intProp name="Assertion.test_type">1</intProp>
1041           </ResponseAssertion>
1042           <hashTree/>
1043           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
1044             <stringProp name="scriptLanguage">groovy</stringProp>
1045             <stringProp name="parameters"></stringProp>
1046             <stringProp name="filename"></stringProp>
1047             <stringProp name="cacheKey">true</stringProp>
1048             <stringProp name="script">import groovy.json.JsonSlurper;
1049
1050 def res = [];
1051 if (prev.getResponseCode() == &apos;200&apos;) {
1052     def jsonSlurper = new JsonSlurper();
1053     res = jsonSlurper.parseText(prev.getResponseDataAsString());
1054
1055     assert res instanceof Map;
1056     assert res.policy_types instanceof List;
1057     assert res.policy_types.size == 2;
1058     assert res.policy_types[0] instanceof Map;
1059     assert res.policy_types[1] instanceof Map;
1060 }</stringProp>
1061           </JSR223Assertion>
1062           <hashTree/>
1063         </hashTree>
1064         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create TCA Policy Type V4" enabled="true">
1065           <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
1066           <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
1067             <collectionProp name="Arguments.arguments">
1068               <elementProp name="" elementType="HTTPArgument">
1069                 <boolProp name="HTTPArgument.always_encode">false</boolProp>
1070                 <stringProp name="Argument.value">{&#xd;
1071     &quot;tosca_definitions_version&quot;: &quot;tosca_simple_yaml_1_0_0&quot;,&#xd;
1072     &quot;policy_types&quot;: [&#xd;
1073         {&#xd;
1074             &quot;onap.policies.Monitoring&quot;: {&#xd;
1075                 &quot;derived_from&quot;: &quot;tosca.policies.Root&quot;,&#xd;
1076                 &quot;version&quot;: &quot;1.0.0&quot;,&#xd;
1077                 &quot;description&quot;: &quot;a base policy type for all policies that governs monitoring provisioning&quot;&#xd;
1078             }&#xd;
1079         },&#xd;
1080         {&#xd;
1081             &quot;onap.policies.monitoring.cdap.tca.hi.lo.app&quot;: {&#xd;
1082                 &quot;derived_from&quot;: &quot;onap.policies.Monitoring&quot;,&#xd;
1083                 &quot;version&quot;: &quot;4.0.0&quot;,&#xd;
1084                 &quot;properties&quot;: {&#xd;
1085                     &quot;tca_policy&quot;: {&#xd;
1086                         &quot;type&quot;: &quot;map&quot;,&#xd;
1087                         &quot;description&quot;: &quot;TCA Policy JSON&quot;,&#xd;
1088                         &quot;entry_schema&quot;: {&#xd;
1089                             &quot;type&quot;: &quot;onap.datatypes.monitoring.tca_policy&quot;&#xd;
1090                         }&#xd;
1091                     }&#xd;
1092                 }&#xd;
1093             }&#xd;
1094         }&#xd;
1095     ],&#xd;
1096     &quot;data_types&quot;: [&#xd;
1097         {&#xd;
1098             &quot;onap.datatypes.monitoring.metricsPerEventName&quot;: {&#xd;
1099                 &quot;derived_from&quot;: &quot;tosca.datatypes.Root&quot;,&#xd;
1100                 &quot;properties&quot;: {&#xd;
1101                     &quot;controlLoopSchemaType&quot;: {&#xd;
1102                         &quot;type&quot;: &quot;string&quot;,&#xd;
1103                         &quot;required&quot;: true,&#xd;
1104                         &quot;description&quot;: &quot;Specifies Control Loop Schema Type for the event Name e.g. VNF, VM&quot;,&#xd;
1105                         &quot;constraints&quot;: [&#xd;
1106                             {&#xd;
1107                                 &quot;valid_values&quot;: [&#xd;
1108                                     &quot;VM&quot;,&#xd;
1109                                     &quot;VNF&quot;&#xd;
1110                                 ]&#xd;
1111                             }&#xd;
1112                         ]&#xd;
1113                     },&#xd;
1114                     &quot;eventName&quot;: {&#xd;
1115                         &quot;type&quot;: &quot;string&quot;,&#xd;
1116                         &quot;required&quot;: true,&#xd;
1117                         &quot;description&quot;: &quot;Event name to which thresholds need to be applied&quot;&#xd;
1118                     },&#xd;
1119                     &quot;policyName&quot;: {&#xd;
1120                         &quot;type&quot;: &quot;string&quot;,&#xd;
1121                         &quot;required&quot;: true,&#xd;
1122                         &quot;description&quot;: &quot;TCA Policy Scope Name&quot;&#xd;
1123                     },&#xd;
1124                     &quot;policyScope&quot;: {&#xd;
1125                         &quot;type&quot;: &quot;string&quot;,&#xd;
1126                         &quot;required&quot;: true,&#xd;
1127                         &quot;description&quot;: &quot;TCA Policy Scope&quot;&#xd;
1128                     },&#xd;
1129                     &quot;policyVersion&quot;: {&#xd;
1130                         &quot;type&quot;: &quot;string&quot;,&#xd;
1131                         &quot;required&quot;: true,&#xd;
1132                         &quot;description&quot;: &quot;TCA Policy Scope Version&quot;&#xd;
1133                     },&#xd;
1134                     &quot;thresholds&quot;: {&#xd;
1135                         &quot;type&quot;: &quot;list&quot;,&#xd;
1136                         &quot;required&quot;: true,&#xd;
1137                         &quot;description&quot;: &quot;Thresholds associated with eventName&quot;,&#xd;
1138                         &quot;entry_schema&quot;: {&#xd;
1139                             &quot;type&quot;: &quot;onap.datatypes.monitoring.thresholds&quot;&#xd;
1140                         }&#xd;
1141                     }&#xd;
1142                 }&#xd;
1143             }&#xd;
1144         },&#xd;
1145         {&#xd;
1146             &quot;onap.datatypes.monitoring.tca_policy&quot;: {&#xd;
1147                 &quot;derived_from&quot;: &quot;tosca.datatypes.Root&quot;,&#xd;
1148                 &quot;properties&quot;: {&#xd;
1149                     &quot;domain&quot;: {&#xd;
1150                         &quot;type&quot;: &quot;string&quot;,&#xd;
1151                         &quot;required&quot;: true,&#xd;
1152                         &quot;description&quot;: &quot;Domain name to which TCA needs to be applied&quot;,&#xd;
1153                         &quot;default&quot;: &quot;measurementsForVfScaling&quot;,&#xd;
1154                         &quot;constraints&quot;: [&#xd;
1155                             {&#xd;
1156                                 &quot;equal&quot;: &quot;measurementsForVfScaling&quot;&#xd;
1157                             }&#xd;
1158                         ]&#xd;
1159                     },&#xd;
1160                     &quot;metricsPerEventName&quot;: {&#xd;
1161                         &quot;type&quot;: &quot;list&quot;,&#xd;
1162                         &quot;required&quot;: true,&#xd;
1163                         &quot;description&quot;: &quot;Contains eventName and threshold details that need to be applied to given eventName&quot;,&#xd;
1164                         &quot;entry_schema&quot;: {&#xd;
1165                             &quot;type&quot;: &quot;onap.datatypes.monitoring.metricsPerEventName&quot;&#xd;
1166                         }&#xd;
1167                     }&#xd;
1168                 }&#xd;
1169             }&#xd;
1170         },&#xd;
1171         {&#xd;
1172             &quot;onap.datatypes.monitoring.thresholds&quot;: {&#xd;
1173                 &quot;derived_from&quot;: &quot;tosca.datatypes.Root&quot;,&#xd;
1174                 &quot;properties&quot;: {&#xd;
1175                     &quot;closedLoopControlName&quot;: {&#xd;
1176                         &quot;type&quot;: &quot;string&quot;,&#xd;
1177                         &quot;required&quot;: true,&#xd;
1178                         &quot;description&quot;: &quot;Closed Loop Control Name associated with the threshold&quot;&#xd;
1179                     },&#xd;
1180                     &quot;closedLoopEventStatus&quot;: {&#xd;
1181                         &quot;type&quot;: &quot;string&quot;,&#xd;
1182                         &quot;required&quot;: true,&#xd;
1183                         &quot;description&quot;: &quot;Closed Loop Event Status of the threshold&quot;,&#xd;
1184                         &quot;constraints&quot;: [&#xd;
1185                             {&#xd;
1186                                 &quot;valid_values&quot;: [&#xd;
1187                                     &quot;ONSET&quot;,&#xd;
1188                                     &quot;ABATED&quot;&#xd;
1189                                 ]&#xd;
1190                             }&#xd;
1191                         ]&#xd;
1192                     },&#xd;
1193                     &quot;direction&quot;: {&#xd;
1194                         &quot;type&quot;: &quot;string&quot;,&#xd;
1195                         &quot;required&quot;: true,&#xd;
1196                         &quot;description&quot;: &quot;Direction of the threshold&quot;,&#xd;
1197                         &quot;constraints&quot;: [&#xd;
1198                             {&#xd;
1199                                 &quot;valid_values&quot;: [&#xd;
1200                                     &quot;LESS&quot;,&#xd;
1201                                     &quot;LESS_OR_EQUAL&quot;,&#xd;
1202                                     &quot;GREATER&quot;,&#xd;
1203                                     &quot;GREATER_OR_EQUAL&quot;,&#xd;
1204                                     &quot;EQUAL&quot;&#xd;
1205                                 ]&#xd;
1206                             }&#xd;
1207                         ]&#xd;
1208                     },&#xd;
1209                     &quot;fieldPath&quot;: {&#xd;
1210                         &quot;type&quot;: &quot;string&quot;,&#xd;
1211                         &quot;required&quot;: true,&#xd;
1212                         &quot;description&quot;: &quot;Json field Path as per CEF message which needs to be analyzed for TCA&quot;,&#xd;
1213                         &quot;constraints&quot;: [&#xd;
1214                             {&#xd;
1215                                 &quot;valid_values&quot;: [&#xd;
1216                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta&quot;,&#xd;
1217                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsDelta&quot;,&#xd;
1218                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsDelta&quot;,&#xd;
1219                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsDelta&quot;,&#xd;
1220                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsDelta&quot;,&#xd;
1221                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsDelta&quot;,&#xd;
1222                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsDelta&quot;,&#xd;
1223                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsAccumulated&quot;,&#xd;
1224                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsAccumulated&quot;,&#xd;
1225                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsAccumulated&quot;,&#xd;
1226                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsAccumulated&quot;,&#xd;
1227                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated&quot;,&#xd;
1228                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsAccumulated&quot;,&#xd;
1229                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsAccumulated&quot;,&#xd;
1230                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsDelta&quot;,&#xd;
1231                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsDelta&quot;,&#xd;
1232                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsDelta&quot;,&#xd;
1233                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsDelta&quot;,&#xd;
1234                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsDelta&quot;,&#xd;
1235                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsDelta&quot;,&#xd;
1236                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsDelta&quot;,&#xd;
1237                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsAccumulated&quot;,&#xd;
1238                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsAccumulated&quot;,&#xd;
1239                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsAccumulated&quot;,&#xd;
1240                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsAccumulated&quot;,&#xd;
1241                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsAccumulated&quot;,&#xd;
1242                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsAccumulated&quot;,&#xd;
1243                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsAccumulated&quot;,&#xd;
1244                                     &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuIdle&quot;,&#xd;
1245                                     &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageInterrupt&quot;,&#xd;
1246                                     &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageNice&quot;,&#xd;
1247                                     &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSoftIrq&quot;,&#xd;
1248                                     &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSteal&quot;,&#xd;
1249                                     &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSystem&quot;,&#xd;
1250                                     &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuWait&quot;,&#xd;
1251                                     &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].percentUsage&quot;,&#xd;
1252                                     &quot;$.event.measurementsForVfScalingFields.meanRequestLatency&quot;,&#xd;
1253                                     &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryBuffered&quot;,&#xd;
1254                                     &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryCached&quot;,&#xd;
1255                                     &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryConfigured&quot;,&#xd;
1256                                     &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryFree&quot;,&#xd;
1257                                     &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryUsed&quot;,&#xd;
1258                                     &quot;$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value&quot;&#xd;
1259                                 ]&#xd;
1260                             }&#xd;
1261                         ]&#xd;
1262                     },&#xd;
1263                     &quot;severity&quot;: {&#xd;
1264                         &quot;type&quot;: &quot;string&quot;,&#xd;
1265                         &quot;required&quot;: true,&#xd;
1266                         &quot;description&quot;: &quot;Threshold Event Severity&quot;,&#xd;
1267                         &quot;constraints&quot;: [&#xd;
1268                             {&#xd;
1269                                 &quot;valid_values&quot;: [&#xd;
1270                                     &quot;CRITICAL&quot;,&#xd;
1271                                     &quot;MAJOR&quot;,&#xd;
1272                                     &quot;MINOR&quot;,&#xd;
1273                                     &quot;WARNING&quot;,&#xd;
1274                                     &quot;NORMAL&quot;&#xd;
1275                                 ]&#xd;
1276                             }&#xd;
1277                         ]&#xd;
1278                     },&#xd;
1279                     &quot;thresholdValue&quot;: {&#xd;
1280                         &quot;type&quot;: &quot;integer&quot;,&#xd;
1281                         &quot;required&quot;: true,&#xd;
1282                         &quot;description&quot;: &quot;Threshold value for the field Path inside CEF message&quot;&#xd;
1283                     },&#xd;
1284                     &quot;version&quot;: {&#xd;
1285                         &quot;type&quot;: &quot;string&quot;,&#xd;
1286                         &quot;required&quot;: true,&#xd;
1287                         &quot;description&quot;: &quot;Version number associated with the threshold&quot;&#xd;
1288                     }&#xd;
1289                 }&#xd;
1290             }&#xd;
1291         }&#xd;
1292     ]&#xd;
1293 }</stringProp>
1294                 <stringProp name="Argument.metadata">=</stringProp>
1295               </elementProp>
1296             </collectionProp>
1297           </elementProp>
1298           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
1299           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
1300           <stringProp name="HTTPSampler.protocol">https</stringProp>
1301           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
1302           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes</stringProp>
1303           <stringProp name="HTTPSampler.method">POST</stringProp>
1304           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
1305           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
1306           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
1307           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
1308           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
1309           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
1310           <stringProp name="HTTPSampler.response_timeout"></stringProp>
1311         </HTTPSamplerProxy>
1312         <hashTree>
1313           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
1314             <collectionProp name="Asserion.test_strings">
1315               <stringProp name="49586">200</stringProp>
1316             </collectionProp>
1317             <stringProp name="Assertion.custom_message"></stringProp>
1318             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
1319             <boolProp name="Assertion.assume_success">false</boolProp>
1320             <intProp name="Assertion.test_type">1</intProp>
1321           </ResponseAssertion>
1322           <hashTree/>
1323           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
1324             <stringProp name="scriptLanguage">groovy</stringProp>
1325             <stringProp name="parameters"></stringProp>
1326             <stringProp name="filename"></stringProp>
1327             <stringProp name="cacheKey">true</stringProp>
1328             <stringProp name="script">import groovy.json.JsonSlurper;
1329
1330 def res = [];
1331 if (prev.getResponseCode() == &apos;200&apos;) {
1332     def jsonSlurper = new JsonSlurper();
1333     res = jsonSlurper.parseText(prev.getResponseDataAsString());
1334
1335     assert res instanceof Map;
1336     assert res.policy_types instanceof List;
1337     assert res.policy_types.size == 2;
1338     assert res.policy_types[0] instanceof Map;
1339     assert res.policy_types[1] instanceof Map;
1340 }</stringProp>
1341           </JSR223Assertion>
1342           <hashTree/>
1343         </hashTree>
1344         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create TCA Policy Type V5" enabled="true">
1345           <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
1346           <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
1347             <collectionProp name="Arguments.arguments">
1348               <elementProp name="" elementType="HTTPArgument">
1349                 <boolProp name="HTTPArgument.always_encode">false</boolProp>
1350                 <stringProp name="Argument.value">{&#xd;
1351     &quot;tosca_definitions_version&quot;: &quot;tosca_simple_yaml_1_0_0&quot;,&#xd;
1352     &quot;policy_types&quot;: [&#xd;
1353         {&#xd;
1354             &quot;onap.policies.Monitoring&quot;: {&#xd;
1355                 &quot;derived_from&quot;: &quot;tosca.policies.Root&quot;,&#xd;
1356                 &quot;version&quot;: &quot;1.0.0&quot;,&#xd;
1357                 &quot;description&quot;: &quot;a base policy type for all policies that governs monitoring provisioning&quot;&#xd;
1358             }&#xd;
1359         },&#xd;
1360         {&#xd;
1361             &quot;onap.policies.monitoring.cdap.tca.hi.lo.app&quot;: {&#xd;
1362                 &quot;derived_from&quot;: &quot;onap.policies.Monitoring&quot;,&#xd;
1363                 &quot;version&quot;: &quot;5.0.0&quot;,&#xd;
1364                 &quot;properties&quot;: {&#xd;
1365                     &quot;tca_policy&quot;: {&#xd;
1366                         &quot;type&quot;: &quot;map&quot;,&#xd;
1367                         &quot;description&quot;: &quot;TCA Policy JSON&quot;,&#xd;
1368                         &quot;entry_schema&quot;: {&#xd;
1369                             &quot;type&quot;: &quot;onap.datatypes.monitoring.tca_policy&quot;&#xd;
1370                         }&#xd;
1371                     }&#xd;
1372                 }&#xd;
1373             }&#xd;
1374         }&#xd;
1375     ],&#xd;
1376     &quot;data_types&quot;: [&#xd;
1377         {&#xd;
1378             &quot;onap.datatypes.monitoring.metricsPerEventName&quot;: {&#xd;
1379                 &quot;derived_from&quot;: &quot;tosca.datatypes.Root&quot;,&#xd;
1380                 &quot;properties&quot;: {&#xd;
1381                     &quot;controlLoopSchemaType&quot;: {&#xd;
1382                         &quot;type&quot;: &quot;string&quot;,&#xd;
1383                         &quot;required&quot;: true,&#xd;
1384                         &quot;description&quot;: &quot;Specifies Control Loop Schema Type for the event Name e.g. VNF, VM&quot;,&#xd;
1385                         &quot;constraints&quot;: [&#xd;
1386                             {&#xd;
1387                                 &quot;valid_values&quot;: [&#xd;
1388                                     &quot;VM&quot;,&#xd;
1389                                     &quot;VNF&quot;&#xd;
1390                                 ]&#xd;
1391                             }&#xd;
1392                         ]&#xd;
1393                     },&#xd;
1394                     &quot;eventName&quot;: {&#xd;
1395                         &quot;type&quot;: &quot;string&quot;,&#xd;
1396                         &quot;required&quot;: true,&#xd;
1397                         &quot;description&quot;: &quot;Event name to which thresholds need to be applied&quot;&#xd;
1398                     },&#xd;
1399                     &quot;policyName&quot;: {&#xd;
1400                         &quot;type&quot;: &quot;string&quot;,&#xd;
1401                         &quot;required&quot;: true,&#xd;
1402                         &quot;description&quot;: &quot;TCA Policy Scope Name&quot;&#xd;
1403                     },&#xd;
1404                     &quot;policyScope&quot;: {&#xd;
1405                         &quot;type&quot;: &quot;string&quot;,&#xd;
1406                         &quot;required&quot;: true,&#xd;
1407                         &quot;description&quot;: &quot;TCA Policy Scope&quot;&#xd;
1408                     },&#xd;
1409                     &quot;policyVersion&quot;: {&#xd;
1410                         &quot;type&quot;: &quot;string&quot;,&#xd;
1411                         &quot;required&quot;: true,&#xd;
1412                         &quot;description&quot;: &quot;TCA Policy Scope Version&quot;&#xd;
1413                     },&#xd;
1414                     &quot;thresholds&quot;: {&#xd;
1415                         &quot;type&quot;: &quot;list&quot;,&#xd;
1416                         &quot;required&quot;: true,&#xd;
1417                         &quot;description&quot;: &quot;Thresholds associated with eventName&quot;,&#xd;
1418                         &quot;entry_schema&quot;: {&#xd;
1419                             &quot;type&quot;: &quot;onap.datatypes.monitoring.thresholds&quot;&#xd;
1420                         }&#xd;
1421                     }&#xd;
1422                 }&#xd;
1423             }&#xd;
1424         },&#xd;
1425         {&#xd;
1426             &quot;onap.datatypes.monitoring.tca_policy&quot;: {&#xd;
1427                 &quot;derived_from&quot;: &quot;tosca.datatypes.Root&quot;,&#xd;
1428                 &quot;properties&quot;: {&#xd;
1429                     &quot;domain&quot;: {&#xd;
1430                         &quot;type&quot;: &quot;string&quot;,&#xd;
1431                         &quot;required&quot;: true,&#xd;
1432                         &quot;description&quot;: &quot;Domain name to which TCA needs to be applied&quot;,&#xd;
1433                         &quot;default&quot;: &quot;measurementsForVfScaling&quot;,&#xd;
1434                         &quot;constraints&quot;: [&#xd;
1435                             {&#xd;
1436                                 &quot;equal&quot;: &quot;measurementsForVfScaling&quot;&#xd;
1437                             }&#xd;
1438                         ]&#xd;
1439                     },&#xd;
1440                     &quot;metricsPerEventName&quot;: {&#xd;
1441                         &quot;type&quot;: &quot;list&quot;,&#xd;
1442                         &quot;required&quot;: true,&#xd;
1443                         &quot;description&quot;: &quot;Contains eventName and threshold details that need to be applied to given eventName&quot;,&#xd;
1444                         &quot;entry_schema&quot;: {&#xd;
1445                             &quot;type&quot;: &quot;onap.datatypes.monitoring.metricsPerEventName&quot;&#xd;
1446                         }&#xd;
1447                     }&#xd;
1448                 }&#xd;
1449             }&#xd;
1450         },&#xd;
1451         {&#xd;
1452             &quot;onap.datatypes.monitoring.thresholds&quot;: {&#xd;
1453                 &quot;derived_from&quot;: &quot;tosca.datatypes.Root&quot;,&#xd;
1454                 &quot;properties&quot;: {&#xd;
1455                     &quot;closedLoopControlName&quot;: {&#xd;
1456                         &quot;type&quot;: &quot;string&quot;,&#xd;
1457                         &quot;required&quot;: true,&#xd;
1458                         &quot;description&quot;: &quot;Closed Loop Control Name associated with the threshold&quot;&#xd;
1459                     },&#xd;
1460                     &quot;closedLoopEventStatus&quot;: {&#xd;
1461                         &quot;type&quot;: &quot;string&quot;,&#xd;
1462                         &quot;required&quot;: true,&#xd;
1463                         &quot;description&quot;: &quot;Closed Loop Event Status of the threshold&quot;,&#xd;
1464                         &quot;constraints&quot;: [&#xd;
1465                             {&#xd;
1466                                 &quot;valid_values&quot;: [&#xd;
1467                                     &quot;ONSET&quot;,&#xd;
1468                                     &quot;ABATED&quot;&#xd;
1469                                 ]&#xd;
1470                             }&#xd;
1471                         ]&#xd;
1472                     },&#xd;
1473                     &quot;direction&quot;: {&#xd;
1474                         &quot;type&quot;: &quot;string&quot;,&#xd;
1475                         &quot;required&quot;: true,&#xd;
1476                         &quot;description&quot;: &quot;Direction of the threshold&quot;,&#xd;
1477                         &quot;constraints&quot;: [&#xd;
1478                             {&#xd;
1479                                 &quot;valid_values&quot;: [&#xd;
1480                                     &quot;LESS&quot;,&#xd;
1481                                     &quot;LESS_OR_EQUAL&quot;,&#xd;
1482                                     &quot;GREATER&quot;,&#xd;
1483                                     &quot;GREATER_OR_EQUAL&quot;,&#xd;
1484                                     &quot;EQUAL&quot;&#xd;
1485                                 ]&#xd;
1486                             }&#xd;
1487                         ]&#xd;
1488                     },&#xd;
1489                     &quot;fieldPath&quot;: {&#xd;
1490                         &quot;type&quot;: &quot;string&quot;,&#xd;
1491                         &quot;required&quot;: true,&#xd;
1492                         &quot;description&quot;: &quot;Json field Path as per CEF message which needs to be analyzed for TCA&quot;,&#xd;
1493                         &quot;constraints&quot;: [&#xd;
1494                             {&#xd;
1495                                 &quot;valid_values&quot;: [&#xd;
1496                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta&quot;,&#xd;
1497                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsDelta&quot;,&#xd;
1498                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsDelta&quot;,&#xd;
1499                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsDelta&quot;,&#xd;
1500                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsDelta&quot;,&#xd;
1501                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsDelta&quot;,&#xd;
1502                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsDelta&quot;,&#xd;
1503                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsAccumulated&quot;,&#xd;
1504                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsAccumulated&quot;,&#xd;
1505                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsAccumulated&quot;,&#xd;
1506                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsAccumulated&quot;,&#xd;
1507                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated&quot;,&#xd;
1508                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsAccumulated&quot;,&#xd;
1509                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsAccumulated&quot;,&#xd;
1510                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsDelta&quot;,&#xd;
1511                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsDelta&quot;,&#xd;
1512                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsDelta&quot;,&#xd;
1513                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsDelta&quot;,&#xd;
1514                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsDelta&quot;,&#xd;
1515                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsDelta&quot;,&#xd;
1516                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsDelta&quot;,&#xd;
1517                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsAccumulated&quot;,&#xd;
1518                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsAccumulated&quot;,&#xd;
1519                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsAccumulated&quot;,&#xd;
1520                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsAccumulated&quot;,&#xd;
1521                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsAccumulated&quot;,&#xd;
1522                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsAccumulated&quot;,&#xd;
1523                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsAccumulated&quot;,&#xd;
1524                                     &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuIdle&quot;,&#xd;
1525                                     &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageInterrupt&quot;,&#xd;
1526                                     &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageNice&quot;,&#xd;
1527                                     &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSoftIrq&quot;,&#xd;
1528                                     &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSteal&quot;,&#xd;
1529                                     &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSystem&quot;,&#xd;
1530                                     &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuWait&quot;,&#xd;
1531                                     &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].percentUsage&quot;,&#xd;
1532                                     &quot;$.event.measurementsForVfScalingFields.meanRequestLatency&quot;,&#xd;
1533                                     &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryBuffered&quot;,&#xd;
1534                                     &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryCached&quot;,&#xd;
1535                                     &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryConfigured&quot;,&#xd;
1536                                     &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryFree&quot;,&#xd;
1537                                     &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryUsed&quot;,&#xd;
1538                                     &quot;$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value&quot;&#xd;
1539                                 ]&#xd;
1540                             }&#xd;
1541                         ]&#xd;
1542                     },&#xd;
1543                     &quot;severity&quot;: {&#xd;
1544                         &quot;type&quot;: &quot;string&quot;,&#xd;
1545                         &quot;required&quot;: true,&#xd;
1546                         &quot;description&quot;: &quot;Threshold Event Severity&quot;,&#xd;
1547                         &quot;constraints&quot;: [&#xd;
1548                             {&#xd;
1549                                 &quot;valid_values&quot;: [&#xd;
1550                                     &quot;CRITICAL&quot;,&#xd;
1551                                     &quot;MAJOR&quot;,&#xd;
1552                                     &quot;MINOR&quot;,&#xd;
1553                                     &quot;WARNING&quot;,&#xd;
1554                                     &quot;NORMAL&quot;&#xd;
1555                                 ]&#xd;
1556                             }&#xd;
1557                         ]&#xd;
1558                     },&#xd;
1559                     &quot;thresholdValue&quot;: {&#xd;
1560                         &quot;type&quot;: &quot;integer&quot;,&#xd;
1561                         &quot;required&quot;: true,&#xd;
1562                         &quot;description&quot;: &quot;Threshold value for the field Path inside CEF message&quot;&#xd;
1563                     },&#xd;
1564                     &quot;version&quot;: {&#xd;
1565                         &quot;type&quot;: &quot;string&quot;,&#xd;
1566                         &quot;required&quot;: true,&#xd;
1567                         &quot;description&quot;: &quot;Version number associated with the threshold&quot;&#xd;
1568                     }&#xd;
1569                 }&#xd;
1570             }&#xd;
1571         }&#xd;
1572     ]&#xd;
1573 }</stringProp>
1574                 <stringProp name="Argument.metadata">=</stringProp>
1575               </elementProp>
1576             </collectionProp>
1577           </elementProp>
1578           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
1579           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
1580           <stringProp name="HTTPSampler.protocol">https</stringProp>
1581           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
1582           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes</stringProp>
1583           <stringProp name="HTTPSampler.method">POST</stringProp>
1584           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
1585           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
1586           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
1587           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
1588           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
1589           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
1590           <stringProp name="HTTPSampler.response_timeout"></stringProp>
1591         </HTTPSamplerProxy>
1592         <hashTree>
1593           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
1594             <collectionProp name="Asserion.test_strings">
1595               <stringProp name="49586">200</stringProp>
1596             </collectionProp>
1597             <stringProp name="Assertion.custom_message"></stringProp>
1598             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
1599             <boolProp name="Assertion.assume_success">false</boolProp>
1600             <intProp name="Assertion.test_type">1</intProp>
1601           </ResponseAssertion>
1602           <hashTree/>
1603           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
1604             <stringProp name="scriptLanguage">groovy</stringProp>
1605             <stringProp name="parameters"></stringProp>
1606             <stringProp name="filename"></stringProp>
1607             <stringProp name="cacheKey">true</stringProp>
1608             <stringProp name="script">import groovy.json.JsonSlurper;
1609
1610 def res = [];
1611 if (prev.getResponseCode() == &apos;200&apos;) {
1612     def jsonSlurper = new JsonSlurper();
1613     res = jsonSlurper.parseText(prev.getResponseDataAsString());
1614
1615     assert res instanceof Map;
1616     assert res.policy_types instanceof List;
1617     assert res.policy_types.size == 2;
1618     assert res.policy_types[0] instanceof Map;
1619     assert res.policy_types[1] instanceof Map;
1620 }</stringProp>
1621           </JSR223Assertion>
1622           <hashTree/>
1623         </hashTree>
1624         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create TCA Policy Type V6" enabled="true">
1625           <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
1626           <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
1627             <collectionProp name="Arguments.arguments">
1628               <elementProp name="" elementType="HTTPArgument">
1629                 <boolProp name="HTTPArgument.always_encode">false</boolProp>
1630                 <stringProp name="Argument.value">{&#xd;
1631     &quot;tosca_definitions_version&quot;: &quot;tosca_simple_yaml_1_0_0&quot;,&#xd;
1632     &quot;policy_types&quot;: [&#xd;
1633         {&#xd;
1634             &quot;onap.policies.Monitoring&quot;: {&#xd;
1635                 &quot;derived_from&quot;: &quot;tosca.policies.Root&quot;,&#xd;
1636                 &quot;version&quot;: &quot;1.0.0&quot;,&#xd;
1637                 &quot;description&quot;: &quot;a base policy type for all policies that governs monitoring provisioning&quot;&#xd;
1638             }&#xd;
1639         },&#xd;
1640         {&#xd;
1641             &quot;onap.policies.monitoring.cdap.tca.hi.lo.app&quot;: {&#xd;
1642                 &quot;derived_from&quot;: &quot;onap.policies.Monitoring&quot;,&#xd;
1643                 &quot;version&quot;: &quot;6.0.0&quot;,&#xd;
1644                 &quot;properties&quot;: {&#xd;
1645                     &quot;tca_policy&quot;: {&#xd;
1646                         &quot;type&quot;: &quot;map&quot;,&#xd;
1647                         &quot;description&quot;: &quot;TCA Policy JSON&quot;,&#xd;
1648                         &quot;entry_schema&quot;: {&#xd;
1649                             &quot;type&quot;: &quot;onap.datatypes.monitoring.tca_policy&quot;&#xd;
1650                         }&#xd;
1651                     }&#xd;
1652                 }&#xd;
1653             }&#xd;
1654         }&#xd;
1655     ],&#xd;
1656     &quot;data_types&quot;: [&#xd;
1657         {&#xd;
1658             &quot;onap.datatypes.monitoring.metricsPerEventName&quot;: {&#xd;
1659                 &quot;derived_from&quot;: &quot;tosca.datatypes.Root&quot;,&#xd;
1660                 &quot;properties&quot;: {&#xd;
1661                     &quot;controlLoopSchemaType&quot;: {&#xd;
1662                         &quot;type&quot;: &quot;string&quot;,&#xd;
1663                         &quot;required&quot;: true,&#xd;
1664                         &quot;description&quot;: &quot;Specifies Control Loop Schema Type for the event Name e.g. VNF, VM&quot;,&#xd;
1665                         &quot;constraints&quot;: [&#xd;
1666                             {&#xd;
1667                                 &quot;valid_values&quot;: [&#xd;
1668                                     &quot;VM&quot;,&#xd;
1669                                     &quot;VNF&quot;&#xd;
1670                                 ]&#xd;
1671                             }&#xd;
1672                         ]&#xd;
1673                     },&#xd;
1674                     &quot;eventName&quot;: {&#xd;
1675                         &quot;type&quot;: &quot;string&quot;,&#xd;
1676                         &quot;required&quot;: true,&#xd;
1677                         &quot;description&quot;: &quot;Event name to which thresholds need to be applied&quot;&#xd;
1678                     },&#xd;
1679                     &quot;policyName&quot;: {&#xd;
1680                         &quot;type&quot;: &quot;string&quot;,&#xd;
1681                         &quot;required&quot;: true,&#xd;
1682                         &quot;description&quot;: &quot;TCA Policy Scope Name&quot;&#xd;
1683                     },&#xd;
1684                     &quot;policyScope&quot;: {&#xd;
1685                         &quot;type&quot;: &quot;string&quot;,&#xd;
1686                         &quot;required&quot;: true,&#xd;
1687                         &quot;description&quot;: &quot;TCA Policy Scope&quot;&#xd;
1688                     },&#xd;
1689                     &quot;policyVersion&quot;: {&#xd;
1690                         &quot;type&quot;: &quot;string&quot;,&#xd;
1691                         &quot;required&quot;: true,&#xd;
1692                         &quot;description&quot;: &quot;TCA Policy Scope Version&quot;&#xd;
1693                     },&#xd;
1694                     &quot;thresholds&quot;: {&#xd;
1695                         &quot;type&quot;: &quot;list&quot;,&#xd;
1696                         &quot;required&quot;: true,&#xd;
1697                         &quot;description&quot;: &quot;Thresholds associated with eventName&quot;,&#xd;
1698                         &quot;entry_schema&quot;: {&#xd;
1699                             &quot;type&quot;: &quot;onap.datatypes.monitoring.thresholds&quot;&#xd;
1700                         }&#xd;
1701                     }&#xd;
1702                 }&#xd;
1703             }&#xd;
1704         },&#xd;
1705         {&#xd;
1706             &quot;onap.datatypes.monitoring.tca_policy&quot;: {&#xd;
1707                 &quot;derived_from&quot;: &quot;tosca.datatypes.Root&quot;,&#xd;
1708                 &quot;properties&quot;: {&#xd;
1709                     &quot;domain&quot;: {&#xd;
1710                         &quot;type&quot;: &quot;string&quot;,&#xd;
1711                         &quot;required&quot;: true,&#xd;
1712                         &quot;description&quot;: &quot;Domain name to which TCA needs to be applied&quot;,&#xd;
1713                         &quot;default&quot;: &quot;measurementsForVfScaling&quot;,&#xd;
1714                         &quot;constraints&quot;: [&#xd;
1715                             {&#xd;
1716                                 &quot;equal&quot;: &quot;measurementsForVfScaling&quot;&#xd;
1717                             }&#xd;
1718                         ]&#xd;
1719                     },&#xd;
1720                     &quot;metricsPerEventName&quot;: {&#xd;
1721                         &quot;type&quot;: &quot;list&quot;,&#xd;
1722                         &quot;required&quot;: true,&#xd;
1723                         &quot;description&quot;: &quot;Contains eventName and threshold details that need to be applied to given eventName&quot;,&#xd;
1724                         &quot;entry_schema&quot;: {&#xd;
1725                             &quot;type&quot;: &quot;onap.datatypes.monitoring.metricsPerEventName&quot;&#xd;
1726                         }&#xd;
1727                     }&#xd;
1728                 }&#xd;
1729             }&#xd;
1730         },&#xd;
1731         {&#xd;
1732             &quot;onap.datatypes.monitoring.thresholds&quot;: {&#xd;
1733                 &quot;derived_from&quot;: &quot;tosca.datatypes.Root&quot;,&#xd;
1734                 &quot;properties&quot;: {&#xd;
1735                     &quot;closedLoopControlName&quot;: {&#xd;
1736                         &quot;type&quot;: &quot;string&quot;,&#xd;
1737                         &quot;required&quot;: true,&#xd;
1738                         &quot;description&quot;: &quot;Closed Loop Control Name associated with the threshold&quot;&#xd;
1739                     },&#xd;
1740                     &quot;closedLoopEventStatus&quot;: {&#xd;
1741                         &quot;type&quot;: &quot;string&quot;,&#xd;
1742                         &quot;required&quot;: true,&#xd;
1743                         &quot;description&quot;: &quot;Closed Loop Event Status of the threshold&quot;,&#xd;
1744                         &quot;constraints&quot;: [&#xd;
1745                             {&#xd;
1746                                 &quot;valid_values&quot;: [&#xd;
1747                                     &quot;ONSET&quot;,&#xd;
1748                                     &quot;ABATED&quot;&#xd;
1749                                 ]&#xd;
1750                             }&#xd;
1751                         ]&#xd;
1752                     },&#xd;
1753                     &quot;direction&quot;: {&#xd;
1754                         &quot;type&quot;: &quot;string&quot;,&#xd;
1755                         &quot;required&quot;: true,&#xd;
1756                         &quot;description&quot;: &quot;Direction of the threshold&quot;,&#xd;
1757                         &quot;constraints&quot;: [&#xd;
1758                             {&#xd;
1759                                 &quot;valid_values&quot;: [&#xd;
1760                                     &quot;LESS&quot;,&#xd;
1761                                     &quot;LESS_OR_EQUAL&quot;,&#xd;
1762                                     &quot;GREATER&quot;,&#xd;
1763                                     &quot;GREATER_OR_EQUAL&quot;,&#xd;
1764                                     &quot;EQUAL&quot;&#xd;
1765                                 ]&#xd;
1766                             }&#xd;
1767                         ]&#xd;
1768                     },&#xd;
1769                     &quot;fieldPath&quot;: {&#xd;
1770                         &quot;type&quot;: &quot;string&quot;,&#xd;
1771                         &quot;required&quot;: true,&#xd;
1772                         &quot;description&quot;: &quot;Json field Path as per CEF message which needs to be analyzed for TCA&quot;,&#xd;
1773                         &quot;constraints&quot;: [&#xd;
1774                             {&#xd;
1775                                 &quot;valid_values&quot;: [&#xd;
1776                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta&quot;,&#xd;
1777                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsDelta&quot;,&#xd;
1778                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsDelta&quot;,&#xd;
1779                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsDelta&quot;,&#xd;
1780                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsDelta&quot;,&#xd;
1781                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsDelta&quot;,&#xd;
1782                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsDelta&quot;,&#xd;
1783                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsAccumulated&quot;,&#xd;
1784                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsAccumulated&quot;,&#xd;
1785                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsAccumulated&quot;,&#xd;
1786                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsAccumulated&quot;,&#xd;
1787                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated&quot;,&#xd;
1788                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsAccumulated&quot;,&#xd;
1789                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsAccumulated&quot;,&#xd;
1790                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsDelta&quot;,&#xd;
1791                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsDelta&quot;,&#xd;
1792                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsDelta&quot;,&#xd;
1793                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsDelta&quot;,&#xd;
1794                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsDelta&quot;,&#xd;
1795                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsDelta&quot;,&#xd;
1796                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsDelta&quot;,&#xd;
1797                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsAccumulated&quot;,&#xd;
1798                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsAccumulated&quot;,&#xd;
1799                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsAccumulated&quot;,&#xd;
1800                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsAccumulated&quot;,&#xd;
1801                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsAccumulated&quot;,&#xd;
1802                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsAccumulated&quot;,&#xd;
1803                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsAccumulated&quot;,&#xd;
1804                                     &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuIdle&quot;,&#xd;
1805                                     &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageInterrupt&quot;,&#xd;
1806                                     &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageNice&quot;,&#xd;
1807                                     &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSoftIrq&quot;,&#xd;
1808                                     &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSteal&quot;,&#xd;
1809                                     &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSystem&quot;,&#xd;
1810                                     &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuWait&quot;,&#xd;
1811                                     &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].percentUsage&quot;,&#xd;
1812                                     &quot;$.event.measurementsForVfScalingFields.meanRequestLatency&quot;,&#xd;
1813                                     &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryBuffered&quot;,&#xd;
1814                                     &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryCached&quot;,&#xd;
1815                                     &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryConfigured&quot;,&#xd;
1816                                     &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryFree&quot;,&#xd;
1817                                     &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryUsed&quot;,&#xd;
1818                                     &quot;$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value&quot;&#xd;
1819                                 ]&#xd;
1820                             }&#xd;
1821                         ]&#xd;
1822                     },&#xd;
1823                     &quot;severity&quot;: {&#xd;
1824                         &quot;type&quot;: &quot;string&quot;,&#xd;
1825                         &quot;required&quot;: true,&#xd;
1826                         &quot;description&quot;: &quot;Threshold Event Severity&quot;,&#xd;
1827                         &quot;constraints&quot;: [&#xd;
1828                             {&#xd;
1829                                 &quot;valid_values&quot;: [&#xd;
1830                                     &quot;CRITICAL&quot;,&#xd;
1831                                     &quot;MAJOR&quot;,&#xd;
1832                                     &quot;MINOR&quot;,&#xd;
1833                                     &quot;WARNING&quot;,&#xd;
1834                                     &quot;NORMAL&quot;&#xd;
1835                                 ]&#xd;
1836                             }&#xd;
1837                         ]&#xd;
1838                     },&#xd;
1839                     &quot;thresholdValue&quot;: {&#xd;
1840                         &quot;type&quot;: &quot;integer&quot;,&#xd;
1841                         &quot;required&quot;: true,&#xd;
1842                         &quot;description&quot;: &quot;Threshold value for the field Path inside CEF message&quot;&#xd;
1843                     },&#xd;
1844                     &quot;version&quot;: {&#xd;
1845                         &quot;type&quot;: &quot;string&quot;,&#xd;
1846                         &quot;required&quot;: true,&#xd;
1847                         &quot;description&quot;: &quot;Version number associated with the threshold&quot;&#xd;
1848                     }&#xd;
1849                 }&#xd;
1850             }&#xd;
1851         }&#xd;
1852     ]&#xd;
1853 }</stringProp>
1854                 <stringProp name="Argument.metadata">=</stringProp>
1855               </elementProp>
1856             </collectionProp>
1857           </elementProp>
1858           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
1859           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
1860           <stringProp name="HTTPSampler.protocol">https</stringProp>
1861           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
1862           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes</stringProp>
1863           <stringProp name="HTTPSampler.method">POST</stringProp>
1864           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
1865           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
1866           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
1867           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
1868           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
1869           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
1870           <stringProp name="HTTPSampler.response_timeout"></stringProp>
1871         </HTTPSamplerProxy>
1872         <hashTree>
1873           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
1874             <collectionProp name="Asserion.test_strings">
1875               <stringProp name="49586">200</stringProp>
1876             </collectionProp>
1877             <stringProp name="Assertion.custom_message"></stringProp>
1878             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
1879             <boolProp name="Assertion.assume_success">false</boolProp>
1880             <intProp name="Assertion.test_type">1</intProp>
1881           </ResponseAssertion>
1882           <hashTree/>
1883           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
1884             <stringProp name="scriptLanguage">groovy</stringProp>
1885             <stringProp name="parameters"></stringProp>
1886             <stringProp name="filename"></stringProp>
1887             <stringProp name="cacheKey">true</stringProp>
1888             <stringProp name="script">import groovy.json.JsonSlurper;
1889
1890 def res = [];
1891 if (prev.getResponseCode() == &apos;200&apos;) {
1892     def jsonSlurper = new JsonSlurper();
1893     res = jsonSlurper.parseText(prev.getResponseDataAsString());
1894
1895     assert res instanceof Map;
1896     assert res.policy_types instanceof List;
1897     assert res.policy_types.size == 2;
1898     assert res.policy_types[0] instanceof Map;
1899     assert res.policy_types[1] instanceof Map;
1900 }</stringProp>
1901           </JSR223Assertion>
1902           <hashTree/>
1903         </hashTree>
1904         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create TCA Policy Type V7" enabled="true">
1905           <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
1906           <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
1907             <collectionProp name="Arguments.arguments">
1908               <elementProp name="" elementType="HTTPArgument">
1909                 <boolProp name="HTTPArgument.always_encode">false</boolProp>
1910                 <stringProp name="Argument.value">{&#xd;
1911     &quot;tosca_definitions_version&quot;: &quot;tosca_simple_yaml_1_0_0&quot;,&#xd;
1912     &quot;policy_types&quot;: [&#xd;
1913         {&#xd;
1914             &quot;onap.policies.Monitoring&quot;: {&#xd;
1915                 &quot;derived_from&quot;: &quot;tosca.policies.Root&quot;,&#xd;
1916                 &quot;version&quot;: &quot;1.0.0&quot;,&#xd;
1917                 &quot;description&quot;: &quot;a base policy type for all policies that governs monitoring provisioning&quot;&#xd;
1918             }&#xd;
1919         },&#xd;
1920         {&#xd;
1921             &quot;onap.policies.monitoring.cdap.tca.hi.lo.app&quot;: {&#xd;
1922                 &quot;derived_from&quot;: &quot;onap.policies.Monitoring&quot;,&#xd;
1923                 &quot;version&quot;: &quot;7.0.0&quot;,&#xd;
1924                 &quot;properties&quot;: {&#xd;
1925                     &quot;tca_policy&quot;: {&#xd;
1926                         &quot;type&quot;: &quot;map&quot;,&#xd;
1927                         &quot;description&quot;: &quot;TCA Policy JSON&quot;,&#xd;
1928                         &quot;entry_schema&quot;: {&#xd;
1929                             &quot;type&quot;: &quot;onap.datatypes.monitoring.tca_policy&quot;&#xd;
1930                         }&#xd;
1931                     }&#xd;
1932                 }&#xd;
1933             }&#xd;
1934         }&#xd;
1935     ],&#xd;
1936     &quot;data_types&quot;: [&#xd;
1937         {&#xd;
1938             &quot;onap.datatypes.monitoring.metricsPerEventName&quot;: {&#xd;
1939                 &quot;derived_from&quot;: &quot;tosca.datatypes.Root&quot;,&#xd;
1940                 &quot;properties&quot;: {&#xd;
1941                     &quot;controlLoopSchemaType&quot;: {&#xd;
1942                         &quot;type&quot;: &quot;string&quot;,&#xd;
1943                         &quot;required&quot;: true,&#xd;
1944                         &quot;description&quot;: &quot;Specifies Control Loop Schema Type for the event Name e.g. VNF, VM&quot;,&#xd;
1945                         &quot;constraints&quot;: [&#xd;
1946                             {&#xd;
1947                                 &quot;valid_values&quot;: [&#xd;
1948                                     &quot;VM&quot;,&#xd;
1949                                     &quot;VNF&quot;&#xd;
1950                                 ]&#xd;
1951                             }&#xd;
1952                         ]&#xd;
1953                     },&#xd;
1954                     &quot;eventName&quot;: {&#xd;
1955                         &quot;type&quot;: &quot;string&quot;,&#xd;
1956                         &quot;required&quot;: true,&#xd;
1957                         &quot;description&quot;: &quot;Event name to which thresholds need to be applied&quot;&#xd;
1958                     },&#xd;
1959                     &quot;policyName&quot;: {&#xd;
1960                         &quot;type&quot;: &quot;string&quot;,&#xd;
1961                         &quot;required&quot;: true,&#xd;
1962                         &quot;description&quot;: &quot;TCA Policy Scope Name&quot;&#xd;
1963                     },&#xd;
1964                     &quot;policyScope&quot;: {&#xd;
1965                         &quot;type&quot;: &quot;string&quot;,&#xd;
1966                         &quot;required&quot;: true,&#xd;
1967                         &quot;description&quot;: &quot;TCA Policy Scope&quot;&#xd;
1968                     },&#xd;
1969                     &quot;policyVersion&quot;: {&#xd;
1970                         &quot;type&quot;: &quot;string&quot;,&#xd;
1971                         &quot;required&quot;: true,&#xd;
1972                         &quot;description&quot;: &quot;TCA Policy Scope Version&quot;&#xd;
1973                     },&#xd;
1974                     &quot;thresholds&quot;: {&#xd;
1975                         &quot;type&quot;: &quot;list&quot;,&#xd;
1976                         &quot;required&quot;: true,&#xd;
1977                         &quot;description&quot;: &quot;Thresholds associated with eventName&quot;,&#xd;
1978                         &quot;entry_schema&quot;: {&#xd;
1979                             &quot;type&quot;: &quot;onap.datatypes.monitoring.thresholds&quot;&#xd;
1980                         }&#xd;
1981                     }&#xd;
1982                 }&#xd;
1983             }&#xd;
1984         },&#xd;
1985         {&#xd;
1986             &quot;onap.datatypes.monitoring.tca_policy&quot;: {&#xd;
1987                 &quot;derived_from&quot;: &quot;tosca.datatypes.Root&quot;,&#xd;
1988                 &quot;properties&quot;: {&#xd;
1989                     &quot;domain&quot;: {&#xd;
1990                         &quot;type&quot;: &quot;string&quot;,&#xd;
1991                         &quot;required&quot;: true,&#xd;
1992                         &quot;description&quot;: &quot;Domain name to which TCA needs to be applied&quot;,&#xd;
1993                         &quot;default&quot;: &quot;measurementsForVfScaling&quot;,&#xd;
1994                         &quot;constraints&quot;: [&#xd;
1995                             {&#xd;
1996                                 &quot;equal&quot;: &quot;measurementsForVfScaling&quot;&#xd;
1997                             }&#xd;
1998                         ]&#xd;
1999                     },&#xd;
2000                     &quot;metricsPerEventName&quot;: {&#xd;
2001                         &quot;type&quot;: &quot;list&quot;,&#xd;
2002                         &quot;required&quot;: true,&#xd;
2003                         &quot;description&quot;: &quot;Contains eventName and threshold details that need to be applied to given eventName&quot;,&#xd;
2004                         &quot;entry_schema&quot;: {&#xd;
2005                             &quot;type&quot;: &quot;onap.datatypes.monitoring.metricsPerEventName&quot;&#xd;
2006                         }&#xd;
2007                     }&#xd;
2008                 }&#xd;
2009             }&#xd;
2010         },&#xd;
2011         {&#xd;
2012             &quot;onap.datatypes.monitoring.thresholds&quot;: {&#xd;
2013                 &quot;derived_from&quot;: &quot;tosca.datatypes.Root&quot;,&#xd;
2014                 &quot;properties&quot;: {&#xd;
2015                     &quot;closedLoopControlName&quot;: {&#xd;
2016                         &quot;type&quot;: &quot;string&quot;,&#xd;
2017                         &quot;required&quot;: true,&#xd;
2018                         &quot;description&quot;: &quot;Closed Loop Control Name associated with the threshold&quot;&#xd;
2019                     },&#xd;
2020                     &quot;closedLoopEventStatus&quot;: {&#xd;
2021                         &quot;type&quot;: &quot;string&quot;,&#xd;
2022                         &quot;required&quot;: true,&#xd;
2023                         &quot;description&quot;: &quot;Closed Loop Event Status of the threshold&quot;,&#xd;
2024                         &quot;constraints&quot;: [&#xd;
2025                             {&#xd;
2026                                 &quot;valid_values&quot;: [&#xd;
2027                                     &quot;ONSET&quot;,&#xd;
2028                                     &quot;ABATED&quot;&#xd;
2029                                 ]&#xd;
2030                             }&#xd;
2031                         ]&#xd;
2032                     },&#xd;
2033                     &quot;direction&quot;: {&#xd;
2034                         &quot;type&quot;: &quot;string&quot;,&#xd;
2035                         &quot;required&quot;: true,&#xd;
2036                         &quot;description&quot;: &quot;Direction of the threshold&quot;,&#xd;
2037                         &quot;constraints&quot;: [&#xd;
2038                             {&#xd;
2039                                 &quot;valid_values&quot;: [&#xd;
2040                                     &quot;LESS&quot;,&#xd;
2041                                     &quot;LESS_OR_EQUAL&quot;,&#xd;
2042                                     &quot;GREATER&quot;,&#xd;
2043                                     &quot;GREATER_OR_EQUAL&quot;,&#xd;
2044                                     &quot;EQUAL&quot;&#xd;
2045                                 ]&#xd;
2046                             }&#xd;
2047                         ]&#xd;
2048                     },&#xd;
2049                     &quot;fieldPath&quot;: {&#xd;
2050                         &quot;type&quot;: &quot;string&quot;,&#xd;
2051                         &quot;required&quot;: true,&#xd;
2052                         &quot;description&quot;: &quot;Json field Path as per CEF message which needs to be analyzed for TCA&quot;,&#xd;
2053                         &quot;constraints&quot;: [&#xd;
2054                             {&#xd;
2055                                 &quot;valid_values&quot;: [&#xd;
2056                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta&quot;,&#xd;
2057                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsDelta&quot;,&#xd;
2058                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsDelta&quot;,&#xd;
2059                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsDelta&quot;,&#xd;
2060                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsDelta&quot;,&#xd;
2061                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsDelta&quot;,&#xd;
2062                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsDelta&quot;,&#xd;
2063                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsAccumulated&quot;,&#xd;
2064                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsAccumulated&quot;,&#xd;
2065                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsAccumulated&quot;,&#xd;
2066                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsAccumulated&quot;,&#xd;
2067                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated&quot;,&#xd;
2068                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsAccumulated&quot;,&#xd;
2069                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsAccumulated&quot;,&#xd;
2070                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsDelta&quot;,&#xd;
2071                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsDelta&quot;,&#xd;
2072                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsDelta&quot;,&#xd;
2073                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsDelta&quot;,&#xd;
2074                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsDelta&quot;,&#xd;
2075                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsDelta&quot;,&#xd;
2076                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsDelta&quot;,&#xd;
2077                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsAccumulated&quot;,&#xd;
2078                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsAccumulated&quot;,&#xd;
2079                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsAccumulated&quot;,&#xd;
2080                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsAccumulated&quot;,&#xd;
2081                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsAccumulated&quot;,&#xd;
2082                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsAccumulated&quot;,&#xd;
2083                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsAccumulated&quot;,&#xd;
2084                                     &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuIdle&quot;,&#xd;
2085                                     &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageInterrupt&quot;,&#xd;
2086                                     &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageNice&quot;,&#xd;
2087                                     &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSoftIrq&quot;,&#xd;
2088                                     &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSteal&quot;,&#xd;
2089                                     &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSystem&quot;,&#xd;
2090                                     &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuWait&quot;,&#xd;
2091                                     &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].percentUsage&quot;,&#xd;
2092                                     &quot;$.event.measurementsForVfScalingFields.meanRequestLatency&quot;,&#xd;
2093                                     &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryBuffered&quot;,&#xd;
2094                                     &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryCached&quot;,&#xd;
2095                                     &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryConfigured&quot;,&#xd;
2096                                     &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryFree&quot;,&#xd;
2097                                     &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryUsed&quot;,&#xd;
2098                                     &quot;$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value&quot;&#xd;
2099                                 ]&#xd;
2100                             }&#xd;
2101                         ]&#xd;
2102                     },&#xd;
2103                     &quot;severity&quot;: {&#xd;
2104                         &quot;type&quot;: &quot;string&quot;,&#xd;
2105                         &quot;required&quot;: true,&#xd;
2106                         &quot;description&quot;: &quot;Threshold Event Severity&quot;,&#xd;
2107                         &quot;constraints&quot;: [&#xd;
2108                             {&#xd;
2109                                 &quot;valid_values&quot;: [&#xd;
2110                                     &quot;CRITICAL&quot;,&#xd;
2111                                     &quot;MAJOR&quot;,&#xd;
2112                                     &quot;MINOR&quot;,&#xd;
2113                                     &quot;WARNING&quot;,&#xd;
2114                                     &quot;NORMAL&quot;&#xd;
2115                                 ]&#xd;
2116                             }&#xd;
2117                         ]&#xd;
2118                     },&#xd;
2119                     &quot;thresholdValue&quot;: {&#xd;
2120                         &quot;type&quot;: &quot;integer&quot;,&#xd;
2121                         &quot;required&quot;: true,&#xd;
2122                         &quot;description&quot;: &quot;Threshold value for the field Path inside CEF message&quot;&#xd;
2123                     },&#xd;
2124                     &quot;version&quot;: {&#xd;
2125                         &quot;type&quot;: &quot;string&quot;,&#xd;
2126                         &quot;required&quot;: true,&#xd;
2127                         &quot;description&quot;: &quot;Version number associated with the threshold&quot;&#xd;
2128                     }&#xd;
2129                 }&#xd;
2130             }&#xd;
2131         }&#xd;
2132     ]&#xd;
2133 }</stringProp>
2134                 <stringProp name="Argument.metadata">=</stringProp>
2135               </elementProp>
2136             </collectionProp>
2137           </elementProp>
2138           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
2139           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
2140           <stringProp name="HTTPSampler.protocol">https</stringProp>
2141           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
2142           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes</stringProp>
2143           <stringProp name="HTTPSampler.method">POST</stringProp>
2144           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
2145           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
2146           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
2147           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
2148           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
2149           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
2150           <stringProp name="HTTPSampler.response_timeout"></stringProp>
2151         </HTTPSamplerProxy>
2152         <hashTree>
2153           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
2154             <collectionProp name="Asserion.test_strings">
2155               <stringProp name="49586">200</stringProp>
2156             </collectionProp>
2157             <stringProp name="Assertion.custom_message"></stringProp>
2158             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
2159             <boolProp name="Assertion.assume_success">false</boolProp>
2160             <intProp name="Assertion.test_type">1</intProp>
2161           </ResponseAssertion>
2162           <hashTree/>
2163           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
2164             <stringProp name="scriptLanguage">groovy</stringProp>
2165             <stringProp name="parameters"></stringProp>
2166             <stringProp name="filename"></stringProp>
2167             <stringProp name="cacheKey">true</stringProp>
2168             <stringProp name="script">import groovy.json.JsonSlurper;
2169
2170 def res = [];
2171 if (prev.getResponseCode() == &apos;200&apos;) {
2172     def jsonSlurper = new JsonSlurper();
2173     res = jsonSlurper.parseText(prev.getResponseDataAsString());
2174
2175     assert res instanceof Map;
2176     assert res.policy_types instanceof List;
2177     assert res.policy_types.size == 2;
2178     assert res.policy_types[0] instanceof Map;
2179     assert res.policy_types[1] instanceof Map;
2180 }</stringProp>
2181           </JSR223Assertion>
2182           <hashTree/>
2183         </hashTree>
2184         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create TCA Policy Type V8" enabled="true">
2185           <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
2186           <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
2187             <collectionProp name="Arguments.arguments">
2188               <elementProp name="" elementType="HTTPArgument">
2189                 <boolProp name="HTTPArgument.always_encode">false</boolProp>
2190                 <stringProp name="Argument.value">{&#xd;
2191     &quot;tosca_definitions_version&quot;: &quot;tosca_simple_yaml_1_0_0&quot;,&#xd;
2192     &quot;policy_types&quot;: [&#xd;
2193         {&#xd;
2194             &quot;onap.policies.Monitoring&quot;: {&#xd;
2195                 &quot;derived_from&quot;: &quot;tosca.policies.Root&quot;,&#xd;
2196                 &quot;version&quot;: &quot;1.0.0&quot;,&#xd;
2197                 &quot;description&quot;: &quot;a base policy type for all policies that governs monitoring provisioning&quot;&#xd;
2198             }&#xd;
2199         },&#xd;
2200         {&#xd;
2201             &quot;onap.policies.monitoring.cdap.tca.hi.lo.app&quot;: {&#xd;
2202                 &quot;derived_from&quot;: &quot;onap.policies.Monitoring&quot;,&#xd;
2203                 &quot;version&quot;: &quot;8.0.0&quot;,&#xd;
2204                 &quot;properties&quot;: {&#xd;
2205                     &quot;tca_policy&quot;: {&#xd;
2206                         &quot;type&quot;: &quot;map&quot;,&#xd;
2207                         &quot;description&quot;: &quot;TCA Policy JSON&quot;,&#xd;
2208                         &quot;entry_schema&quot;: {&#xd;
2209                             &quot;type&quot;: &quot;onap.datatypes.monitoring.tca_policy&quot;&#xd;
2210                         }&#xd;
2211                     }&#xd;
2212                 }&#xd;
2213             }&#xd;
2214         }&#xd;
2215     ],&#xd;
2216     &quot;data_types&quot;: [&#xd;
2217         {&#xd;
2218             &quot;onap.datatypes.monitoring.metricsPerEventName&quot;: {&#xd;
2219                 &quot;derived_from&quot;: &quot;tosca.datatypes.Root&quot;,&#xd;
2220                 &quot;properties&quot;: {&#xd;
2221                     &quot;controlLoopSchemaType&quot;: {&#xd;
2222                         &quot;type&quot;: &quot;string&quot;,&#xd;
2223                         &quot;required&quot;: true,&#xd;
2224                         &quot;description&quot;: &quot;Specifies Control Loop Schema Type for the event Name e.g. VNF, VM&quot;,&#xd;
2225                         &quot;constraints&quot;: [&#xd;
2226                             {&#xd;
2227                                 &quot;valid_values&quot;: [&#xd;
2228                                     &quot;VM&quot;,&#xd;
2229                                     &quot;VNF&quot;&#xd;
2230                                 ]&#xd;
2231                             }&#xd;
2232                         ]&#xd;
2233                     },&#xd;
2234                     &quot;eventName&quot;: {&#xd;
2235                         &quot;type&quot;: &quot;string&quot;,&#xd;
2236                         &quot;required&quot;: true,&#xd;
2237                         &quot;description&quot;: &quot;Event name to which thresholds need to be applied&quot;&#xd;
2238                     },&#xd;
2239                     &quot;policyName&quot;: {&#xd;
2240                         &quot;type&quot;: &quot;string&quot;,&#xd;
2241                         &quot;required&quot;: true,&#xd;
2242                         &quot;description&quot;: &quot;TCA Policy Scope Name&quot;&#xd;
2243                     },&#xd;
2244                     &quot;policyScope&quot;: {&#xd;
2245                         &quot;type&quot;: &quot;string&quot;,&#xd;
2246                         &quot;required&quot;: true,&#xd;
2247                         &quot;description&quot;: &quot;TCA Policy Scope&quot;&#xd;
2248                     },&#xd;
2249                     &quot;policyVersion&quot;: {&#xd;
2250                         &quot;type&quot;: &quot;string&quot;,&#xd;
2251                         &quot;required&quot;: true,&#xd;
2252                         &quot;description&quot;: &quot;TCA Policy Scope Version&quot;&#xd;
2253                     },&#xd;
2254                     &quot;thresholds&quot;: {&#xd;
2255                         &quot;type&quot;: &quot;list&quot;,&#xd;
2256                         &quot;required&quot;: true,&#xd;
2257                         &quot;description&quot;: &quot;Thresholds associated with eventName&quot;,&#xd;
2258                         &quot;entry_schema&quot;: {&#xd;
2259                             &quot;type&quot;: &quot;onap.datatypes.monitoring.thresholds&quot;&#xd;
2260                         }&#xd;
2261                     }&#xd;
2262                 }&#xd;
2263             }&#xd;
2264         },&#xd;
2265         {&#xd;
2266             &quot;onap.datatypes.monitoring.tca_policy&quot;: {&#xd;
2267                 &quot;derived_from&quot;: &quot;tosca.datatypes.Root&quot;,&#xd;
2268                 &quot;properties&quot;: {&#xd;
2269                     &quot;domain&quot;: {&#xd;
2270                         &quot;type&quot;: &quot;string&quot;,&#xd;
2271                         &quot;required&quot;: true,&#xd;
2272                         &quot;description&quot;: &quot;Domain name to which TCA needs to be applied&quot;,&#xd;
2273                         &quot;default&quot;: &quot;measurementsForVfScaling&quot;,&#xd;
2274                         &quot;constraints&quot;: [&#xd;
2275                             {&#xd;
2276                                 &quot;equal&quot;: &quot;measurementsForVfScaling&quot;&#xd;
2277                             }&#xd;
2278                         ]&#xd;
2279                     },&#xd;
2280                     &quot;metricsPerEventName&quot;: {&#xd;
2281                         &quot;type&quot;: &quot;list&quot;,&#xd;
2282                         &quot;required&quot;: true,&#xd;
2283                         &quot;description&quot;: &quot;Contains eventName and threshold details that need to be applied to given eventName&quot;,&#xd;
2284                         &quot;entry_schema&quot;: {&#xd;
2285                             &quot;type&quot;: &quot;onap.datatypes.monitoring.metricsPerEventName&quot;&#xd;
2286                         }&#xd;
2287                     }&#xd;
2288                 }&#xd;
2289             }&#xd;
2290         },&#xd;
2291         {&#xd;
2292             &quot;onap.datatypes.monitoring.thresholds&quot;: {&#xd;
2293                 &quot;derived_from&quot;: &quot;tosca.datatypes.Root&quot;,&#xd;
2294                 &quot;properties&quot;: {&#xd;
2295                     &quot;closedLoopControlName&quot;: {&#xd;
2296                         &quot;type&quot;: &quot;string&quot;,&#xd;
2297                         &quot;required&quot;: true,&#xd;
2298                         &quot;description&quot;: &quot;Closed Loop Control Name associated with the threshold&quot;&#xd;
2299                     },&#xd;
2300                     &quot;closedLoopEventStatus&quot;: {&#xd;
2301                         &quot;type&quot;: &quot;string&quot;,&#xd;
2302                         &quot;required&quot;: true,&#xd;
2303                         &quot;description&quot;: &quot;Closed Loop Event Status of the threshold&quot;,&#xd;
2304                         &quot;constraints&quot;: [&#xd;
2305                             {&#xd;
2306                                 &quot;valid_values&quot;: [&#xd;
2307                                     &quot;ONSET&quot;,&#xd;
2308                                     &quot;ABATED&quot;&#xd;
2309                                 ]&#xd;
2310                             }&#xd;
2311                         ]&#xd;
2312                     },&#xd;
2313                     &quot;direction&quot;: {&#xd;
2314                         &quot;type&quot;: &quot;string&quot;,&#xd;
2315                         &quot;required&quot;: true,&#xd;
2316                         &quot;description&quot;: &quot;Direction of the threshold&quot;,&#xd;
2317                         &quot;constraints&quot;: [&#xd;
2318                             {&#xd;
2319                                 &quot;valid_values&quot;: [&#xd;
2320                                     &quot;LESS&quot;,&#xd;
2321                                     &quot;LESS_OR_EQUAL&quot;,&#xd;
2322                                     &quot;GREATER&quot;,&#xd;
2323                                     &quot;GREATER_OR_EQUAL&quot;,&#xd;
2324                                     &quot;EQUAL&quot;&#xd;
2325                                 ]&#xd;
2326                             }&#xd;
2327                         ]&#xd;
2328                     },&#xd;
2329                     &quot;fieldPath&quot;: {&#xd;
2330                         &quot;type&quot;: &quot;string&quot;,&#xd;
2331                         &quot;required&quot;: true,&#xd;
2332                         &quot;description&quot;: &quot;Json field Path as per CEF message which needs to be analyzed for TCA&quot;,&#xd;
2333                         &quot;constraints&quot;: [&#xd;
2334                             {&#xd;
2335                                 &quot;valid_values&quot;: [&#xd;
2336                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta&quot;,&#xd;
2337                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsDelta&quot;,&#xd;
2338                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsDelta&quot;,&#xd;
2339                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsDelta&quot;,&#xd;
2340                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsDelta&quot;,&#xd;
2341                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsDelta&quot;,&#xd;
2342                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsDelta&quot;,&#xd;
2343                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsAccumulated&quot;,&#xd;
2344                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsAccumulated&quot;,&#xd;
2345                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsAccumulated&quot;,&#xd;
2346                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsAccumulated&quot;,&#xd;
2347                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated&quot;,&#xd;
2348                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsAccumulated&quot;,&#xd;
2349                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsAccumulated&quot;,&#xd;
2350                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsDelta&quot;,&#xd;
2351                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsDelta&quot;,&#xd;
2352                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsDelta&quot;,&#xd;
2353                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsDelta&quot;,&#xd;
2354                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsDelta&quot;,&#xd;
2355                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsDelta&quot;,&#xd;
2356                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsDelta&quot;,&#xd;
2357                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsAccumulated&quot;,&#xd;
2358                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsAccumulated&quot;,&#xd;
2359                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsAccumulated&quot;,&#xd;
2360                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsAccumulated&quot;,&#xd;
2361                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsAccumulated&quot;,&#xd;
2362                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsAccumulated&quot;,&#xd;
2363                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsAccumulated&quot;,&#xd;
2364                                     &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuIdle&quot;,&#xd;
2365                                     &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageInterrupt&quot;,&#xd;
2366                                     &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageNice&quot;,&#xd;
2367                                     &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSoftIrq&quot;,&#xd;
2368                                     &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSteal&quot;,&#xd;
2369                                     &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSystem&quot;,&#xd;
2370                                     &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuWait&quot;,&#xd;
2371                                     &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].percentUsage&quot;,&#xd;
2372                                     &quot;$.event.measurementsForVfScalingFields.meanRequestLatency&quot;,&#xd;
2373                                     &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryBuffered&quot;,&#xd;
2374                                     &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryCached&quot;,&#xd;
2375                                     &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryConfigured&quot;,&#xd;
2376                                     &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryFree&quot;,&#xd;
2377                                     &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryUsed&quot;,&#xd;
2378                                     &quot;$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value&quot;&#xd;
2379                                 ]&#xd;
2380                             }&#xd;
2381                         ]&#xd;
2382                     },&#xd;
2383                     &quot;severity&quot;: {&#xd;
2384                         &quot;type&quot;: &quot;string&quot;,&#xd;
2385                         &quot;required&quot;: true,&#xd;
2386                         &quot;description&quot;: &quot;Threshold Event Severity&quot;,&#xd;
2387                         &quot;constraints&quot;: [&#xd;
2388                             {&#xd;
2389                                 &quot;valid_values&quot;: [&#xd;
2390                                     &quot;CRITICAL&quot;,&#xd;
2391                                     &quot;MAJOR&quot;,&#xd;
2392                                     &quot;MINOR&quot;,&#xd;
2393                                     &quot;WARNING&quot;,&#xd;
2394                                     &quot;NORMAL&quot;&#xd;
2395                                 ]&#xd;
2396                             }&#xd;
2397                         ]&#xd;
2398                     },&#xd;
2399                     &quot;thresholdValue&quot;: {&#xd;
2400                         &quot;type&quot;: &quot;integer&quot;,&#xd;
2401                         &quot;required&quot;: true,&#xd;
2402                         &quot;description&quot;: &quot;Threshold value for the field Path inside CEF message&quot;&#xd;
2403                     },&#xd;
2404                     &quot;version&quot;: {&#xd;
2405                         &quot;type&quot;: &quot;string&quot;,&#xd;
2406                         &quot;required&quot;: true,&#xd;
2407                         &quot;description&quot;: &quot;Version number associated with the threshold&quot;&#xd;
2408                     }&#xd;
2409                 }&#xd;
2410             }&#xd;
2411         }&#xd;
2412     ]&#xd;
2413 }</stringProp>
2414                 <stringProp name="Argument.metadata">=</stringProp>
2415               </elementProp>
2416             </collectionProp>
2417           </elementProp>
2418           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
2419           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
2420           <stringProp name="HTTPSampler.protocol">https</stringProp>
2421           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
2422           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes</stringProp>
2423           <stringProp name="HTTPSampler.method">POST</stringProp>
2424           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
2425           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
2426           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
2427           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
2428           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
2429           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
2430           <stringProp name="HTTPSampler.response_timeout"></stringProp>
2431         </HTTPSamplerProxy>
2432         <hashTree>
2433           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
2434             <collectionProp name="Asserion.test_strings">
2435               <stringProp name="49586">200</stringProp>
2436             </collectionProp>
2437             <stringProp name="Assertion.custom_message"></stringProp>
2438             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
2439             <boolProp name="Assertion.assume_success">false</boolProp>
2440             <intProp name="Assertion.test_type">1</intProp>
2441           </ResponseAssertion>
2442           <hashTree/>
2443           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
2444             <stringProp name="scriptLanguage">groovy</stringProp>
2445             <stringProp name="parameters"></stringProp>
2446             <stringProp name="filename"></stringProp>
2447             <stringProp name="cacheKey">true</stringProp>
2448             <stringProp name="script">import groovy.json.JsonSlurper;
2449
2450 def res = [];
2451 if (prev.getResponseCode() == &apos;200&apos;) {
2452     def jsonSlurper = new JsonSlurper();
2453     res = jsonSlurper.parseText(prev.getResponseDataAsString());
2454
2455     assert res instanceof Map;
2456     assert res.policy_types instanceof List;
2457     assert res.policy_types.size == 2;
2458     assert res.policy_types[0] instanceof Map;
2459     assert res.policy_types[1] instanceof Map;
2460 }</stringProp>
2461           </JSR223Assertion>
2462           <hashTree/>
2463         </hashTree>
2464         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create TCA Policy Type V9" enabled="true">
2465           <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
2466           <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
2467             <collectionProp name="Arguments.arguments">
2468               <elementProp name="" elementType="HTTPArgument">
2469                 <boolProp name="HTTPArgument.always_encode">false</boolProp>
2470                 <stringProp name="Argument.value">{&#xd;
2471     &quot;tosca_definitions_version&quot;: &quot;tosca_simple_yaml_1_0_0&quot;,&#xd;
2472     &quot;policy_types&quot;: [&#xd;
2473         {&#xd;
2474             &quot;onap.policies.Monitoring&quot;: {&#xd;
2475                 &quot;derived_from&quot;: &quot;tosca.policies.Root&quot;,&#xd;
2476                 &quot;version&quot;: &quot;1.0.0&quot;,&#xd;
2477                 &quot;description&quot;: &quot;a base policy type for all policies that governs monitoring provisioning&quot;&#xd;
2478             }&#xd;
2479         },&#xd;
2480         {&#xd;
2481             &quot;onap.policies.monitoring.cdap.tca.hi.lo.app&quot;: {&#xd;
2482                 &quot;derived_from&quot;: &quot;onap.policies.Monitoring&quot;,&#xd;
2483                 &quot;version&quot;: &quot;9.0.0&quot;,&#xd;
2484                 &quot;properties&quot;: {&#xd;
2485                     &quot;tca_policy&quot;: {&#xd;
2486                         &quot;type&quot;: &quot;map&quot;,&#xd;
2487                         &quot;description&quot;: &quot;TCA Policy JSON&quot;,&#xd;
2488                         &quot;entry_schema&quot;: {&#xd;
2489                             &quot;type&quot;: &quot;onap.datatypes.monitoring.tca_policy&quot;&#xd;
2490                         }&#xd;
2491                     }&#xd;
2492                 }&#xd;
2493             }&#xd;
2494         }&#xd;
2495     ],&#xd;
2496     &quot;data_types&quot;: [&#xd;
2497         {&#xd;
2498             &quot;onap.datatypes.monitoring.metricsPerEventName&quot;: {&#xd;
2499                 &quot;derived_from&quot;: &quot;tosca.datatypes.Root&quot;,&#xd;
2500                 &quot;properties&quot;: {&#xd;
2501                     &quot;controlLoopSchemaType&quot;: {&#xd;
2502                         &quot;type&quot;: &quot;string&quot;,&#xd;
2503                         &quot;required&quot;: true,&#xd;
2504                         &quot;description&quot;: &quot;Specifies Control Loop Schema Type for the event Name e.g. VNF, VM&quot;,&#xd;
2505                         &quot;constraints&quot;: [&#xd;
2506                             {&#xd;
2507                                 &quot;valid_values&quot;: [&#xd;
2508                                     &quot;VM&quot;,&#xd;
2509                                     &quot;VNF&quot;&#xd;
2510                                 ]&#xd;
2511                             }&#xd;
2512                         ]&#xd;
2513                     },&#xd;
2514                     &quot;eventName&quot;: {&#xd;
2515                         &quot;type&quot;: &quot;string&quot;,&#xd;
2516                         &quot;required&quot;: true,&#xd;
2517                         &quot;description&quot;: &quot;Event name to which thresholds need to be applied&quot;&#xd;
2518                     },&#xd;
2519                     &quot;policyName&quot;: {&#xd;
2520                         &quot;type&quot;: &quot;string&quot;,&#xd;
2521                         &quot;required&quot;: true,&#xd;
2522                         &quot;description&quot;: &quot;TCA Policy Scope Name&quot;&#xd;
2523                     },&#xd;
2524                     &quot;policyScope&quot;: {&#xd;
2525                         &quot;type&quot;: &quot;string&quot;,&#xd;
2526                         &quot;required&quot;: true,&#xd;
2527                         &quot;description&quot;: &quot;TCA Policy Scope&quot;&#xd;
2528                     },&#xd;
2529                     &quot;policyVersion&quot;: {&#xd;
2530                         &quot;type&quot;: &quot;string&quot;,&#xd;
2531                         &quot;required&quot;: true,&#xd;
2532                         &quot;description&quot;: &quot;TCA Policy Scope Version&quot;&#xd;
2533                     },&#xd;
2534                     &quot;thresholds&quot;: {&#xd;
2535                         &quot;type&quot;: &quot;list&quot;,&#xd;
2536                         &quot;required&quot;: true,&#xd;
2537                         &quot;description&quot;: &quot;Thresholds associated with eventName&quot;,&#xd;
2538                         &quot;entry_schema&quot;: {&#xd;
2539                             &quot;type&quot;: &quot;onap.datatypes.monitoring.thresholds&quot;&#xd;
2540                         }&#xd;
2541                     }&#xd;
2542                 }&#xd;
2543             }&#xd;
2544         },&#xd;
2545         {&#xd;
2546             &quot;onap.datatypes.monitoring.tca_policy&quot;: {&#xd;
2547                 &quot;derived_from&quot;: &quot;tosca.datatypes.Root&quot;,&#xd;
2548                 &quot;properties&quot;: {&#xd;
2549                     &quot;domain&quot;: {&#xd;
2550                         &quot;type&quot;: &quot;string&quot;,&#xd;
2551                         &quot;required&quot;: true,&#xd;
2552                         &quot;description&quot;: &quot;Domain name to which TCA needs to be applied&quot;,&#xd;
2553                         &quot;default&quot;: &quot;measurementsForVfScaling&quot;,&#xd;
2554                         &quot;constraints&quot;: [&#xd;
2555                             {&#xd;
2556                                 &quot;equal&quot;: &quot;measurementsForVfScaling&quot;&#xd;
2557                             }&#xd;
2558                         ]&#xd;
2559                     },&#xd;
2560                     &quot;metricsPerEventName&quot;: {&#xd;
2561                         &quot;type&quot;: &quot;list&quot;,&#xd;
2562                         &quot;required&quot;: true,&#xd;
2563                         &quot;description&quot;: &quot;Contains eventName and threshold details that need to be applied to given eventName&quot;,&#xd;
2564                         &quot;entry_schema&quot;: {&#xd;
2565                             &quot;type&quot;: &quot;onap.datatypes.monitoring.metricsPerEventName&quot;&#xd;
2566                         }&#xd;
2567                     }&#xd;
2568                 }&#xd;
2569             }&#xd;
2570         },&#xd;
2571         {&#xd;
2572             &quot;onap.datatypes.monitoring.thresholds&quot;: {&#xd;
2573                 &quot;derived_from&quot;: &quot;tosca.datatypes.Root&quot;,&#xd;
2574                 &quot;properties&quot;: {&#xd;
2575                     &quot;closedLoopControlName&quot;: {&#xd;
2576                         &quot;type&quot;: &quot;string&quot;,&#xd;
2577                         &quot;required&quot;: true,&#xd;
2578                         &quot;description&quot;: &quot;Closed Loop Control Name associated with the threshold&quot;&#xd;
2579                     },&#xd;
2580                     &quot;closedLoopEventStatus&quot;: {&#xd;
2581                         &quot;type&quot;: &quot;string&quot;,&#xd;
2582                         &quot;required&quot;: true,&#xd;
2583                         &quot;description&quot;: &quot;Closed Loop Event Status of the threshold&quot;,&#xd;
2584                         &quot;constraints&quot;: [&#xd;
2585                             {&#xd;
2586                                 &quot;valid_values&quot;: [&#xd;
2587                                     &quot;ONSET&quot;,&#xd;
2588                                     &quot;ABATED&quot;&#xd;
2589                                 ]&#xd;
2590                             }&#xd;
2591                         ]&#xd;
2592                     },&#xd;
2593                     &quot;direction&quot;: {&#xd;
2594                         &quot;type&quot;: &quot;string&quot;,&#xd;
2595                         &quot;required&quot;: true,&#xd;
2596                         &quot;description&quot;: &quot;Direction of the threshold&quot;,&#xd;
2597                         &quot;constraints&quot;: [&#xd;
2598                             {&#xd;
2599                                 &quot;valid_values&quot;: [&#xd;
2600                                     &quot;LESS&quot;,&#xd;
2601                                     &quot;LESS_OR_EQUAL&quot;,&#xd;
2602                                     &quot;GREATER&quot;,&#xd;
2603                                     &quot;GREATER_OR_EQUAL&quot;,&#xd;
2604                                     &quot;EQUAL&quot;&#xd;
2605                                 ]&#xd;
2606                             }&#xd;
2607                         ]&#xd;
2608                     },&#xd;
2609                     &quot;fieldPath&quot;: {&#xd;
2610                         &quot;type&quot;: &quot;string&quot;,&#xd;
2611                         &quot;required&quot;: true,&#xd;
2612                         &quot;description&quot;: &quot;Json field Path as per CEF message which needs to be analyzed for TCA&quot;,&#xd;
2613                         &quot;constraints&quot;: [&#xd;
2614                             {&#xd;
2615                                 &quot;valid_values&quot;: [&#xd;
2616                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta&quot;,&#xd;
2617                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsDelta&quot;,&#xd;
2618                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsDelta&quot;,&#xd;
2619                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsDelta&quot;,&#xd;
2620                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsDelta&quot;,&#xd;
2621                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsDelta&quot;,&#xd;
2622                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsDelta&quot;,&#xd;
2623                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsAccumulated&quot;,&#xd;
2624                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsAccumulated&quot;,&#xd;
2625                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsAccumulated&quot;,&#xd;
2626                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsAccumulated&quot;,&#xd;
2627                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated&quot;,&#xd;
2628                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsAccumulated&quot;,&#xd;
2629                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsAccumulated&quot;,&#xd;
2630                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsDelta&quot;,&#xd;
2631                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsDelta&quot;,&#xd;
2632                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsDelta&quot;,&#xd;
2633                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsDelta&quot;,&#xd;
2634                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsDelta&quot;,&#xd;
2635                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsDelta&quot;,&#xd;
2636                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsDelta&quot;,&#xd;
2637                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsAccumulated&quot;,&#xd;
2638                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsAccumulated&quot;,&#xd;
2639                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsAccumulated&quot;,&#xd;
2640                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsAccumulated&quot;,&#xd;
2641                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsAccumulated&quot;,&#xd;
2642                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsAccumulated&quot;,&#xd;
2643                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsAccumulated&quot;,&#xd;
2644                                     &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuIdle&quot;,&#xd;
2645                                     &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageInterrupt&quot;,&#xd;
2646                                     &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageNice&quot;,&#xd;
2647                                     &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSoftIrq&quot;,&#xd;
2648                                     &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSteal&quot;,&#xd;
2649                                     &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSystem&quot;,&#xd;
2650                                     &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuWait&quot;,&#xd;
2651                                     &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].percentUsage&quot;,&#xd;
2652                                     &quot;$.event.measurementsForVfScalingFields.meanRequestLatency&quot;,&#xd;
2653                                     &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryBuffered&quot;,&#xd;
2654                                     &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryCached&quot;,&#xd;
2655                                     &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryConfigured&quot;,&#xd;
2656                                     &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryFree&quot;,&#xd;
2657                                     &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryUsed&quot;,&#xd;
2658                                     &quot;$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value&quot;&#xd;
2659                                 ]&#xd;
2660                             }&#xd;
2661                         ]&#xd;
2662                     },&#xd;
2663                     &quot;severity&quot;: {&#xd;
2664                         &quot;type&quot;: &quot;string&quot;,&#xd;
2665                         &quot;required&quot;: true,&#xd;
2666                         &quot;description&quot;: &quot;Threshold Event Severity&quot;,&#xd;
2667                         &quot;constraints&quot;: [&#xd;
2668                             {&#xd;
2669                                 &quot;valid_values&quot;: [&#xd;
2670                                     &quot;CRITICAL&quot;,&#xd;
2671                                     &quot;MAJOR&quot;,&#xd;
2672                                     &quot;MINOR&quot;,&#xd;
2673                                     &quot;WARNING&quot;,&#xd;
2674                                     &quot;NORMAL&quot;&#xd;
2675                                 ]&#xd;
2676                             }&#xd;
2677                         ]&#xd;
2678                     },&#xd;
2679                     &quot;thresholdValue&quot;: {&#xd;
2680                         &quot;type&quot;: &quot;integer&quot;,&#xd;
2681                         &quot;required&quot;: true,&#xd;
2682                         &quot;description&quot;: &quot;Threshold value for the field Path inside CEF message&quot;&#xd;
2683                     },&#xd;
2684                     &quot;version&quot;: {&#xd;
2685                         &quot;type&quot;: &quot;string&quot;,&#xd;
2686                         &quot;required&quot;: true,&#xd;
2687                         &quot;description&quot;: &quot;Version number associated with the threshold&quot;&#xd;
2688                     }&#xd;
2689                 }&#xd;
2690             }&#xd;
2691         }&#xd;
2692     ]&#xd;
2693 }</stringProp>
2694                 <stringProp name="Argument.metadata">=</stringProp>
2695               </elementProp>
2696             </collectionProp>
2697           </elementProp>
2698           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
2699           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
2700           <stringProp name="HTTPSampler.protocol">https</stringProp>
2701           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
2702           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes</stringProp>
2703           <stringProp name="HTTPSampler.method">POST</stringProp>
2704           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
2705           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
2706           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
2707           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
2708           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
2709           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
2710           <stringProp name="HTTPSampler.response_timeout"></stringProp>
2711         </HTTPSamplerProxy>
2712         <hashTree>
2713           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
2714             <collectionProp name="Asserion.test_strings">
2715               <stringProp name="49586">200</stringProp>
2716             </collectionProp>
2717             <stringProp name="Assertion.custom_message"></stringProp>
2718             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
2719             <boolProp name="Assertion.assume_success">false</boolProp>
2720             <intProp name="Assertion.test_type">1</intProp>
2721           </ResponseAssertion>
2722           <hashTree/>
2723           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
2724             <stringProp name="scriptLanguage">groovy</stringProp>
2725             <stringProp name="parameters"></stringProp>
2726             <stringProp name="filename"></stringProp>
2727             <stringProp name="cacheKey">true</stringProp>
2728             <stringProp name="script">import groovy.json.JsonSlurper;
2729
2730 def res = [];
2731 if (prev.getResponseCode() == &apos;200&apos;) {
2732     def jsonSlurper = new JsonSlurper();
2733     res = jsonSlurper.parseText(prev.getResponseDataAsString());
2734
2735     assert res instanceof Map;
2736     assert res.policy_types instanceof List;
2737     assert res.policy_types.size == 2;
2738     assert res.policy_types[0] instanceof Map;
2739     assert res.policy_types[1] instanceof Map;
2740 }</stringProp>
2741           </JSR223Assertion>
2742           <hashTree/>
2743         </hashTree>
2744         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create TCA Policy Type V10" enabled="true">
2745           <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
2746           <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
2747             <collectionProp name="Arguments.arguments">
2748               <elementProp name="" elementType="HTTPArgument">
2749                 <boolProp name="HTTPArgument.always_encode">false</boolProp>
2750                 <stringProp name="Argument.value">{&#xd;
2751     &quot;tosca_definitions_version&quot;: &quot;tosca_simple_yaml_1_0_0&quot;,&#xd;
2752     &quot;policy_types&quot;: [&#xd;
2753         {&#xd;
2754             &quot;onap.policies.Monitoring&quot;: {&#xd;
2755                 &quot;derived_from&quot;: &quot;tosca.policies.Root&quot;,&#xd;
2756                 &quot;version&quot;: &quot;1.0.0&quot;,&#xd;
2757                 &quot;description&quot;: &quot;a base policy type for all policies that governs monitoring provisioning&quot;&#xd;
2758             }&#xd;
2759         },&#xd;
2760         {&#xd;
2761             &quot;onap.policies.monitoring.cdap.tca.hi.lo.app&quot;: {&#xd;
2762                 &quot;derived_from&quot;: &quot;onap.policies.Monitoring&quot;,&#xd;
2763                 &quot;version&quot;: &quot;10.0.0&quot;,&#xd;
2764                 &quot;properties&quot;: {&#xd;
2765                     &quot;tca_policy&quot;: {&#xd;
2766                         &quot;type&quot;: &quot;map&quot;,&#xd;
2767                         &quot;description&quot;: &quot;TCA Policy JSON&quot;,&#xd;
2768                         &quot;entry_schema&quot;: {&#xd;
2769                             &quot;type&quot;: &quot;onap.datatypes.monitoring.tca_policy&quot;&#xd;
2770                         }&#xd;
2771                     }&#xd;
2772                 }&#xd;
2773             }&#xd;
2774         }&#xd;
2775     ],&#xd;
2776     &quot;data_types&quot;: [&#xd;
2777         {&#xd;
2778             &quot;onap.datatypes.monitoring.metricsPerEventName&quot;: {&#xd;
2779                 &quot;derived_from&quot;: &quot;tosca.datatypes.Root&quot;,&#xd;
2780                 &quot;properties&quot;: {&#xd;
2781                     &quot;controlLoopSchemaType&quot;: {&#xd;
2782                         &quot;type&quot;: &quot;string&quot;,&#xd;
2783                         &quot;required&quot;: true,&#xd;
2784                         &quot;description&quot;: &quot;Specifies Control Loop Schema Type for the event Name e.g. VNF, VM&quot;,&#xd;
2785                         &quot;constraints&quot;: [&#xd;
2786                             {&#xd;
2787                                 &quot;valid_values&quot;: [&#xd;
2788                                     &quot;VM&quot;,&#xd;
2789                                     &quot;VNF&quot;&#xd;
2790                                 ]&#xd;
2791                             }&#xd;
2792                         ]&#xd;
2793                     },&#xd;
2794                     &quot;eventName&quot;: {&#xd;
2795                         &quot;type&quot;: &quot;string&quot;,&#xd;
2796                         &quot;required&quot;: true,&#xd;
2797                         &quot;description&quot;: &quot;Event name to which thresholds need to be applied&quot;&#xd;
2798                     },&#xd;
2799                     &quot;policyName&quot;: {&#xd;
2800                         &quot;type&quot;: &quot;string&quot;,&#xd;
2801                         &quot;required&quot;: true,&#xd;
2802                         &quot;description&quot;: &quot;TCA Policy Scope Name&quot;&#xd;
2803                     },&#xd;
2804                     &quot;policyScope&quot;: {&#xd;
2805                         &quot;type&quot;: &quot;string&quot;,&#xd;
2806                         &quot;required&quot;: true,&#xd;
2807                         &quot;description&quot;: &quot;TCA Policy Scope&quot;&#xd;
2808                     },&#xd;
2809                     &quot;policyVersion&quot;: {&#xd;
2810                         &quot;type&quot;: &quot;string&quot;,&#xd;
2811                         &quot;required&quot;: true,&#xd;
2812                         &quot;description&quot;: &quot;TCA Policy Scope Version&quot;&#xd;
2813                     },&#xd;
2814                     &quot;thresholds&quot;: {&#xd;
2815                         &quot;type&quot;: &quot;list&quot;,&#xd;
2816                         &quot;required&quot;: true,&#xd;
2817                         &quot;description&quot;: &quot;Thresholds associated with eventName&quot;,&#xd;
2818                         &quot;entry_schema&quot;: {&#xd;
2819                             &quot;type&quot;: &quot;onap.datatypes.monitoring.thresholds&quot;&#xd;
2820                         }&#xd;
2821                     }&#xd;
2822                 }&#xd;
2823             }&#xd;
2824         },&#xd;
2825         {&#xd;
2826             &quot;onap.datatypes.monitoring.tca_policy&quot;: {&#xd;
2827                 &quot;derived_from&quot;: &quot;tosca.datatypes.Root&quot;,&#xd;
2828                 &quot;properties&quot;: {&#xd;
2829                     &quot;domain&quot;: {&#xd;
2830                         &quot;type&quot;: &quot;string&quot;,&#xd;
2831                         &quot;required&quot;: true,&#xd;
2832                         &quot;description&quot;: &quot;Domain name to which TCA needs to be applied&quot;,&#xd;
2833                         &quot;default&quot;: &quot;measurementsForVfScaling&quot;,&#xd;
2834                         &quot;constraints&quot;: [&#xd;
2835                             {&#xd;
2836                                 &quot;equal&quot;: &quot;measurementsForVfScaling&quot;&#xd;
2837                             }&#xd;
2838                         ]&#xd;
2839                     },&#xd;
2840                     &quot;metricsPerEventName&quot;: {&#xd;
2841                         &quot;type&quot;: &quot;list&quot;,&#xd;
2842                         &quot;required&quot;: true,&#xd;
2843                         &quot;description&quot;: &quot;Contains eventName and threshold details that need to be applied to given eventName&quot;,&#xd;
2844                         &quot;entry_schema&quot;: {&#xd;
2845                             &quot;type&quot;: &quot;onap.datatypes.monitoring.metricsPerEventName&quot;&#xd;
2846                         }&#xd;
2847                     }&#xd;
2848                 }&#xd;
2849             }&#xd;
2850         },&#xd;
2851         {&#xd;
2852             &quot;onap.datatypes.monitoring.thresholds&quot;: {&#xd;
2853                 &quot;derived_from&quot;: &quot;tosca.datatypes.Root&quot;,&#xd;
2854                 &quot;properties&quot;: {&#xd;
2855                     &quot;closedLoopControlName&quot;: {&#xd;
2856                         &quot;type&quot;: &quot;string&quot;,&#xd;
2857                         &quot;required&quot;: true,&#xd;
2858                         &quot;description&quot;: &quot;Closed Loop Control Name associated with the threshold&quot;&#xd;
2859                     },&#xd;
2860                     &quot;closedLoopEventStatus&quot;: {&#xd;
2861                         &quot;type&quot;: &quot;string&quot;,&#xd;
2862                         &quot;required&quot;: true,&#xd;
2863                         &quot;description&quot;: &quot;Closed Loop Event Status of the threshold&quot;,&#xd;
2864                         &quot;constraints&quot;: [&#xd;
2865                             {&#xd;
2866                                 &quot;valid_values&quot;: [&#xd;
2867                                     &quot;ONSET&quot;,&#xd;
2868                                     &quot;ABATED&quot;&#xd;
2869                                 ]&#xd;
2870                             }&#xd;
2871                         ]&#xd;
2872                     },&#xd;
2873                     &quot;direction&quot;: {&#xd;
2874                         &quot;type&quot;: &quot;string&quot;,&#xd;
2875                         &quot;required&quot;: true,&#xd;
2876                         &quot;description&quot;: &quot;Direction of the threshold&quot;,&#xd;
2877                         &quot;constraints&quot;: [&#xd;
2878                             {&#xd;
2879                                 &quot;valid_values&quot;: [&#xd;
2880                                     &quot;LESS&quot;,&#xd;
2881                                     &quot;LESS_OR_EQUAL&quot;,&#xd;
2882                                     &quot;GREATER&quot;,&#xd;
2883                                     &quot;GREATER_OR_EQUAL&quot;,&#xd;
2884                                     &quot;EQUAL&quot;&#xd;
2885                                 ]&#xd;
2886                             }&#xd;
2887                         ]&#xd;
2888                     },&#xd;
2889                     &quot;fieldPath&quot;: {&#xd;
2890                         &quot;type&quot;: &quot;string&quot;,&#xd;
2891                         &quot;required&quot;: true,&#xd;
2892                         &quot;description&quot;: &quot;Json field Path as per CEF message which needs to be analyzed for TCA&quot;,&#xd;
2893                         &quot;constraints&quot;: [&#xd;
2894                             {&#xd;
2895                                 &quot;valid_values&quot;: [&#xd;
2896                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta&quot;,&#xd;
2897                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsDelta&quot;,&#xd;
2898                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsDelta&quot;,&#xd;
2899                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsDelta&quot;,&#xd;
2900                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsDelta&quot;,&#xd;
2901                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsDelta&quot;,&#xd;
2902                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsDelta&quot;,&#xd;
2903                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsAccumulated&quot;,&#xd;
2904                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsAccumulated&quot;,&#xd;
2905                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsAccumulated&quot;,&#xd;
2906                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsAccumulated&quot;,&#xd;
2907                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated&quot;,&#xd;
2908                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsAccumulated&quot;,&#xd;
2909                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsAccumulated&quot;,&#xd;
2910                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsDelta&quot;,&#xd;
2911                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsDelta&quot;,&#xd;
2912                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsDelta&quot;,&#xd;
2913                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsDelta&quot;,&#xd;
2914                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsDelta&quot;,&#xd;
2915                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsDelta&quot;,&#xd;
2916                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsDelta&quot;,&#xd;
2917                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsAccumulated&quot;,&#xd;
2918                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsAccumulated&quot;,&#xd;
2919                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsAccumulated&quot;,&#xd;
2920                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsAccumulated&quot;,&#xd;
2921                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsAccumulated&quot;,&#xd;
2922                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsAccumulated&quot;,&#xd;
2923                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsAccumulated&quot;,&#xd;
2924                                     &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuIdle&quot;,&#xd;
2925                                     &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageInterrupt&quot;,&#xd;
2926                                     &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageNice&quot;,&#xd;
2927                                     &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSoftIrq&quot;,&#xd;
2928                                     &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSteal&quot;,&#xd;
2929                                     &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSystem&quot;,&#xd;
2930                                     &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuWait&quot;,&#xd;
2931                                     &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].percentUsage&quot;,&#xd;
2932                                     &quot;$.event.measurementsForVfScalingFields.meanRequestLatency&quot;,&#xd;
2933                                     &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryBuffered&quot;,&#xd;
2934                                     &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryCached&quot;,&#xd;
2935                                     &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryConfigured&quot;,&#xd;
2936                                     &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryFree&quot;,&#xd;
2937                                     &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryUsed&quot;,&#xd;
2938                                     &quot;$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value&quot;&#xd;
2939                                 ]&#xd;
2940                             }&#xd;
2941                         ]&#xd;
2942                     },&#xd;
2943                     &quot;severity&quot;: {&#xd;
2944                         &quot;type&quot;: &quot;string&quot;,&#xd;
2945                         &quot;required&quot;: true,&#xd;
2946                         &quot;description&quot;: &quot;Threshold Event Severity&quot;,&#xd;
2947                         &quot;constraints&quot;: [&#xd;
2948                             {&#xd;
2949                                 &quot;valid_values&quot;: [&#xd;
2950                                     &quot;CRITICAL&quot;,&#xd;
2951                                     &quot;MAJOR&quot;,&#xd;
2952                                     &quot;MINOR&quot;,&#xd;
2953                                     &quot;WARNING&quot;,&#xd;
2954                                     &quot;NORMAL&quot;&#xd;
2955                                 ]&#xd;
2956                             }&#xd;
2957                         ]&#xd;
2958                     },&#xd;
2959                     &quot;thresholdValue&quot;: {&#xd;
2960                         &quot;type&quot;: &quot;integer&quot;,&#xd;
2961                         &quot;required&quot;: true,&#xd;
2962                         &quot;description&quot;: &quot;Threshold value for the field Path inside CEF message&quot;&#xd;
2963                     },&#xd;
2964                     &quot;version&quot;: {&#xd;
2965                         &quot;type&quot;: &quot;string&quot;,&#xd;
2966                         &quot;required&quot;: true,&#xd;
2967                         &quot;description&quot;: &quot;Version number associated with the threshold&quot;&#xd;
2968                     }&#xd;
2969                 }&#xd;
2970             }&#xd;
2971         }&#xd;
2972     ]&#xd;
2973 }</stringProp>
2974                 <stringProp name="Argument.metadata">=</stringProp>
2975               </elementProp>
2976             </collectionProp>
2977           </elementProp>
2978           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
2979           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
2980           <stringProp name="HTTPSampler.protocol">https</stringProp>
2981           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
2982           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes</stringProp>
2983           <stringProp name="HTTPSampler.method">POST</stringProp>
2984           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
2985           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
2986           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
2987           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
2988           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
2989           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
2990           <stringProp name="HTTPSampler.response_timeout"></stringProp>
2991         </HTTPSamplerProxy>
2992         <hashTree>
2993           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
2994             <collectionProp name="Asserion.test_strings">
2995               <stringProp name="49586">200</stringProp>
2996             </collectionProp>
2997             <stringProp name="Assertion.custom_message"></stringProp>
2998             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
2999             <boolProp name="Assertion.assume_success">false</boolProp>
3000             <intProp name="Assertion.test_type">1</intProp>
3001           </ResponseAssertion>
3002           <hashTree/>
3003           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
3004             <stringProp name="scriptLanguage">groovy</stringProp>
3005             <stringProp name="parameters"></stringProp>
3006             <stringProp name="filename"></stringProp>
3007             <stringProp name="cacheKey">true</stringProp>
3008             <stringProp name="script">import groovy.json.JsonSlurper;
3009
3010 def res = [];
3011 if (prev.getResponseCode() == &apos;200&apos;) {
3012     def jsonSlurper = new JsonSlurper();
3013     res = jsonSlurper.parseText(prev.getResponseDataAsString());
3014
3015     assert res instanceof Map;
3016     assert res.policy_types instanceof List;
3017     assert res.policy_types.size == 2;
3018     assert res.policy_types[0] instanceof Map;
3019     assert res.policy_types[1] instanceof Map;
3020 }</stringProp>
3021           </JSR223Assertion>
3022           <hashTree/>
3023         </hashTree>
3024         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create TCA Policy Type V11" enabled="true">
3025           <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
3026           <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
3027             <collectionProp name="Arguments.arguments">
3028               <elementProp name="" elementType="HTTPArgument">
3029                 <boolProp name="HTTPArgument.always_encode">false</boolProp>
3030                 <stringProp name="Argument.value">{&#xd;
3031     &quot;tosca_definitions_version&quot;: &quot;tosca_simple_yaml_1_0_0&quot;,&#xd;
3032     &quot;policy_types&quot;: [&#xd;
3033         {&#xd;
3034             &quot;onap.policies.Monitoring&quot;: {&#xd;
3035                 &quot;derived_from&quot;: &quot;tosca.policies.Root&quot;,&#xd;
3036                 &quot;version&quot;: &quot;1.0.0&quot;,&#xd;
3037                 &quot;description&quot;: &quot;a base policy type for all policies that governs monitoring provisioning&quot;&#xd;
3038             }&#xd;
3039         },&#xd;
3040         {&#xd;
3041             &quot;onap.policies.monitoring.cdap.tca.hi.lo.app&quot;: {&#xd;
3042                 &quot;derived_from&quot;: &quot;onap.policies.Monitoring&quot;,&#xd;
3043                 &quot;version&quot;: &quot;11.0.0&quot;,&#xd;
3044                 &quot;properties&quot;: {&#xd;
3045                     &quot;tca_policy&quot;: {&#xd;
3046                         &quot;type&quot;: &quot;map&quot;,&#xd;
3047                         &quot;description&quot;: &quot;TCA Policy JSON&quot;,&#xd;
3048                         &quot;entry_schema&quot;: {&#xd;
3049                             &quot;type&quot;: &quot;onap.datatypes.monitoring.tca_policy&quot;&#xd;
3050                         }&#xd;
3051                     }&#xd;
3052                 }&#xd;
3053             }&#xd;
3054         }&#xd;
3055     ],&#xd;
3056     &quot;data_types&quot;: [&#xd;
3057         {&#xd;
3058             &quot;onap.datatypes.monitoring.metricsPerEventName&quot;: {&#xd;
3059                 &quot;derived_from&quot;: &quot;tosca.datatypes.Root&quot;,&#xd;
3060                 &quot;properties&quot;: {&#xd;
3061                     &quot;controlLoopSchemaType&quot;: {&#xd;
3062                         &quot;type&quot;: &quot;string&quot;,&#xd;
3063                         &quot;required&quot;: true,&#xd;
3064                         &quot;description&quot;: &quot;Specifies Control Loop Schema Type for the event Name e.g. VNF, VM&quot;,&#xd;
3065                         &quot;constraints&quot;: [&#xd;
3066                             {&#xd;
3067                                 &quot;valid_values&quot;: [&#xd;
3068                                     &quot;VM&quot;,&#xd;
3069                                     &quot;VNF&quot;&#xd;
3070                                 ]&#xd;
3071                             }&#xd;
3072                         ]&#xd;
3073                     },&#xd;
3074                     &quot;eventName&quot;: {&#xd;
3075                         &quot;type&quot;: &quot;string&quot;,&#xd;
3076                         &quot;required&quot;: true,&#xd;
3077                         &quot;description&quot;: &quot;Event name to which thresholds need to be applied&quot;&#xd;
3078                     },&#xd;
3079                     &quot;policyName&quot;: {&#xd;
3080                         &quot;type&quot;: &quot;string&quot;,&#xd;
3081                         &quot;required&quot;: true,&#xd;
3082                         &quot;description&quot;: &quot;TCA Policy Scope Name&quot;&#xd;
3083                     },&#xd;
3084                     &quot;policyScope&quot;: {&#xd;
3085                         &quot;type&quot;: &quot;string&quot;,&#xd;
3086                         &quot;required&quot;: true,&#xd;
3087                         &quot;description&quot;: &quot;TCA Policy Scope&quot;&#xd;
3088                     },&#xd;
3089                     &quot;policyVersion&quot;: {&#xd;
3090                         &quot;type&quot;: &quot;string&quot;,&#xd;
3091                         &quot;required&quot;: true,&#xd;
3092                         &quot;description&quot;: &quot;TCA Policy Scope Version&quot;&#xd;
3093                     },&#xd;
3094                     &quot;thresholds&quot;: {&#xd;
3095                         &quot;type&quot;: &quot;list&quot;,&#xd;
3096                         &quot;required&quot;: true,&#xd;
3097                         &quot;description&quot;: &quot;Thresholds associated with eventName&quot;,&#xd;
3098                         &quot;entry_schema&quot;: {&#xd;
3099                             &quot;type&quot;: &quot;onap.datatypes.monitoring.thresholds&quot;&#xd;
3100                         }&#xd;
3101                     }&#xd;
3102                 }&#xd;
3103             }&#xd;
3104         },&#xd;
3105         {&#xd;
3106             &quot;onap.datatypes.monitoring.tca_policy&quot;: {&#xd;
3107                 &quot;derived_from&quot;: &quot;tosca.datatypes.Root&quot;,&#xd;
3108                 &quot;properties&quot;: {&#xd;
3109                     &quot;domain&quot;: {&#xd;
3110                         &quot;type&quot;: &quot;string&quot;,&#xd;
3111                         &quot;required&quot;: true,&#xd;
3112                         &quot;description&quot;: &quot;Domain name to which TCA needs to be applied&quot;,&#xd;
3113                         &quot;default&quot;: &quot;measurementsForVfScaling&quot;,&#xd;
3114                         &quot;constraints&quot;: [&#xd;
3115                             {&#xd;
3116                                 &quot;equal&quot;: &quot;measurementsForVfScaling&quot;&#xd;
3117                             }&#xd;
3118                         ]&#xd;
3119                     },&#xd;
3120                     &quot;metricsPerEventName&quot;: {&#xd;
3121                         &quot;type&quot;: &quot;list&quot;,&#xd;
3122                         &quot;required&quot;: true,&#xd;
3123                         &quot;description&quot;: &quot;Contains eventName and threshold details that need to be applied to given eventName&quot;,&#xd;
3124                         &quot;entry_schema&quot;: {&#xd;
3125                             &quot;type&quot;: &quot;onap.datatypes.monitoring.metricsPerEventName&quot;&#xd;
3126                         }&#xd;
3127                     }&#xd;
3128                 }&#xd;
3129             }&#xd;
3130         },&#xd;
3131         {&#xd;
3132             &quot;onap.datatypes.monitoring.thresholds&quot;: {&#xd;
3133                 &quot;derived_from&quot;: &quot;tosca.datatypes.Root&quot;,&#xd;
3134                 &quot;properties&quot;: {&#xd;
3135                     &quot;closedLoopControlName&quot;: {&#xd;
3136                         &quot;type&quot;: &quot;string&quot;,&#xd;
3137                         &quot;required&quot;: true,&#xd;
3138                         &quot;description&quot;: &quot;Closed Loop Control Name associated with the threshold&quot;&#xd;
3139                     },&#xd;
3140                     &quot;closedLoopEventStatus&quot;: {&#xd;
3141                         &quot;type&quot;: &quot;string&quot;,&#xd;
3142                         &quot;required&quot;: true,&#xd;
3143                         &quot;description&quot;: &quot;Closed Loop Event Status of the threshold&quot;,&#xd;
3144                         &quot;constraints&quot;: [&#xd;
3145                             {&#xd;
3146                                 &quot;valid_values&quot;: [&#xd;
3147                                     &quot;ONSET&quot;,&#xd;
3148                                     &quot;ABATED&quot;&#xd;
3149                                 ]&#xd;
3150                             }&#xd;
3151                         ]&#xd;
3152                     },&#xd;
3153                     &quot;direction&quot;: {&#xd;
3154                         &quot;type&quot;: &quot;string&quot;,&#xd;
3155                         &quot;required&quot;: true,&#xd;
3156                         &quot;description&quot;: &quot;Direction of the threshold&quot;,&#xd;
3157                         &quot;constraints&quot;: [&#xd;
3158                             {&#xd;
3159                                 &quot;valid_values&quot;: [&#xd;
3160                                     &quot;LESS&quot;,&#xd;
3161                                     &quot;LESS_OR_EQUAL&quot;,&#xd;
3162                                     &quot;GREATER&quot;,&#xd;
3163                                     &quot;GREATER_OR_EQUAL&quot;,&#xd;
3164                                     &quot;EQUAL&quot;&#xd;
3165                                 ]&#xd;
3166                             }&#xd;
3167                         ]&#xd;
3168                     },&#xd;
3169                     &quot;fieldPath&quot;: {&#xd;
3170                         &quot;type&quot;: &quot;string&quot;,&#xd;
3171                         &quot;required&quot;: true,&#xd;
3172                         &quot;description&quot;: &quot;Json field Path as per CEF message which needs to be analyzed for TCA&quot;,&#xd;
3173                         &quot;constraints&quot;: [&#xd;
3174                             {&#xd;
3175                                 &quot;valid_values&quot;: [&#xd;
3176                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta&quot;,&#xd;
3177                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsDelta&quot;,&#xd;
3178                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsDelta&quot;,&#xd;
3179                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsDelta&quot;,&#xd;
3180                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsDelta&quot;,&#xd;
3181                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsDelta&quot;,&#xd;
3182                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsDelta&quot;,&#xd;
3183                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsAccumulated&quot;,&#xd;
3184                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsAccumulated&quot;,&#xd;
3185                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsAccumulated&quot;,&#xd;
3186                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsAccumulated&quot;,&#xd;
3187                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated&quot;,&#xd;
3188                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsAccumulated&quot;,&#xd;
3189                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsAccumulated&quot;,&#xd;
3190                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsDelta&quot;,&#xd;
3191                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsDelta&quot;,&#xd;
3192                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsDelta&quot;,&#xd;
3193                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsDelta&quot;,&#xd;
3194                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsDelta&quot;,&#xd;
3195                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsDelta&quot;,&#xd;
3196                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsDelta&quot;,&#xd;
3197                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsAccumulated&quot;,&#xd;
3198                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsAccumulated&quot;,&#xd;
3199                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsAccumulated&quot;,&#xd;
3200                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsAccumulated&quot;,&#xd;
3201                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsAccumulated&quot;,&#xd;
3202                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsAccumulated&quot;,&#xd;
3203                                     &quot;$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsAccumulated&quot;,&#xd;
3204                                     &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuIdle&quot;,&#xd;
3205                                     &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageInterrupt&quot;,&#xd;
3206                                     &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageNice&quot;,&#xd;
3207                                     &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSoftIrq&quot;,&#xd;
3208                                     &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSteal&quot;,&#xd;
3209                                     &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSystem&quot;,&#xd;
3210                                     &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuWait&quot;,&#xd;
3211                                     &quot;$.event.measurementsForVfScalingFields.cpuUsageArray[*].percentUsage&quot;,&#xd;
3212                                     &quot;$.event.measurementsForVfScalingFields.meanRequestLatency&quot;,&#xd;
3213                                     &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryBuffered&quot;,&#xd;
3214                                     &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryCached&quot;,&#xd;
3215                                     &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryConfigured&quot;,&#xd;
3216                                     &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryFree&quot;,&#xd;
3217                                     &quot;$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryUsed&quot;,&#xd;
3218                                     &quot;$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value&quot;&#xd;
3219                                 ]&#xd;
3220                             }&#xd;
3221                         ]&#xd;
3222                     },&#xd;
3223                     &quot;severity&quot;: {&#xd;
3224                         &quot;type&quot;: &quot;string&quot;,&#xd;
3225                         &quot;required&quot;: true,&#xd;
3226                         &quot;description&quot;: &quot;Threshold Event Severity&quot;,&#xd;
3227                         &quot;constraints&quot;: [&#xd;
3228                             {&#xd;
3229                                 &quot;valid_values&quot;: [&#xd;
3230                                     &quot;CRITICAL&quot;,&#xd;
3231                                     &quot;MAJOR&quot;,&#xd;
3232                                     &quot;MINOR&quot;,&#xd;
3233                                     &quot;WARNING&quot;,&#xd;
3234                                     &quot;NORMAL&quot;&#xd;
3235                                 ]&#xd;
3236                             }&#xd;
3237                         ]&#xd;
3238                     },&#xd;
3239                     &quot;thresholdValue&quot;: {&#xd;
3240                         &quot;type&quot;: &quot;integer&quot;,&#xd;
3241                         &quot;required&quot;: true,&#xd;
3242                         &quot;description&quot;: &quot;Threshold value for the field Path inside CEF message&quot;&#xd;
3243                     },&#xd;
3244                     &quot;version&quot;: {&#xd;
3245                         &quot;type&quot;: &quot;string&quot;,&#xd;
3246                         &quot;required&quot;: true,&#xd;
3247                         &quot;description&quot;: &quot;Version number associated with the threshold&quot;&#xd;
3248                     }&#xd;
3249                 }&#xd;
3250             }&#xd;
3251         }&#xd;
3252     ]&#xd;
3253 }</stringProp>
3254                 <stringProp name="Argument.metadata">=</stringProp>
3255               </elementProp>
3256             </collectionProp>
3257           </elementProp>
3258           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
3259           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
3260           <stringProp name="HTTPSampler.protocol">https</stringProp>
3261           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
3262           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes</stringProp>
3263           <stringProp name="HTTPSampler.method">POST</stringProp>
3264           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
3265           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
3266           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
3267           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
3268           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
3269           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
3270           <stringProp name="HTTPSampler.response_timeout"></stringProp>
3271         </HTTPSamplerProxy>
3272         <hashTree>
3273           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
3274             <collectionProp name="Asserion.test_strings">
3275               <stringProp name="49586">200</stringProp>
3276             </collectionProp>
3277             <stringProp name="Assertion.custom_message"></stringProp>
3278             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
3279             <boolProp name="Assertion.assume_success">false</boolProp>
3280             <intProp name="Assertion.test_type">1</intProp>
3281           </ResponseAssertion>
3282           <hashTree/>
3283           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
3284             <stringProp name="scriptLanguage">groovy</stringProp>
3285             <stringProp name="parameters"></stringProp>
3286             <stringProp name="filename"></stringProp>
3287             <stringProp name="cacheKey">true</stringProp>
3288             <stringProp name="script">import groovy.json.JsonSlurper;
3289
3290 def res = [];
3291 if (prev.getResponseCode() == &apos;200&apos;) {
3292     def jsonSlurper = new JsonSlurper();
3293     res = jsonSlurper.parseText(prev.getResponseDataAsString());
3294
3295     assert res instanceof Map;
3296     assert res.policy_types instanceof List;
3297     assert res.policy_types.size == 2;
3298     assert res.policy_types[0] instanceof Map;
3299     assert res.policy_types[1] instanceof Map;
3300 }</stringProp>
3301           </JSR223Assertion>
3302           <hashTree/>
3303         </hashTree>
3304         <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true">
3305           <stringProp name="ConstantTimer.delay">10000</stringProp>
3306         </ConstantTimer>
3307         <hashTree/>
3308         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get All Policy Types" enabled="true">
3309           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
3310             <collectionProp name="Arguments.arguments"/>
3311           </elementProp>
3312           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
3313           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
3314           <stringProp name="HTTPSampler.protocol">https</stringProp>
3315           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
3316           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes</stringProp>
3317           <stringProp name="HTTPSampler.method">GET</stringProp>
3318           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
3319           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
3320           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
3321           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
3322           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
3323           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
3324           <stringProp name="HTTPSampler.response_timeout"></stringProp>
3325         </HTTPSamplerProxy>
3326         <hashTree>
3327           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
3328             <collectionProp name="Asserion.test_strings">
3329               <stringProp name="49586">200</stringProp>
3330             </collectionProp>
3331             <stringProp name="Assertion.custom_message"></stringProp>
3332             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
3333             <boolProp name="Assertion.assume_success">false</boolProp>
3334             <intProp name="Assertion.test_type">1</intProp>
3335           </ResponseAssertion>
3336           <hashTree/>
3337           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
3338             <stringProp name="scriptLanguage">groovy</stringProp>
3339             <stringProp name="parameters"></stringProp>
3340             <stringProp name="filename"></stringProp>
3341             <stringProp name="cacheKey">true</stringProp>
3342             <stringProp name="script">import groovy.json.JsonSlurper;
3343
3344 def res = [];
3345 if (prev.getResponseCode() == &apos;200&apos;) {
3346     def jsonSlurper = new JsonSlurper();
3347     res = jsonSlurper.parseText(prev.getResponseDataAsString());
3348
3349     assert res instanceof Map;
3350     assert res.policy_types instanceof List;
3351     assert res.policy_types.size == 28;
3352
3353     def n = 28;
3354     for (i=0; i&lt;n; i++) {
3355         assert res.policy_types[i] instanceof Map;      
3356     }
3357 }</stringProp>
3358           </JSR223Assertion>
3359           <hashTree/>
3360         </hashTree>
3361         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get All Versions of TCA Policy Type" enabled="true">
3362           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
3363             <collectionProp name="Arguments.arguments"/>
3364           </elementProp>
3365           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
3366           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
3367           <stringProp name="HTTPSampler.protocol">https</stringProp>
3368           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
3369           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app</stringProp>
3370           <stringProp name="HTTPSampler.method">GET</stringProp>
3371           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
3372           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
3373           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
3374           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
3375           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
3376           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
3377           <stringProp name="HTTPSampler.response_timeout"></stringProp>
3378         </HTTPSamplerProxy>
3379         <hashTree>
3380           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
3381             <collectionProp name="Asserion.test_strings">
3382               <stringProp name="49586">200</stringProp>
3383             </collectionProp>
3384             <stringProp name="Assertion.custom_message"></stringProp>
3385             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
3386             <boolProp name="Assertion.assume_success">false</boolProp>
3387             <intProp name="Assertion.test_type">1</intProp>
3388           </ResponseAssertion>
3389           <hashTree/>
3390           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
3391             <stringProp name="scriptLanguage">groovy</stringProp>
3392             <stringProp name="parameters"></stringProp>
3393             <stringProp name="filename"></stringProp>
3394             <stringProp name="cacheKey">true</stringProp>
3395             <stringProp name="script">import groovy.json.JsonSlurper;
3396
3397 def res = [];
3398 if (prev.getResponseCode() == &apos;200&apos;) {
3399     def jsonSlurper = new JsonSlurper();
3400     res = jsonSlurper.parseText(prev.getResponseDataAsString());
3401
3402     assert res instanceof Map;
3403     assert res.policy_types instanceof List;
3404     assert res.policy_types.size == 11;
3405
3406     def n = 11;
3407     for (i=0; i&lt;n; i++) {
3408         assert res.policy_types[i] instanceof Map;      
3409     }
3410 }</stringProp>
3411           </JSR223Assertion>
3412           <hashTree/>
3413         </hashTree>
3414         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get TCA Policy Type V1" enabled="true">
3415           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
3416             <collectionProp name="Arguments.arguments"/>
3417           </elementProp>
3418           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
3419           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
3420           <stringProp name="HTTPSampler.protocol">https</stringProp>
3421           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
3422           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/1.0.0</stringProp>
3423           <stringProp name="HTTPSampler.method">GET</stringProp>
3424           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
3425           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
3426           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
3427           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
3428           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
3429           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
3430           <stringProp name="HTTPSampler.response_timeout"></stringProp>
3431         </HTTPSamplerProxy>
3432         <hashTree>
3433           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
3434             <collectionProp name="Asserion.test_strings">
3435               <stringProp name="49586">200</stringProp>
3436             </collectionProp>
3437             <stringProp name="Assertion.custom_message"></stringProp>
3438             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
3439             <boolProp name="Assertion.assume_success">false</boolProp>
3440             <intProp name="Assertion.test_type">1</intProp>
3441           </ResponseAssertion>
3442           <hashTree/>
3443           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
3444             <stringProp name="scriptLanguage">groovy</stringProp>
3445             <stringProp name="parameters"></stringProp>
3446             <stringProp name="filename"></stringProp>
3447             <stringProp name="cacheKey">true</stringProp>
3448             <stringProp name="script">import groovy.json.JsonSlurper;
3449
3450 def res = [];
3451 if (prev.getResponseCode() == &apos;200&apos;) {
3452     def jsonSlurper = new JsonSlurper();
3453     res = jsonSlurper.parseText(prev.getResponseDataAsString());
3454
3455     assert res instanceof Map;
3456     assert res.policy_types instanceof List;
3457     assert res.policy_types.size == 1;
3458
3459     assert res.policy_types[0] instanceof Map;
3460     assert res.policy_types[0].get(&apos;onap.policies.monitoring.cdap.tca.hi.lo.app&apos;).version == &quot;1.0.0&quot;;
3461 }</stringProp>
3462           </JSR223Assertion>
3463           <hashTree/>
3464         </hashTree>
3465         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get TCA Policy Type V2" enabled="true">
3466           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
3467             <collectionProp name="Arguments.arguments"/>
3468           </elementProp>
3469           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
3470           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
3471           <stringProp name="HTTPSampler.protocol">https</stringProp>
3472           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
3473           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/2.0.0</stringProp>
3474           <stringProp name="HTTPSampler.method">GET</stringProp>
3475           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
3476           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
3477           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
3478           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
3479           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
3480           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
3481           <stringProp name="HTTPSampler.response_timeout"></stringProp>
3482         </HTTPSamplerProxy>
3483         <hashTree>
3484           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
3485             <collectionProp name="Asserion.test_strings">
3486               <stringProp name="49586">200</stringProp>
3487             </collectionProp>
3488             <stringProp name="Assertion.custom_message"></stringProp>
3489             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
3490             <boolProp name="Assertion.assume_success">false</boolProp>
3491             <intProp name="Assertion.test_type">1</intProp>
3492           </ResponseAssertion>
3493           <hashTree/>
3494           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
3495             <stringProp name="scriptLanguage">groovy</stringProp>
3496             <stringProp name="parameters"></stringProp>
3497             <stringProp name="filename"></stringProp>
3498             <stringProp name="cacheKey">true</stringProp>
3499             <stringProp name="script">import groovy.json.JsonSlurper;
3500
3501 def res = [];
3502 if (prev.getResponseCode() == &apos;200&apos;) {
3503     def jsonSlurper = new JsonSlurper();
3504     res = jsonSlurper.parseText(prev.getResponseDataAsString());
3505
3506     assert res instanceof Map;
3507     assert res.policy_types instanceof List;
3508     assert res.policy_types.size == 1;
3509
3510     assert res.policy_types[0] instanceof Map;
3511     assert res.policy_types[0].get(&apos;onap.policies.monitoring.cdap.tca.hi.lo.app&apos;).version == &quot;2.0.0&quot;;
3512 }</stringProp>
3513           </JSR223Assertion>
3514           <hashTree/>
3515         </hashTree>
3516         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get TCA Policy Type V3" enabled="true">
3517           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
3518             <collectionProp name="Arguments.arguments"/>
3519           </elementProp>
3520           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
3521           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
3522           <stringProp name="HTTPSampler.protocol">https</stringProp>
3523           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
3524           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/3.0.0</stringProp>
3525           <stringProp name="HTTPSampler.method">GET</stringProp>
3526           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
3527           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
3528           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
3529           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
3530           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
3531           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
3532           <stringProp name="HTTPSampler.response_timeout"></stringProp>
3533         </HTTPSamplerProxy>
3534         <hashTree>
3535           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
3536             <collectionProp name="Asserion.test_strings">
3537               <stringProp name="49586">200</stringProp>
3538             </collectionProp>
3539             <stringProp name="Assertion.custom_message"></stringProp>
3540             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
3541             <boolProp name="Assertion.assume_success">false</boolProp>
3542             <intProp name="Assertion.test_type">1</intProp>
3543           </ResponseAssertion>
3544           <hashTree/>
3545           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
3546             <stringProp name="scriptLanguage">groovy</stringProp>
3547             <stringProp name="parameters"></stringProp>
3548             <stringProp name="filename"></stringProp>
3549             <stringProp name="cacheKey">true</stringProp>
3550             <stringProp name="script">import groovy.json.JsonSlurper;
3551
3552 def res = [];
3553 if (prev.getResponseCode() == &apos;200&apos;) {
3554     def jsonSlurper = new JsonSlurper();
3555     res = jsonSlurper.parseText(prev.getResponseDataAsString());
3556
3557     assert res instanceof Map;
3558     assert res.policy_types instanceof List;
3559     assert res.policy_types.size == 1;
3560
3561     assert res.policy_types[0] instanceof Map;
3562     assert res.policy_types[0].get(&apos;onap.policies.monitoring.cdap.tca.hi.lo.app&apos;).version == &quot;3.0.0&quot;;
3563 }</stringProp>
3564           </JSR223Assertion>
3565           <hashTree/>
3566         </hashTree>
3567         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get TCA Policy Type V4" enabled="true">
3568           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
3569             <collectionProp name="Arguments.arguments"/>
3570           </elementProp>
3571           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
3572           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
3573           <stringProp name="HTTPSampler.protocol">https</stringProp>
3574           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
3575           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/4.0.0</stringProp>
3576           <stringProp name="HTTPSampler.method">GET</stringProp>
3577           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
3578           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
3579           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
3580           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
3581           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
3582           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
3583           <stringProp name="HTTPSampler.response_timeout"></stringProp>
3584         </HTTPSamplerProxy>
3585         <hashTree>
3586           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
3587             <collectionProp name="Asserion.test_strings">
3588               <stringProp name="49586">200</stringProp>
3589             </collectionProp>
3590             <stringProp name="Assertion.custom_message"></stringProp>
3591             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
3592             <boolProp name="Assertion.assume_success">false</boolProp>
3593             <intProp name="Assertion.test_type">1</intProp>
3594           </ResponseAssertion>
3595           <hashTree/>
3596           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
3597             <stringProp name="scriptLanguage">groovy</stringProp>
3598             <stringProp name="parameters"></stringProp>
3599             <stringProp name="filename"></stringProp>
3600             <stringProp name="cacheKey">true</stringProp>
3601             <stringProp name="script">import groovy.json.JsonSlurper;
3602
3603 def res = [];
3604 if (prev.getResponseCode() == &apos;200&apos;) {
3605     def jsonSlurper = new JsonSlurper();
3606     res = jsonSlurper.parseText(prev.getResponseDataAsString());
3607
3608     assert res instanceof Map;
3609     assert res.policy_types instanceof List;
3610     assert res.policy_types.size == 1;
3611
3612     assert res.policy_types[0] instanceof Map;
3613     assert res.policy_types[0].get(&apos;onap.policies.monitoring.cdap.tca.hi.lo.app&apos;).version == &quot;4.0.0&quot;;
3614 }</stringProp>
3615           </JSR223Assertion>
3616           <hashTree/>
3617         </hashTree>
3618         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get TCA Policy Type V5" enabled="true">
3619           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
3620             <collectionProp name="Arguments.arguments"/>
3621           </elementProp>
3622           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
3623           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
3624           <stringProp name="HTTPSampler.protocol">https</stringProp>
3625           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
3626           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/5.0.0</stringProp>
3627           <stringProp name="HTTPSampler.method">GET</stringProp>
3628           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
3629           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
3630           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
3631           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
3632           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
3633           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
3634           <stringProp name="HTTPSampler.response_timeout"></stringProp>
3635         </HTTPSamplerProxy>
3636         <hashTree>
3637           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
3638             <collectionProp name="Asserion.test_strings">
3639               <stringProp name="49586">200</stringProp>
3640             </collectionProp>
3641             <stringProp name="Assertion.custom_message"></stringProp>
3642             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
3643             <boolProp name="Assertion.assume_success">false</boolProp>
3644             <intProp name="Assertion.test_type">1</intProp>
3645           </ResponseAssertion>
3646           <hashTree/>
3647           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
3648             <stringProp name="scriptLanguage">groovy</stringProp>
3649             <stringProp name="parameters"></stringProp>
3650             <stringProp name="filename"></stringProp>
3651             <stringProp name="cacheKey">true</stringProp>
3652             <stringProp name="script">import groovy.json.JsonSlurper;
3653
3654 def res = [];
3655 if (prev.getResponseCode() == &apos;200&apos;) {
3656     def jsonSlurper = new JsonSlurper();
3657     res = jsonSlurper.parseText(prev.getResponseDataAsString());
3658
3659     assert res instanceof Map;
3660     assert res.policy_types instanceof List;
3661     assert res.policy_types.size == 1;
3662
3663     assert res.policy_types[0] instanceof Map;
3664     assert res.policy_types[0].get(&apos;onap.policies.monitoring.cdap.tca.hi.lo.app&apos;).version == &quot;5.0.0&quot;;
3665 }</stringProp>
3666           </JSR223Assertion>
3667           <hashTree/>
3668         </hashTree>
3669         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get TCA Policy Type V6" enabled="true">
3670           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
3671             <collectionProp name="Arguments.arguments"/>
3672           </elementProp>
3673           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
3674           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
3675           <stringProp name="HTTPSampler.protocol">https</stringProp>
3676           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
3677           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/6.0.0</stringProp>
3678           <stringProp name="HTTPSampler.method">GET</stringProp>
3679           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
3680           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
3681           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
3682           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
3683           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
3684           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
3685           <stringProp name="HTTPSampler.response_timeout"></stringProp>
3686         </HTTPSamplerProxy>
3687         <hashTree>
3688           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
3689             <collectionProp name="Asserion.test_strings">
3690               <stringProp name="49586">200</stringProp>
3691             </collectionProp>
3692             <stringProp name="Assertion.custom_message"></stringProp>
3693             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
3694             <boolProp name="Assertion.assume_success">false</boolProp>
3695             <intProp name="Assertion.test_type">1</intProp>
3696           </ResponseAssertion>
3697           <hashTree/>
3698           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
3699             <stringProp name="scriptLanguage">groovy</stringProp>
3700             <stringProp name="parameters"></stringProp>
3701             <stringProp name="filename"></stringProp>
3702             <stringProp name="cacheKey">true</stringProp>
3703             <stringProp name="script">import groovy.json.JsonSlurper;
3704
3705 def res = [];
3706 if (prev.getResponseCode() == &apos;200&apos;) {
3707     def jsonSlurper = new JsonSlurper();
3708     res = jsonSlurper.parseText(prev.getResponseDataAsString());
3709
3710     assert res instanceof Map;
3711     assert res.policy_types instanceof List;
3712     assert res.policy_types.size == 1;
3713
3714     assert res.policy_types[0] instanceof Map;
3715     assert res.policy_types[0].get(&apos;onap.policies.monitoring.cdap.tca.hi.lo.app&apos;).version == &quot;6.0.0&quot;;
3716 }</stringProp>
3717           </JSR223Assertion>
3718           <hashTree/>
3719         </hashTree>
3720         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get TCA Policy Type V7" enabled="true">
3721           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
3722             <collectionProp name="Arguments.arguments"/>
3723           </elementProp>
3724           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
3725           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
3726           <stringProp name="HTTPSampler.protocol">https</stringProp>
3727           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
3728           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/7.0.0</stringProp>
3729           <stringProp name="HTTPSampler.method">GET</stringProp>
3730           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
3731           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
3732           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
3733           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
3734           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
3735           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
3736           <stringProp name="HTTPSampler.response_timeout"></stringProp>
3737         </HTTPSamplerProxy>
3738         <hashTree>
3739           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
3740             <collectionProp name="Asserion.test_strings">
3741               <stringProp name="49586">200</stringProp>
3742             </collectionProp>
3743             <stringProp name="Assertion.custom_message"></stringProp>
3744             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
3745             <boolProp name="Assertion.assume_success">false</boolProp>
3746             <intProp name="Assertion.test_type">1</intProp>
3747           </ResponseAssertion>
3748           <hashTree/>
3749           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
3750             <stringProp name="scriptLanguage">groovy</stringProp>
3751             <stringProp name="parameters"></stringProp>
3752             <stringProp name="filename"></stringProp>
3753             <stringProp name="cacheKey">true</stringProp>
3754             <stringProp name="script">import groovy.json.JsonSlurper;
3755
3756 def res = [];
3757 if (prev.getResponseCode() == &apos;200&apos;) {
3758     def jsonSlurper = new JsonSlurper();
3759     res = jsonSlurper.parseText(prev.getResponseDataAsString());
3760
3761     assert res instanceof Map;
3762     assert res.policy_types instanceof List;
3763     assert res.policy_types.size == 1;
3764
3765     assert res.policy_types[0] instanceof Map;
3766     assert res.policy_types[0].get(&apos;onap.policies.monitoring.cdap.tca.hi.lo.app&apos;).version == &quot;7.0.0&quot;;
3767 }</stringProp>
3768           </JSR223Assertion>
3769           <hashTree/>
3770         </hashTree>
3771         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get TCA Policy Type V8" enabled="true">
3772           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
3773             <collectionProp name="Arguments.arguments"/>
3774           </elementProp>
3775           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
3776           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
3777           <stringProp name="HTTPSampler.protocol">https</stringProp>
3778           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
3779           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/8.0.0</stringProp>
3780           <stringProp name="HTTPSampler.method">GET</stringProp>
3781           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
3782           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
3783           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
3784           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
3785           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
3786           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
3787           <stringProp name="HTTPSampler.response_timeout"></stringProp>
3788         </HTTPSamplerProxy>
3789         <hashTree>
3790           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
3791             <collectionProp name="Asserion.test_strings">
3792               <stringProp name="49586">200</stringProp>
3793             </collectionProp>
3794             <stringProp name="Assertion.custom_message"></stringProp>
3795             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
3796             <boolProp name="Assertion.assume_success">false</boolProp>
3797             <intProp name="Assertion.test_type">1</intProp>
3798           </ResponseAssertion>
3799           <hashTree/>
3800           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
3801             <stringProp name="scriptLanguage">groovy</stringProp>
3802             <stringProp name="parameters"></stringProp>
3803             <stringProp name="filename"></stringProp>
3804             <stringProp name="cacheKey">true</stringProp>
3805             <stringProp name="script">import groovy.json.JsonSlurper;
3806
3807 def res = [];
3808 if (prev.getResponseCode() == &apos;200&apos;) {
3809     def jsonSlurper = new JsonSlurper();
3810     res = jsonSlurper.parseText(prev.getResponseDataAsString());
3811
3812     assert res instanceof Map;
3813     assert res.policy_types instanceof List;
3814     assert res.policy_types.size == 1;
3815
3816     assert res.policy_types[0] instanceof Map;
3817     assert res.policy_types[0].get(&apos;onap.policies.monitoring.cdap.tca.hi.lo.app&apos;).version == &quot;8.0.0&quot;;
3818 }</stringProp>
3819           </JSR223Assertion>
3820           <hashTree/>
3821         </hashTree>
3822         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get TCA Policy Type V9" enabled="true">
3823           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
3824             <collectionProp name="Arguments.arguments"/>
3825           </elementProp>
3826           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
3827           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
3828           <stringProp name="HTTPSampler.protocol">https</stringProp>
3829           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
3830           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/9.0.0</stringProp>
3831           <stringProp name="HTTPSampler.method">GET</stringProp>
3832           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
3833           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
3834           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
3835           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
3836           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
3837           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
3838           <stringProp name="HTTPSampler.response_timeout"></stringProp>
3839         </HTTPSamplerProxy>
3840         <hashTree>
3841           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
3842             <collectionProp name="Asserion.test_strings">
3843               <stringProp name="49586">200</stringProp>
3844             </collectionProp>
3845             <stringProp name="Assertion.custom_message"></stringProp>
3846             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
3847             <boolProp name="Assertion.assume_success">false</boolProp>
3848             <intProp name="Assertion.test_type">1</intProp>
3849           </ResponseAssertion>
3850           <hashTree/>
3851           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
3852             <stringProp name="scriptLanguage">groovy</stringProp>
3853             <stringProp name="parameters"></stringProp>
3854             <stringProp name="filename"></stringProp>
3855             <stringProp name="cacheKey">true</stringProp>
3856             <stringProp name="script">import groovy.json.JsonSlurper;
3857
3858 def res = [];
3859 if (prev.getResponseCode() == &apos;200&apos;) {
3860     def jsonSlurper = new JsonSlurper();
3861     res = jsonSlurper.parseText(prev.getResponseDataAsString());
3862
3863     assert res instanceof Map;
3864     assert res.policy_types instanceof List;
3865     assert res.policy_types.size == 1;
3866
3867     assert res.policy_types[0] instanceof Map;
3868     assert res.policy_types[0].get(&apos;onap.policies.monitoring.cdap.tca.hi.lo.app&apos;).version == &quot;9.0.0&quot;;
3869 }</stringProp>
3870           </JSR223Assertion>
3871           <hashTree/>
3872         </hashTree>
3873         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get TCA Policy Type V10" enabled="true">
3874           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
3875             <collectionProp name="Arguments.arguments"/>
3876           </elementProp>
3877           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
3878           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
3879           <stringProp name="HTTPSampler.protocol">https</stringProp>
3880           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
3881           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/10.0.0</stringProp>
3882           <stringProp name="HTTPSampler.method">GET</stringProp>
3883           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
3884           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
3885           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
3886           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
3887           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
3888           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
3889           <stringProp name="HTTPSampler.response_timeout"></stringProp>
3890         </HTTPSamplerProxy>
3891         <hashTree>
3892           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
3893             <collectionProp name="Asserion.test_strings">
3894               <stringProp name="49586">200</stringProp>
3895             </collectionProp>
3896             <stringProp name="Assertion.custom_message"></stringProp>
3897             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
3898             <boolProp name="Assertion.assume_success">false</boolProp>
3899             <intProp name="Assertion.test_type">1</intProp>
3900           </ResponseAssertion>
3901           <hashTree/>
3902           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
3903             <stringProp name="scriptLanguage">groovy</stringProp>
3904             <stringProp name="parameters"></stringProp>
3905             <stringProp name="filename"></stringProp>
3906             <stringProp name="cacheKey">true</stringProp>
3907             <stringProp name="script">import groovy.json.JsonSlurper;
3908
3909 def res = [];
3910 if (prev.getResponseCode() == &apos;200&apos;) {
3911     def jsonSlurper = new JsonSlurper();
3912     res = jsonSlurper.parseText(prev.getResponseDataAsString());
3913
3914     assert res instanceof Map;
3915     assert res.policy_types instanceof List;
3916     assert res.policy_types.size == 1;
3917
3918     assert res.policy_types[0] instanceof Map;
3919     assert res.policy_types[0].get(&apos;onap.policies.monitoring.cdap.tca.hi.lo.app&apos;).version == &quot;10.0.0&quot;;
3920 }</stringProp>
3921           </JSR223Assertion>
3922           <hashTree/>
3923         </hashTree>
3924         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get TCA Policy Type V11" enabled="true">
3925           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
3926             <collectionProp name="Arguments.arguments"/>
3927           </elementProp>
3928           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
3929           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
3930           <stringProp name="HTTPSampler.protocol">https</stringProp>
3931           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
3932           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/11.0.0</stringProp>
3933           <stringProp name="HTTPSampler.method">GET</stringProp>
3934           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
3935           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
3936           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
3937           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
3938           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
3939           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
3940           <stringProp name="HTTPSampler.response_timeout"></stringProp>
3941         </HTTPSamplerProxy>
3942         <hashTree>
3943           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
3944             <collectionProp name="Asserion.test_strings">
3945               <stringProp name="49586">200</stringProp>
3946             </collectionProp>
3947             <stringProp name="Assertion.custom_message"></stringProp>
3948             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
3949             <boolProp name="Assertion.assume_success">false</boolProp>
3950             <intProp name="Assertion.test_type">1</intProp>
3951           </ResponseAssertion>
3952           <hashTree/>
3953           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
3954             <stringProp name="scriptLanguage">groovy</stringProp>
3955             <stringProp name="parameters"></stringProp>
3956             <stringProp name="filename"></stringProp>
3957             <stringProp name="cacheKey">true</stringProp>
3958             <stringProp name="script">import groovy.json.JsonSlurper;
3959
3960 def res = [];
3961 if (prev.getResponseCode() == &apos;200&apos;) {
3962     def jsonSlurper = new JsonSlurper();
3963     res = jsonSlurper.parseText(prev.getResponseDataAsString());
3964
3965     assert res instanceof Map;
3966     assert res.policy_types instanceof List;
3967     assert res.policy_types.size == 1;
3968
3969     assert res.policy_types[0] instanceof Map;
3970     assert res.policy_types[0].get(&apos;onap.policies.monitoring.cdap.tca.hi.lo.app&apos;).version == &quot;11.0.0&quot;;
3971 }</stringProp>
3972           </JSR223Assertion>
3973           <hashTree/>
3974         </hashTree>
3975         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Latest TCA Policy Type" enabled="true">
3976           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
3977             <collectionProp name="Arguments.arguments"/>
3978           </elementProp>
3979           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
3980           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
3981           <stringProp name="HTTPSampler.protocol">https</stringProp>
3982           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
3983           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/latest</stringProp>
3984           <stringProp name="HTTPSampler.method">GET</stringProp>
3985           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
3986           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
3987           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
3988           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
3989           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
3990           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
3991           <stringProp name="HTTPSampler.response_timeout"></stringProp>
3992         </HTTPSamplerProxy>
3993         <hashTree>
3994           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
3995             <collectionProp name="Asserion.test_strings">
3996               <stringProp name="49586">200</stringProp>
3997             </collectionProp>
3998             <stringProp name="Assertion.custom_message"></stringProp>
3999             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
4000             <boolProp name="Assertion.assume_success">false</boolProp>
4001             <intProp name="Assertion.test_type">1</intProp>
4002           </ResponseAssertion>
4003           <hashTree/>
4004           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
4005             <stringProp name="scriptLanguage">groovy</stringProp>
4006             <stringProp name="parameters"></stringProp>
4007             <stringProp name="filename"></stringProp>
4008             <stringProp name="cacheKey">true</stringProp>
4009             <stringProp name="script">import groovy.json.JsonSlurper;
4010
4011 def res = [];
4012 if (prev.getResponseCode() == &apos;200&apos;) {
4013     def jsonSlurper = new JsonSlurper();
4014     res = jsonSlurper.parseText(prev.getResponseDataAsString());
4015
4016     assert res instanceof Map;
4017     assert res.policy_types instanceof List;
4018     assert res.policy_types.size == 1;
4019
4020     assert res.policy_types[0] instanceof Map;
4021     assert res.policy_types[0].get(&apos;onap.policies.monitoring.cdap.tca.hi.lo.app&apos;).version == &quot;11.0.0&quot;;
4022 }</stringProp>
4023           </JSR223Assertion>
4024           <hashTree/>
4025         </hashTree>
4026         <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true">
4027           <stringProp name="ConstantTimer.delay">10000</stringProp>
4028         </ConstantTimer>
4029         <hashTree/>
4030         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create TCA Policy V1 " enabled="true">
4031           <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
4032           <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
4033             <collectionProp name="Arguments.arguments">
4034               <elementProp name="" elementType="HTTPArgument">
4035                 <boolProp name="HTTPArgument.always_encode">false</boolProp>
4036                 <stringProp name="Argument.value">{&#xd;
4037     &quot;tosca_definitions_version&quot;: &quot;tosca_simple_yaml_1_0_0&quot;,&#xd;
4038     &quot;topology_template&quot;: {&#xd;
4039         &quot;policies&quot;: [&#xd;
4040             {&#xd;
4041                 &quot;onap.restart.tca&quot;: {&#xd;
4042                     &quot;type&quot;: &quot;onap.policies.monitoring.cdap.tca.hi.lo.app&quot;,&#xd;
4043                     &quot;version&quot;: &quot;1.0.0&quot;,&#xd;
4044                     &quot;type_version&quot;: &quot;2.0.0&quot;,&#xd;
4045                     &quot;metadata&quot;: {&#xd;
4046                         &quot;policy-id&quot;: &quot;onap.restart.tca&quot;&#xd;
4047                     },&#xd;
4048                     &quot;properties&quot;: {&#xd;
4049                         &quot;tca_policy&quot; : {&#xd;
4050                             &quot;domain&quot;: &quot;measurementsForVfScaling&quot;,&#xd;
4051                             &quot;metricsPerEventName&quot;: [&#xd;
4052                                 {&#xd;
4053                                     &quot;eventName&quot;: &quot;Measurement_vGMUX&quot;,&#xd;
4054                                     &quot;controlLoopSchemaType&quot;: &quot;VNF&quot;,&#xd;
4055                                     &quot;policyScope&quot;: &quot;DCAE&quot;,&#xd;
4056                                     &quot;policyName&quot;: &quot;DCAE.Config_tca-hi-lo&quot;,&#xd;
4057                                     &quot;policyVersion&quot;: &quot;v0.0.1&quot;,&#xd;
4058                                     &quot;thresholds&quot;: [&#xd;
4059                                         {&#xd;
4060                                             &quot;closedLoopControlName&quot;: &quot;ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e&quot;,&#xd;
4061                                             &quot;version&quot;: &quot;1.0.2&quot;,&#xd;
4062                                             &quot;fieldPath&quot;: &quot;$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value&quot;,&#xd;
4063                                             &quot;thresholdValue&quot;: 0,&#xd;
4064                                             &quot;direction&quot;: &quot;EQUAL&quot;,&#xd;
4065                                             &quot;severity&quot;: &quot;MAJOR&quot;,&#xd;
4066                                             &quot;closedLoopEventStatus&quot;: &quot;ABATED&quot;&#xd;
4067                                         },&#xd;
4068                                         {&#xd;
4069                                             &quot;closedLoopControlName&quot;: &quot;ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e&quot;,&#xd;
4070                                             &quot;version&quot;: &quot;1.0.2&quot;,&#xd;
4071                                             &quot;fieldPath&quot;: &quot;$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value&quot;,&#xd;
4072                                             &quot;thresholdValue&quot;: 0,&#xd;
4073                                             &quot;direction&quot;: &quot;GREATER&quot;,&#xd;
4074                                             &quot;severity&quot;: &quot;CRITICAL&quot;,&#xd;
4075                                             &quot;closedLoopEventStatus&quot;: &quot;ONSET&quot;&#xd;
4076                                         }&#xd;
4077                                     ]&#xd;
4078                                 }&#xd;
4079                             ]&#xd;
4080                         }&#xd;
4081                     }&#xd;
4082                 }&#xd;
4083             }&#xd;
4084         ]&#xd;
4085     }&#xd;
4086 }</stringProp>
4087                 <stringProp name="Argument.metadata">=</stringProp>
4088               </elementProp>
4089             </collectionProp>
4090           </elementProp>
4091           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
4092           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
4093           <stringProp name="HTTPSampler.protocol">https</stringProp>
4094           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
4095           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/2.0.0/policies</stringProp>
4096           <stringProp name="HTTPSampler.method">POST</stringProp>
4097           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
4098           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
4099           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
4100           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
4101           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
4102           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
4103           <stringProp name="HTTPSampler.response_timeout"></stringProp>
4104         </HTTPSamplerProxy>
4105         <hashTree>
4106           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
4107             <collectionProp name="Asserion.test_strings">
4108               <stringProp name="49586">200</stringProp>
4109             </collectionProp>
4110             <stringProp name="Assertion.custom_message"></stringProp>
4111             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
4112             <boolProp name="Assertion.assume_success">false</boolProp>
4113             <intProp name="Assertion.test_type">1</intProp>
4114           </ResponseAssertion>
4115           <hashTree/>
4116           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
4117             <stringProp name="scriptLanguage">groovy</stringProp>
4118             <stringProp name="parameters"></stringProp>
4119             <stringProp name="filename"></stringProp>
4120             <stringProp name="cacheKey">true</stringProp>
4121             <stringProp name="script">import groovy.json.JsonSlurper;
4122
4123 def res = [];
4124 if (prev.getResponseCode() == &apos;200&apos;) {
4125     def jsonSlurper = new JsonSlurper();
4126     res = jsonSlurper.parseText(prev.getResponseDataAsString());
4127
4128     assert res instanceof Map;
4129     assert res.topology_template.policies instanceof List;
4130     assert res.topology_template.policies.size == 1;
4131     assert res.topology_template.policies[0] instanceof Map;
4132 }</stringProp>
4133           </JSR223Assertion>
4134           <hashTree/>
4135         </hashTree>
4136         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create TCA Policy V2" enabled="true">
4137           <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
4138           <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
4139             <collectionProp name="Arguments.arguments">
4140               <elementProp name="" elementType="HTTPArgument">
4141                 <boolProp name="HTTPArgument.always_encode">false</boolProp>
4142                 <stringProp name="Argument.value">{&#xd;
4143     &quot;tosca_definitions_version&quot;: &quot;tosca_simple_yaml_1_0_0&quot;,&#xd;
4144     &quot;topology_template&quot;: {&#xd;
4145         &quot;policies&quot;: [&#xd;
4146             {&#xd;
4147                 &quot;onap.restart.tca&quot;: {&#xd;
4148                     &quot;type&quot;: &quot;onap.policies.monitoring.cdap.tca.hi.lo.app&quot;,&#xd;
4149                     &quot;version&quot;: &quot;2.0.0&quot;,&#xd;
4150                     &quot;type_version&quot;: &quot;2.0.0&quot;,&#xd;
4151                     &quot;metadata&quot;: {&#xd;
4152                         &quot;policy-id&quot;: &quot;onap.restart.tca&quot;&#xd;
4153                     },&#xd;
4154                     &quot;properties&quot;: {&#xd;
4155                         &quot;tca_policy&quot; : {&#xd;
4156                             &quot;domain&quot;: &quot;measurementsForVfScaling&quot;,&#xd;
4157                             &quot;metricsPerEventName&quot;: [&#xd;
4158                                 {&#xd;
4159                                     &quot;eventName&quot;: &quot;Measurement_vGMUX&quot;,&#xd;
4160                                     &quot;controlLoopSchemaType&quot;: &quot;VNF&quot;,&#xd;
4161                                     &quot;policyScope&quot;: &quot;DCAE&quot;,&#xd;
4162                                     &quot;policyName&quot;: &quot;DCAE.Config_tca-hi-lo&quot;,&#xd;
4163                                     &quot;policyVersion&quot;: &quot;v0.0.1&quot;,&#xd;
4164                                     &quot;thresholds&quot;: [&#xd;
4165                                         {&#xd;
4166                                             &quot;closedLoopControlName&quot;: &quot;ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e&quot;,&#xd;
4167                                             &quot;version&quot;: &quot;1.0.2&quot;,&#xd;
4168                                             &quot;fieldPath&quot;: &quot;$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value&quot;,&#xd;
4169                                             &quot;thresholdValue&quot;: 0,&#xd;
4170                                             &quot;direction&quot;: &quot;EQUAL&quot;,&#xd;
4171                                             &quot;severity&quot;: &quot;MAJOR&quot;,&#xd;
4172                                             &quot;closedLoopEventStatus&quot;: &quot;ABATED&quot;&#xd;
4173                                         },&#xd;
4174                                         {&#xd;
4175                                             &quot;closedLoopControlName&quot;: &quot;ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e&quot;,&#xd;
4176                                             &quot;version&quot;: &quot;1.0.2&quot;,&#xd;
4177                                             &quot;fieldPath&quot;: &quot;$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value&quot;,&#xd;
4178                                             &quot;thresholdValue&quot;: 0,&#xd;
4179                                             &quot;direction&quot;: &quot;GREATER&quot;,&#xd;
4180                                             &quot;severity&quot;: &quot;CRITICAL&quot;,&#xd;
4181                                             &quot;closedLoopEventStatus&quot;: &quot;ONSET&quot;&#xd;
4182                                         }&#xd;
4183                                     ]&#xd;
4184                                 }&#xd;
4185                             ]&#xd;
4186                         }&#xd;
4187                     }&#xd;
4188                 }&#xd;
4189             }&#xd;
4190         ]&#xd;
4191     }&#xd;
4192 }</stringProp>
4193                 <stringProp name="Argument.metadata">=</stringProp>
4194               </elementProp>
4195             </collectionProp>
4196           </elementProp>
4197           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
4198           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
4199           <stringProp name="HTTPSampler.protocol">https</stringProp>
4200           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
4201           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/2.0.0/policies</stringProp>
4202           <stringProp name="HTTPSampler.method">POST</stringProp>
4203           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
4204           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
4205           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
4206           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
4207           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
4208           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
4209           <stringProp name="HTTPSampler.response_timeout"></stringProp>
4210         </HTTPSamplerProxy>
4211         <hashTree>
4212           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
4213             <collectionProp name="Asserion.test_strings">
4214               <stringProp name="49586">200</stringProp>
4215             </collectionProp>
4216             <stringProp name="Assertion.custom_message"></stringProp>
4217             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
4218             <boolProp name="Assertion.assume_success">false</boolProp>
4219             <intProp name="Assertion.test_type">1</intProp>
4220           </ResponseAssertion>
4221           <hashTree/>
4222           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
4223             <stringProp name="scriptLanguage">groovy</stringProp>
4224             <stringProp name="parameters"></stringProp>
4225             <stringProp name="filename"></stringProp>
4226             <stringProp name="cacheKey">true</stringProp>
4227             <stringProp name="script">import groovy.json.JsonSlurper;
4228
4229 def res = [];
4230 if (prev.getResponseCode() == &apos;200&apos;) {
4231     def jsonSlurper = new JsonSlurper();
4232     res = jsonSlurper.parseText(prev.getResponseDataAsString());
4233
4234     assert res instanceof Map;
4235     assert res.topology_template.policies instanceof List;
4236     assert res.topology_template.policies.size == 1;
4237     assert res.topology_template.policies[0] instanceof Map;
4238 }</stringProp>
4239           </JSR223Assertion>
4240           <hashTree/>
4241         </hashTree>
4242         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create TCA Policy V3" enabled="true">
4243           <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
4244           <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
4245             <collectionProp name="Arguments.arguments">
4246               <elementProp name="" elementType="HTTPArgument">
4247                 <boolProp name="HTTPArgument.always_encode">false</boolProp>
4248                 <stringProp name="Argument.value">{&#xd;
4249     &quot;tosca_definitions_version&quot;: &quot;tosca_simple_yaml_1_0_0&quot;,&#xd;
4250     &quot;topology_template&quot;: {&#xd;
4251         &quot;policies&quot;: [&#xd;
4252             {&#xd;
4253                 &quot;onap.restart.tca&quot;: {&#xd;
4254                     &quot;type&quot;: &quot;onap.policies.monitoring.cdap.tca.hi.lo.app&quot;,&#xd;
4255                     &quot;version&quot;: &quot;3.0.0&quot;,&#xd;
4256                     &quot;type_version&quot;: &quot;2.0.0&quot;,&#xd;
4257                     &quot;metadata&quot;: {&#xd;
4258                         &quot;policy-id&quot;: &quot;onap.restart.tca&quot;&#xd;
4259                     },&#xd;
4260                     &quot;properties&quot;: {&#xd;
4261                         &quot;tca_policy&quot; : {&#xd;
4262                             &quot;domain&quot;: &quot;measurementsForVfScaling&quot;,&#xd;
4263                             &quot;metricsPerEventName&quot;: [&#xd;
4264                                 {&#xd;
4265                                     &quot;eventName&quot;: &quot;Measurement_vGMUX&quot;,&#xd;
4266                                     &quot;controlLoopSchemaType&quot;: &quot;VNF&quot;,&#xd;
4267                                     &quot;policyScope&quot;: &quot;DCAE&quot;,&#xd;
4268                                     &quot;policyName&quot;: &quot;DCAE.Config_tca-hi-lo&quot;,&#xd;
4269                                     &quot;policyVersion&quot;: &quot;v0.0.1&quot;,&#xd;
4270                                     &quot;thresholds&quot;: [&#xd;
4271                                         {&#xd;
4272                                             &quot;closedLoopControlName&quot;: &quot;ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e&quot;,&#xd;
4273                                             &quot;version&quot;: &quot;1.0.2&quot;,&#xd;
4274                                             &quot;fieldPath&quot;: &quot;$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value&quot;,&#xd;
4275                                             &quot;thresholdValue&quot;: 0,&#xd;
4276                                             &quot;direction&quot;: &quot;EQUAL&quot;,&#xd;
4277                                             &quot;severity&quot;: &quot;MAJOR&quot;,&#xd;
4278                                             &quot;closedLoopEventStatus&quot;: &quot;ABATED&quot;&#xd;
4279                                         },&#xd;
4280                                         {&#xd;
4281                                             &quot;closedLoopControlName&quot;: &quot;ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e&quot;,&#xd;
4282                                             &quot;version&quot;: &quot;1.0.2&quot;,&#xd;
4283                                             &quot;fieldPath&quot;: &quot;$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value&quot;,&#xd;
4284                                             &quot;thresholdValue&quot;: 0,&#xd;
4285                                             &quot;direction&quot;: &quot;GREATER&quot;,&#xd;
4286                                             &quot;severity&quot;: &quot;CRITICAL&quot;,&#xd;
4287                                             &quot;closedLoopEventStatus&quot;: &quot;ONSET&quot;&#xd;
4288                                         }&#xd;
4289                                     ]&#xd;
4290                                 }&#xd;
4291                             ]&#xd;
4292                         }&#xd;
4293                     }&#xd;
4294                 }&#xd;
4295             }&#xd;
4296         ]&#xd;
4297     }&#xd;
4298 }</stringProp>
4299                 <stringProp name="Argument.metadata">=</stringProp>
4300               </elementProp>
4301             </collectionProp>
4302           </elementProp>
4303           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
4304           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
4305           <stringProp name="HTTPSampler.protocol">https</stringProp>
4306           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
4307           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/2.0.0/policies</stringProp>
4308           <stringProp name="HTTPSampler.method">POST</stringProp>
4309           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
4310           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
4311           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
4312           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
4313           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
4314           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
4315           <stringProp name="HTTPSampler.response_timeout"></stringProp>
4316         </HTTPSamplerProxy>
4317         <hashTree>
4318           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
4319             <collectionProp name="Asserion.test_strings">
4320               <stringProp name="49586">200</stringProp>
4321             </collectionProp>
4322             <stringProp name="Assertion.custom_message"></stringProp>
4323             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
4324             <boolProp name="Assertion.assume_success">false</boolProp>
4325             <intProp name="Assertion.test_type">1</intProp>
4326           </ResponseAssertion>
4327           <hashTree/>
4328           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
4329             <stringProp name="scriptLanguage">groovy</stringProp>
4330             <stringProp name="parameters"></stringProp>
4331             <stringProp name="filename"></stringProp>
4332             <stringProp name="cacheKey">true</stringProp>
4333             <stringProp name="script">import groovy.json.JsonSlurper;
4334
4335 def res = [];
4336 if (prev.getResponseCode() == &apos;200&apos;) {
4337     def jsonSlurper = new JsonSlurper();
4338     res = jsonSlurper.parseText(prev.getResponseDataAsString());
4339
4340     assert res instanceof Map;
4341     assert res.topology_template.policies instanceof List;
4342     assert res.topology_template.policies.size == 1;
4343     assert res.topology_template.policies[0] instanceof Map;
4344 }</stringProp>
4345           </JSR223Assertion>
4346           <hashTree/>
4347         </hashTree>
4348         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create TCA Policy V4" enabled="true">
4349           <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
4350           <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
4351             <collectionProp name="Arguments.arguments">
4352               <elementProp name="" elementType="HTTPArgument">
4353                 <boolProp name="HTTPArgument.always_encode">false</boolProp>
4354                 <stringProp name="Argument.value">{&#xd;
4355     &quot;tosca_definitions_version&quot;: &quot;tosca_simple_yaml_1_0_0&quot;,&#xd;
4356     &quot;topology_template&quot;: {&#xd;
4357         &quot;policies&quot;: [&#xd;
4358             {&#xd;
4359                 &quot;onap.restart.tca&quot;: {&#xd;
4360                     &quot;type&quot;: &quot;onap.policies.monitoring.cdap.tca.hi.lo.app&quot;,&#xd;
4361                     &quot;version&quot;: &quot;4.0.0&quot;,&#xd;
4362                     &quot;type_version&quot;: &quot;2.0.0&quot;,&#xd;
4363                     &quot;metadata&quot;: {&#xd;
4364                         &quot;policy-id&quot;: &quot;onap.restart.tca&quot;&#xd;
4365                     },&#xd;
4366                     &quot;properties&quot;: {&#xd;
4367                         &quot;tca_policy&quot; : {&#xd;
4368                             &quot;domain&quot;: &quot;measurementsForVfScaling&quot;,&#xd;
4369                             &quot;metricsPerEventName&quot;: [&#xd;
4370                                 {&#xd;
4371                                     &quot;eventName&quot;: &quot;Measurement_vGMUX&quot;,&#xd;
4372                                     &quot;controlLoopSchemaType&quot;: &quot;VNF&quot;,&#xd;
4373                                     &quot;policyScope&quot;: &quot;DCAE&quot;,&#xd;
4374                                     &quot;policyName&quot;: &quot;DCAE.Config_tca-hi-lo&quot;,&#xd;
4375                                     &quot;policyVersion&quot;: &quot;v0.0.1&quot;,&#xd;
4376                                     &quot;thresholds&quot;: [&#xd;
4377                                         {&#xd;
4378                                             &quot;closedLoopControlName&quot;: &quot;ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e&quot;,&#xd;
4379                                             &quot;version&quot;: &quot;1.0.2&quot;,&#xd;
4380                                             &quot;fieldPath&quot;: &quot;$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value&quot;,&#xd;
4381                                             &quot;thresholdValue&quot;: 0,&#xd;
4382                                             &quot;direction&quot;: &quot;EQUAL&quot;,&#xd;
4383                                             &quot;severity&quot;: &quot;MAJOR&quot;,&#xd;
4384                                             &quot;closedLoopEventStatus&quot;: &quot;ABATED&quot;&#xd;
4385                                         },&#xd;
4386                                         {&#xd;
4387                                             &quot;closedLoopControlName&quot;: &quot;ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e&quot;,&#xd;
4388                                             &quot;version&quot;: &quot;1.0.2&quot;,&#xd;
4389                                             &quot;fieldPath&quot;: &quot;$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value&quot;,&#xd;
4390                                             &quot;thresholdValue&quot;: 0,&#xd;
4391                                             &quot;direction&quot;: &quot;GREATER&quot;,&#xd;
4392                                             &quot;severity&quot;: &quot;CRITICAL&quot;,&#xd;
4393                                             &quot;closedLoopEventStatus&quot;: &quot;ONSET&quot;&#xd;
4394                                         }&#xd;
4395                                     ]&#xd;
4396                                 }&#xd;
4397                             ]&#xd;
4398                         }&#xd;
4399                     }&#xd;
4400                 }&#xd;
4401             }&#xd;
4402         ]&#xd;
4403     }&#xd;
4404 }</stringProp>
4405                 <stringProp name="Argument.metadata">=</stringProp>
4406               </elementProp>
4407             </collectionProp>
4408           </elementProp>
4409           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
4410           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
4411           <stringProp name="HTTPSampler.protocol">https</stringProp>
4412           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
4413           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/2.0.0/policies</stringProp>
4414           <stringProp name="HTTPSampler.method">POST</stringProp>
4415           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
4416           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
4417           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
4418           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
4419           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
4420           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
4421           <stringProp name="HTTPSampler.response_timeout"></stringProp>
4422         </HTTPSamplerProxy>
4423         <hashTree>
4424           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
4425             <collectionProp name="Asserion.test_strings">
4426               <stringProp name="49586">200</stringProp>
4427             </collectionProp>
4428             <stringProp name="Assertion.custom_message"></stringProp>
4429             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
4430             <boolProp name="Assertion.assume_success">false</boolProp>
4431             <intProp name="Assertion.test_type">1</intProp>
4432           </ResponseAssertion>
4433           <hashTree/>
4434           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
4435             <stringProp name="scriptLanguage">groovy</stringProp>
4436             <stringProp name="parameters"></stringProp>
4437             <stringProp name="filename"></stringProp>
4438             <stringProp name="cacheKey">true</stringProp>
4439             <stringProp name="script">import groovy.json.JsonSlurper;
4440
4441 def res = [];
4442 if (prev.getResponseCode() == &apos;200&apos;) {
4443     def jsonSlurper = new JsonSlurper();
4444     res = jsonSlurper.parseText(prev.getResponseDataAsString());
4445
4446     assert res instanceof Map;
4447     assert res.topology_template.policies instanceof List;
4448     assert res.topology_template.policies.size == 1;
4449     assert res.topology_template.policies[0] instanceof Map;
4450 }</stringProp>
4451           </JSR223Assertion>
4452           <hashTree/>
4453         </hashTree>
4454         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create TCA Policy V5" enabled="true">
4455           <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
4456           <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
4457             <collectionProp name="Arguments.arguments">
4458               <elementProp name="" elementType="HTTPArgument">
4459                 <boolProp name="HTTPArgument.always_encode">false</boolProp>
4460                 <stringProp name="Argument.value">{&#xd;
4461     &quot;tosca_definitions_version&quot;: &quot;tosca_simple_yaml_1_0_0&quot;,&#xd;
4462     &quot;topology_template&quot;: {&#xd;
4463         &quot;policies&quot;: [&#xd;
4464             {&#xd;
4465                 &quot;onap.restart.tca&quot;: {&#xd;
4466                     &quot;type&quot;: &quot;onap.policies.monitoring.cdap.tca.hi.lo.app&quot;,&#xd;
4467                     &quot;version&quot;: &quot;5.0.0&quot;,&#xd;
4468                     &quot;type_version&quot;: &quot;2.0.0&quot;,&#xd;
4469                     &quot;metadata&quot;: {&#xd;
4470                         &quot;policy-id&quot;: &quot;onap.restart.tca&quot;&#xd;
4471                     },&#xd;
4472                     &quot;properties&quot;: {&#xd;
4473                         &quot;tca_policy&quot; : {&#xd;
4474                             &quot;domain&quot;: &quot;measurementsForVfScaling&quot;,&#xd;
4475                             &quot;metricsPerEventName&quot;: [&#xd;
4476                                 {&#xd;
4477                                     &quot;eventName&quot;: &quot;Measurement_vGMUX&quot;,&#xd;
4478                                     &quot;controlLoopSchemaType&quot;: &quot;VNF&quot;,&#xd;
4479                                     &quot;policyScope&quot;: &quot;DCAE&quot;,&#xd;
4480                                     &quot;policyName&quot;: &quot;DCAE.Config_tca-hi-lo&quot;,&#xd;
4481                                     &quot;policyVersion&quot;: &quot;v0.0.1&quot;,&#xd;
4482                                     &quot;thresholds&quot;: [&#xd;
4483                                         {&#xd;
4484                                             &quot;closedLoopControlName&quot;: &quot;ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e&quot;,&#xd;
4485                                             &quot;version&quot;: &quot;1.0.2&quot;,&#xd;
4486                                             &quot;fieldPath&quot;: &quot;$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value&quot;,&#xd;
4487                                             &quot;thresholdValue&quot;: 0,&#xd;
4488                                             &quot;direction&quot;: &quot;EQUAL&quot;,&#xd;
4489                                             &quot;severity&quot;: &quot;MAJOR&quot;,&#xd;
4490                                             &quot;closedLoopEventStatus&quot;: &quot;ABATED&quot;&#xd;
4491                                         },&#xd;
4492                                         {&#xd;
4493                                             &quot;closedLoopControlName&quot;: &quot;ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e&quot;,&#xd;
4494                                             &quot;version&quot;: &quot;1.0.2&quot;,&#xd;
4495                                             &quot;fieldPath&quot;: &quot;$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value&quot;,&#xd;
4496                                             &quot;thresholdValue&quot;: 0,&#xd;
4497                                             &quot;direction&quot;: &quot;GREATER&quot;,&#xd;
4498                                             &quot;severity&quot;: &quot;CRITICAL&quot;,&#xd;
4499                                             &quot;closedLoopEventStatus&quot;: &quot;ONSET&quot;&#xd;
4500                                         }&#xd;
4501                                     ]&#xd;
4502                                 }&#xd;
4503                             ]&#xd;
4504                         }&#xd;
4505                     }&#xd;
4506                 }&#xd;
4507             }&#xd;
4508         ]&#xd;
4509     }&#xd;
4510 }</stringProp>
4511                 <stringProp name="Argument.metadata">=</stringProp>
4512               </elementProp>
4513             </collectionProp>
4514           </elementProp>
4515           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
4516           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
4517           <stringProp name="HTTPSampler.protocol">https</stringProp>
4518           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
4519           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/2.0.0/policies</stringProp>
4520           <stringProp name="HTTPSampler.method">POST</stringProp>
4521           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
4522           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
4523           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
4524           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
4525           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
4526           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
4527           <stringProp name="HTTPSampler.response_timeout"></stringProp>
4528         </HTTPSamplerProxy>
4529         <hashTree>
4530           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
4531             <collectionProp name="Asserion.test_strings">
4532               <stringProp name="49586">200</stringProp>
4533             </collectionProp>
4534             <stringProp name="Assertion.custom_message"></stringProp>
4535             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
4536             <boolProp name="Assertion.assume_success">false</boolProp>
4537             <intProp name="Assertion.test_type">1</intProp>
4538           </ResponseAssertion>
4539           <hashTree/>
4540           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
4541             <stringProp name="scriptLanguage">groovy</stringProp>
4542             <stringProp name="parameters"></stringProp>
4543             <stringProp name="filename"></stringProp>
4544             <stringProp name="cacheKey">true</stringProp>
4545             <stringProp name="script">import groovy.json.JsonSlurper;
4546
4547 def res = [];
4548 if (prev.getResponseCode() == &apos;200&apos;) {
4549     def jsonSlurper = new JsonSlurper();
4550     res = jsonSlurper.parseText(prev.getResponseDataAsString());
4551
4552     assert res instanceof Map;
4553     assert res.topology_template.policies instanceof List;
4554     assert res.topology_template.policies.size == 1;
4555     assert res.topology_template.policies[0] instanceof Map;
4556 }</stringProp>
4557           </JSR223Assertion>
4558           <hashTree/>
4559         </hashTree>
4560         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create TCA Policy V6" enabled="true">
4561           <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
4562           <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
4563             <collectionProp name="Arguments.arguments">
4564               <elementProp name="" elementType="HTTPArgument">
4565                 <boolProp name="HTTPArgument.always_encode">false</boolProp>
4566                 <stringProp name="Argument.value">{&#xd;
4567     &quot;tosca_definitions_version&quot;: &quot;tosca_simple_yaml_1_0_0&quot;,&#xd;
4568     &quot;topology_template&quot;: {&#xd;
4569         &quot;policies&quot;: [&#xd;
4570             {&#xd;
4571                 &quot;onap.restart.tca&quot;: {&#xd;
4572                     &quot;type&quot;: &quot;onap.policies.monitoring.cdap.tca.hi.lo.app&quot;,&#xd;
4573                     &quot;version&quot;: &quot;6.0.0&quot;,&#xd;
4574                     &quot;type_version&quot;: &quot;2.0.0&quot;,&#xd;
4575                     &quot;metadata&quot;: {&#xd;
4576                         &quot;policy-id&quot;: &quot;onap.restart.tca&quot;&#xd;
4577                     },&#xd;
4578                     &quot;properties&quot;: {&#xd;
4579                         &quot;tca_policy&quot; : {&#xd;
4580                             &quot;domain&quot;: &quot;measurementsForVfScaling&quot;,&#xd;
4581                             &quot;metricsPerEventName&quot;: [&#xd;
4582                                 {&#xd;
4583                                     &quot;eventName&quot;: &quot;Measurement_vGMUX&quot;,&#xd;
4584                                     &quot;controlLoopSchemaType&quot;: &quot;VNF&quot;,&#xd;
4585                                     &quot;policyScope&quot;: &quot;DCAE&quot;,&#xd;
4586                                     &quot;policyName&quot;: &quot;DCAE.Config_tca-hi-lo&quot;,&#xd;
4587                                     &quot;policyVersion&quot;: &quot;v0.0.1&quot;,&#xd;
4588                                     &quot;thresholds&quot;: [&#xd;
4589                                         {&#xd;
4590                                             &quot;closedLoopControlName&quot;: &quot;ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e&quot;,&#xd;
4591                                             &quot;version&quot;: &quot;1.0.2&quot;,&#xd;
4592                                             &quot;fieldPath&quot;: &quot;$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value&quot;,&#xd;
4593                                             &quot;thresholdValue&quot;: 0,&#xd;
4594                                             &quot;direction&quot;: &quot;EQUAL&quot;,&#xd;
4595                                             &quot;severity&quot;: &quot;MAJOR&quot;,&#xd;
4596                                             &quot;closedLoopEventStatus&quot;: &quot;ABATED&quot;&#xd;
4597                                         },&#xd;
4598                                         {&#xd;
4599                                             &quot;closedLoopControlName&quot;: &quot;ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e&quot;,&#xd;
4600                                             &quot;version&quot;: &quot;1.0.2&quot;,&#xd;
4601                                             &quot;fieldPath&quot;: &quot;$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value&quot;,&#xd;
4602                                             &quot;thresholdValue&quot;: 0,&#xd;
4603                                             &quot;direction&quot;: &quot;GREATER&quot;,&#xd;
4604                                             &quot;severity&quot;: &quot;CRITICAL&quot;,&#xd;
4605                                             &quot;closedLoopEventStatus&quot;: &quot;ONSET&quot;&#xd;
4606                                         }&#xd;
4607                                     ]&#xd;
4608                                 }&#xd;
4609                             ]&#xd;
4610                         }&#xd;
4611                     }&#xd;
4612                 }&#xd;
4613             }&#xd;
4614         ]&#xd;
4615     }&#xd;
4616 }</stringProp>
4617                 <stringProp name="Argument.metadata">=</stringProp>
4618               </elementProp>
4619             </collectionProp>
4620           </elementProp>
4621           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
4622           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
4623           <stringProp name="HTTPSampler.protocol">https</stringProp>
4624           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
4625           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/2.0.0/policies</stringProp>
4626           <stringProp name="HTTPSampler.method">POST</stringProp>
4627           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
4628           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
4629           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
4630           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
4631           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
4632           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
4633           <stringProp name="HTTPSampler.response_timeout"></stringProp>
4634         </HTTPSamplerProxy>
4635         <hashTree>
4636           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
4637             <collectionProp name="Asserion.test_strings">
4638               <stringProp name="49586">200</stringProp>
4639             </collectionProp>
4640             <stringProp name="Assertion.custom_message"></stringProp>
4641             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
4642             <boolProp name="Assertion.assume_success">false</boolProp>
4643             <intProp name="Assertion.test_type">1</intProp>
4644           </ResponseAssertion>
4645           <hashTree/>
4646           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
4647             <stringProp name="scriptLanguage">groovy</stringProp>
4648             <stringProp name="parameters"></stringProp>
4649             <stringProp name="filename"></stringProp>
4650             <stringProp name="cacheKey">true</stringProp>
4651             <stringProp name="script">import groovy.json.JsonSlurper;
4652
4653 def res = [];
4654 if (prev.getResponseCode() == &apos;200&apos;) {
4655     def jsonSlurper = new JsonSlurper();
4656     res = jsonSlurper.parseText(prev.getResponseDataAsString());
4657
4658     assert res instanceof Map;
4659     assert res.topology_template.policies instanceof List;
4660     assert res.topology_template.policies.size == 1;
4661     assert res.topology_template.policies[0] instanceof Map;
4662 }</stringProp>
4663           </JSR223Assertion>
4664           <hashTree/>
4665         </hashTree>
4666         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create TCA Policy V7" enabled="true">
4667           <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
4668           <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
4669             <collectionProp name="Arguments.arguments">
4670               <elementProp name="" elementType="HTTPArgument">
4671                 <boolProp name="HTTPArgument.always_encode">false</boolProp>
4672                 <stringProp name="Argument.value">{&#xd;
4673     &quot;tosca_definitions_version&quot;: &quot;tosca_simple_yaml_1_0_0&quot;,&#xd;
4674     &quot;topology_template&quot;: {&#xd;
4675         &quot;policies&quot;: [&#xd;
4676             {&#xd;
4677                 &quot;onap.restart.tca&quot;: {&#xd;
4678                     &quot;type&quot;: &quot;onap.policies.monitoring.cdap.tca.hi.lo.app&quot;,&#xd;
4679                     &quot;version&quot;: &quot;7.0.0&quot;,&#xd;
4680                     &quot;type_version&quot;: &quot;2.0.0&quot;,&#xd;
4681                     &quot;metadata&quot;: {&#xd;
4682                         &quot;policy-id&quot;: &quot;onap.restart.tca&quot;&#xd;
4683                     },&#xd;
4684                     &quot;properties&quot;: {&#xd;
4685                         &quot;tca_policy&quot; : {&#xd;
4686                             &quot;domain&quot;: &quot;measurementsForVfScaling&quot;,&#xd;
4687                             &quot;metricsPerEventName&quot;: [&#xd;
4688                                 {&#xd;
4689                                     &quot;eventName&quot;: &quot;Measurement_vGMUX&quot;,&#xd;
4690                                     &quot;controlLoopSchemaType&quot;: &quot;VNF&quot;,&#xd;
4691                                     &quot;policyScope&quot;: &quot;DCAE&quot;,&#xd;
4692                                     &quot;policyName&quot;: &quot;DCAE.Config_tca-hi-lo&quot;,&#xd;
4693                                     &quot;policyVersion&quot;: &quot;v0.0.1&quot;,&#xd;
4694                                     &quot;thresholds&quot;: [&#xd;
4695                                         {&#xd;
4696                                             &quot;closedLoopControlName&quot;: &quot;ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e&quot;,&#xd;
4697                                             &quot;version&quot;: &quot;1.0.2&quot;,&#xd;
4698                                             &quot;fieldPath&quot;: &quot;$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value&quot;,&#xd;
4699                                             &quot;thresholdValue&quot;: 0,&#xd;
4700                                             &quot;direction&quot;: &quot;EQUAL&quot;,&#xd;
4701                                             &quot;severity&quot;: &quot;MAJOR&quot;,&#xd;
4702                                             &quot;closedLoopEventStatus&quot;: &quot;ABATED&quot;&#xd;
4703                                         },&#xd;
4704                                         {&#xd;
4705                                             &quot;closedLoopControlName&quot;: &quot;ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e&quot;,&#xd;
4706                                             &quot;version&quot;: &quot;1.0.2&quot;,&#xd;
4707                                             &quot;fieldPath&quot;: &quot;$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value&quot;,&#xd;
4708                                             &quot;thresholdValue&quot;: 0,&#xd;
4709                                             &quot;direction&quot;: &quot;GREATER&quot;,&#xd;
4710                                             &quot;severity&quot;: &quot;CRITICAL&quot;,&#xd;
4711                                             &quot;closedLoopEventStatus&quot;: &quot;ONSET&quot;&#xd;
4712                                         }&#xd;
4713                                     ]&#xd;
4714                                 }&#xd;
4715                             ]&#xd;
4716                         }&#xd;
4717                     }&#xd;
4718                 }&#xd;
4719             }&#xd;
4720         ]&#xd;
4721     }&#xd;
4722 }</stringProp>
4723                 <stringProp name="Argument.metadata">=</stringProp>
4724               </elementProp>
4725             </collectionProp>
4726           </elementProp>
4727           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
4728           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
4729           <stringProp name="HTTPSampler.protocol">https</stringProp>
4730           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
4731           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/2.0.0/policies</stringProp>
4732           <stringProp name="HTTPSampler.method">POST</stringProp>
4733           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
4734           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
4735           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
4736           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
4737           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
4738           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
4739           <stringProp name="HTTPSampler.response_timeout"></stringProp>
4740         </HTTPSamplerProxy>
4741         <hashTree>
4742           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
4743             <collectionProp name="Asserion.test_strings">
4744               <stringProp name="49586">200</stringProp>
4745             </collectionProp>
4746             <stringProp name="Assertion.custom_message"></stringProp>
4747             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
4748             <boolProp name="Assertion.assume_success">false</boolProp>
4749             <intProp name="Assertion.test_type">1</intProp>
4750           </ResponseAssertion>
4751           <hashTree/>
4752           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
4753             <stringProp name="scriptLanguage">groovy</stringProp>
4754             <stringProp name="parameters"></stringProp>
4755             <stringProp name="filename"></stringProp>
4756             <stringProp name="cacheKey">true</stringProp>
4757             <stringProp name="script">import groovy.json.JsonSlurper;
4758
4759 def res = [];
4760 if (prev.getResponseCode() == &apos;200&apos;) {
4761     def jsonSlurper = new JsonSlurper();
4762     res = jsonSlurper.parseText(prev.getResponseDataAsString());
4763
4764     assert res instanceof Map;
4765     assert res.topology_template.policies instanceof List;
4766     assert res.topology_template.policies.size == 1;
4767     assert res.topology_template.policies[0] instanceof Map;
4768 }</stringProp>
4769           </JSR223Assertion>
4770           <hashTree/>
4771         </hashTree>
4772         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create TCA Policy V8" enabled="true">
4773           <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
4774           <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
4775             <collectionProp name="Arguments.arguments">
4776               <elementProp name="" elementType="HTTPArgument">
4777                 <boolProp name="HTTPArgument.always_encode">false</boolProp>
4778                 <stringProp name="Argument.value">{&#xd;
4779     &quot;tosca_definitions_version&quot;: &quot;tosca_simple_yaml_1_0_0&quot;,&#xd;
4780     &quot;topology_template&quot;: {&#xd;
4781         &quot;policies&quot;: [&#xd;
4782             {&#xd;
4783                 &quot;onap.restart.tca&quot;: {&#xd;
4784                     &quot;type&quot;: &quot;onap.policies.monitoring.cdap.tca.hi.lo.app&quot;,&#xd;
4785                     &quot;version&quot;: &quot;8.0.0&quot;,&#xd;
4786                     &quot;type_version&quot;: &quot;2.0.0&quot;,&#xd;
4787                     &quot;metadata&quot;: {&#xd;
4788                         &quot;policy-id&quot;: &quot;onap.restart.tca&quot;&#xd;
4789                     },&#xd;
4790                     &quot;properties&quot;: {&#xd;
4791                         &quot;tca_policy&quot; : {&#xd;
4792                             &quot;domain&quot;: &quot;measurementsForVfScaling&quot;,&#xd;
4793                             &quot;metricsPerEventName&quot;: [&#xd;
4794                                 {&#xd;
4795                                     &quot;eventName&quot;: &quot;Measurement_vGMUX&quot;,&#xd;
4796                                     &quot;controlLoopSchemaType&quot;: &quot;VNF&quot;,&#xd;
4797                                     &quot;policyScope&quot;: &quot;DCAE&quot;,&#xd;
4798                                     &quot;policyName&quot;: &quot;DCAE.Config_tca-hi-lo&quot;,&#xd;
4799                                     &quot;policyVersion&quot;: &quot;v0.0.1&quot;,&#xd;
4800                                     &quot;thresholds&quot;: [&#xd;
4801                                         {&#xd;
4802                                             &quot;closedLoopControlName&quot;: &quot;ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e&quot;,&#xd;
4803                                             &quot;version&quot;: &quot;1.0.2&quot;,&#xd;
4804                                             &quot;fieldPath&quot;: &quot;$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value&quot;,&#xd;
4805                                             &quot;thresholdValue&quot;: 0,&#xd;
4806                                             &quot;direction&quot;: &quot;EQUAL&quot;,&#xd;
4807                                             &quot;severity&quot;: &quot;MAJOR&quot;,&#xd;
4808                                             &quot;closedLoopEventStatus&quot;: &quot;ABATED&quot;&#xd;
4809                                         },&#xd;
4810                                         {&#xd;
4811                                             &quot;closedLoopControlName&quot;: &quot;ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e&quot;,&#xd;
4812                                             &quot;version&quot;: &quot;1.0.2&quot;,&#xd;
4813                                             &quot;fieldPath&quot;: &quot;$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value&quot;,&#xd;
4814                                             &quot;thresholdValue&quot;: 0,&#xd;
4815                                             &quot;direction&quot;: &quot;GREATER&quot;,&#xd;
4816                                             &quot;severity&quot;: &quot;CRITICAL&quot;,&#xd;
4817                                             &quot;closedLoopEventStatus&quot;: &quot;ONSET&quot;&#xd;
4818                                         }&#xd;
4819                                     ]&#xd;
4820                                 }&#xd;
4821                             ]&#xd;
4822                         }&#xd;
4823                     }&#xd;
4824                 }&#xd;
4825             }&#xd;
4826         ]&#xd;
4827     }&#xd;
4828 }</stringProp>
4829                 <stringProp name="Argument.metadata">=</stringProp>
4830               </elementProp>
4831             </collectionProp>
4832           </elementProp>
4833           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
4834           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
4835           <stringProp name="HTTPSampler.protocol">https</stringProp>
4836           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
4837           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/2.0.0/policies</stringProp>
4838           <stringProp name="HTTPSampler.method">POST</stringProp>
4839           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
4840           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
4841           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
4842           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
4843           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
4844           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
4845           <stringProp name="HTTPSampler.response_timeout"></stringProp>
4846         </HTTPSamplerProxy>
4847         <hashTree>
4848           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
4849             <collectionProp name="Asserion.test_strings">
4850               <stringProp name="49586">200</stringProp>
4851             </collectionProp>
4852             <stringProp name="Assertion.custom_message"></stringProp>
4853             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
4854             <boolProp name="Assertion.assume_success">false</boolProp>
4855             <intProp name="Assertion.test_type">1</intProp>
4856           </ResponseAssertion>
4857           <hashTree/>
4858           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
4859             <stringProp name="scriptLanguage">groovy</stringProp>
4860             <stringProp name="parameters"></stringProp>
4861             <stringProp name="filename"></stringProp>
4862             <stringProp name="cacheKey">true</stringProp>
4863             <stringProp name="script">import groovy.json.JsonSlurper;
4864
4865 def res = [];
4866 if (prev.getResponseCode() == &apos;200&apos;) {
4867     def jsonSlurper = new JsonSlurper();
4868     res = jsonSlurper.parseText(prev.getResponseDataAsString());
4869
4870     assert res instanceof Map;
4871     assert res.topology_template.policies instanceof List;
4872     assert res.topology_template.policies.size == 1;
4873     assert res.topology_template.policies[0] instanceof Map;
4874 }</stringProp>
4875           </JSR223Assertion>
4876           <hashTree/>
4877         </hashTree>
4878         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create TCA Policy V9" enabled="true">
4879           <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
4880           <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
4881             <collectionProp name="Arguments.arguments">
4882               <elementProp name="" elementType="HTTPArgument">
4883                 <boolProp name="HTTPArgument.always_encode">false</boolProp>
4884                 <stringProp name="Argument.value">{&#xd;
4885     &quot;tosca_definitions_version&quot;: &quot;tosca_simple_yaml_1_0_0&quot;,&#xd;
4886     &quot;topology_template&quot;: {&#xd;
4887         &quot;policies&quot;: [&#xd;
4888             {&#xd;
4889                 &quot;onap.restart.tca&quot;: {&#xd;
4890                     &quot;type&quot;: &quot;onap.policies.monitoring.cdap.tca.hi.lo.app&quot;,&#xd;
4891                     &quot;version&quot;: &quot;9.0.0&quot;,&#xd;
4892                     &quot;type_version&quot;: &quot;2.0.0&quot;,&#xd;
4893                     &quot;metadata&quot;: {&#xd;
4894                         &quot;policy-id&quot;: &quot;onap.restart.tca&quot;&#xd;
4895                     },&#xd;
4896                     &quot;properties&quot;: {&#xd;
4897                         &quot;tca_policy&quot; : {&#xd;
4898                             &quot;domain&quot;: &quot;measurementsForVfScaling&quot;,&#xd;
4899                             &quot;metricsPerEventName&quot;: [&#xd;
4900                                 {&#xd;
4901                                     &quot;eventName&quot;: &quot;Measurement_vGMUX&quot;,&#xd;
4902                                     &quot;controlLoopSchemaType&quot;: &quot;VNF&quot;,&#xd;
4903                                     &quot;policyScope&quot;: &quot;DCAE&quot;,&#xd;
4904                                     &quot;policyName&quot;: &quot;DCAE.Config_tca-hi-lo&quot;,&#xd;
4905                                     &quot;policyVersion&quot;: &quot;v0.0.1&quot;,&#xd;
4906                                     &quot;thresholds&quot;: [&#xd;
4907                                         {&#xd;
4908                                             &quot;closedLoopControlName&quot;: &quot;ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e&quot;,&#xd;
4909                                             &quot;version&quot;: &quot;1.0.2&quot;,&#xd;
4910                                             &quot;fieldPath&quot;: &quot;$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value&quot;,&#xd;
4911                                             &quot;thresholdValue&quot;: 0,&#xd;
4912                                             &quot;direction&quot;: &quot;EQUAL&quot;,&#xd;
4913                                             &quot;severity&quot;: &quot;MAJOR&quot;,&#xd;
4914                                             &quot;closedLoopEventStatus&quot;: &quot;ABATED&quot;&#xd;
4915                                         },&#xd;
4916                                         {&#xd;
4917                                             &quot;closedLoopControlName&quot;: &quot;ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e&quot;,&#xd;
4918                                             &quot;version&quot;: &quot;1.0.2&quot;,&#xd;
4919                                             &quot;fieldPath&quot;: &quot;$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value&quot;,&#xd;
4920                                             &quot;thresholdValue&quot;: 0,&#xd;
4921                                             &quot;direction&quot;: &quot;GREATER&quot;,&#xd;
4922                                             &quot;severity&quot;: &quot;CRITICAL&quot;,&#xd;
4923                                             &quot;closedLoopEventStatus&quot;: &quot;ONSET&quot;&#xd;
4924                                         }&#xd;
4925                                     ]&#xd;
4926                                 }&#xd;
4927                             ]&#xd;
4928                         }&#xd;
4929                     }&#xd;
4930                 }&#xd;
4931             }&#xd;
4932         ]&#xd;
4933     }&#xd;
4934 }</stringProp>
4935                 <stringProp name="Argument.metadata">=</stringProp>
4936               </elementProp>
4937             </collectionProp>
4938           </elementProp>
4939           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
4940           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
4941           <stringProp name="HTTPSampler.protocol">https</stringProp>
4942           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
4943           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/2.0.0/policies</stringProp>
4944           <stringProp name="HTTPSampler.method">POST</stringProp>
4945           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
4946           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
4947           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
4948           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
4949           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
4950           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
4951           <stringProp name="HTTPSampler.response_timeout"></stringProp>
4952         </HTTPSamplerProxy>
4953         <hashTree>
4954           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
4955             <collectionProp name="Asserion.test_strings">
4956               <stringProp name="49586">200</stringProp>
4957             </collectionProp>
4958             <stringProp name="Assertion.custom_message"></stringProp>
4959             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
4960             <boolProp name="Assertion.assume_success">false</boolProp>
4961             <intProp name="Assertion.test_type">1</intProp>
4962           </ResponseAssertion>
4963           <hashTree/>
4964           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
4965             <stringProp name="scriptLanguage">groovy</stringProp>
4966             <stringProp name="parameters"></stringProp>
4967             <stringProp name="filename"></stringProp>
4968             <stringProp name="cacheKey">true</stringProp>
4969             <stringProp name="script">import groovy.json.JsonSlurper;
4970
4971 def res = [];
4972 if (prev.getResponseCode() == &apos;200&apos;) {
4973     def jsonSlurper = new JsonSlurper();
4974     res = jsonSlurper.parseText(prev.getResponseDataAsString());
4975
4976     assert res instanceof Map;
4977     assert res.topology_template.policies instanceof List;
4978     assert res.topology_template.policies.size == 1;
4979     assert res.topology_template.policies[0] instanceof Map;
4980 }</stringProp>
4981           </JSR223Assertion>
4982           <hashTree/>
4983         </hashTree>
4984         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create TCA Policy V10" enabled="true">
4985           <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
4986           <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
4987             <collectionProp name="Arguments.arguments">
4988               <elementProp name="" elementType="HTTPArgument">
4989                 <boolProp name="HTTPArgument.always_encode">false</boolProp>
4990                 <stringProp name="Argument.value">{&#xd;
4991     &quot;tosca_definitions_version&quot;: &quot;tosca_simple_yaml_1_0_0&quot;,&#xd;
4992     &quot;topology_template&quot;: {&#xd;
4993         &quot;policies&quot;: [&#xd;
4994             {&#xd;
4995                 &quot;onap.restart.tca&quot;: {&#xd;
4996                     &quot;type&quot;: &quot;onap.policies.monitoring.cdap.tca.hi.lo.app&quot;,&#xd;
4997                     &quot;version&quot;: &quot;10.0.0&quot;,&#xd;
4998                     &quot;type_version&quot;: &quot;2.0.0&quot;,&#xd;
4999                     &quot;metadata&quot;: {&#xd;
5000                         &quot;policy-id&quot;: &quot;onap.restart.tca&quot;&#xd;
5001                     },&#xd;
5002                     &quot;properties&quot;: {&#xd;
5003                         &quot;tca_policy&quot; : {&#xd;
5004                             &quot;domain&quot;: &quot;measurementsForVfScaling&quot;,&#xd;
5005                             &quot;metricsPerEventName&quot;: [&#xd;
5006                                 {&#xd;
5007                                     &quot;eventName&quot;: &quot;Measurement_vGMUX&quot;,&#xd;
5008                                     &quot;controlLoopSchemaType&quot;: &quot;VNF&quot;,&#xd;
5009                                     &quot;policyScope&quot;: &quot;DCAE&quot;,&#xd;
5010                                     &quot;policyName&quot;: &quot;DCAE.Config_tca-hi-lo&quot;,&#xd;
5011                                     &quot;policyVersion&quot;: &quot;v0.0.1&quot;,&#xd;
5012                                     &quot;thresholds&quot;: [&#xd;
5013                                         {&#xd;
5014                                             &quot;closedLoopControlName&quot;: &quot;ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e&quot;,&#xd;
5015                                             &quot;version&quot;: &quot;1.0.2&quot;,&#xd;
5016                                             &quot;fieldPath&quot;: &quot;$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value&quot;,&#xd;
5017                                             &quot;thresholdValue&quot;: 0,&#xd;
5018                                             &quot;direction&quot;: &quot;EQUAL&quot;,&#xd;
5019                                             &quot;severity&quot;: &quot;MAJOR&quot;,&#xd;
5020                                             &quot;closedLoopEventStatus&quot;: &quot;ABATED&quot;&#xd;
5021                                         },&#xd;
5022                                         {&#xd;
5023                                             &quot;closedLoopControlName&quot;: &quot;ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e&quot;,&#xd;
5024                                             &quot;version&quot;: &quot;1.0.2&quot;,&#xd;
5025                                             &quot;fieldPath&quot;: &quot;$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value&quot;,&#xd;
5026                                             &quot;thresholdValue&quot;: 0,&#xd;
5027                                             &quot;direction&quot;: &quot;GREATER&quot;,&#xd;
5028                                             &quot;severity&quot;: &quot;CRITICAL&quot;,&#xd;
5029                                             &quot;closedLoopEventStatus&quot;: &quot;ONSET&quot;&#xd;
5030                                         }&#xd;
5031                                     ]&#xd;
5032                                 }&#xd;
5033                             ]&#xd;
5034                         }&#xd;
5035                     }&#xd;
5036                 }&#xd;
5037             }&#xd;
5038         ]&#xd;
5039     }&#xd;
5040 }</stringProp>
5041                 <stringProp name="Argument.metadata">=</stringProp>
5042               </elementProp>
5043             </collectionProp>
5044           </elementProp>
5045           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
5046           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
5047           <stringProp name="HTTPSampler.protocol">https</stringProp>
5048           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
5049           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/2.0.0/policies</stringProp>
5050           <stringProp name="HTTPSampler.method">POST</stringProp>
5051           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
5052           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
5053           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
5054           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
5055           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
5056           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
5057           <stringProp name="HTTPSampler.response_timeout"></stringProp>
5058         </HTTPSamplerProxy>
5059         <hashTree>
5060           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
5061             <collectionProp name="Asserion.test_strings">
5062               <stringProp name="49586">200</stringProp>
5063             </collectionProp>
5064             <stringProp name="Assertion.custom_message"></stringProp>
5065             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
5066             <boolProp name="Assertion.assume_success">false</boolProp>
5067             <intProp name="Assertion.test_type">1</intProp>
5068           </ResponseAssertion>
5069           <hashTree/>
5070           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
5071             <stringProp name="scriptLanguage">groovy</stringProp>
5072             <stringProp name="parameters"></stringProp>
5073             <stringProp name="filename"></stringProp>
5074             <stringProp name="cacheKey">true</stringProp>
5075             <stringProp name="script">import groovy.json.JsonSlurper;
5076
5077 def res = [];
5078 if (prev.getResponseCode() == &apos;200&apos;) {
5079     def jsonSlurper = new JsonSlurper();
5080     res = jsonSlurper.parseText(prev.getResponseDataAsString());
5081
5082     assert res instanceof Map;
5083     assert res.topology_template.policies instanceof List;
5084     assert res.topology_template.policies.size == 1;
5085     assert res.topology_template.policies[0] instanceof Map;
5086 }</stringProp>
5087           </JSR223Assertion>
5088           <hashTree/>
5089         </hashTree>
5090         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create TCA Policy V11" enabled="true">
5091           <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
5092           <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
5093             <collectionProp name="Arguments.arguments">
5094               <elementProp name="" elementType="HTTPArgument">
5095                 <boolProp name="HTTPArgument.always_encode">false</boolProp>
5096                 <stringProp name="Argument.value">{&#xd;
5097     &quot;tosca_definitions_version&quot;: &quot;tosca_simple_yaml_1_0_0&quot;,&#xd;
5098     &quot;topology_template&quot;: {&#xd;
5099         &quot;policies&quot;: [&#xd;
5100             {&#xd;
5101                 &quot;onap.restart.tca&quot;: {&#xd;
5102                     &quot;type&quot;: &quot;onap.policies.monitoring.cdap.tca.hi.lo.app&quot;,&#xd;
5103                     &quot;version&quot;: &quot;11.0.0&quot;,&#xd;
5104                     &quot;type_version&quot;: &quot;2.0.0&quot;,&#xd;
5105                     &quot;metadata&quot;: {&#xd;
5106                         &quot;policy-id&quot;: &quot;onap.restart.tca&quot;&#xd;
5107                     },&#xd;
5108                     &quot;properties&quot;: {&#xd;
5109                         &quot;tca_policy&quot; : {&#xd;
5110                             &quot;domain&quot;: &quot;measurementsForVfScaling&quot;,&#xd;
5111                             &quot;metricsPerEventName&quot;: [&#xd;
5112                                 {&#xd;
5113                                     &quot;eventName&quot;: &quot;Measurement_vGMUX&quot;,&#xd;
5114                                     &quot;controlLoopSchemaType&quot;: &quot;VNF&quot;,&#xd;
5115                                     &quot;policyScope&quot;: &quot;DCAE&quot;,&#xd;
5116                                     &quot;policyName&quot;: &quot;DCAE.Config_tca-hi-lo&quot;,&#xd;
5117                                     &quot;policyVersion&quot;: &quot;v0.0.1&quot;,&#xd;
5118                                     &quot;thresholds&quot;: [&#xd;
5119                                         {&#xd;
5120                                             &quot;closedLoopControlName&quot;: &quot;ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e&quot;,&#xd;
5121                                             &quot;version&quot;: &quot;1.0.2&quot;,&#xd;
5122                                             &quot;fieldPath&quot;: &quot;$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value&quot;,&#xd;
5123                                             &quot;thresholdValue&quot;: 0,&#xd;
5124                                             &quot;direction&quot;: &quot;EQUAL&quot;,&#xd;
5125                                             &quot;severity&quot;: &quot;MAJOR&quot;,&#xd;
5126                                             &quot;closedLoopEventStatus&quot;: &quot;ABATED&quot;&#xd;
5127                                         },&#xd;
5128                                         {&#xd;
5129                                             &quot;closedLoopControlName&quot;: &quot;ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e&quot;,&#xd;
5130                                             &quot;version&quot;: &quot;1.0.2&quot;,&#xd;
5131                                             &quot;fieldPath&quot;: &quot;$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value&quot;,&#xd;
5132                                             &quot;thresholdValue&quot;: 0,&#xd;
5133                                             &quot;direction&quot;: &quot;GREATER&quot;,&#xd;
5134                                             &quot;severity&quot;: &quot;CRITICAL&quot;,&#xd;
5135                                             &quot;closedLoopEventStatus&quot;: &quot;ONSET&quot;&#xd;
5136                                         }&#xd;
5137                                     ]&#xd;
5138                                 }&#xd;
5139                             ]&#xd;
5140                         }&#xd;
5141                     }&#xd;
5142                 }&#xd;
5143             }&#xd;
5144         ]&#xd;
5145     }&#xd;
5146 }</stringProp>
5147                 <stringProp name="Argument.metadata">=</stringProp>
5148               </elementProp>
5149             </collectionProp>
5150           </elementProp>
5151           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
5152           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
5153           <stringProp name="HTTPSampler.protocol">https</stringProp>
5154           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
5155           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/2.0.0/policies</stringProp>
5156           <stringProp name="HTTPSampler.method">POST</stringProp>
5157           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
5158           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
5159           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
5160           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
5161           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
5162           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
5163           <stringProp name="HTTPSampler.response_timeout"></stringProp>
5164         </HTTPSamplerProxy>
5165         <hashTree>
5166           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
5167             <collectionProp name="Asserion.test_strings">
5168               <stringProp name="49586">200</stringProp>
5169             </collectionProp>
5170             <stringProp name="Assertion.custom_message"></stringProp>
5171             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
5172             <boolProp name="Assertion.assume_success">false</boolProp>
5173             <intProp name="Assertion.test_type">1</intProp>
5174           </ResponseAssertion>
5175           <hashTree/>
5176           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
5177             <stringProp name="scriptLanguage">groovy</stringProp>
5178             <stringProp name="parameters"></stringProp>
5179             <stringProp name="filename"></stringProp>
5180             <stringProp name="cacheKey">true</stringProp>
5181             <stringProp name="script">import groovy.json.JsonSlurper;
5182
5183 def res = [];
5184 if (prev.getResponseCode() == &apos;200&apos;) {
5185     def jsonSlurper = new JsonSlurper();
5186     res = jsonSlurper.parseText(prev.getResponseDataAsString());
5187
5188     assert res instanceof Map;
5189     assert res.topology_template.policies instanceof List;
5190     assert res.topology_template.policies.size == 1;
5191     assert res.topology_template.policies[0] instanceof Map;
5192 }</stringProp>
5193           </JSR223Assertion>
5194           <hashTree/>
5195         </hashTree>
5196         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Simple Create TCA Policies" enabled="true">
5197           <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
5198           <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
5199             <collectionProp name="Arguments.arguments">
5200               <elementProp name="" elementType="HTTPArgument">
5201                 <boolProp name="HTTPArgument.always_encode">false</boolProp>
5202                 <stringProp name="Argument.value">{&#xd;
5203     &quot;tosca_definitions_version&quot;: &quot;tosca_simple_yaml_1_0_0&quot;,&#xd;
5204     &quot;topology_template&quot;: {&#xd;
5205         &quot;policies&quot;: [&#xd;
5206             {&#xd;
5207                 &quot;onap.restart.tca&quot;: {&#xd;
5208                     &quot;type&quot;: &quot;onap.policies.monitoring.cdap.tca.hi.lo.app&quot;,&#xd;
5209                     &quot;version&quot;: &quot;1.0.0&quot;,&#xd;
5210                     &quot;type_version&quot;: &quot;2.0.0&quot;,&#xd;
5211                     &quot;metadata&quot;: {&#xd;
5212                         &quot;policy-id&quot;: &quot;onap.restart.tca&quot;&#xd;
5213                     },&#xd;
5214                     &quot;properties&quot;: {&#xd;
5215                         &quot;tca_policy&quot;: {&#xd;
5216                             &quot;domain&quot;: &quot;measurementsForVfScaling&quot;,&#xd;
5217                             &quot;metricsPerEventName&quot;: [&#xd;
5218                                 {&#xd;
5219                                     &quot;eventName&quot;: &quot;Measurement_vGMUX&quot;,&#xd;
5220                                     &quot;controlLoopSchemaType&quot;: &quot;VNF&quot;,&#xd;
5221                                     &quot;policyScope&quot;: &quot;DCAE&quot;,&#xd;
5222                                     &quot;policyName&quot;: &quot;DCAE.Config_tca-hi-lo&quot;,&#xd;
5223                                     &quot;policyVersion&quot;: &quot;v0.0.1&quot;,&#xd;
5224                                     &quot;thresholds&quot;: [&#xd;
5225                                         {&#xd;
5226                                             &quot;closedLoopControlName&quot;: &quot;ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e&quot;,&#xd;
5227                                             &quot;version&quot;: &quot;1.0.2&quot;,&#xd;
5228                                             &quot;fieldPath&quot;: &quot;$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value&quot;,&#xd;
5229                                             &quot;thresholdValue&quot;: 0,&#xd;
5230                                             &quot;direction&quot;: &quot;EQUAL&quot;,&#xd;
5231                                             &quot;severity&quot;: &quot;MAJOR&quot;,&#xd;
5232                                             &quot;closedLoopEventStatus&quot;: &quot;ABATED&quot;&#xd;
5233                                         },&#xd;
5234                                         {&#xd;
5235                                             &quot;closedLoopControlName&quot;: &quot;ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e&quot;,&#xd;
5236                                             &quot;version&quot;: &quot;1.0.2&quot;,&#xd;
5237                                             &quot;fieldPath&quot;: &quot;$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value&quot;,&#xd;
5238                                             &quot;thresholdValue&quot;: 0,&#xd;
5239                                             &quot;direction&quot;: &quot;GREATER&quot;,&#xd;
5240                                             &quot;severity&quot;: &quot;CRITICAL&quot;,&#xd;
5241                                             &quot;closedLoopEventStatus&quot;: &quot;ONSET&quot;&#xd;
5242                                         }&#xd;
5243                                     ]&#xd;
5244                                 }&#xd;
5245                             ]&#xd;
5246                         }&#xd;
5247                     }&#xd;
5248                 }&#xd;
5249             },&#xd;
5250             {&#xd;
5251                 &quot;onap.restart.tca&quot;: {&#xd;
5252                     &quot;type&quot;: &quot;onap.policies.monitoring.cdap.tca.hi.lo.app&quot;,&#xd;
5253                     &quot;version&quot;: &quot;2.0.0&quot;,&#xd;
5254                     &quot;type_version&quot;: &quot;2.0.0&quot;,&#xd;
5255                     &quot;metadata&quot;: {&#xd;
5256                         &quot;policy-id&quot;: &quot;onap.restart.tca&quot;&#xd;
5257                     },&#xd;
5258                     &quot;properties&quot;: {&#xd;
5259                         &quot;tca_policy&quot;: {&#xd;
5260                             &quot;domain&quot;: &quot;measurementsForVfScaling&quot;,&#xd;
5261                             &quot;metricsPerEventName&quot;: [&#xd;
5262                                 {&#xd;
5263                                     &quot;eventName&quot;: &quot;Measurement_vGMUX&quot;,&#xd;
5264                                     &quot;controlLoopSchemaType&quot;: &quot;VNF&quot;,&#xd;
5265                                     &quot;policyScope&quot;: &quot;DCAE&quot;,&#xd;
5266                                     &quot;policyName&quot;: &quot;DCAE.Config_tca-hi-lo&quot;,&#xd;
5267                                     &quot;policyVersion&quot;: &quot;v0.0.1&quot;,&#xd;
5268                                     &quot;thresholds&quot;: [&#xd;
5269                                         {&#xd;
5270                                             &quot;closedLoopControlName&quot;: &quot;ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e&quot;,&#xd;
5271                                             &quot;version&quot;: &quot;1.0.2&quot;,&#xd;
5272                                             &quot;fieldPath&quot;: &quot;$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value&quot;,&#xd;
5273                                             &quot;thresholdValue&quot;: 0,&#xd;
5274                                             &quot;direction&quot;: &quot;EQUAL&quot;,&#xd;
5275                                             &quot;severity&quot;: &quot;MAJOR&quot;,&#xd;
5276                                             &quot;closedLoopEventStatus&quot;: &quot;ABATED&quot;&#xd;
5277                                         },&#xd;
5278                                         {&#xd;
5279                                             &quot;closedLoopControlName&quot;: &quot;ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e&quot;,&#xd;
5280                                             &quot;version&quot;: &quot;1.0.2&quot;,&#xd;
5281                                             &quot;fieldPath&quot;: &quot;$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value&quot;,&#xd;
5282                                             &quot;thresholdValue&quot;: 0,&#xd;
5283                                             &quot;direction&quot;: &quot;GREATER&quot;,&#xd;
5284                                             &quot;severity&quot;: &quot;CRITICAL&quot;,&#xd;
5285                                             &quot;closedLoopEventStatus&quot;: &quot;ONSET&quot;&#xd;
5286                                         }&#xd;
5287                                     ]&#xd;
5288                                 }&#xd;
5289                             ]&#xd;
5290                         }&#xd;
5291                     }&#xd;
5292                 }&#xd;
5293             },&#xd;
5294             {&#xd;
5295                 &quot;onap.restart.tca&quot;: {&#xd;
5296                     &quot;type&quot;: &quot;onap.policies.monitoring.cdap.tca.hi.lo.app&quot;,&#xd;
5297                     &quot;version&quot;: &quot;3.0.0&quot;,&#xd;
5298                     &quot;type_version&quot;: &quot;2.0.0&quot;,&#xd;
5299                     &quot;metadata&quot;: {&#xd;
5300                         &quot;policy-id&quot;: &quot;onap.restart.tca&quot;&#xd;
5301                     },&#xd;
5302                     &quot;properties&quot;: {&#xd;
5303                         &quot;tca_policy&quot;: {&#xd;
5304                             &quot;domain&quot;: &quot;measurementsForVfScaling&quot;,&#xd;
5305                             &quot;metricsPerEventName&quot;: [&#xd;
5306                                 {&#xd;
5307                                     &quot;eventName&quot;: &quot;Measurement_vGMUX&quot;,&#xd;
5308                                     &quot;controlLoopSchemaType&quot;: &quot;VNF&quot;,&#xd;
5309                                     &quot;policyScope&quot;: &quot;DCAE&quot;,&#xd;
5310                                     &quot;policyName&quot;: &quot;DCAE.Config_tca-hi-lo&quot;,&#xd;
5311                                     &quot;policyVersion&quot;: &quot;v0.0.1&quot;,&#xd;
5312                                     &quot;thresholds&quot;: [&#xd;
5313                                         {&#xd;
5314                                             &quot;closedLoopControlName&quot;: &quot;ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e&quot;,&#xd;
5315                                             &quot;version&quot;: &quot;1.0.2&quot;,&#xd;
5316                                             &quot;fieldPath&quot;: &quot;$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value&quot;,&#xd;
5317                                             &quot;thresholdValue&quot;: 0,&#xd;
5318                                             &quot;direction&quot;: &quot;EQUAL&quot;,&#xd;
5319                                             &quot;severity&quot;: &quot;MAJOR&quot;,&#xd;
5320                                             &quot;closedLoopEventStatus&quot;: &quot;ABATED&quot;&#xd;
5321                                         },&#xd;
5322                                         {&#xd;
5323                                             &quot;closedLoopControlName&quot;: &quot;ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e&quot;,&#xd;
5324                                             &quot;version&quot;: &quot;1.0.2&quot;,&#xd;
5325                                             &quot;fieldPath&quot;: &quot;$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value&quot;,&#xd;
5326                                             &quot;thresholdValue&quot;: 0,&#xd;
5327                                             &quot;direction&quot;: &quot;GREATER&quot;,&#xd;
5328                                             &quot;severity&quot;: &quot;CRITICAL&quot;,&#xd;
5329                                             &quot;closedLoopEventStatus&quot;: &quot;ONSET&quot;&#xd;
5330                                         }&#xd;
5331                                     ]&#xd;
5332                                 }&#xd;
5333                             ]&#xd;
5334                         }&#xd;
5335                     }&#xd;
5336                 }&#xd;
5337             },&#xd;
5338             {&#xd;
5339                 &quot;onap.restart.tca&quot;: {&#xd;
5340                     &quot;type&quot;: &quot;onap.policies.monitoring.cdap.tca.hi.lo.app&quot;,&#xd;
5341                     &quot;version&quot;: &quot;4.0.0&quot;,&#xd;
5342                     &quot;type_version&quot;: &quot;2.0.0&quot;,&#xd;
5343                     &quot;metadata&quot;: {&#xd;
5344                         &quot;policy-id&quot;: &quot;onap.restart.tca&quot;&#xd;
5345                     },&#xd;
5346                     &quot;properties&quot;: {&#xd;
5347                         &quot;tca_policy&quot;: {&#xd;
5348                             &quot;domain&quot;: &quot;measurementsForVfScaling&quot;,&#xd;
5349                             &quot;metricsPerEventName&quot;: [&#xd;
5350                                 {&#xd;
5351                                     &quot;eventName&quot;: &quot;Measurement_vGMUX&quot;,&#xd;
5352                                     &quot;controlLoopSchemaType&quot;: &quot;VNF&quot;,&#xd;
5353                                     &quot;policyScope&quot;: &quot;DCAE&quot;,&#xd;
5354                                     &quot;policyName&quot;: &quot;DCAE.Config_tca-hi-lo&quot;,&#xd;
5355                                     &quot;policyVersion&quot;: &quot;v0.0.1&quot;,&#xd;
5356                                     &quot;thresholds&quot;: [&#xd;
5357                                         {&#xd;
5358                                             &quot;closedLoopControlName&quot;: &quot;ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e&quot;,&#xd;
5359                                             &quot;version&quot;: &quot;1.0.2&quot;,&#xd;
5360                                             &quot;fieldPath&quot;: &quot;$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value&quot;,&#xd;
5361                                             &quot;thresholdValue&quot;: 0,&#xd;
5362                                             &quot;direction&quot;: &quot;EQUAL&quot;,&#xd;
5363                                             &quot;severity&quot;: &quot;MAJOR&quot;,&#xd;
5364                                             &quot;closedLoopEventStatus&quot;: &quot;ABATED&quot;&#xd;
5365                                         },&#xd;
5366                                         {&#xd;
5367                                             &quot;closedLoopControlName&quot;: &quot;ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e&quot;,&#xd;
5368                                             &quot;version&quot;: &quot;1.0.2&quot;,&#xd;
5369                                             &quot;fieldPath&quot;: &quot;$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value&quot;,&#xd;
5370                                             &quot;thresholdValue&quot;: 0,&#xd;
5371                                             &quot;direction&quot;: &quot;GREATER&quot;,&#xd;
5372                                             &quot;severity&quot;: &quot;CRITICAL&quot;,&#xd;
5373                                             &quot;closedLoopEventStatus&quot;: &quot;ONSET&quot;&#xd;
5374                                         }&#xd;
5375                                     ]&#xd;
5376                                 }&#xd;
5377                             ]&#xd;
5378                         }&#xd;
5379                     }&#xd;
5380                 }&#xd;
5381             },&#xd;
5382             {&#xd;
5383                 &quot;onap.restart.tca&quot;: {&#xd;
5384                     &quot;type&quot;: &quot;onap.policies.monitoring.cdap.tca.hi.lo.app&quot;,&#xd;
5385                     &quot;version&quot;: &quot;5.0.0&quot;,&#xd;
5386                     &quot;type_version&quot;: &quot;2.0.0&quot;,&#xd;
5387                     &quot;metadata&quot;: {&#xd;
5388                         &quot;policy-id&quot;: &quot;onap.restart.tca&quot;&#xd;
5389                     },&#xd;
5390                     &quot;properties&quot;: {&#xd;
5391                         &quot;tca_policy&quot;: {&#xd;
5392                             &quot;domain&quot;: &quot;measurementsForVfScaling&quot;,&#xd;
5393                             &quot;metricsPerEventName&quot;: [&#xd;
5394                                 {&#xd;
5395                                     &quot;eventName&quot;: &quot;Measurement_vGMUX&quot;,&#xd;
5396                                     &quot;controlLoopSchemaType&quot;: &quot;VNF&quot;,&#xd;
5397                                     &quot;policyScope&quot;: &quot;DCAE&quot;,&#xd;
5398                                     &quot;policyName&quot;: &quot;DCAE.Config_tca-hi-lo&quot;,&#xd;
5399                                     &quot;policyVersion&quot;: &quot;v0.0.1&quot;,&#xd;
5400                                     &quot;thresholds&quot;: [&#xd;
5401                                         {&#xd;
5402                                             &quot;closedLoopControlName&quot;: &quot;ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e&quot;,&#xd;
5403                                             &quot;version&quot;: &quot;1.0.2&quot;,&#xd;
5404                                             &quot;fieldPath&quot;: &quot;$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value&quot;,&#xd;
5405                                             &quot;thresholdValue&quot;: 0,&#xd;
5406                                             &quot;direction&quot;: &quot;EQUAL&quot;,&#xd;
5407                                             &quot;severity&quot;: &quot;MAJOR&quot;,&#xd;
5408                                             &quot;closedLoopEventStatus&quot;: &quot;ABATED&quot;&#xd;
5409                                         },&#xd;
5410                                         {&#xd;
5411                                             &quot;closedLoopControlName&quot;: &quot;ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e&quot;,&#xd;
5412                                             &quot;version&quot;: &quot;1.0.2&quot;,&#xd;
5413                                             &quot;fieldPath&quot;: &quot;$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value&quot;,&#xd;
5414                                             &quot;thresholdValue&quot;: 0,&#xd;
5415                                             &quot;direction&quot;: &quot;GREATER&quot;,&#xd;
5416                                             &quot;severity&quot;: &quot;CRITICAL&quot;,&#xd;
5417                                             &quot;closedLoopEventStatus&quot;: &quot;ONSET&quot;&#xd;
5418                                         }&#xd;
5419                                     ]&#xd;
5420                                 }&#xd;
5421                             ]&#xd;
5422                         }&#xd;
5423                     }&#xd;
5424                 }&#xd;
5425             },&#xd;
5426             {&#xd;
5427                 &quot;onap.restart.tca&quot;: {&#xd;
5428                     &quot;type&quot;: &quot;onap.policies.monitoring.cdap.tca.hi.lo.app&quot;,&#xd;
5429                     &quot;version&quot;: &quot;6.0.0&quot;,&#xd;
5430                     &quot;type_version&quot;: &quot;2.0.0&quot;,&#xd;
5431                     &quot;metadata&quot;: {&#xd;
5432                         &quot;policy-id&quot;: &quot;onap.restart.tca&quot;&#xd;
5433                     },&#xd;
5434                     &quot;properties&quot;: {&#xd;
5435                         &quot;tca_policy&quot;: {&#xd;
5436                             &quot;domain&quot;: &quot;measurementsForVfScaling&quot;,&#xd;
5437                             &quot;metricsPerEventName&quot;: [&#xd;
5438                                 {&#xd;
5439                                     &quot;eventName&quot;: &quot;Measurement_vGMUX&quot;,&#xd;
5440                                     &quot;controlLoopSchemaType&quot;: &quot;VNF&quot;,&#xd;
5441                                     &quot;policyScope&quot;: &quot;DCAE&quot;,&#xd;
5442                                     &quot;policyName&quot;: &quot;DCAE.Config_tca-hi-lo&quot;,&#xd;
5443                                     &quot;policyVersion&quot;: &quot;v0.0.1&quot;,&#xd;
5444                                     &quot;thresholds&quot;: [&#xd;
5445                                         {&#xd;
5446                                             &quot;closedLoopControlName&quot;: &quot;ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e&quot;,&#xd;
5447                                             &quot;version&quot;: &quot;1.0.2&quot;,&#xd;
5448                                             &quot;fieldPath&quot;: &quot;$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value&quot;,&#xd;
5449                                             &quot;thresholdValue&quot;: 0,&#xd;
5450                                             &quot;direction&quot;: &quot;EQUAL&quot;,&#xd;
5451                                             &quot;severity&quot;: &quot;MAJOR&quot;,&#xd;
5452                                             &quot;closedLoopEventStatus&quot;: &quot;ABATED&quot;&#xd;
5453                                         },&#xd;
5454                                         {&#xd;
5455                                             &quot;closedLoopControlName&quot;: &quot;ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e&quot;,&#xd;
5456                                             &quot;version&quot;: &quot;1.0.2&quot;,&#xd;
5457                                             &quot;fieldPath&quot;: &quot;$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value&quot;,&#xd;
5458                                             &quot;thresholdValue&quot;: 0,&#xd;
5459                                             &quot;direction&quot;: &quot;GREATER&quot;,&#xd;
5460                                             &quot;severity&quot;: &quot;CRITICAL&quot;,&#xd;
5461                                             &quot;closedLoopEventStatus&quot;: &quot;ONSET&quot;&#xd;
5462                                         }&#xd;
5463                                     ]&#xd;
5464                                 }&#xd;
5465                             ]&#xd;
5466                         }&#xd;
5467                     }&#xd;
5468                 }&#xd;
5469             },&#xd;
5470             {&#xd;
5471                 &quot;onap.restart.tca&quot;: {&#xd;
5472                     &quot;type&quot;: &quot;onap.policies.monitoring.cdap.tca.hi.lo.app&quot;,&#xd;
5473                     &quot;version&quot;: &quot;7.0.0&quot;,&#xd;
5474                     &quot;type_version&quot;: &quot;2.0.0&quot;,&#xd;
5475                     &quot;metadata&quot;: {&#xd;
5476                         &quot;policy-id&quot;: &quot;onap.restart.tca&quot;&#xd;
5477                     },&#xd;
5478                     &quot;properties&quot;: {&#xd;
5479                         &quot;tca_policy&quot;: {&#xd;
5480                             &quot;domain&quot;: &quot;measurementsForVfScaling&quot;,&#xd;
5481                             &quot;metricsPerEventName&quot;: [&#xd;
5482                                 {&#xd;
5483                                     &quot;eventName&quot;: &quot;Measurement_vGMUX&quot;,&#xd;
5484                                     &quot;controlLoopSchemaType&quot;: &quot;VNF&quot;,&#xd;
5485                                     &quot;policyScope&quot;: &quot;DCAE&quot;,&#xd;
5486                                     &quot;policyName&quot;: &quot;DCAE.Config_tca-hi-lo&quot;,&#xd;
5487                                     &quot;policyVersion&quot;: &quot;v0.0.1&quot;,&#xd;
5488                                     &quot;thresholds&quot;: [&#xd;
5489                                         {&#xd;
5490                                             &quot;closedLoopControlName&quot;: &quot;ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e&quot;,&#xd;
5491                                             &quot;version&quot;: &quot;1.0.2&quot;,&#xd;
5492                                             &quot;fieldPath&quot;: &quot;$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value&quot;,&#xd;
5493                                             &quot;thresholdValue&quot;: 0,&#xd;
5494                                             &quot;direction&quot;: &quot;EQUAL&quot;,&#xd;
5495                                             &quot;severity&quot;: &quot;MAJOR&quot;,&#xd;
5496                                             &quot;closedLoopEventStatus&quot;: &quot;ABATED&quot;&#xd;
5497                                         },&#xd;
5498                                         {&#xd;
5499                                             &quot;closedLoopControlName&quot;: &quot;ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e&quot;,&#xd;
5500                                             &quot;version&quot;: &quot;1.0.2&quot;,&#xd;
5501                                             &quot;fieldPath&quot;: &quot;$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value&quot;,&#xd;
5502                                             &quot;thresholdValue&quot;: 0,&#xd;
5503                                             &quot;direction&quot;: &quot;GREATER&quot;,&#xd;
5504                                             &quot;severity&quot;: &quot;CRITICAL&quot;,&#xd;
5505                                             &quot;closedLoopEventStatus&quot;: &quot;ONSET&quot;&#xd;
5506                                         }&#xd;
5507                                     ]&#xd;
5508                                 }&#xd;
5509                             ]&#xd;
5510                         }&#xd;
5511                     }&#xd;
5512                 }&#xd;
5513             },&#xd;
5514             {&#xd;
5515                 &quot;onap.restart.tca&quot;: {&#xd;
5516                     &quot;type&quot;: &quot;onap.policies.monitoring.cdap.tca.hi.lo.app&quot;,&#xd;
5517                     &quot;version&quot;: &quot;8.0.0&quot;,&#xd;
5518                     &quot;type_version&quot;: &quot;2.0.0&quot;,&#xd;
5519                     &quot;metadata&quot;: {&#xd;
5520                         &quot;policy-id&quot;: &quot;onap.restart.tca&quot;&#xd;
5521                     },&#xd;
5522                     &quot;properties&quot;: {&#xd;
5523                         &quot;tca_policy&quot;: {&#xd;
5524                             &quot;domain&quot;: &quot;measurementsForVfScaling&quot;,&#xd;
5525                             &quot;metricsPerEventName&quot;: [&#xd;
5526                                 {&#xd;
5527                                     &quot;eventName&quot;: &quot;Measurement_vGMUX&quot;,&#xd;
5528                                     &quot;controlLoopSchemaType&quot;: &quot;VNF&quot;,&#xd;
5529                                     &quot;policyScope&quot;: &quot;DCAE&quot;,&#xd;
5530                                     &quot;policyName&quot;: &quot;DCAE.Config_tca-hi-lo&quot;,&#xd;
5531                                     &quot;policyVersion&quot;: &quot;v0.0.1&quot;,&#xd;
5532                                     &quot;thresholds&quot;: [&#xd;
5533                                         {&#xd;
5534                                             &quot;closedLoopControlName&quot;: &quot;ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e&quot;,&#xd;
5535                                             &quot;version&quot;: &quot;1.0.2&quot;,&#xd;
5536                                             &quot;fieldPath&quot;: &quot;$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value&quot;,&#xd;
5537                                             &quot;thresholdValue&quot;: 0,&#xd;
5538                                             &quot;direction&quot;: &quot;EQUAL&quot;,&#xd;
5539                                             &quot;severity&quot;: &quot;MAJOR&quot;,&#xd;
5540                                             &quot;closedLoopEventStatus&quot;: &quot;ABATED&quot;&#xd;
5541                                         },&#xd;
5542                                         {&#xd;
5543                                             &quot;closedLoopControlName&quot;: &quot;ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e&quot;,&#xd;
5544                                             &quot;version&quot;: &quot;1.0.2&quot;,&#xd;
5545                                             &quot;fieldPath&quot;: &quot;$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value&quot;,&#xd;
5546                                             &quot;thresholdValue&quot;: 0,&#xd;
5547                                             &quot;direction&quot;: &quot;GREATER&quot;,&#xd;
5548                                             &quot;severity&quot;: &quot;CRITICAL&quot;,&#xd;
5549                                             &quot;closedLoopEventStatus&quot;: &quot;ONSET&quot;&#xd;
5550                                         }&#xd;
5551                                     ]&#xd;
5552                                 }&#xd;
5553                             ]&#xd;
5554                         }&#xd;
5555                     }&#xd;
5556                 }&#xd;
5557             },&#xd;
5558             {&#xd;
5559                 &quot;onap.restart.tca&quot;: {&#xd;
5560                     &quot;type&quot;: &quot;onap.policies.monitoring.cdap.tca.hi.lo.app&quot;,&#xd;
5561                     &quot;version&quot;: &quot;9.0.0&quot;,&#xd;
5562                     &quot;type_version&quot;: &quot;2.0.0&quot;,&#xd;
5563                     &quot;metadata&quot;: {&#xd;
5564                         &quot;policy-id&quot;: &quot;onap.restart.tca&quot;&#xd;
5565                     },&#xd;
5566                     &quot;properties&quot;: {&#xd;
5567                         &quot;tca_policy&quot;: {&#xd;
5568                             &quot;domain&quot;: &quot;measurementsForVfScaling&quot;,&#xd;
5569                             &quot;metricsPerEventName&quot;: [&#xd;
5570                                 {&#xd;
5571                                     &quot;eventName&quot;: &quot;Measurement_vGMUX&quot;,&#xd;
5572                                     &quot;controlLoopSchemaType&quot;: &quot;VNF&quot;,&#xd;
5573                                     &quot;policyScope&quot;: &quot;DCAE&quot;,&#xd;
5574                                     &quot;policyName&quot;: &quot;DCAE.Config_tca-hi-lo&quot;,&#xd;
5575                                     &quot;policyVersion&quot;: &quot;v0.0.1&quot;,&#xd;
5576                                     &quot;thresholds&quot;: [&#xd;
5577                                         {&#xd;
5578                                             &quot;closedLoopControlName&quot;: &quot;ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e&quot;,&#xd;
5579                                             &quot;version&quot;: &quot;1.0.2&quot;,&#xd;
5580                                             &quot;fieldPath&quot;: &quot;$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value&quot;,&#xd;
5581                                             &quot;thresholdValue&quot;: 0,&#xd;
5582                                             &quot;direction&quot;: &quot;EQUAL&quot;,&#xd;
5583                                             &quot;severity&quot;: &quot;MAJOR&quot;,&#xd;
5584                                             &quot;closedLoopEventStatus&quot;: &quot;ABATED&quot;&#xd;
5585                                         },&#xd;
5586                                         {&#xd;
5587                                             &quot;closedLoopControlName&quot;: &quot;ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e&quot;,&#xd;
5588                                             &quot;version&quot;: &quot;1.0.2&quot;,&#xd;
5589                                             &quot;fieldPath&quot;: &quot;$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value&quot;,&#xd;
5590                                             &quot;thresholdValue&quot;: 0,&#xd;
5591                                             &quot;direction&quot;: &quot;GREATER&quot;,&#xd;
5592                                             &quot;severity&quot;: &quot;CRITICAL&quot;,&#xd;
5593                                             &quot;closedLoopEventStatus&quot;: &quot;ONSET&quot;&#xd;
5594                                         }&#xd;
5595                                     ]&#xd;
5596                                 }&#xd;
5597                             ]&#xd;
5598                         }&#xd;
5599                     }&#xd;
5600                 }&#xd;
5601             },&#xd;
5602             {&#xd;
5603                 &quot;onap.restart.tca&quot;: {&#xd;
5604                     &quot;type&quot;: &quot;onap.policies.monitoring.cdap.tca.hi.lo.app&quot;,&#xd;
5605                     &quot;version&quot;: &quot;10.0.0&quot;,&#xd;
5606                     &quot;type_version&quot;: &quot;2.0.0&quot;,&#xd;
5607                     &quot;metadata&quot;: {&#xd;
5608                         &quot;policy-id&quot;: &quot;onap.restart.tca&quot;&#xd;
5609                     },&#xd;
5610                     &quot;properties&quot;: {&#xd;
5611                         &quot;tca_policy&quot;: {&#xd;
5612                             &quot;domain&quot;: &quot;measurementsForVfScaling&quot;,&#xd;
5613                             &quot;metricsPerEventName&quot;: [&#xd;
5614                                 {&#xd;
5615                                     &quot;eventName&quot;: &quot;Measurement_vGMUX&quot;,&#xd;
5616                                     &quot;controlLoopSchemaType&quot;: &quot;VNF&quot;,&#xd;
5617                                     &quot;policyScope&quot;: &quot;DCAE&quot;,&#xd;
5618                                     &quot;policyName&quot;: &quot;DCAE.Config_tca-hi-lo&quot;,&#xd;
5619                                     &quot;policyVersion&quot;: &quot;v0.0.1&quot;,&#xd;
5620                                     &quot;thresholds&quot;: [&#xd;
5621                                         {&#xd;
5622                                             &quot;closedLoopControlName&quot;: &quot;ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e&quot;,&#xd;
5623                                             &quot;version&quot;: &quot;1.0.2&quot;,&#xd;
5624                                             &quot;fieldPath&quot;: &quot;$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value&quot;,&#xd;
5625                                             &quot;thresholdValue&quot;: 0,&#xd;
5626                                             &quot;direction&quot;: &quot;EQUAL&quot;,&#xd;
5627                                             &quot;severity&quot;: &quot;MAJOR&quot;,&#xd;
5628                                             &quot;closedLoopEventStatus&quot;: &quot;ABATED&quot;&#xd;
5629                                         },&#xd;
5630                                         {&#xd;
5631                                             &quot;closedLoopControlName&quot;: &quot;ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e&quot;,&#xd;
5632                                             &quot;version&quot;: &quot;1.0.2&quot;,&#xd;
5633                                             &quot;fieldPath&quot;: &quot;$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value&quot;,&#xd;
5634                                             &quot;thresholdValue&quot;: 0,&#xd;
5635                                             &quot;direction&quot;: &quot;GREATER&quot;,&#xd;
5636                                             &quot;severity&quot;: &quot;CRITICAL&quot;,&#xd;
5637                                             &quot;closedLoopEventStatus&quot;: &quot;ONSET&quot;&#xd;
5638                                         }&#xd;
5639                                     ]&#xd;
5640                                 }&#xd;
5641                             ]&#xd;
5642                         }&#xd;
5643                     }&#xd;
5644                 }&#xd;
5645             },&#xd;
5646             {&#xd;
5647                 &quot;onap.restart.tca&quot;: {&#xd;
5648                     &quot;type&quot;: &quot;onap.policies.monitoring.cdap.tca.hi.lo.app&quot;,&#xd;
5649                     &quot;version&quot;: &quot;11.0.0&quot;,&#xd;
5650                     &quot;type_version&quot;: &quot;2.0.0&quot;,&#xd;
5651                     &quot;metadata&quot;: {&#xd;
5652                         &quot;policy-id&quot;: &quot;onap.restart.tca&quot;&#xd;
5653                     },&#xd;
5654                     &quot;properties&quot;: {&#xd;
5655                         &quot;tca_policy&quot;: {&#xd;
5656                             &quot;domain&quot;: &quot;measurementsForVfScaling&quot;,&#xd;
5657                             &quot;metricsPerEventName&quot;: [&#xd;
5658                                 {&#xd;
5659                                     &quot;eventName&quot;: &quot;Measurement_vGMUX&quot;,&#xd;
5660                                     &quot;controlLoopSchemaType&quot;: &quot;VNF&quot;,&#xd;
5661                                     &quot;policyScope&quot;: &quot;DCAE&quot;,&#xd;
5662                                     &quot;policyName&quot;: &quot;DCAE.Config_tca-hi-lo&quot;,&#xd;
5663                                     &quot;policyVersion&quot;: &quot;v0.0.1&quot;,&#xd;
5664                                     &quot;thresholds&quot;: [&#xd;
5665                                         {&#xd;
5666                                             &quot;closedLoopControlName&quot;: &quot;ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e&quot;,&#xd;
5667                                             &quot;version&quot;: &quot;1.0.2&quot;,&#xd;
5668                                             &quot;fieldPath&quot;: &quot;$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value&quot;,&#xd;
5669                                             &quot;thresholdValue&quot;: 0,&#xd;
5670                                             &quot;direction&quot;: &quot;EQUAL&quot;,&#xd;
5671                                             &quot;severity&quot;: &quot;MAJOR&quot;,&#xd;
5672                                             &quot;closedLoopEventStatus&quot;: &quot;ABATED&quot;&#xd;
5673                                         },&#xd;
5674                                         {&#xd;
5675                                             &quot;closedLoopControlName&quot;: &quot;ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e&quot;,&#xd;
5676                                             &quot;version&quot;: &quot;1.0.2&quot;,&#xd;
5677                                             &quot;fieldPath&quot;: &quot;$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value&quot;,&#xd;
5678                                             &quot;thresholdValue&quot;: 0,&#xd;
5679                                             &quot;direction&quot;: &quot;GREATER&quot;,&#xd;
5680                                             &quot;severity&quot;: &quot;CRITICAL&quot;,&#xd;
5681                                             &quot;closedLoopEventStatus&quot;: &quot;ONSET&quot;&#xd;
5682                                         }&#xd;
5683                                     ]&#xd;
5684                                 }&#xd;
5685                             ]&#xd;
5686                         }&#xd;
5687                     }&#xd;
5688                 }&#xd;
5689             }&#xd;
5690         ]&#xd;
5691     }&#xd;
5692 }</stringProp>
5693                 <stringProp name="Argument.metadata">=</stringProp>
5694               </elementProp>
5695             </collectionProp>
5696           </elementProp>
5697           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
5698           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
5699           <stringProp name="HTTPSampler.protocol">https</stringProp>
5700           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
5701           <stringProp name="HTTPSampler.path">/policy/api/v1/policies</stringProp>
5702           <stringProp name="HTTPSampler.method">POST</stringProp>
5703           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
5704           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
5705           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
5706           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
5707           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
5708           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
5709           <stringProp name="HTTPSampler.response_timeout"></stringProp>
5710         </HTTPSamplerProxy>
5711         <hashTree>
5712           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
5713             <collectionProp name="Asserion.test_strings">
5714               <stringProp name="49586">200</stringProp>
5715             </collectionProp>
5716             <stringProp name="Assertion.custom_message"></stringProp>
5717             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
5718             <boolProp name="Assertion.assume_success">false</boolProp>
5719             <intProp name="Assertion.test_type">1</intProp>
5720           </ResponseAssertion>
5721           <hashTree/>
5722           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
5723             <stringProp name="scriptLanguage">groovy</stringProp>
5724             <stringProp name="parameters"></stringProp>
5725             <stringProp name="filename"></stringProp>
5726             <stringProp name="cacheKey">true</stringProp>
5727             <stringProp name="script">import groovy.json.JsonSlurper;
5728
5729 def res = [];
5730 if (prev.getResponseCode() == &apos;200&apos;) {
5731     def jsonSlurper = new JsonSlurper();
5732     res = jsonSlurper.parseText(prev.getResponseDataAsString());
5733
5734     assert res instanceof Map;
5735     assert res.topology_template.policies instanceof List;
5736     assert res.topology_template.policies.size == 11;
5737     assert res.topology_template.policies[0] instanceof Map;
5738 }</stringProp>
5739           </JSR223Assertion>
5740           <hashTree/>
5741         </hashTree>
5742         <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true">
5743           <stringProp name="ConstantTimer.delay">10000</stringProp>
5744         </ConstantTimer>
5745         <hashTree/>
5746         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get All TCA Policies" enabled="true">
5747           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
5748             <collectionProp name="Arguments.arguments"/>
5749           </elementProp>
5750           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
5751           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
5752           <stringProp name="HTTPSampler.protocol">https</stringProp>
5753           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
5754           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/2.0.0/policies</stringProp>
5755           <stringProp name="HTTPSampler.method">GET</stringProp>
5756           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
5757           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
5758           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
5759           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
5760           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
5761           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
5762           <stringProp name="HTTPSampler.response_timeout"></stringProp>
5763         </HTTPSamplerProxy>
5764         <hashTree>
5765           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
5766             <collectionProp name="Asserion.test_strings">
5767               <stringProp name="49586">200</stringProp>
5768             </collectionProp>
5769             <stringProp name="Assertion.custom_message"></stringProp>
5770             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
5771             <boolProp name="Assertion.assume_success">false</boolProp>
5772             <intProp name="Assertion.test_type">1</intProp>
5773           </ResponseAssertion>
5774           <hashTree/>
5775           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
5776             <stringProp name="scriptLanguage">groovy</stringProp>
5777             <stringProp name="parameters"></stringProp>
5778             <stringProp name="filename"></stringProp>
5779             <stringProp name="cacheKey">true</stringProp>
5780             <stringProp name="script">import groovy.json.JsonSlurper;
5781
5782 def res = [];
5783 if (prev.getResponseCode() == &apos;200&apos;) {
5784     def jsonSlurper = new JsonSlurper();
5785     res = jsonSlurper.parseText(prev.getResponseDataAsString());
5786
5787     assert res instanceof Map;
5788     assert res.topology_template.policies instanceof List;
5789     assert res.topology_template.policies.size == 11;
5790
5791     def n = 11;
5792     for (i=0; i&lt;n; i++) {
5793         assert res.topology_template.policies[i] instanceof Map;
5794     }
5795 }</stringProp>
5796           </JSR223Assertion>
5797           <hashTree/>
5798         </hashTree>
5799         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get All Versions of TCA Policy" enabled="true">
5800           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
5801             <collectionProp name="Arguments.arguments"/>
5802           </elementProp>
5803           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
5804           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
5805           <stringProp name="HTTPSampler.protocol">https</stringProp>
5806           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
5807           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/2.0.0/policies</stringProp>
5808           <stringProp name="HTTPSampler.method">GET</stringProp>
5809           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
5810           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
5811           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
5812           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
5813           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
5814           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
5815           <stringProp name="HTTPSampler.response_timeout"></stringProp>
5816         </HTTPSamplerProxy>
5817         <hashTree>
5818           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
5819             <collectionProp name="Asserion.test_strings">
5820               <stringProp name="49586">200</stringProp>
5821             </collectionProp>
5822             <stringProp name="Assertion.custom_message"></stringProp>
5823             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
5824             <boolProp name="Assertion.assume_success">false</boolProp>
5825             <intProp name="Assertion.test_type">1</intProp>
5826           </ResponseAssertion>
5827           <hashTree/>
5828           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
5829             <stringProp name="scriptLanguage">groovy</stringProp>
5830             <stringProp name="parameters"></stringProp>
5831             <stringProp name="filename"></stringProp>
5832             <stringProp name="cacheKey">true</stringProp>
5833             <stringProp name="script">import groovy.json.JsonSlurper;
5834
5835 def res = [];
5836 if (prev.getResponseCode() == &apos;200&apos;) {
5837     def jsonSlurper = new JsonSlurper();
5838     res = jsonSlurper.parseText(prev.getResponseDataAsString());
5839
5840     assert res instanceof Map;
5841     assert res.topology_template.policies instanceof List;
5842     assert res.topology_template.policies.size == 11;
5843
5844     def n = 11;
5845     for (i=0; i&lt;n; i++) {
5846         assert res.topology_template.policies[i] instanceof Map;
5847     }
5848 }</stringProp>
5849           </JSR223Assertion>
5850           <hashTree/>
5851         </hashTree>
5852         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get TCA Policy V1" enabled="true">
5853           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
5854             <collectionProp name="Arguments.arguments"/>
5855           </elementProp>
5856           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
5857           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
5858           <stringProp name="HTTPSampler.protocol">https</stringProp>
5859           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
5860           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/2.0.0/policies/onap.restart.tca/versions/1.0.0</stringProp>
5861           <stringProp name="HTTPSampler.method">GET</stringProp>
5862           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
5863           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
5864           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
5865           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
5866           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
5867           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
5868           <stringProp name="HTTPSampler.response_timeout"></stringProp>
5869         </HTTPSamplerProxy>
5870         <hashTree>
5871           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
5872             <collectionProp name="Asserion.test_strings">
5873               <stringProp name="49586">200</stringProp>
5874             </collectionProp>
5875             <stringProp name="Assertion.custom_message"></stringProp>
5876             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
5877             <boolProp name="Assertion.assume_success">false</boolProp>
5878             <intProp name="Assertion.test_type">1</intProp>
5879           </ResponseAssertion>
5880           <hashTree/>
5881           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
5882             <stringProp name="scriptLanguage">groovy</stringProp>
5883             <stringProp name="parameters"></stringProp>
5884             <stringProp name="filename"></stringProp>
5885             <stringProp name="cacheKey">true</stringProp>
5886             <stringProp name="script">import groovy.json.JsonSlurper;
5887
5888 def res = [];
5889 if (prev.getResponseCode() == &apos;200&apos;) {
5890     def jsonSlurper = new JsonSlurper();
5891     res = jsonSlurper.parseText(prev.getResponseDataAsString());
5892
5893     assert res instanceof Map;
5894     assert res.topology_template.policies instanceof List;
5895     assert res.topology_template.policies.size == 1;
5896
5897     assert res.topology_template.policies[0] instanceof Map;
5898     assert res.topology_template.policies [0].get(&apos;onap.restart.tca&apos;).version == &quot;1.0.0&quot;;
5899 }</stringProp>
5900           </JSR223Assertion>
5901           <hashTree/>
5902         </hashTree>
5903         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get TCA Policy V2" enabled="true">
5904           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
5905             <collectionProp name="Arguments.arguments"/>
5906           </elementProp>
5907           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
5908           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
5909           <stringProp name="HTTPSampler.protocol">https</stringProp>
5910           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
5911           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/2.0.0/policies/onap.restart.tca/versions/2.0.0</stringProp>
5912           <stringProp name="HTTPSampler.method">GET</stringProp>
5913           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
5914           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
5915           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
5916           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
5917           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
5918           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
5919           <stringProp name="HTTPSampler.response_timeout"></stringProp>
5920         </HTTPSamplerProxy>
5921         <hashTree>
5922           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
5923             <collectionProp name="Asserion.test_strings">
5924               <stringProp name="49586">200</stringProp>
5925             </collectionProp>
5926             <stringProp name="Assertion.custom_message"></stringProp>
5927             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
5928             <boolProp name="Assertion.assume_success">false</boolProp>
5929             <intProp name="Assertion.test_type">1</intProp>
5930           </ResponseAssertion>
5931           <hashTree/>
5932           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
5933             <stringProp name="scriptLanguage">groovy</stringProp>
5934             <stringProp name="parameters"></stringProp>
5935             <stringProp name="filename"></stringProp>
5936             <stringProp name="cacheKey">true</stringProp>
5937             <stringProp name="script">import groovy.json.JsonSlurper;
5938
5939 def res = [];
5940 if (prev.getResponseCode() == &apos;200&apos;) {
5941     def jsonSlurper = new JsonSlurper();
5942     res = jsonSlurper.parseText(prev.getResponseDataAsString());
5943
5944     assert res instanceof Map;
5945     assert res.topology_template.policies instanceof List;
5946     assert res.topology_template.policies.size == 1;
5947
5948     assert res.topology_template.policies[0] instanceof Map;
5949     assert res.topology_template.policies [0].get(&apos;onap.restart.tca&apos;).version == &quot;2.0.0&quot;;
5950 }</stringProp>
5951           </JSR223Assertion>
5952           <hashTree/>
5953         </hashTree>
5954         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get TCA Policy V3" enabled="true">
5955           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
5956             <collectionProp name="Arguments.arguments"/>
5957           </elementProp>
5958           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
5959           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
5960           <stringProp name="HTTPSampler.protocol">https</stringProp>
5961           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
5962           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/2.0.0/policies/onap.restart.tca/versions/3.0.0</stringProp>
5963           <stringProp name="HTTPSampler.method">GET</stringProp>
5964           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
5965           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
5966           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
5967           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
5968           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
5969           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
5970           <stringProp name="HTTPSampler.response_timeout"></stringProp>
5971         </HTTPSamplerProxy>
5972         <hashTree>
5973           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
5974             <collectionProp name="Asserion.test_strings">
5975               <stringProp name="49586">200</stringProp>
5976             </collectionProp>
5977             <stringProp name="Assertion.custom_message"></stringProp>
5978             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
5979             <boolProp name="Assertion.assume_success">false</boolProp>
5980             <intProp name="Assertion.test_type">1</intProp>
5981           </ResponseAssertion>
5982           <hashTree/>
5983           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
5984             <stringProp name="scriptLanguage">groovy</stringProp>
5985             <stringProp name="parameters"></stringProp>
5986             <stringProp name="filename"></stringProp>
5987             <stringProp name="cacheKey">true</stringProp>
5988             <stringProp name="script">import groovy.json.JsonSlurper;
5989
5990 def res = [];
5991 if (prev.getResponseCode() == &apos;200&apos;) {
5992     def jsonSlurper = new JsonSlurper();
5993     res = jsonSlurper.parseText(prev.getResponseDataAsString());
5994
5995     assert res instanceof Map;
5996     assert res.topology_template.policies instanceof List;
5997     assert res.topology_template.policies.size == 1;
5998
5999     assert res.topology_template.policies[0] instanceof Map;
6000     assert res.topology_template.policies [0].get(&apos;onap.restart.tca&apos;).version == &quot;3.0.0&quot;;
6001 }</stringProp>
6002           </JSR223Assertion>
6003           <hashTree/>
6004         </hashTree>
6005         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get TCA Policy V4" enabled="true">
6006           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
6007             <collectionProp name="Arguments.arguments"/>
6008           </elementProp>
6009           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
6010           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
6011           <stringProp name="HTTPSampler.protocol">https</stringProp>
6012           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
6013           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/2.0.0/policies/onap.restart.tca/versions/4.0.0</stringProp>
6014           <stringProp name="HTTPSampler.method">GET</stringProp>
6015           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
6016           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
6017           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
6018           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
6019           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
6020           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
6021           <stringProp name="HTTPSampler.response_timeout"></stringProp>
6022         </HTTPSamplerProxy>
6023         <hashTree>
6024           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
6025             <collectionProp name="Asserion.test_strings">
6026               <stringProp name="49586">200</stringProp>
6027             </collectionProp>
6028             <stringProp name="Assertion.custom_message"></stringProp>
6029             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
6030             <boolProp name="Assertion.assume_success">false</boolProp>
6031             <intProp name="Assertion.test_type">1</intProp>
6032           </ResponseAssertion>
6033           <hashTree/>
6034           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
6035             <stringProp name="scriptLanguage">groovy</stringProp>
6036             <stringProp name="parameters"></stringProp>
6037             <stringProp name="filename"></stringProp>
6038             <stringProp name="cacheKey">true</stringProp>
6039             <stringProp name="script">import groovy.json.JsonSlurper;
6040
6041 def res = [];
6042 if (prev.getResponseCode() == &apos;200&apos;) {
6043     def jsonSlurper = new JsonSlurper();
6044     res = jsonSlurper.parseText(prev.getResponseDataAsString());
6045
6046     assert res instanceof Map;
6047     assert res.topology_template.policies instanceof List;
6048     assert res.topology_template.policies.size == 1;
6049
6050     assert res.topology_template.policies[0] instanceof Map;
6051     assert res.topology_template.policies [0].get(&apos;onap.restart.tca&apos;).version == &quot;4.0.0&quot;;
6052 }</stringProp>
6053           </JSR223Assertion>
6054           <hashTree/>
6055         </hashTree>
6056         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get TCA Policy V5" enabled="true">
6057           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
6058             <collectionProp name="Arguments.arguments"/>
6059           </elementProp>
6060           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
6061           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
6062           <stringProp name="HTTPSampler.protocol">https</stringProp>
6063           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
6064           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/2.0.0/policies/onap.restart.tca/versions/5.0.0</stringProp>
6065           <stringProp name="HTTPSampler.method">GET</stringProp>
6066           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
6067           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
6068           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
6069           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
6070           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
6071           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
6072           <stringProp name="HTTPSampler.response_timeout"></stringProp>
6073         </HTTPSamplerProxy>
6074         <hashTree>
6075           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
6076             <collectionProp name="Asserion.test_strings">
6077               <stringProp name="49586">200</stringProp>
6078             </collectionProp>
6079             <stringProp name="Assertion.custom_message"></stringProp>
6080             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
6081             <boolProp name="Assertion.assume_success">false</boolProp>
6082             <intProp name="Assertion.test_type">1</intProp>
6083           </ResponseAssertion>
6084           <hashTree/>
6085           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
6086             <stringProp name="scriptLanguage">groovy</stringProp>
6087             <stringProp name="parameters"></stringProp>
6088             <stringProp name="filename"></stringProp>
6089             <stringProp name="cacheKey">true</stringProp>
6090             <stringProp name="script">import groovy.json.JsonSlurper;
6091
6092 def res = [];
6093 if (prev.getResponseCode() == &apos;200&apos;) {
6094     def jsonSlurper = new JsonSlurper();
6095     res = jsonSlurper.parseText(prev.getResponseDataAsString());
6096
6097     assert res instanceof Map;
6098     assert res.topology_template.policies instanceof List;
6099     assert res.topology_template.policies.size == 1;
6100
6101     assert res.topology_template.policies[0] instanceof Map;
6102     assert res.topology_template.policies [0].get(&apos;onap.restart.tca&apos;).version == &quot;5.0.0&quot;;
6103 }</stringProp>
6104           </JSR223Assertion>
6105           <hashTree/>
6106         </hashTree>
6107         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get TCA Policy V6" enabled="true">
6108           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
6109             <collectionProp name="Arguments.arguments"/>
6110           </elementProp>
6111           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
6112           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
6113           <stringProp name="HTTPSampler.protocol">https</stringProp>
6114           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
6115           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/2.0.0/policies/onap.restart.tca/versions/6.0.0</stringProp>
6116           <stringProp name="HTTPSampler.method">GET</stringProp>
6117           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
6118           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
6119           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
6120           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
6121           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
6122           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
6123           <stringProp name="HTTPSampler.response_timeout"></stringProp>
6124         </HTTPSamplerProxy>
6125         <hashTree>
6126           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
6127             <collectionProp name="Asserion.test_strings">
6128               <stringProp name="49586">200</stringProp>
6129             </collectionProp>
6130             <stringProp name="Assertion.custom_message"></stringProp>
6131             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
6132             <boolProp name="Assertion.assume_success">false</boolProp>
6133             <intProp name="Assertion.test_type">1</intProp>
6134           </ResponseAssertion>
6135           <hashTree/>
6136           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
6137             <stringProp name="scriptLanguage">groovy</stringProp>
6138             <stringProp name="parameters"></stringProp>
6139             <stringProp name="filename"></stringProp>
6140             <stringProp name="cacheKey">true</stringProp>
6141             <stringProp name="script">import groovy.json.JsonSlurper;
6142
6143 def res = [];
6144 if (prev.getResponseCode() == &apos;200&apos;) {
6145     def jsonSlurper = new JsonSlurper();
6146     res = jsonSlurper.parseText(prev.getResponseDataAsString());
6147
6148     assert res instanceof Map;
6149     assert res.topology_template.policies instanceof List;
6150     assert res.topology_template.policies.size == 1;
6151
6152     assert res.topology_template.policies[0] instanceof Map;
6153     assert res.topology_template.policies [0].get(&apos;onap.restart.tca&apos;).version == &quot;6.0.0&quot;;
6154 }</stringProp>
6155           </JSR223Assertion>
6156           <hashTree/>
6157         </hashTree>
6158         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get TCA Policy V7" enabled="true">
6159           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
6160             <collectionProp name="Arguments.arguments"/>
6161           </elementProp>
6162           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
6163           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
6164           <stringProp name="HTTPSampler.protocol">https</stringProp>
6165           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
6166           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/2.0.0/policies/onap.restart.tca/versions/7.0.0</stringProp>
6167           <stringProp name="HTTPSampler.method">GET</stringProp>
6168           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
6169           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
6170           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
6171           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
6172           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
6173           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
6174           <stringProp name="HTTPSampler.response_timeout"></stringProp>
6175         </HTTPSamplerProxy>
6176         <hashTree>
6177           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
6178             <collectionProp name="Asserion.test_strings">
6179               <stringProp name="49586">200</stringProp>
6180             </collectionProp>
6181             <stringProp name="Assertion.custom_message"></stringProp>
6182             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
6183             <boolProp name="Assertion.assume_success">false</boolProp>
6184             <intProp name="Assertion.test_type">1</intProp>
6185           </ResponseAssertion>
6186           <hashTree/>
6187           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
6188             <stringProp name="scriptLanguage">groovy</stringProp>
6189             <stringProp name="parameters"></stringProp>
6190             <stringProp name="filename"></stringProp>
6191             <stringProp name="cacheKey">true</stringProp>
6192             <stringProp name="script">import groovy.json.JsonSlurper;
6193
6194 def res = [];
6195 if (prev.getResponseCode() == &apos;200&apos;) {
6196     def jsonSlurper = new JsonSlurper();
6197     res = jsonSlurper.parseText(prev.getResponseDataAsString());
6198
6199     assert res instanceof Map;
6200     assert res.topology_template.policies instanceof List;
6201     assert res.topology_template.policies.size == 1;
6202
6203     assert res.topology_template.policies[0] instanceof Map;
6204     assert res.topology_template.policies [0].get(&apos;onap.restart.tca&apos;).version == &quot;7.0.0&quot;;
6205 }</stringProp>
6206           </JSR223Assertion>
6207           <hashTree/>
6208         </hashTree>
6209         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get TCA Policy V8" enabled="true">
6210           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
6211             <collectionProp name="Arguments.arguments"/>
6212           </elementProp>
6213           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
6214           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
6215           <stringProp name="HTTPSampler.protocol">https</stringProp>
6216           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
6217           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/2.0.0/policies/onap.restart.tca/versions/8.0.0</stringProp>
6218           <stringProp name="HTTPSampler.method">GET</stringProp>
6219           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
6220           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
6221           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
6222           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
6223           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
6224           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
6225           <stringProp name="HTTPSampler.response_timeout"></stringProp>
6226         </HTTPSamplerProxy>
6227         <hashTree>
6228           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
6229             <collectionProp name="Asserion.test_strings">
6230               <stringProp name="49586">200</stringProp>
6231             </collectionProp>
6232             <stringProp name="Assertion.custom_message"></stringProp>
6233             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
6234             <boolProp name="Assertion.assume_success">false</boolProp>
6235             <intProp name="Assertion.test_type">1</intProp>
6236           </ResponseAssertion>
6237           <hashTree/>
6238           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
6239             <stringProp name="scriptLanguage">groovy</stringProp>
6240             <stringProp name="parameters"></stringProp>
6241             <stringProp name="filename"></stringProp>
6242             <stringProp name="cacheKey">true</stringProp>
6243             <stringProp name="script">import groovy.json.JsonSlurper;
6244
6245 def res = [];
6246 if (prev.getResponseCode() == &apos;200&apos;) {
6247     def jsonSlurper = new JsonSlurper();
6248     res = jsonSlurper.parseText(prev.getResponseDataAsString());
6249
6250     assert res instanceof Map;
6251     assert res.topology_template.policies instanceof List;
6252     assert res.topology_template.policies.size == 1;
6253
6254     assert res.topology_template.policies[0] instanceof Map;
6255     assert res.topology_template.policies [0].get(&apos;onap.restart.tca&apos;).version == &quot;8.0.0&quot;;
6256 }</stringProp>
6257           </JSR223Assertion>
6258           <hashTree/>
6259         </hashTree>
6260         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get TCA Policy V9" enabled="true">
6261           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
6262             <collectionProp name="Arguments.arguments"/>
6263           </elementProp>
6264           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
6265           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
6266           <stringProp name="HTTPSampler.protocol">https</stringProp>
6267           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
6268           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/2.0.0/policies/onap.restart.tca/versions/9.0.0</stringProp>
6269           <stringProp name="HTTPSampler.method">GET</stringProp>
6270           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
6271           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
6272           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
6273           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
6274           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
6275           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
6276           <stringProp name="HTTPSampler.response_timeout"></stringProp>
6277         </HTTPSamplerProxy>
6278         <hashTree>
6279           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
6280             <collectionProp name="Asserion.test_strings">
6281               <stringProp name="49586">200</stringProp>
6282             </collectionProp>
6283             <stringProp name="Assertion.custom_message"></stringProp>
6284             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
6285             <boolProp name="Assertion.assume_success">false</boolProp>
6286             <intProp name="Assertion.test_type">1</intProp>
6287           </ResponseAssertion>
6288           <hashTree/>
6289           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
6290             <stringProp name="scriptLanguage">groovy</stringProp>
6291             <stringProp name="parameters"></stringProp>
6292             <stringProp name="filename"></stringProp>
6293             <stringProp name="cacheKey">true</stringProp>
6294             <stringProp name="script">import groovy.json.JsonSlurper;
6295
6296 def res = [];
6297 if (prev.getResponseCode() == &apos;200&apos;) {
6298     def jsonSlurper = new JsonSlurper();
6299     res = jsonSlurper.parseText(prev.getResponseDataAsString());
6300
6301     assert res instanceof Map;
6302     assert res.topology_template.policies instanceof List;
6303     assert res.topology_template.policies.size == 1;
6304
6305     assert res.topology_template.policies[0] instanceof Map;
6306     assert res.topology_template.policies [0].get(&apos;onap.restart.tca&apos;).version == &quot;9.0.0&quot;;
6307 }</stringProp>
6308           </JSR223Assertion>
6309           <hashTree/>
6310         </hashTree>
6311         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get TCA Policy V10" enabled="true">
6312           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
6313             <collectionProp name="Arguments.arguments"/>
6314           </elementProp>
6315           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
6316           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
6317           <stringProp name="HTTPSampler.protocol">https</stringProp>
6318           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
6319           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/2.0.0/policies/onap.restart.tca/versions/10.0.0</stringProp>
6320           <stringProp name="HTTPSampler.method">GET</stringProp>
6321           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
6322           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
6323           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
6324           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
6325           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
6326           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
6327           <stringProp name="HTTPSampler.response_timeout"></stringProp>
6328         </HTTPSamplerProxy>
6329         <hashTree>
6330           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
6331             <collectionProp name="Asserion.test_strings">
6332               <stringProp name="49586">200</stringProp>
6333             </collectionProp>
6334             <stringProp name="Assertion.custom_message"></stringProp>
6335             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
6336             <boolProp name="Assertion.assume_success">false</boolProp>
6337             <intProp name="Assertion.test_type">1</intProp>
6338           </ResponseAssertion>
6339           <hashTree/>
6340           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
6341             <stringProp name="scriptLanguage">groovy</stringProp>
6342             <stringProp name="parameters"></stringProp>
6343             <stringProp name="filename"></stringProp>
6344             <stringProp name="cacheKey">true</stringProp>
6345             <stringProp name="script">import groovy.json.JsonSlurper;
6346
6347 def res = [];
6348 if (prev.getResponseCode() == &apos;200&apos;) {
6349     def jsonSlurper = new JsonSlurper();
6350     res = jsonSlurper.parseText(prev.getResponseDataAsString());
6351
6352     assert res instanceof Map;
6353     assert res.topology_template.policies instanceof List;
6354     assert res.topology_template.policies.size == 1;
6355
6356     assert res.topology_template.policies[0] instanceof Map;
6357     assert res.topology_template.policies [0].get(&apos;onap.restart.tca&apos;).version == &quot;10.0.0&quot;;
6358 }</stringProp>
6359           </JSR223Assertion>
6360           <hashTree/>
6361         </hashTree>
6362         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get TCA Policy V11" enabled="true">
6363           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
6364             <collectionProp name="Arguments.arguments"/>
6365           </elementProp>
6366           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
6367           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
6368           <stringProp name="HTTPSampler.protocol">https</stringProp>
6369           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
6370           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/2.0.0/policies/onap.restart.tca/versions/11.0.0</stringProp>
6371           <stringProp name="HTTPSampler.method">GET</stringProp>
6372           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
6373           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
6374           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
6375           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
6376           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
6377           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
6378           <stringProp name="HTTPSampler.response_timeout"></stringProp>
6379         </HTTPSamplerProxy>
6380         <hashTree>
6381           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
6382             <collectionProp name="Asserion.test_strings">
6383               <stringProp name="49586">200</stringProp>
6384             </collectionProp>
6385             <stringProp name="Assertion.custom_message"></stringProp>
6386             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
6387             <boolProp name="Assertion.assume_success">false</boolProp>
6388             <intProp name="Assertion.test_type">1</intProp>
6389           </ResponseAssertion>
6390           <hashTree/>
6391           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
6392             <stringProp name="scriptLanguage">groovy</stringProp>
6393             <stringProp name="parameters"></stringProp>
6394             <stringProp name="filename"></stringProp>
6395             <stringProp name="cacheKey">true</stringProp>
6396             <stringProp name="script">import groovy.json.JsonSlurper;
6397
6398 def res = [];
6399 if (prev.getResponseCode() == &apos;200&apos;) {
6400     def jsonSlurper = new JsonSlurper();
6401     res = jsonSlurper.parseText(prev.getResponseDataAsString());
6402
6403     assert res instanceof Map;
6404     assert res.topology_template.policies instanceof List;
6405     assert res.topology_template.policies.size == 1;
6406
6407     assert res.topology_template.policies[0] instanceof Map;
6408     assert res.topology_template.policies [0].get(&apos;onap.restart.tca&apos;).version == &quot;11.0.0&quot;;
6409 }</stringProp>
6410           </JSR223Assertion>
6411           <hashTree/>
6412         </hashTree>
6413         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get latest TCA Policy" enabled="true">
6414           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
6415             <collectionProp name="Arguments.arguments"/>
6416           </elementProp>
6417           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
6418           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
6419           <stringProp name="HTTPSampler.protocol">https</stringProp>
6420           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
6421           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/2.0.0/policies/onap.restart.tca/versions/latest</stringProp>
6422           <stringProp name="HTTPSampler.method">GET</stringProp>
6423           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
6424           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
6425           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
6426           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
6427           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
6428           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
6429           <stringProp name="HTTPSampler.response_timeout"></stringProp>
6430         </HTTPSamplerProxy>
6431         <hashTree>
6432           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
6433             <collectionProp name="Asserion.test_strings">
6434               <stringProp name="49586">200</stringProp>
6435             </collectionProp>
6436             <stringProp name="Assertion.custom_message"></stringProp>
6437             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
6438             <boolProp name="Assertion.assume_success">false</boolProp>
6439             <intProp name="Assertion.test_type">1</intProp>
6440           </ResponseAssertion>
6441           <hashTree/>
6442           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
6443             <stringProp name="scriptLanguage">groovy</stringProp>
6444             <stringProp name="parameters"></stringProp>
6445             <stringProp name="filename"></stringProp>
6446             <stringProp name="cacheKey">true</stringProp>
6447             <stringProp name="script">import groovy.json.JsonSlurper;
6448
6449 def res = [];
6450 if (prev.getResponseCode() == &apos;200&apos;) {
6451     def jsonSlurper = new JsonSlurper();
6452     res = jsonSlurper.parseText(prev.getResponseDataAsString());
6453
6454     assert res instanceof Map;
6455     assert res.topology_template.policies instanceof List;
6456     assert res.topology_template.policies.size == 1;
6457
6458     assert res.topology_template.policies[0] instanceof Map;
6459     assert res.topology_template.policies [0].get(&apos;onap.restart.tca&apos;).version == &quot;11.0.0&quot;;
6460 }</stringProp>
6461           </JSR223Assertion>
6462           <hashTree/>
6463         </hashTree>
6464         <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true">
6465           <stringProp name="ConstantTimer.delay">10000</stringProp>
6466         </ConstantTimer>
6467         <hashTree/>
6468         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create Guard Policy V1" enabled="true">
6469           <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
6470           <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
6471             <collectionProp name="Arguments.arguments">
6472               <elementProp name="" elementType="HTTPArgument">
6473                 <boolProp name="HTTPArgument.always_encode">false</boolProp>
6474                 <stringProp name="Argument.value">{&#xd;
6475   &quot;policy-id&quot; : &quot;guard.frequency.scaleout&quot;,&#xd;
6476   &quot;policy-version&quot; : &quot;1&quot;,&#xd;
6477   &quot;content&quot; : {&#xd;
6478             &quot;actor&quot;: &quot;SO&quot;,&#xd;
6479             &quot;recipe&quot;: &quot;scaleOut&quot;,&#xd;
6480             &quot;targets&quot;: &quot;.*&quot;,&#xd;
6481             &quot;clname&quot;: &quot;ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3&quot;,&#xd;
6482             &quot;limit&quot;: &quot;1&quot;,&#xd;
6483             &quot;timeWindow&quot;: &quot;10&quot;,&#xd;
6484             &quot;timeUnits&quot;: &quot;minute&quot;,&#xd;
6485             &quot;guardActiveStart&quot;: &quot;00:00:01-05:00&quot;,&#xd;
6486             &quot;guardActiveEnd&quot;: &quot;23:59:59-05:00&quot;&#xd;
6487    }&#xd;
6488 }</stringProp>
6489                 <stringProp name="Argument.metadata">=</stringProp>
6490               </elementProp>
6491             </collectionProp>
6492           </elementProp>
6493           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
6494           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
6495           <stringProp name="HTTPSampler.protocol">https</stringProp>
6496           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
6497           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.controlloop.Guard/versions/1.0.0/policies</stringProp>
6498           <stringProp name="HTTPSampler.method">POST</stringProp>
6499           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
6500           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
6501           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
6502           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
6503           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
6504           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
6505           <stringProp name="HTTPSampler.response_timeout"></stringProp>
6506         </HTTPSamplerProxy>
6507         <hashTree>
6508           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
6509             <collectionProp name="Asserion.test_strings">
6510               <stringProp name="49586">200</stringProp>
6511             </collectionProp>
6512             <stringProp name="Assertion.custom_message"></stringProp>
6513             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
6514             <boolProp name="Assertion.assume_success">false</boolProp>
6515             <intProp name="Assertion.test_type">1</intProp>
6516           </ResponseAssertion>
6517           <hashTree/>
6518           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
6519             <stringProp name="scriptLanguage">groovy</stringProp>
6520             <stringProp name="parameters"></stringProp>
6521             <stringProp name="filename"></stringProp>
6522             <stringProp name="cacheKey">true</stringProp>
6523             <stringProp name="script">import groovy.json.JsonSlurper;
6524
6525 def res = [];
6526 if (prev.getResponseCode() == &apos;200&apos;) {
6527     def jsonSlurper = new JsonSlurper();
6528     res = jsonSlurper.parseText(prev.getResponseDataAsString());
6529
6530     assert res instanceof Map;
6531     assert res.get(&apos;guard.frequency.scaleout&apos;).version == &quot;1.0.0&quot;;
6532 }</stringProp>
6533           </JSR223Assertion>
6534           <hashTree/>
6535         </hashTree>
6536         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create Guard Policy V5" enabled="true">
6537           <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
6538           <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
6539             <collectionProp name="Arguments.arguments">
6540               <elementProp name="" elementType="HTTPArgument">
6541                 <boolProp name="HTTPArgument.always_encode">false</boolProp>
6542                 <stringProp name="Argument.value">{&#xd;
6543   &quot;policy-id&quot; : &quot;guard.frequency.scaleout&quot;,&#xd;
6544   &quot;policy-version&quot; : &quot;5&quot;,&#xd;
6545   &quot;content&quot; : {&#xd;
6546             &quot;actor&quot;: &quot;SO&quot;,&#xd;
6547             &quot;recipe&quot;: &quot;scaleOut&quot;,&#xd;
6548             &quot;targets&quot;: &quot;.*&quot;,&#xd;
6549             &quot;clname&quot;: &quot;ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3&quot;,&#xd;
6550             &quot;limit&quot;: &quot;1&quot;,&#xd;
6551             &quot;timeWindow&quot;: &quot;10&quot;,&#xd;
6552             &quot;timeUnits&quot;: &quot;minute&quot;,&#xd;
6553             &quot;guardActiveStart&quot;: &quot;00:00:01-05:00&quot;,&#xd;
6554             &quot;guardActiveEnd&quot;: &quot;23:59:59-05:00&quot;&#xd;
6555    }&#xd;
6556 }</stringProp>
6557                 <stringProp name="Argument.metadata">=</stringProp>
6558               </elementProp>
6559             </collectionProp>
6560           </elementProp>
6561           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
6562           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
6563           <stringProp name="HTTPSampler.protocol">https</stringProp>
6564           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
6565           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.controlloop.Guard/versions/1.0.0/policies</stringProp>
6566           <stringProp name="HTTPSampler.method">POST</stringProp>
6567           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
6568           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
6569           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
6570           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
6571           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
6572           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
6573           <stringProp name="HTTPSampler.response_timeout"></stringProp>
6574         </HTTPSamplerProxy>
6575         <hashTree>
6576           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
6577             <collectionProp name="Asserion.test_strings">
6578               <stringProp name="49586">200</stringProp>
6579             </collectionProp>
6580             <stringProp name="Assertion.custom_message"></stringProp>
6581             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
6582             <boolProp name="Assertion.assume_success">false</boolProp>
6583             <intProp name="Assertion.test_type">1</intProp>
6584           </ResponseAssertion>
6585           <hashTree/>
6586           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
6587             <stringProp name="scriptLanguage">groovy</stringProp>
6588             <stringProp name="parameters"></stringProp>
6589             <stringProp name="filename"></stringProp>
6590             <stringProp name="cacheKey">true</stringProp>
6591             <stringProp name="script">import groovy.json.JsonSlurper;
6592
6593 def res = [];
6594 if (prev.getResponseCode() == &apos;200&apos;) {
6595     def jsonSlurper = new JsonSlurper();
6596     res = jsonSlurper.parseText(prev.getResponseDataAsString());
6597
6598     assert res instanceof Map;
6599     assert res.get(&apos;guard.frequency.scaleout&apos;).version == &quot;5.0.0&quot;;
6600 }</stringProp>
6601           </JSR223Assertion>
6602           <hashTree/>
6603         </hashTree>
6604         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create Guard Policy V9" enabled="true">
6605           <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
6606           <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
6607             <collectionProp name="Arguments.arguments">
6608               <elementProp name="" elementType="HTTPArgument">
6609                 <boolProp name="HTTPArgument.always_encode">false</boolProp>
6610                 <stringProp name="Argument.value">{&#xd;
6611   &quot;policy-id&quot; : &quot;guard.frequency.scaleout&quot;,&#xd;
6612   &quot;policy-version&quot; : &quot;9&quot;,&#xd;
6613   &quot;content&quot; : {&#xd;
6614             &quot;actor&quot;: &quot;SO&quot;,&#xd;
6615             &quot;recipe&quot;: &quot;scaleOut&quot;,&#xd;
6616             &quot;targets&quot;: &quot;.*&quot;,&#xd;
6617             &quot;clname&quot;: &quot;ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3&quot;,&#xd;
6618             &quot;limit&quot;: &quot;1&quot;,&#xd;
6619             &quot;timeWindow&quot;: &quot;10&quot;,&#xd;
6620             &quot;timeUnits&quot;: &quot;minute&quot;,&#xd;
6621             &quot;guardActiveStart&quot;: &quot;00:00:01-05:00&quot;,&#xd;
6622             &quot;guardActiveEnd&quot;: &quot;23:59:59-05:00&quot;&#xd;
6623    }&#xd;
6624 }</stringProp>
6625                 <stringProp name="Argument.metadata">=</stringProp>
6626               </elementProp>
6627             </collectionProp>
6628           </elementProp>
6629           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
6630           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
6631           <stringProp name="HTTPSampler.protocol">https</stringProp>
6632           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
6633           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.controlloop.Guard/versions/1.0.0/policies</stringProp>
6634           <stringProp name="HTTPSampler.method">POST</stringProp>
6635           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
6636           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
6637           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
6638           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
6639           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
6640           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
6641           <stringProp name="HTTPSampler.response_timeout"></stringProp>
6642         </HTTPSamplerProxy>
6643         <hashTree>
6644           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
6645             <collectionProp name="Asserion.test_strings">
6646               <stringProp name="49586">200</stringProp>
6647             </collectionProp>
6648             <stringProp name="Assertion.custom_message"></stringProp>
6649             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
6650             <boolProp name="Assertion.assume_success">false</boolProp>
6651             <intProp name="Assertion.test_type">1</intProp>
6652           </ResponseAssertion>
6653           <hashTree/>
6654           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
6655             <stringProp name="scriptLanguage">groovy</stringProp>
6656             <stringProp name="parameters"></stringProp>
6657             <stringProp name="filename"></stringProp>
6658             <stringProp name="cacheKey">true</stringProp>
6659             <stringProp name="script">import groovy.json.JsonSlurper;
6660
6661 def res = [];
6662 if (prev.getResponseCode() == &apos;200&apos;) {
6663     def jsonSlurper = new JsonSlurper();
6664     res = jsonSlurper.parseText(prev.getResponseDataAsString());
6665
6666     assert res instanceof Map;
6667     assert res.get(&apos;guard.frequency.scaleout&apos;).version == &quot;9.0.0&quot;;
6668 }</stringProp>
6669           </JSR223Assertion>
6670           <hashTree/>
6671         </hashTree>
6672         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create Guard Policy V12" enabled="true">
6673           <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
6674           <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
6675             <collectionProp name="Arguments.arguments">
6676               <elementProp name="" elementType="HTTPArgument">
6677                 <boolProp name="HTTPArgument.always_encode">false</boolProp>
6678                 <stringProp name="Argument.value">{&#xd;
6679   &quot;policy-id&quot; : &quot;guard.frequency.scaleout&quot;,&#xd;
6680   &quot;policy-version&quot; : &quot;12&quot;,&#xd;
6681   &quot;content&quot; : {&#xd;
6682             &quot;actor&quot;: &quot;SO&quot;,&#xd;
6683             &quot;recipe&quot;: &quot;scaleOut&quot;,&#xd;
6684             &quot;targets&quot;: &quot;.*&quot;,&#xd;
6685             &quot;clname&quot;: &quot;ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3&quot;,&#xd;
6686             &quot;limit&quot;: &quot;1&quot;,&#xd;
6687             &quot;timeWindow&quot;: &quot;10&quot;,&#xd;
6688             &quot;timeUnits&quot;: &quot;minute&quot;,&#xd;
6689             &quot;guardActiveStart&quot;: &quot;00:00:01-05:00&quot;,&#xd;
6690             &quot;guardActiveEnd&quot;: &quot;23:59:59-05:00&quot;&#xd;
6691    }&#xd;
6692 }</stringProp>
6693                 <stringProp name="Argument.metadata">=</stringProp>
6694               </elementProp>
6695             </collectionProp>
6696           </elementProp>
6697           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
6698           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
6699           <stringProp name="HTTPSampler.protocol">https</stringProp>
6700           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
6701           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.controlloop.Guard/versions/1.0.0/policies</stringProp>
6702           <stringProp name="HTTPSampler.method">POST</stringProp>
6703           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
6704           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
6705           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
6706           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
6707           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
6708           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
6709           <stringProp name="HTTPSampler.response_timeout"></stringProp>
6710         </HTTPSamplerProxy>
6711         <hashTree>
6712           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
6713             <collectionProp name="Asserion.test_strings">
6714               <stringProp name="49586">200</stringProp>
6715             </collectionProp>
6716             <stringProp name="Assertion.custom_message"></stringProp>
6717             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
6718             <boolProp name="Assertion.assume_success">false</boolProp>
6719             <intProp name="Assertion.test_type">1</intProp>
6720           </ResponseAssertion>
6721           <hashTree/>
6722           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
6723             <stringProp name="scriptLanguage">groovy</stringProp>
6724             <stringProp name="parameters"></stringProp>
6725             <stringProp name="filename"></stringProp>
6726             <stringProp name="cacheKey">true</stringProp>
6727             <stringProp name="script">import groovy.json.JsonSlurper;
6728
6729 def res = [];
6730 if (prev.getResponseCode() == &apos;200&apos;) {
6731     def jsonSlurper = new JsonSlurper();
6732     res = jsonSlurper.parseText(prev.getResponseDataAsString());
6733
6734     assert res instanceof Map;
6735     assert res.get(&apos;guard.frequency.scaleout&apos;).version == &quot;12.0.0&quot;;
6736 }</stringProp>
6737           </JSR223Assertion>
6738           <hashTree/>
6739         </hashTree>
6740         <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true">
6741           <stringProp name="ConstantTimer.delay">10000</stringProp>
6742         </ConstantTimer>
6743         <hashTree/>
6744         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Guard Policy V1" enabled="true">
6745           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
6746             <collectionProp name="Arguments.arguments"/>
6747           </elementProp>
6748           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
6749           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
6750           <stringProp name="HTTPSampler.protocol">https</stringProp>
6751           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
6752           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.controlloop.Guard/versions/1.0.0/policies/guard.frequency.scaleout/versions/1</stringProp>
6753           <stringProp name="HTTPSampler.method">GET</stringProp>
6754           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
6755           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
6756           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
6757           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
6758           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
6759           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
6760           <stringProp name="HTTPSampler.response_timeout"></stringProp>
6761         </HTTPSamplerProxy>
6762         <hashTree>
6763           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
6764             <collectionProp name="Asserion.test_strings">
6765               <stringProp name="49586">200</stringProp>
6766             </collectionProp>
6767             <stringProp name="Assertion.custom_message"></stringProp>
6768             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
6769             <boolProp name="Assertion.assume_success">false</boolProp>
6770             <intProp name="Assertion.test_type">1</intProp>
6771           </ResponseAssertion>
6772           <hashTree/>
6773           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
6774             <stringProp name="scriptLanguage">groovy</stringProp>
6775             <stringProp name="parameters"></stringProp>
6776             <stringProp name="filename"></stringProp>
6777             <stringProp name="cacheKey">true</stringProp>
6778             <stringProp name="script">import groovy.json.JsonSlurper;
6779
6780 def res = [];
6781 if (prev.getResponseCode() == &apos;200&apos;) {
6782     def jsonSlurper = new JsonSlurper();
6783     res = jsonSlurper.parseText(prev.getResponseDataAsString());
6784
6785     assert res instanceof Map;
6786     assert res.get(&apos;guard.frequency.scaleout&apos;).version == &quot;1.0.0&quot;;
6787 }</stringProp>
6788           </JSR223Assertion>
6789           <hashTree/>
6790         </hashTree>
6791         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Guard Policy V5" enabled="true">
6792           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
6793             <collectionProp name="Arguments.arguments"/>
6794           </elementProp>
6795           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
6796           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
6797           <stringProp name="HTTPSampler.protocol">https</stringProp>
6798           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
6799           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.controlloop.Guard/versions/1.0.0/policies/guard.frequency.scaleout/versions/5</stringProp>
6800           <stringProp name="HTTPSampler.method">GET</stringProp>
6801           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
6802           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
6803           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
6804           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
6805           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
6806           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
6807           <stringProp name="HTTPSampler.response_timeout"></stringProp>
6808         </HTTPSamplerProxy>
6809         <hashTree>
6810           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
6811             <collectionProp name="Asserion.test_strings">
6812               <stringProp name="49586">200</stringProp>
6813             </collectionProp>
6814             <stringProp name="Assertion.custom_message"></stringProp>
6815             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
6816             <boolProp name="Assertion.assume_success">false</boolProp>
6817             <intProp name="Assertion.test_type">1</intProp>
6818           </ResponseAssertion>
6819           <hashTree/>
6820           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
6821             <stringProp name="scriptLanguage">groovy</stringProp>
6822             <stringProp name="parameters"></stringProp>
6823             <stringProp name="filename"></stringProp>
6824             <stringProp name="cacheKey">true</stringProp>
6825             <stringProp name="script">import groovy.json.JsonSlurper;
6826
6827 def res = [];
6828 if (prev.getResponseCode() == &apos;200&apos;) {
6829     def jsonSlurper = new JsonSlurper();
6830     res = jsonSlurper.parseText(prev.getResponseDataAsString());
6831
6832     assert res instanceof Map;
6833     assert res.get(&apos;guard.frequency.scaleout&apos;).version == &quot;5.0.0&quot;;
6834 }</stringProp>
6835           </JSR223Assertion>
6836           <hashTree/>
6837         </hashTree>
6838         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Guard Policy V9" enabled="true">
6839           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
6840             <collectionProp name="Arguments.arguments"/>
6841           </elementProp>
6842           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
6843           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
6844           <stringProp name="HTTPSampler.protocol">https</stringProp>
6845           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
6846           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.controlloop.Guard/versions/1.0.0/policies/guard.frequency.scaleout/versions/9</stringProp>
6847           <stringProp name="HTTPSampler.method">GET</stringProp>
6848           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
6849           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
6850           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
6851           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
6852           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
6853           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
6854           <stringProp name="HTTPSampler.response_timeout"></stringProp>
6855         </HTTPSamplerProxy>
6856         <hashTree>
6857           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
6858             <collectionProp name="Asserion.test_strings">
6859               <stringProp name="49586">200</stringProp>
6860             </collectionProp>
6861             <stringProp name="Assertion.custom_message"></stringProp>
6862             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
6863             <boolProp name="Assertion.assume_success">false</boolProp>
6864             <intProp name="Assertion.test_type">1</intProp>
6865           </ResponseAssertion>
6866           <hashTree/>
6867           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
6868             <stringProp name="scriptLanguage">groovy</stringProp>
6869             <stringProp name="parameters"></stringProp>
6870             <stringProp name="filename"></stringProp>
6871             <stringProp name="cacheKey">true</stringProp>
6872             <stringProp name="script">import groovy.json.JsonSlurper;
6873
6874 def res = [];
6875 if (prev.getResponseCode() == &apos;200&apos;) {
6876     def jsonSlurper = new JsonSlurper();
6877     res = jsonSlurper.parseText(prev.getResponseDataAsString());
6878
6879     assert res instanceof Map;
6880     assert res.get(&apos;guard.frequency.scaleout&apos;).version == &quot;9.0.0&quot;;
6881 }</stringProp>
6882           </JSR223Assertion>
6883           <hashTree/>
6884         </hashTree>
6885         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Guard Policy V12" enabled="true">
6886           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
6887             <collectionProp name="Arguments.arguments"/>
6888           </elementProp>
6889           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
6890           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
6891           <stringProp name="HTTPSampler.protocol">https</stringProp>
6892           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
6893           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.controlloop.Guard/versions/1.0.0/policies/guard.frequency.scaleout/versions/12</stringProp>
6894           <stringProp name="HTTPSampler.method">GET</stringProp>
6895           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
6896           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
6897           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
6898           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
6899           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
6900           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
6901           <stringProp name="HTTPSampler.response_timeout"></stringProp>
6902         </HTTPSamplerProxy>
6903         <hashTree>
6904           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
6905             <collectionProp name="Asserion.test_strings">
6906               <stringProp name="49586">200</stringProp>
6907             </collectionProp>
6908             <stringProp name="Assertion.custom_message"></stringProp>
6909             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
6910             <boolProp name="Assertion.assume_success">false</boolProp>
6911             <intProp name="Assertion.test_type">1</intProp>
6912           </ResponseAssertion>
6913           <hashTree/>
6914           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
6915             <stringProp name="scriptLanguage">groovy</stringProp>
6916             <stringProp name="parameters"></stringProp>
6917             <stringProp name="filename"></stringProp>
6918             <stringProp name="cacheKey">true</stringProp>
6919             <stringProp name="script">import groovy.json.JsonSlurper;
6920
6921 def res = [];
6922 if (prev.getResponseCode() == &apos;200&apos;) {
6923     def jsonSlurper = new JsonSlurper();
6924     res = jsonSlurper.parseText(prev.getResponseDataAsString());
6925
6926     assert res instanceof Map;
6927     assert res.get(&apos;guard.frequency.scaleout&apos;).version == &quot;12.0.0&quot;;
6928 }</stringProp>
6929           </JSR223Assertion>
6930           <hashTree/>
6931         </hashTree>
6932         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Latest Guard Policy" enabled="true">
6933           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
6934             <collectionProp name="Arguments.arguments"/>
6935           </elementProp>
6936           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
6937           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
6938           <stringProp name="HTTPSampler.protocol">https</stringProp>
6939           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
6940           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.controlloop.Guard/versions/1.0.0/policies/guard.frequency.scaleout/versions/latest</stringProp>
6941           <stringProp name="HTTPSampler.method">GET</stringProp>
6942           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
6943           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
6944           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
6945           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
6946           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
6947           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
6948           <stringProp name="HTTPSampler.response_timeout"></stringProp>
6949         </HTTPSamplerProxy>
6950         <hashTree>
6951           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
6952             <collectionProp name="Asserion.test_strings">
6953               <stringProp name="49586">200</stringProp>
6954             </collectionProp>
6955             <stringProp name="Assertion.custom_message"></stringProp>
6956             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
6957             <boolProp name="Assertion.assume_success">false</boolProp>
6958             <intProp name="Assertion.test_type">1</intProp>
6959           </ResponseAssertion>
6960           <hashTree/>
6961           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
6962             <stringProp name="scriptLanguage">groovy</stringProp>
6963             <stringProp name="parameters"></stringProp>
6964             <stringProp name="filename"></stringProp>
6965             <stringProp name="cacheKey">true</stringProp>
6966             <stringProp name="script">import groovy.json.JsonSlurper;
6967
6968 def res = [];
6969 if (prev.getResponseCode() == &apos;200&apos;) {
6970     def jsonSlurper = new JsonSlurper();
6971     res = jsonSlurper.parseText(prev.getResponseDataAsString());
6972
6973     assert res instanceof Map;
6974     assert res.get(&apos;guard.frequency.scaleout&apos;).version == &quot;12.0.0&quot;;
6975 }</stringProp>
6976           </JSR223Assertion>
6977           <hashTree/>
6978         </hashTree>
6979         <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true">
6980           <stringProp name="ConstantTimer.delay">10000</stringProp>
6981         </ConstantTimer>
6982         <hashTree/>
6983       </hashTree>
6984       <PostThreadGroup guiclass="PostThreadGroupGui" testclass="PostThreadGroup" testname="tearDown Thread Group" enabled="true">
6985         <stringProp name="ThreadGroup.on_sample_error">stoptest</stringProp>
6986         <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true">
6987           <boolProp name="LoopController.continue_forever">false</boolProp>
6988           <stringProp name="LoopController.loops">1</stringProp>
6989         </elementProp>
6990         <stringProp name="ThreadGroup.num_threads">1</stringProp>
6991         <stringProp name="ThreadGroup.ramp_time">1</stringProp>
6992         <boolProp name="ThreadGroup.scheduler">false</boolProp>
6993         <stringProp name="ThreadGroup.duration"></stringProp>
6994         <stringProp name="ThreadGroup.delay"></stringProp>
6995       </PostThreadGroup>
6996       <hashTree>
6997         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy Type V2" enabled="true">
6998           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
6999             <collectionProp name="Arguments.arguments"/>
7000           </elementProp>
7001           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
7002           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
7003           <stringProp name="HTTPSampler.protocol">https</stringProp>
7004           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
7005           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/2.0.0</stringProp>
7006           <stringProp name="HTTPSampler.method">DELETE</stringProp>
7007           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
7008           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
7009           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
7010           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
7011           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
7012           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
7013           <stringProp name="HTTPSampler.response_timeout"></stringProp>
7014         </HTTPSamplerProxy>
7015         <hashTree>
7016           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
7017             <collectionProp name="Asserion.test_strings">
7018               <stringProp name="51517">409</stringProp>
7019             </collectionProp>
7020             <stringProp name="Assertion.custom_message"></stringProp>
7021             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
7022             <boolProp name="Assertion.assume_success">false</boolProp>
7023             <intProp name="Assertion.test_type">1</intProp>
7024           </ResponseAssertion>
7025           <hashTree/>
7026           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
7027             <stringProp name="scriptLanguage">groovy</stringProp>
7028             <stringProp name="parameters"></stringProp>
7029             <stringProp name="filename"></stringProp>
7030             <stringProp name="cacheKey">true</stringProp>
7031             <stringProp name="script">import groovy.json.JsonSlurper;
7032
7033 def res = [];
7034 if (prev.getResponseCode() == &apos;409&apos;) {
7035     def jsonSlurper = new JsonSlurper();
7036     res = jsonSlurper.parseText(prev.getResponseDataAsString());
7037
7038     assert res instanceof Map;
7039     assert res.code == &quot;CONFLICT&quot;;
7040 }</stringProp>
7041           </JSR223Assertion>
7042           <hashTree/>
7043         </hashTree>
7044         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy Type V3" enabled="true">
7045           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
7046             <collectionProp name="Arguments.arguments"/>
7047           </elementProp>
7048           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
7049           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
7050           <stringProp name="HTTPSampler.protocol">https</stringProp>
7051           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
7052           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/3.0.0</stringProp>
7053           <stringProp name="HTTPSampler.method">DELETE</stringProp>
7054           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
7055           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
7056           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
7057           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
7058           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
7059           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
7060           <stringProp name="HTTPSampler.response_timeout"></stringProp>
7061         </HTTPSamplerProxy>
7062         <hashTree>
7063           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
7064             <collectionProp name="Asserion.test_strings">
7065               <stringProp name="49586">200</stringProp>
7066             </collectionProp>
7067             <stringProp name="Assertion.custom_message"></stringProp>
7068             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
7069             <boolProp name="Assertion.assume_success">false</boolProp>
7070             <intProp name="Assertion.test_type">1</intProp>
7071           </ResponseAssertion>
7072           <hashTree/>
7073           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
7074             <stringProp name="scriptLanguage">groovy</stringProp>
7075             <stringProp name="parameters"></stringProp>
7076             <stringProp name="filename"></stringProp>
7077             <stringProp name="cacheKey">true</stringProp>
7078             <stringProp name="script">import groovy.json.JsonSlurper;
7079
7080 def res = [];
7081 if (prev.getResponseCode() == &apos;200&apos;) {
7082     def jsonSlurper = new JsonSlurper();
7083     res = jsonSlurper.parseText(prev.getResponseDataAsString());
7084
7085     assert res instanceof Map;
7086     assert res.policy_types instanceof List;
7087     assert res.policy_types.size == 1;
7088     assert res.policy_types[0] instanceof Map;
7089     assert res.policy_types[0].get(&apos;onap.policies.monitoring.cdap.tca.hi.lo.app&apos;).version == &quot;3.0.0&quot;;
7090 }</stringProp>
7091           </JSR223Assertion>
7092           <hashTree/>
7093         </hashTree>
7094         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy Type V4" enabled="true">
7095           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
7096             <collectionProp name="Arguments.arguments"/>
7097           </elementProp>
7098           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
7099           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
7100           <stringProp name="HTTPSampler.protocol">https</stringProp>
7101           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
7102           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/4.0.0</stringProp>
7103           <stringProp name="HTTPSampler.method">DELETE</stringProp>
7104           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
7105           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
7106           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
7107           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
7108           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
7109           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
7110           <stringProp name="HTTPSampler.response_timeout"></stringProp>
7111         </HTTPSamplerProxy>
7112         <hashTree>
7113           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
7114             <collectionProp name="Asserion.test_strings">
7115               <stringProp name="49586">200</stringProp>
7116             </collectionProp>
7117             <stringProp name="Assertion.custom_message"></stringProp>
7118             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
7119             <boolProp name="Assertion.assume_success">false</boolProp>
7120             <intProp name="Assertion.test_type">1</intProp>
7121           </ResponseAssertion>
7122           <hashTree/>
7123           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
7124             <stringProp name="scriptLanguage">groovy</stringProp>
7125             <stringProp name="parameters"></stringProp>
7126             <stringProp name="filename"></stringProp>
7127             <stringProp name="cacheKey">true</stringProp>
7128             <stringProp name="script">import groovy.json.JsonSlurper;
7129
7130 def res = [];
7131 if (prev.getResponseCode() == &apos;200&apos;) {
7132     def jsonSlurper = new JsonSlurper();
7133     res = jsonSlurper.parseText(prev.getResponseDataAsString());
7134
7135     assert res instanceof Map;
7136     assert res.policy_types instanceof List;
7137     assert res.policy_types.size == 1;
7138     assert res.policy_types[0] instanceof Map;
7139     assert res.policy_types[0].get(&apos;onap.policies.monitoring.cdap.tca.hi.lo.app&apos;).version == &quot;4.0.0&quot;;
7140 }</stringProp>
7141           </JSR223Assertion>
7142           <hashTree/>
7143         </hashTree>
7144         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy Type V5" enabled="true">
7145           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
7146             <collectionProp name="Arguments.arguments"/>
7147           </elementProp>
7148           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
7149           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
7150           <stringProp name="HTTPSampler.protocol">https</stringProp>
7151           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
7152           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/5.0.0</stringProp>
7153           <stringProp name="HTTPSampler.method">DELETE</stringProp>
7154           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
7155           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
7156           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
7157           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
7158           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
7159           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
7160           <stringProp name="HTTPSampler.response_timeout"></stringProp>
7161         </HTTPSamplerProxy>
7162         <hashTree>
7163           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
7164             <collectionProp name="Asserion.test_strings">
7165               <stringProp name="49586">200</stringProp>
7166             </collectionProp>
7167             <stringProp name="Assertion.custom_message"></stringProp>
7168             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
7169             <boolProp name="Assertion.assume_success">false</boolProp>
7170             <intProp name="Assertion.test_type">1</intProp>
7171           </ResponseAssertion>
7172           <hashTree/>
7173           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
7174             <stringProp name="scriptLanguage">groovy</stringProp>
7175             <stringProp name="parameters"></stringProp>
7176             <stringProp name="filename"></stringProp>
7177             <stringProp name="cacheKey">true</stringProp>
7178             <stringProp name="script">import groovy.json.JsonSlurper;
7179
7180 def res = [];
7181 if (prev.getResponseCode() == &apos;200&apos;) {
7182     def jsonSlurper = new JsonSlurper();
7183     res = jsonSlurper.parseText(prev.getResponseDataAsString());
7184
7185     assert res instanceof Map;
7186     assert res.policy_types instanceof List;
7187     assert res.policy_types.size == 1;
7188     assert res.policy_types[0] instanceof Map;
7189     assert res.policy_types[0].get(&apos;onap.policies.monitoring.cdap.tca.hi.lo.app&apos;).version == &quot;5.0.0&quot;;
7190 }</stringProp>
7191           </JSR223Assertion>
7192           <hashTree/>
7193         </hashTree>
7194         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy Type V6" enabled="true">
7195           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
7196             <collectionProp name="Arguments.arguments"/>
7197           </elementProp>
7198           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
7199           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
7200           <stringProp name="HTTPSampler.protocol">https</stringProp>
7201           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
7202           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/6.0.0</stringProp>
7203           <stringProp name="HTTPSampler.method">DELETE</stringProp>
7204           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
7205           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
7206           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
7207           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
7208           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
7209           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
7210           <stringProp name="HTTPSampler.response_timeout"></stringProp>
7211         </HTTPSamplerProxy>
7212         <hashTree>
7213           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
7214             <collectionProp name="Asserion.test_strings">
7215               <stringProp name="49586">200</stringProp>
7216             </collectionProp>
7217             <stringProp name="Assertion.custom_message"></stringProp>
7218             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
7219             <boolProp name="Assertion.assume_success">false</boolProp>
7220             <intProp name="Assertion.test_type">1</intProp>
7221           </ResponseAssertion>
7222           <hashTree/>
7223           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
7224             <stringProp name="scriptLanguage">groovy</stringProp>
7225             <stringProp name="parameters"></stringProp>
7226             <stringProp name="filename"></stringProp>
7227             <stringProp name="cacheKey">true</stringProp>
7228             <stringProp name="script">import groovy.json.JsonSlurper;
7229
7230 def res = [];
7231 if (prev.getResponseCode() == &apos;200&apos;) {
7232     def jsonSlurper = new JsonSlurper();
7233     res = jsonSlurper.parseText(prev.getResponseDataAsString());
7234
7235     assert res instanceof Map;
7236     assert res.policy_types instanceof List;
7237     assert res.policy_types.size == 1;
7238     assert res.policy_types[0] instanceof Map;
7239     assert res.policy_types[0].get(&apos;onap.policies.monitoring.cdap.tca.hi.lo.app&apos;).version == &quot;6.0.0&quot;;
7240 }</stringProp>
7241           </JSR223Assertion>
7242           <hashTree/>
7243         </hashTree>
7244         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy Type V7" enabled="true">
7245           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
7246             <collectionProp name="Arguments.arguments"/>
7247           </elementProp>
7248           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
7249           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
7250           <stringProp name="HTTPSampler.protocol">https</stringProp>
7251           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
7252           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/7.0.0</stringProp>
7253           <stringProp name="HTTPSampler.method">DELETE</stringProp>
7254           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
7255           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
7256           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
7257           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
7258           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
7259           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
7260           <stringProp name="HTTPSampler.response_timeout"></stringProp>
7261         </HTTPSamplerProxy>
7262         <hashTree>
7263           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
7264             <collectionProp name="Asserion.test_strings">
7265               <stringProp name="49586">200</stringProp>
7266             </collectionProp>
7267             <stringProp name="Assertion.custom_message"></stringProp>
7268             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
7269             <boolProp name="Assertion.assume_success">false</boolProp>
7270             <intProp name="Assertion.test_type">1</intProp>
7271           </ResponseAssertion>
7272           <hashTree/>
7273           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
7274             <stringProp name="scriptLanguage">groovy</stringProp>
7275             <stringProp name="parameters"></stringProp>
7276             <stringProp name="filename"></stringProp>
7277             <stringProp name="cacheKey">true</stringProp>
7278             <stringProp name="script">import groovy.json.JsonSlurper;
7279
7280 def res = [];
7281 if (prev.getResponseCode() == &apos;200&apos;) {
7282     def jsonSlurper = new JsonSlurper();
7283     res = jsonSlurper.parseText(prev.getResponseDataAsString());
7284
7285     assert res instanceof Map;
7286     assert res.policy_types instanceof List;
7287     assert res.policy_types.size == 1;
7288     assert res.policy_types[0] instanceof Map;
7289     assert res.policy_types[0].get(&apos;onap.policies.monitoring.cdap.tca.hi.lo.app&apos;).version == &quot;7.0.0&quot;;
7290 }</stringProp>
7291           </JSR223Assertion>
7292           <hashTree/>
7293         </hashTree>
7294         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy Type V8" enabled="true">
7295           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
7296             <collectionProp name="Arguments.arguments"/>
7297           </elementProp>
7298           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
7299           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
7300           <stringProp name="HTTPSampler.protocol">https</stringProp>
7301           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
7302           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/8.0.0</stringProp>
7303           <stringProp name="HTTPSampler.method">DELETE</stringProp>
7304           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
7305           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
7306           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
7307           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
7308           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
7309           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
7310           <stringProp name="HTTPSampler.response_timeout"></stringProp>
7311         </HTTPSamplerProxy>
7312         <hashTree>
7313           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
7314             <collectionProp name="Asserion.test_strings">
7315               <stringProp name="49586">200</stringProp>
7316             </collectionProp>
7317             <stringProp name="Assertion.custom_message"></stringProp>
7318             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
7319             <boolProp name="Assertion.assume_success">false</boolProp>
7320             <intProp name="Assertion.test_type">1</intProp>
7321           </ResponseAssertion>
7322           <hashTree/>
7323           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
7324             <stringProp name="scriptLanguage">groovy</stringProp>
7325             <stringProp name="parameters"></stringProp>
7326             <stringProp name="filename"></stringProp>
7327             <stringProp name="cacheKey">true</stringProp>
7328             <stringProp name="script">import groovy.json.JsonSlurper;
7329
7330 def res = [];
7331 if (prev.getResponseCode() == &apos;200&apos;) {
7332     def jsonSlurper = new JsonSlurper();
7333     res = jsonSlurper.parseText(prev.getResponseDataAsString());
7334
7335     assert res instanceof Map;
7336     assert res.policy_types instanceof List;
7337     assert res.policy_types.size == 1;
7338     assert res.policy_types[0] instanceof Map;
7339     assert res.policy_types[0].get(&apos;onap.policies.monitoring.cdap.tca.hi.lo.app&apos;).version == &quot;8.0.0&quot;;
7340 }</stringProp>
7341           </JSR223Assertion>
7342           <hashTree/>
7343         </hashTree>
7344         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy Type V9" enabled="true">
7345           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
7346             <collectionProp name="Arguments.arguments"/>
7347           </elementProp>
7348           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
7349           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
7350           <stringProp name="HTTPSampler.protocol">https</stringProp>
7351           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
7352           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/9.0.0</stringProp>
7353           <stringProp name="HTTPSampler.method">DELETE</stringProp>
7354           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
7355           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
7356           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
7357           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
7358           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
7359           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
7360           <stringProp name="HTTPSampler.response_timeout"></stringProp>
7361         </HTTPSamplerProxy>
7362         <hashTree>
7363           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
7364             <collectionProp name="Asserion.test_strings">
7365               <stringProp name="49586">200</stringProp>
7366             </collectionProp>
7367             <stringProp name="Assertion.custom_message"></stringProp>
7368             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
7369             <boolProp name="Assertion.assume_success">false</boolProp>
7370             <intProp name="Assertion.test_type">1</intProp>
7371           </ResponseAssertion>
7372           <hashTree/>
7373           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
7374             <stringProp name="scriptLanguage">groovy</stringProp>
7375             <stringProp name="parameters"></stringProp>
7376             <stringProp name="filename"></stringProp>
7377             <stringProp name="cacheKey">true</stringProp>
7378             <stringProp name="script">import groovy.json.JsonSlurper;
7379
7380 def res = [];
7381 if (prev.getResponseCode() == &apos;200&apos;) {
7382     def jsonSlurper = new JsonSlurper();
7383     res = jsonSlurper.parseText(prev.getResponseDataAsString());
7384
7385     assert res instanceof Map;
7386     assert res.policy_types instanceof List;
7387     assert res.policy_types.size == 1;
7388     assert res.policy_types[0] instanceof Map;
7389     assert res.policy_types[0].get(&apos;onap.policies.monitoring.cdap.tca.hi.lo.app&apos;).version == &quot;9.0.0&quot;;
7390 }</stringProp>
7391           </JSR223Assertion>
7392           <hashTree/>
7393         </hashTree>
7394         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy Type V10" enabled="true">
7395           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
7396             <collectionProp name="Arguments.arguments"/>
7397           </elementProp>
7398           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
7399           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
7400           <stringProp name="HTTPSampler.protocol">https</stringProp>
7401           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
7402           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/10.0.0</stringProp>
7403           <stringProp name="HTTPSampler.method">DELETE</stringProp>
7404           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
7405           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
7406           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
7407           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
7408           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
7409           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
7410           <stringProp name="HTTPSampler.response_timeout"></stringProp>
7411         </HTTPSamplerProxy>
7412         <hashTree>
7413           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
7414             <collectionProp name="Asserion.test_strings">
7415               <stringProp name="49586">200</stringProp>
7416             </collectionProp>
7417             <stringProp name="Assertion.custom_message"></stringProp>
7418             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
7419             <boolProp name="Assertion.assume_success">false</boolProp>
7420             <intProp name="Assertion.test_type">1</intProp>
7421           </ResponseAssertion>
7422           <hashTree/>
7423           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
7424             <stringProp name="scriptLanguage">groovy</stringProp>
7425             <stringProp name="parameters"></stringProp>
7426             <stringProp name="filename"></stringProp>
7427             <stringProp name="cacheKey">true</stringProp>
7428             <stringProp name="script">import groovy.json.JsonSlurper;
7429
7430 def res = [];
7431 if (prev.getResponseCode() == &apos;200&apos;) {
7432     def jsonSlurper = new JsonSlurper();
7433     res = jsonSlurper.parseText(prev.getResponseDataAsString());
7434
7435     assert res instanceof Map;
7436     assert res.policy_types instanceof List;
7437     assert res.policy_types.size == 1;
7438     assert res.policy_types[0] instanceof Map;
7439     assert res.policy_types[0].get(&apos;onap.policies.monitoring.cdap.tca.hi.lo.app&apos;).version == &quot;10.0.0&quot;;
7440 }</stringProp>
7441           </JSR223Assertion>
7442           <hashTree/>
7443         </hashTree>
7444         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy Type V11" enabled="true">
7445           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
7446             <collectionProp name="Arguments.arguments"/>
7447           </elementProp>
7448           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
7449           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
7450           <stringProp name="HTTPSampler.protocol">https</stringProp>
7451           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
7452           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/11.0.0</stringProp>
7453           <stringProp name="HTTPSampler.method">DELETE</stringProp>
7454           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
7455           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
7456           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
7457           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
7458           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
7459           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
7460           <stringProp name="HTTPSampler.response_timeout"></stringProp>
7461         </HTTPSamplerProxy>
7462         <hashTree>
7463           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
7464             <collectionProp name="Asserion.test_strings">
7465               <stringProp name="49586">200</stringProp>
7466             </collectionProp>
7467             <stringProp name="Assertion.custom_message"></stringProp>
7468             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
7469             <boolProp name="Assertion.assume_success">false</boolProp>
7470             <intProp name="Assertion.test_type">1</intProp>
7471           </ResponseAssertion>
7472           <hashTree/>
7473           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
7474             <stringProp name="scriptLanguage">groovy</stringProp>
7475             <stringProp name="parameters"></stringProp>
7476             <stringProp name="filename"></stringProp>
7477             <stringProp name="cacheKey">true</stringProp>
7478             <stringProp name="script">import groovy.json.JsonSlurper;
7479
7480 def res = [];
7481 if (prev.getResponseCode() == &apos;200&apos;) {
7482     def jsonSlurper = new JsonSlurper();
7483     res = jsonSlurper.parseText(prev.getResponseDataAsString());
7484
7485     assert res instanceof Map;
7486     assert res.policy_types instanceof List;
7487     assert res.policy_types.size == 1;
7488     assert res.policy_types[0] instanceof Map;
7489     assert res.policy_types[0].get(&apos;onap.policies.monitoring.cdap.tca.hi.lo.app&apos;).version == &quot;11.0.0&quot;;
7490 }</stringProp>
7491           </JSR223Assertion>
7492           <hashTree/>
7493         </hashTree>
7494         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy V1" enabled="true">
7495           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
7496             <collectionProp name="Arguments.arguments"/>
7497           </elementProp>
7498           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
7499           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
7500           <stringProp name="HTTPSampler.protocol">https</stringProp>
7501           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
7502           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/2.0.0/policies/onap.restart.tca/versions/1.0.0</stringProp>
7503           <stringProp name="HTTPSampler.method">DELETE</stringProp>
7504           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
7505           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
7506           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
7507           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
7508           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
7509           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
7510           <stringProp name="HTTPSampler.response_timeout"></stringProp>
7511         </HTTPSamplerProxy>
7512         <hashTree>
7513           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
7514             <collectionProp name="Asserion.test_strings">
7515               <stringProp name="49586">200</stringProp>
7516             </collectionProp>
7517             <stringProp name="Assertion.custom_message"></stringProp>
7518             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
7519             <boolProp name="Assertion.assume_success">false</boolProp>
7520             <intProp name="Assertion.test_type">1</intProp>
7521           </ResponseAssertion>
7522           <hashTree/>
7523           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
7524             <stringProp name="scriptLanguage">groovy</stringProp>
7525             <stringProp name="parameters"></stringProp>
7526             <stringProp name="filename"></stringProp>
7527             <stringProp name="cacheKey">true</stringProp>
7528             <stringProp name="script">import groovy.json.JsonSlurper;
7529
7530 def res = [];
7531 if (prev.getResponseCode() == &apos;200&apos;) {
7532     def jsonSlurper = new JsonSlurper();
7533     res = jsonSlurper.parseText(prev.getResponseDataAsString());
7534
7535     assert res instanceof Map;
7536     assert res.topology_template.policies instanceof List;
7537     assert res.topology_template.policies.size == 1;
7538     assert res.topology_template.policies[0] instanceof Map;
7539     assert res.topology_template.policies[0].get(&apos;onap.restart.tca&apos;).version == &quot;1.0.0&quot;;
7540 }</stringProp>
7541           </JSR223Assertion>
7542           <hashTree/>
7543         </hashTree>
7544         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy V2" enabled="true">
7545           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
7546             <collectionProp name="Arguments.arguments"/>
7547           </elementProp>
7548           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
7549           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
7550           <stringProp name="HTTPSampler.protocol">https</stringProp>
7551           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
7552           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/2.0.0/policies/onap.restart.tca/versions/2.0.0</stringProp>
7553           <stringProp name="HTTPSampler.method">DELETE</stringProp>
7554           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
7555           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
7556           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
7557           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
7558           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
7559           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
7560           <stringProp name="HTTPSampler.response_timeout"></stringProp>
7561         </HTTPSamplerProxy>
7562         <hashTree>
7563           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
7564             <collectionProp name="Asserion.test_strings">
7565               <stringProp name="49586">200</stringProp>
7566             </collectionProp>
7567             <stringProp name="Assertion.custom_message"></stringProp>
7568             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
7569             <boolProp name="Assertion.assume_success">false</boolProp>
7570             <intProp name="Assertion.test_type">1</intProp>
7571           </ResponseAssertion>
7572           <hashTree/>
7573           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
7574             <stringProp name="scriptLanguage">groovy</stringProp>
7575             <stringProp name="parameters"></stringProp>
7576             <stringProp name="filename"></stringProp>
7577             <stringProp name="cacheKey">true</stringProp>
7578             <stringProp name="script">import groovy.json.JsonSlurper;
7579
7580 def res = [];
7581 if (prev.getResponseCode() == &apos;200&apos;) {
7582     def jsonSlurper = new JsonSlurper();
7583     res = jsonSlurper.parseText(prev.getResponseDataAsString());
7584
7585     assert res instanceof Map;
7586     assert res.topology_template.policies instanceof List;
7587     assert res.topology_template.policies.size == 1;
7588     assert res.topology_template.policies[0] instanceof Map;
7589     assert res.topology_template.policies[0].get(&apos;onap.restart.tca&apos;).version == &quot;2.0.0&quot;;
7590 }</stringProp>
7591           </JSR223Assertion>
7592           <hashTree/>
7593         </hashTree>
7594         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy V3" enabled="true">
7595           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
7596             <collectionProp name="Arguments.arguments"/>
7597           </elementProp>
7598           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
7599           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
7600           <stringProp name="HTTPSampler.protocol">https</stringProp>
7601           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
7602           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/2.0.0/policies/onap.restart.tca/versions/3.0.0</stringProp>
7603           <stringProp name="HTTPSampler.method">DELETE</stringProp>
7604           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
7605           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
7606           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
7607           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
7608           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
7609           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
7610           <stringProp name="HTTPSampler.response_timeout"></stringProp>
7611         </HTTPSamplerProxy>
7612         <hashTree>
7613           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
7614             <collectionProp name="Asserion.test_strings">
7615               <stringProp name="49586">200</stringProp>
7616             </collectionProp>
7617             <stringProp name="Assertion.custom_message"></stringProp>
7618             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
7619             <boolProp name="Assertion.assume_success">false</boolProp>
7620             <intProp name="Assertion.test_type">1</intProp>
7621           </ResponseAssertion>
7622           <hashTree/>
7623           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
7624             <stringProp name="scriptLanguage">groovy</stringProp>
7625             <stringProp name="parameters"></stringProp>
7626             <stringProp name="filename"></stringProp>
7627             <stringProp name="cacheKey">true</stringProp>
7628             <stringProp name="script">import groovy.json.JsonSlurper;
7629
7630 def res = [];
7631 if (prev.getResponseCode() == &apos;200&apos;) {
7632     def jsonSlurper = new JsonSlurper();
7633     res = jsonSlurper.parseText(prev.getResponseDataAsString());
7634
7635     assert res instanceof Map;
7636     assert res.topology_template.policies instanceof List;
7637     assert res.topology_template.policies.size == 1;
7638     assert res.topology_template.policies[0] instanceof Map;
7639     assert res.topology_template.policies[0].get(&apos;onap.restart.tca&apos;).version == &quot;3.0.0&quot;;
7640 }</stringProp>
7641           </JSR223Assertion>
7642           <hashTree/>
7643         </hashTree>
7644         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy V4" enabled="true">
7645           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
7646             <collectionProp name="Arguments.arguments"/>
7647           </elementProp>
7648           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
7649           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
7650           <stringProp name="HTTPSampler.protocol">https</stringProp>
7651           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
7652           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/2.0.0/policies/onap.restart.tca/versions/4.0.0</stringProp>
7653           <stringProp name="HTTPSampler.method">DELETE</stringProp>
7654           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
7655           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
7656           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
7657           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
7658           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
7659           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
7660           <stringProp name="HTTPSampler.response_timeout"></stringProp>
7661         </HTTPSamplerProxy>
7662         <hashTree>
7663           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
7664             <collectionProp name="Asserion.test_strings">
7665               <stringProp name="49586">200</stringProp>
7666             </collectionProp>
7667             <stringProp name="Assertion.custom_message"></stringProp>
7668             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
7669             <boolProp name="Assertion.assume_success">false</boolProp>
7670             <intProp name="Assertion.test_type">1</intProp>
7671           </ResponseAssertion>
7672           <hashTree/>
7673           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
7674             <stringProp name="scriptLanguage">groovy</stringProp>
7675             <stringProp name="parameters"></stringProp>
7676             <stringProp name="filename"></stringProp>
7677             <stringProp name="cacheKey">true</stringProp>
7678             <stringProp name="script">import groovy.json.JsonSlurper;
7679
7680 def res = [];
7681 if (prev.getResponseCode() == &apos;200&apos;) {
7682     def jsonSlurper = new JsonSlurper();
7683     res = jsonSlurper.parseText(prev.getResponseDataAsString());
7684
7685     assert res instanceof Map;
7686     assert res.topology_template.policies instanceof List;
7687     assert res.topology_template.policies.size == 1;
7688     assert res.topology_template.policies[0] instanceof Map;
7689     assert res.topology_template.policies[0].get(&apos;onap.restart.tca&apos;).version == &quot;4.0.0&quot;;
7690 }</stringProp>
7691           </JSR223Assertion>
7692           <hashTree/>
7693         </hashTree>
7694         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy V5" enabled="true">
7695           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
7696             <collectionProp name="Arguments.arguments"/>
7697           </elementProp>
7698           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
7699           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
7700           <stringProp name="HTTPSampler.protocol">https</stringProp>
7701           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
7702           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/2.0.0/policies/onap.restart.tca/versions/5.0.0</stringProp>
7703           <stringProp name="HTTPSampler.method">DELETE</stringProp>
7704           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
7705           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
7706           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
7707           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
7708           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
7709           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
7710           <stringProp name="HTTPSampler.response_timeout"></stringProp>
7711         </HTTPSamplerProxy>
7712         <hashTree>
7713           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
7714             <collectionProp name="Asserion.test_strings">
7715               <stringProp name="49586">200</stringProp>
7716             </collectionProp>
7717             <stringProp name="Assertion.custom_message"></stringProp>
7718             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
7719             <boolProp name="Assertion.assume_success">false</boolProp>
7720             <intProp name="Assertion.test_type">1</intProp>
7721           </ResponseAssertion>
7722           <hashTree/>
7723           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
7724             <stringProp name="scriptLanguage">groovy</stringProp>
7725             <stringProp name="parameters"></stringProp>
7726             <stringProp name="filename"></stringProp>
7727             <stringProp name="cacheKey">true</stringProp>
7728             <stringProp name="script">import groovy.json.JsonSlurper;
7729
7730 def res = [];
7731 if (prev.getResponseCode() == &apos;200&apos;) {
7732     def jsonSlurper = new JsonSlurper();
7733     res = jsonSlurper.parseText(prev.getResponseDataAsString());
7734
7735     assert res instanceof Map;
7736     assert res.topology_template.policies instanceof List;
7737     assert res.topology_template.policies.size == 1;
7738     assert res.topology_template.policies[0] instanceof Map;
7739     assert res.topology_template.policies[0].get(&apos;onap.restart.tca&apos;).version == &quot;5.0.0&quot;;
7740 }</stringProp>
7741           </JSR223Assertion>
7742           <hashTree/>
7743         </hashTree>
7744         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy V6" enabled="true">
7745           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
7746             <collectionProp name="Arguments.arguments"/>
7747           </elementProp>
7748           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
7749           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
7750           <stringProp name="HTTPSampler.protocol">https</stringProp>
7751           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
7752           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/2.0.0/policies/onap.restart.tca/versions/6.0.0</stringProp>
7753           <stringProp name="HTTPSampler.method">DELETE</stringProp>
7754           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
7755           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
7756           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
7757           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
7758           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
7759           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
7760           <stringProp name="HTTPSampler.response_timeout"></stringProp>
7761         </HTTPSamplerProxy>
7762         <hashTree>
7763           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
7764             <collectionProp name="Asserion.test_strings">
7765               <stringProp name="49586">200</stringProp>
7766             </collectionProp>
7767             <stringProp name="Assertion.custom_message"></stringProp>
7768             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
7769             <boolProp name="Assertion.assume_success">false</boolProp>
7770             <intProp name="Assertion.test_type">1</intProp>
7771           </ResponseAssertion>
7772           <hashTree/>
7773           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
7774             <stringProp name="scriptLanguage">groovy</stringProp>
7775             <stringProp name="parameters"></stringProp>
7776             <stringProp name="filename"></stringProp>
7777             <stringProp name="cacheKey">true</stringProp>
7778             <stringProp name="script">import groovy.json.JsonSlurper;
7779
7780 def res = [];
7781 if (prev.getResponseCode() == &apos;200&apos;) {
7782     def jsonSlurper = new JsonSlurper();
7783     res = jsonSlurper.parseText(prev.getResponseDataAsString());
7784
7785     assert res instanceof Map;
7786     assert res.topology_template.policies instanceof List;
7787     assert res.topology_template.policies.size == 1;
7788     assert res.topology_template.policies[0] instanceof Map;
7789     assert res.topology_template.policies[0].get(&apos;onap.restart.tca&apos;).version == &quot;6.0.0&quot;;
7790 }</stringProp>
7791           </JSR223Assertion>
7792           <hashTree/>
7793         </hashTree>
7794         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy V7" enabled="true">
7795           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
7796             <collectionProp name="Arguments.arguments"/>
7797           </elementProp>
7798           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
7799           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
7800           <stringProp name="HTTPSampler.protocol">https</stringProp>
7801           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
7802           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/2.0.0/policies/onap.restart.tca/versions/7.0.0</stringProp>
7803           <stringProp name="HTTPSampler.method">DELETE</stringProp>
7804           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
7805           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
7806           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
7807           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
7808           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
7809           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
7810           <stringProp name="HTTPSampler.response_timeout"></stringProp>
7811         </HTTPSamplerProxy>
7812         <hashTree>
7813           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
7814             <collectionProp name="Asserion.test_strings">
7815               <stringProp name="49586">200</stringProp>
7816             </collectionProp>
7817             <stringProp name="Assertion.custom_message"></stringProp>
7818             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
7819             <boolProp name="Assertion.assume_success">false</boolProp>
7820             <intProp name="Assertion.test_type">1</intProp>
7821           </ResponseAssertion>
7822           <hashTree/>
7823           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
7824             <stringProp name="scriptLanguage">groovy</stringProp>
7825             <stringProp name="parameters"></stringProp>
7826             <stringProp name="filename"></stringProp>
7827             <stringProp name="cacheKey">true</stringProp>
7828             <stringProp name="script">import groovy.json.JsonSlurper;
7829
7830 def res = [];
7831 if (prev.getResponseCode() == &apos;200&apos;) {
7832     def jsonSlurper = new JsonSlurper();
7833     res = jsonSlurper.parseText(prev.getResponseDataAsString());
7834
7835     assert res instanceof Map;
7836     assert res.topology_template.policies instanceof List;
7837     assert res.topology_template.policies.size == 1;
7838     assert res.topology_template.policies[0] instanceof Map;
7839     assert res.topology_template.policies[0].get(&apos;onap.restart.tca&apos;).version == &quot;7.0.0&quot;;
7840 }</stringProp>
7841           </JSR223Assertion>
7842           <hashTree/>
7843         </hashTree>
7844         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy V8" enabled="true">
7845           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
7846             <collectionProp name="Arguments.arguments"/>
7847           </elementProp>
7848           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
7849           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
7850           <stringProp name="HTTPSampler.protocol">https</stringProp>
7851           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
7852           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/2.0.0/policies/onap.restart.tca/versions/8.0.0</stringProp>
7853           <stringProp name="HTTPSampler.method">DELETE</stringProp>
7854           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
7855           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
7856           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
7857           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
7858           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
7859           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
7860           <stringProp name="HTTPSampler.response_timeout"></stringProp>
7861         </HTTPSamplerProxy>
7862         <hashTree>
7863           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
7864             <collectionProp name="Asserion.test_strings">
7865               <stringProp name="49586">200</stringProp>
7866             </collectionProp>
7867             <stringProp name="Assertion.custom_message"></stringProp>
7868             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
7869             <boolProp name="Assertion.assume_success">false</boolProp>
7870             <intProp name="Assertion.test_type">1</intProp>
7871           </ResponseAssertion>
7872           <hashTree/>
7873           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
7874             <stringProp name="scriptLanguage">groovy</stringProp>
7875             <stringProp name="parameters"></stringProp>
7876             <stringProp name="filename"></stringProp>
7877             <stringProp name="cacheKey">true</stringProp>
7878             <stringProp name="script">import groovy.json.JsonSlurper;
7879
7880 def res = [];
7881 if (prev.getResponseCode() == &apos;200&apos;) {
7882     def jsonSlurper = new JsonSlurper();
7883     res = jsonSlurper.parseText(prev.getResponseDataAsString());
7884
7885     assert res instanceof Map;
7886     assert res.topology_template.policies instanceof List;
7887     assert res.topology_template.policies.size == 1;
7888     assert res.topology_template.policies[0] instanceof Map;
7889     assert res.topology_template.policies[0].get(&apos;onap.restart.tca&apos;).version == &quot;8.0.0&quot;;
7890 }</stringProp>
7891           </JSR223Assertion>
7892           <hashTree/>
7893         </hashTree>
7894         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy V9" enabled="true">
7895           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
7896             <collectionProp name="Arguments.arguments"/>
7897           </elementProp>
7898           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
7899           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
7900           <stringProp name="HTTPSampler.protocol">https</stringProp>
7901           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
7902           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/2.0.0/policies/onap.restart.tca/versions/1.0.0</stringProp>
7903           <stringProp name="HTTPSampler.method">DELETE</stringProp>
7904           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
7905           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
7906           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
7907           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
7908           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
7909           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
7910           <stringProp name="HTTPSampler.response_timeout"></stringProp>
7911         </HTTPSamplerProxy>
7912         <hashTree>
7913           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
7914             <collectionProp name="Asserion.test_strings">
7915               <stringProp name="49586">200</stringProp>
7916             </collectionProp>
7917             <stringProp name="Assertion.custom_message"></stringProp>
7918             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
7919             <boolProp name="Assertion.assume_success">false</boolProp>
7920             <intProp name="Assertion.test_type">1</intProp>
7921           </ResponseAssertion>
7922           <hashTree/>
7923           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
7924             <stringProp name="scriptLanguage">groovy</stringProp>
7925             <stringProp name="parameters"></stringProp>
7926             <stringProp name="filename"></stringProp>
7927             <stringProp name="cacheKey">true</stringProp>
7928             <stringProp name="script">import groovy.json.JsonSlurper;
7929
7930 def res = [];
7931 if (prev.getResponseCode() == &apos;200&apos;) {
7932     def jsonSlurper = new JsonSlurper();
7933     res = jsonSlurper.parseText(prev.getResponseDataAsString());
7934
7935     assert res instanceof Map;
7936     assert res.topology_template.policies instanceof List;
7937     assert res.topology_template.policies.size == 1;
7938     assert res.topology_template.policies[0] instanceof Map;
7939     assert res.topology_template.policies[0].get(&apos;onap.restart.tca&apos;).version == &quot;9.0.0&quot;;
7940 }</stringProp>
7941           </JSR223Assertion>
7942           <hashTree/>
7943         </hashTree>
7944         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy V10" enabled="true">
7945           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
7946             <collectionProp name="Arguments.arguments"/>
7947           </elementProp>
7948           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
7949           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
7950           <stringProp name="HTTPSampler.protocol">https</stringProp>
7951           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
7952           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/2.0.0/policies/onap.restart.tca/versions/10.0.0</stringProp>
7953           <stringProp name="HTTPSampler.method">DELETE</stringProp>
7954           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
7955           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
7956           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
7957           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
7958           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
7959           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
7960           <stringProp name="HTTPSampler.response_timeout"></stringProp>
7961         </HTTPSamplerProxy>
7962         <hashTree>
7963           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
7964             <collectionProp name="Asserion.test_strings">
7965               <stringProp name="49586">200</stringProp>
7966             </collectionProp>
7967             <stringProp name="Assertion.custom_message"></stringProp>
7968             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
7969             <boolProp name="Assertion.assume_success">false</boolProp>
7970             <intProp name="Assertion.test_type">1</intProp>
7971           </ResponseAssertion>
7972           <hashTree/>
7973           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
7974             <stringProp name="scriptLanguage">groovy</stringProp>
7975             <stringProp name="parameters"></stringProp>
7976             <stringProp name="filename"></stringProp>
7977             <stringProp name="cacheKey">true</stringProp>
7978             <stringProp name="script">import groovy.json.JsonSlurper;
7979
7980 def res = [];
7981 if (prev.getResponseCode() == &apos;200&apos;) {
7982     def jsonSlurper = new JsonSlurper();
7983     res = jsonSlurper.parseText(prev.getResponseDataAsString());
7984
7985     assert res instanceof Map;
7986     assert res.topology_template.policies instanceof List;
7987     assert res.topology_template.policies.size == 1;
7988     assert res.topology_template.policies[0] instanceof Map;
7989     assert res.topology_template.policies[0].get(&apos;onap.restart.tca&apos;).version == &quot;10.0.0&quot;;
7990 }</stringProp>
7991           </JSR223Assertion>
7992           <hashTree/>
7993         </hashTree>
7994         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy V11" enabled="true">
7995           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
7996             <collectionProp name="Arguments.arguments"/>
7997           </elementProp>
7998           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
7999           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
8000           <stringProp name="HTTPSampler.protocol">https</stringProp>
8001           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
8002           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/2.0.0/policies/onap.restart.tca/versions/11.0.0</stringProp>
8003           <stringProp name="HTTPSampler.method">DELETE</stringProp>
8004           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
8005           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
8006           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
8007           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
8008           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
8009           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
8010           <stringProp name="HTTPSampler.response_timeout"></stringProp>
8011         </HTTPSamplerProxy>
8012         <hashTree>
8013           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
8014             <collectionProp name="Asserion.test_strings">
8015               <stringProp name="49586">200</stringProp>
8016             </collectionProp>
8017             <stringProp name="Assertion.custom_message"></stringProp>
8018             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
8019             <boolProp name="Assertion.assume_success">false</boolProp>
8020             <intProp name="Assertion.test_type">1</intProp>
8021           </ResponseAssertion>
8022           <hashTree/>
8023           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
8024             <stringProp name="scriptLanguage">groovy</stringProp>
8025             <stringProp name="parameters"></stringProp>
8026             <stringProp name="filename"></stringProp>
8027             <stringProp name="cacheKey">true</stringProp>
8028             <stringProp name="script">import groovy.json.JsonSlurper;
8029
8030 def res = [];
8031 if (prev.getResponseCode() == &apos;200&apos;) {
8032     def jsonSlurper = new JsonSlurper();
8033     res = jsonSlurper.parseText(prev.getResponseDataAsString());
8034
8035     assert res instanceof Map;
8036     assert res.topology_template.policies instanceof List;
8037     assert res.topology_template.policies.size == 1;
8038     assert res.topology_template.policies[0] instanceof Map;
8039     assert res.topology_template.policies[0].get(&apos;onap.restart.tca&apos;).version == &quot;11.0.0&quot;;
8040 }</stringProp>
8041           </JSR223Assertion>
8042           <hashTree/>
8043         </hashTree>
8044         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy Type V2" enabled="true">
8045           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
8046             <collectionProp name="Arguments.arguments"/>
8047           </elementProp>
8048           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
8049           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
8050           <stringProp name="HTTPSampler.protocol">https</stringProp>
8051           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
8052           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/2.0.0</stringProp>
8053           <stringProp name="HTTPSampler.method">DELETE</stringProp>
8054           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
8055           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
8056           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
8057           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
8058           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
8059           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
8060           <stringProp name="HTTPSampler.response_timeout"></stringProp>
8061         </HTTPSamplerProxy>
8062         <hashTree>
8063           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
8064             <collectionProp name="Asserion.test_strings">
8065               <stringProp name="49586">200</stringProp>
8066             </collectionProp>
8067             <stringProp name="Assertion.custom_message"></stringProp>
8068             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
8069             <boolProp name="Assertion.assume_success">false</boolProp>
8070             <intProp name="Assertion.test_type">1</intProp>
8071           </ResponseAssertion>
8072           <hashTree/>
8073           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
8074             <stringProp name="scriptLanguage">groovy</stringProp>
8075             <stringProp name="parameters"></stringProp>
8076             <stringProp name="filename"></stringProp>
8077             <stringProp name="cacheKey">true</stringProp>
8078             <stringProp name="script">import groovy.json.JsonSlurper;
8079
8080 def res = [];
8081 if (prev.getResponseCode() == &apos;200&apos;) {
8082     def jsonSlurper = new JsonSlurper();
8083     res = jsonSlurper.parseText(prev.getResponseDataAsString());
8084
8085     assert res instanceof Map;
8086     assert res.policy_types instanceof List;
8087     assert res.policy_types.size == 1;
8088     assert res.policy_types[0] instanceof Map;
8089     assert res.policy_types[0].get(&apos;onap.policies.monitoring.cdap.tca.hi.lo.app&apos;).version == &quot;2.0.0&quot;;
8090 }</stringProp>
8091           </JSR223Assertion>
8092           <hashTree/>
8093         </hashTree>
8094         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete Guard Policy V1" enabled="true">
8095           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
8096             <collectionProp name="Arguments.arguments"/>
8097           </elementProp>
8098           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
8099           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
8100           <stringProp name="HTTPSampler.protocol">https</stringProp>
8101           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
8102           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.controlloop.Guard/versions/1.0.0/policies/guard.frequency.scaleout/versions/1</stringProp>
8103           <stringProp name="HTTPSampler.method">DELETE</stringProp>
8104           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
8105           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
8106           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
8107           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
8108           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
8109           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
8110           <stringProp name="HTTPSampler.response_timeout"></stringProp>
8111         </HTTPSamplerProxy>
8112         <hashTree>
8113           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
8114             <collectionProp name="Asserion.test_strings">
8115               <stringProp name="49586">200</stringProp>
8116             </collectionProp>
8117             <stringProp name="Assertion.custom_message"></stringProp>
8118             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
8119             <boolProp name="Assertion.assume_success">false</boolProp>
8120             <intProp name="Assertion.test_type">1</intProp>
8121           </ResponseAssertion>
8122           <hashTree/>
8123           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
8124             <stringProp name="scriptLanguage">groovy</stringProp>
8125             <stringProp name="parameters"></stringProp>
8126             <stringProp name="filename"></stringProp>
8127             <stringProp name="cacheKey">true</stringProp>
8128             <stringProp name="script">import groovy.json.JsonSlurper;
8129
8130 def res = [];
8131 if (prev.getResponseCode() == &apos;200&apos;) {
8132     def jsonSlurper = new JsonSlurper();
8133     res = jsonSlurper.parseText(prev.getResponseDataAsString());
8134
8135     assert res instanceof Map;
8136     assert res.get(&apos;guard.frequency.scaleout&apos;).version == &quot;1.0.0&quot;;
8137 }</stringProp>
8138           </JSR223Assertion>
8139           <hashTree/>
8140         </hashTree>
8141         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete Guard Policy V5" enabled="true">
8142           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
8143             <collectionProp name="Arguments.arguments"/>
8144           </elementProp>
8145           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
8146           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
8147           <stringProp name="HTTPSampler.protocol">https</stringProp>
8148           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
8149           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.controlloop.Guard/versions/1.0.0/policies/guard.frequency.scaleout/versions/5</stringProp>
8150           <stringProp name="HTTPSampler.method">DELETE</stringProp>
8151           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
8152           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
8153           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
8154           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
8155           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
8156           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
8157           <stringProp name="HTTPSampler.response_timeout"></stringProp>
8158         </HTTPSamplerProxy>
8159         <hashTree>
8160           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
8161             <collectionProp name="Asserion.test_strings">
8162               <stringProp name="49586">200</stringProp>
8163             </collectionProp>
8164             <stringProp name="Assertion.custom_message"></stringProp>
8165             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
8166             <boolProp name="Assertion.assume_success">false</boolProp>
8167             <intProp name="Assertion.test_type">1</intProp>
8168           </ResponseAssertion>
8169           <hashTree/>
8170           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
8171             <stringProp name="scriptLanguage">groovy</stringProp>
8172             <stringProp name="parameters"></stringProp>
8173             <stringProp name="filename"></stringProp>
8174             <stringProp name="cacheKey">true</stringProp>
8175             <stringProp name="script">import groovy.json.JsonSlurper;
8176
8177 def res = [];
8178 if (prev.getResponseCode() == &apos;200&apos;) {
8179     def jsonSlurper = new JsonSlurper();
8180     res = jsonSlurper.parseText(prev.getResponseDataAsString());
8181
8182     assert res instanceof Map;
8183     assert res.get(&apos;guard.frequency.scaleout&apos;).version == &quot;5.0.0&quot;;
8184 }</stringProp>
8185           </JSR223Assertion>
8186           <hashTree/>
8187         </hashTree>
8188         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete Guard Policy V9" enabled="true">
8189           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
8190             <collectionProp name="Arguments.arguments"/>
8191           </elementProp>
8192           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
8193           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
8194           <stringProp name="HTTPSampler.protocol">https</stringProp>
8195           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
8196           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.controlloop.Guard/versions/1.0.0/policies/guard.frequency.scaleout/versions/9</stringProp>
8197           <stringProp name="HTTPSampler.method">DELETE</stringProp>
8198           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
8199           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
8200           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
8201           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
8202           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
8203           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
8204           <stringProp name="HTTPSampler.response_timeout"></stringProp>
8205         </HTTPSamplerProxy>
8206         <hashTree>
8207           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
8208             <collectionProp name="Asserion.test_strings">
8209               <stringProp name="49586">200</stringProp>
8210             </collectionProp>
8211             <stringProp name="Assertion.custom_message"></stringProp>
8212             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
8213             <boolProp name="Assertion.assume_success">false</boolProp>
8214             <intProp name="Assertion.test_type">1</intProp>
8215           </ResponseAssertion>
8216           <hashTree/>
8217           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
8218             <stringProp name="scriptLanguage">groovy</stringProp>
8219             <stringProp name="parameters"></stringProp>
8220             <stringProp name="filename"></stringProp>
8221             <stringProp name="cacheKey">true</stringProp>
8222             <stringProp name="script">import groovy.json.JsonSlurper;
8223
8224 def res = [];
8225 if (prev.getResponseCode() == &apos;200&apos;) {
8226     def jsonSlurper = new JsonSlurper();
8227     res = jsonSlurper.parseText(prev.getResponseDataAsString());
8228
8229     assert res instanceof Map;
8230     assert res.get(&apos;guard.frequency.scaleout&apos;).version == &quot;9.0.0&quot;;
8231 }</stringProp>
8232           </JSR223Assertion>
8233           <hashTree/>
8234         </hashTree>
8235         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete Guard Policy V12" enabled="true">
8236           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
8237             <collectionProp name="Arguments.arguments"/>
8238           </elementProp>
8239           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
8240           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
8241           <stringProp name="HTTPSampler.protocol">https</stringProp>
8242           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
8243           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.controlloop.Guard/versions/1.0.0/policies/guard.frequency.scaleout/versions/12</stringProp>
8244           <stringProp name="HTTPSampler.method">DELETE</stringProp>
8245           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
8246           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
8247           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
8248           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
8249           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
8250           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
8251           <stringProp name="HTTPSampler.response_timeout"></stringProp>
8252         </HTTPSamplerProxy>
8253         <hashTree>
8254           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
8255             <collectionProp name="Asserion.test_strings">
8256               <stringProp name="49586">200</stringProp>
8257             </collectionProp>
8258             <stringProp name="Assertion.custom_message"></stringProp>
8259             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
8260             <boolProp name="Assertion.assume_success">false</boolProp>
8261             <intProp name="Assertion.test_type">1</intProp>
8262           </ResponseAssertion>
8263           <hashTree/>
8264           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
8265             <stringProp name="scriptLanguage">groovy</stringProp>
8266             <stringProp name="parameters"></stringProp>
8267             <stringProp name="filename"></stringProp>
8268             <stringProp name="cacheKey">true</stringProp>
8269             <stringProp name="script">import groovy.json.JsonSlurper;
8270
8271 def res = [];
8272 if (prev.getResponseCode() == &apos;200&apos;) {
8273     def jsonSlurper = new JsonSlurper();
8274     res = jsonSlurper.parseText(prev.getResponseDataAsString());
8275
8276     assert res instanceof Map;
8277     assert res.get(&apos;guard.frequency.scaleout&apos;).version == &quot;12.0.0&quot;;
8278 }</stringProp>
8279           </JSR223Assertion>
8280           <hashTree/>
8281         </hashTree>
8282       </hashTree>
8283       <ResultCollector guiclass="SummaryReport" testclass="ResultCollector" testname="Summary Report" enabled="true">
8284         <boolProp name="ResultCollector.error_logging">false</boolProp>
8285         <objProp>
8286           <name>saveConfig</name>
8287           <value class="SampleSaveConfiguration">
8288             <time>true</time>
8289             <latency>true</latency>
8290             <timestamp>true</timestamp>
8291             <success>true</success>
8292             <label>true</label>
8293             <code>true</code>
8294             <message>true</message>
8295             <threadName>true</threadName>
8296             <dataType>true</dataType>
8297             <encoding>false</encoding>
8298             <assertions>true</assertions>
8299             <subresults>true</subresults>
8300             <responseData>false</responseData>
8301             <samplerData>false</samplerData>
8302             <xml>false</xml>
8303             <fieldNames>true</fieldNames>
8304             <responseHeaders>false</responseHeaders>
8305             <requestHeaders>false</requestHeaders>
8306             <responseDataOnError>false</responseDataOnError>
8307             <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
8308             <assertionsResultsToSave>0</assertionsResultsToSave>
8309             <bytes>true</bytes>
8310             <sentBytes>true</sentBytes>
8311             <url>true</url>
8312             <threadCounts>true</threadCounts>
8313             <idleTime>true</idleTime>
8314             <connectTime>true</connectTime>
8315           </value>
8316         </objProp>
8317         <stringProp name="filename">/home/ubuntu/s3p/stability.log</stringProp>
8318       </ResultCollector>
8319       <hashTree/>
8320       <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true">
8321         <boolProp name="ResultCollector.error_logging">false</boolProp>
8322         <objProp>
8323           <name>saveConfig</name>
8324           <value class="SampleSaveConfiguration">
8325             <time>true</time>
8326             <latency>true</latency>
8327             <timestamp>true</timestamp>
8328             <success>true</success>
8329             <label>true</label>
8330             <code>true</code>
8331             <message>true</message>
8332             <threadName>true</threadName>
8333             <dataType>true</dataType>
8334             <encoding>false</encoding>
8335             <assertions>true</assertions>
8336             <subresults>true</subresults>
8337             <responseData>false</responseData>
8338             <samplerData>false</samplerData>
8339             <xml>false</xml>
8340             <fieldNames>true</fieldNames>
8341             <responseHeaders>false</responseHeaders>
8342             <requestHeaders>false</requestHeaders>
8343             <responseDataOnError>false</responseDataOnError>
8344             <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
8345             <assertionsResultsToSave>0</assertionsResultsToSave>
8346             <bytes>true</bytes>
8347             <sentBytes>true</sentBytes>
8348             <url>true</url>
8349             <threadCounts>true</threadCounts>
8350             <idleTime>true</idleTime>
8351             <connectTime>true</connectTime>
8352           </value>
8353         </objProp>
8354         <stringProp name="filename">/home/ubuntu/s3p/stability.log</stringProp>
8355       </ResultCollector>
8356       <hashTree/>
8357       <ResultCollector guiclass="TableVisualizer" testclass="ResultCollector" testname="View Results in Table" enabled="true">
8358         <boolProp name="ResultCollector.error_logging">false</boolProp>
8359         <objProp>
8360           <name>saveConfig</name>
8361           <value class="SampleSaveConfiguration">
8362             <time>true</time>
8363             <latency>true</latency>
8364             <timestamp>true</timestamp>
8365             <success>true</success>
8366             <label>true</label>
8367             <code>true</code>
8368             <message>true</message>
8369             <threadName>true</threadName>
8370             <dataType>true</dataType>
8371             <encoding>false</encoding>
8372             <assertions>true</assertions>
8373             <subresults>true</subresults>
8374             <responseData>false</responseData>
8375             <samplerData>false</samplerData>
8376             <xml>false</xml>
8377             <fieldNames>true</fieldNames>
8378             <responseHeaders>false</responseHeaders>
8379             <requestHeaders>false</requestHeaders>
8380             <responseDataOnError>false</responseDataOnError>
8381             <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
8382             <assertionsResultsToSave>0</assertionsResultsToSave>
8383             <bytes>true</bytes>
8384             <sentBytes>true</sentBytes>
8385             <url>true</url>
8386             <threadCounts>true</threadCounts>
8387             <idleTime>true</idleTime>
8388             <connectTime>true</connectTime>
8389           </value>
8390         </objProp>
8391         <stringProp name="filename">/home/ubuntu/s3p/stability.log</stringProp>
8392       </ResultCollector>
8393       <hashTree/>
8394     </hashTree>
8395   </hashTree>
8396 </jmeterTestPlan>