75ff488c30e0afa4c5131d0577dd2ff3c07c66ce
[policy/api.git] / testsuites / performance / src / main / resources / testplans / policy_api_performance.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 Stability" 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.112</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">32251</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}:${API_PORT}/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">continue</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">20</stringProp>
218         <stringProp name="ThreadGroup.ramp_time">2</stringProp>
219         <boolProp name="ThreadGroup.scheduler">true</boolProp>
220         <stringProp name="ThreadGroup.duration">3600</stringProp>
221         <stringProp name="ThreadGroup.delay">2</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">5000</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         <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true">
5197           <stringProp name="ConstantTimer.delay">10000</stringProp>
5198         </ConstantTimer>
5199         <hashTree/>
5200         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get All TCA Policies" enabled="true">
5201           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
5202             <collectionProp name="Arguments.arguments"/>
5203           </elementProp>
5204           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
5205           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
5206           <stringProp name="HTTPSampler.protocol">https</stringProp>
5207           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
5208           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/2.0.0/policies</stringProp>
5209           <stringProp name="HTTPSampler.method">GET</stringProp>
5210           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
5211           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
5212           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
5213           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
5214           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
5215           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
5216           <stringProp name="HTTPSampler.response_timeout"></stringProp>
5217         </HTTPSamplerProxy>
5218         <hashTree>
5219           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
5220             <collectionProp name="Asserion.test_strings">
5221               <stringProp name="49586">200</stringProp>
5222             </collectionProp>
5223             <stringProp name="Assertion.custom_message"></stringProp>
5224             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
5225             <boolProp name="Assertion.assume_success">false</boolProp>
5226             <intProp name="Assertion.test_type">1</intProp>
5227           </ResponseAssertion>
5228           <hashTree/>
5229           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
5230             <stringProp name="scriptLanguage">groovy</stringProp>
5231             <stringProp name="parameters"></stringProp>
5232             <stringProp name="filename"></stringProp>
5233             <stringProp name="cacheKey">true</stringProp>
5234             <stringProp name="script">import groovy.json.JsonSlurper;
5235
5236 def res = [];
5237 if (prev.getResponseCode() == &apos;200&apos;) {
5238     def jsonSlurper = new JsonSlurper();
5239     res = jsonSlurper.parseText(prev.getResponseDataAsString());
5240
5241     assert res instanceof Map;
5242     assert res.topology_template.policies instanceof List;
5243     assert res.topology_template.policies.size == 11;
5244
5245     def n = 11;
5246     for (i=0; i&lt;n; i++) {
5247         assert res.topology_template.policies[i] instanceof Map;
5248     }
5249 }</stringProp>
5250           </JSR223Assertion>
5251           <hashTree/>
5252         </hashTree>
5253         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get All Versions of TCA Policy" enabled="true">
5254           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
5255             <collectionProp name="Arguments.arguments"/>
5256           </elementProp>
5257           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
5258           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
5259           <stringProp name="HTTPSampler.protocol">https</stringProp>
5260           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
5261           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/2.0.0/policies</stringProp>
5262           <stringProp name="HTTPSampler.method">GET</stringProp>
5263           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
5264           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
5265           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
5266           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
5267           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
5268           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
5269           <stringProp name="HTTPSampler.response_timeout"></stringProp>
5270         </HTTPSamplerProxy>
5271         <hashTree>
5272           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
5273             <collectionProp name="Asserion.test_strings">
5274               <stringProp name="49586">200</stringProp>
5275             </collectionProp>
5276             <stringProp name="Assertion.custom_message"></stringProp>
5277             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
5278             <boolProp name="Assertion.assume_success">false</boolProp>
5279             <intProp name="Assertion.test_type">1</intProp>
5280           </ResponseAssertion>
5281           <hashTree/>
5282           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
5283             <stringProp name="scriptLanguage">groovy</stringProp>
5284             <stringProp name="parameters"></stringProp>
5285             <stringProp name="filename"></stringProp>
5286             <stringProp name="cacheKey">true</stringProp>
5287             <stringProp name="script">import groovy.json.JsonSlurper;
5288
5289 def res = [];
5290 if (prev.getResponseCode() == &apos;200&apos;) {
5291     def jsonSlurper = new JsonSlurper();
5292     res = jsonSlurper.parseText(prev.getResponseDataAsString());
5293
5294     assert res instanceof Map;
5295     assert res.topology_template.policies instanceof List;
5296     assert res.topology_template.policies.size == 11;
5297
5298     def n = 11;
5299     for (i=0; i&lt;n; i++) {
5300         assert res.topology_template.policies[i] instanceof Map;
5301     }
5302 }</stringProp>
5303           </JSR223Assertion>
5304           <hashTree/>
5305         </hashTree>
5306         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get TCA Policy V1" enabled="true">
5307           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
5308             <collectionProp name="Arguments.arguments"/>
5309           </elementProp>
5310           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
5311           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
5312           <stringProp name="HTTPSampler.protocol">https</stringProp>
5313           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
5314           <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>
5315           <stringProp name="HTTPSampler.method">GET</stringProp>
5316           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
5317           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
5318           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
5319           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
5320           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
5321           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
5322           <stringProp name="HTTPSampler.response_timeout"></stringProp>
5323         </HTTPSamplerProxy>
5324         <hashTree>
5325           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
5326             <collectionProp name="Asserion.test_strings">
5327               <stringProp name="49586">200</stringProp>
5328             </collectionProp>
5329             <stringProp name="Assertion.custom_message"></stringProp>
5330             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
5331             <boolProp name="Assertion.assume_success">false</boolProp>
5332             <intProp name="Assertion.test_type">1</intProp>
5333           </ResponseAssertion>
5334           <hashTree/>
5335           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
5336             <stringProp name="scriptLanguage">groovy</stringProp>
5337             <stringProp name="parameters"></stringProp>
5338             <stringProp name="filename"></stringProp>
5339             <stringProp name="cacheKey">true</stringProp>
5340             <stringProp name="script">import groovy.json.JsonSlurper;
5341
5342 def res = [];
5343 if (prev.getResponseCode() == &apos;200&apos;) {
5344     def jsonSlurper = new JsonSlurper();
5345     res = jsonSlurper.parseText(prev.getResponseDataAsString());
5346
5347     assert res instanceof Map;
5348     assert res.topology_template.policies instanceof List;
5349     assert res.topology_template.policies.size == 1;
5350
5351     assert res.topology_template.policies[0] instanceof Map;
5352     assert res.topology_template.policies [0].get(&apos;onap.restart.tca&apos;).version == &quot;1.0.0&quot;;
5353 }</stringProp>
5354           </JSR223Assertion>
5355           <hashTree/>
5356         </hashTree>
5357         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get TCA Policy V2" enabled="true">
5358           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
5359             <collectionProp name="Arguments.arguments"/>
5360           </elementProp>
5361           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
5362           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
5363           <stringProp name="HTTPSampler.protocol">https</stringProp>
5364           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
5365           <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>
5366           <stringProp name="HTTPSampler.method">GET</stringProp>
5367           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
5368           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
5369           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
5370           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
5371           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
5372           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
5373           <stringProp name="HTTPSampler.response_timeout"></stringProp>
5374         </HTTPSamplerProxy>
5375         <hashTree>
5376           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
5377             <collectionProp name="Asserion.test_strings">
5378               <stringProp name="49586">200</stringProp>
5379             </collectionProp>
5380             <stringProp name="Assertion.custom_message"></stringProp>
5381             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
5382             <boolProp name="Assertion.assume_success">false</boolProp>
5383             <intProp name="Assertion.test_type">1</intProp>
5384           </ResponseAssertion>
5385           <hashTree/>
5386           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
5387             <stringProp name="scriptLanguage">groovy</stringProp>
5388             <stringProp name="parameters"></stringProp>
5389             <stringProp name="filename"></stringProp>
5390             <stringProp name="cacheKey">true</stringProp>
5391             <stringProp name="script">import groovy.json.JsonSlurper;
5392
5393 def res = [];
5394 if (prev.getResponseCode() == &apos;200&apos;) {
5395     def jsonSlurper = new JsonSlurper();
5396     res = jsonSlurper.parseText(prev.getResponseDataAsString());
5397
5398     assert res instanceof Map;
5399     assert res.topology_template.policies instanceof List;
5400     assert res.topology_template.policies.size == 1;
5401
5402     assert res.topology_template.policies[0] instanceof Map;
5403     assert res.topology_template.policies [0].get(&apos;onap.restart.tca&apos;).version == &quot;2.0.0&quot;;
5404 }</stringProp>
5405           </JSR223Assertion>
5406           <hashTree/>
5407         </hashTree>
5408         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get TCA Policy V3" enabled="true">
5409           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
5410             <collectionProp name="Arguments.arguments"/>
5411           </elementProp>
5412           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
5413           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
5414           <stringProp name="HTTPSampler.protocol">https</stringProp>
5415           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
5416           <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>
5417           <stringProp name="HTTPSampler.method">GET</stringProp>
5418           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
5419           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
5420           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
5421           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
5422           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
5423           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
5424           <stringProp name="HTTPSampler.response_timeout"></stringProp>
5425         </HTTPSamplerProxy>
5426         <hashTree>
5427           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
5428             <collectionProp name="Asserion.test_strings">
5429               <stringProp name="49586">200</stringProp>
5430             </collectionProp>
5431             <stringProp name="Assertion.custom_message"></stringProp>
5432             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
5433             <boolProp name="Assertion.assume_success">false</boolProp>
5434             <intProp name="Assertion.test_type">1</intProp>
5435           </ResponseAssertion>
5436           <hashTree/>
5437           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
5438             <stringProp name="scriptLanguage">groovy</stringProp>
5439             <stringProp name="parameters"></stringProp>
5440             <stringProp name="filename"></stringProp>
5441             <stringProp name="cacheKey">true</stringProp>
5442             <stringProp name="script">import groovy.json.JsonSlurper;
5443
5444 def res = [];
5445 if (prev.getResponseCode() == &apos;200&apos;) {
5446     def jsonSlurper = new JsonSlurper();
5447     res = jsonSlurper.parseText(prev.getResponseDataAsString());
5448
5449     assert res instanceof Map;
5450     assert res.topology_template.policies instanceof List;
5451     assert res.topology_template.policies.size == 1;
5452
5453     assert res.topology_template.policies[0] instanceof Map;
5454     assert res.topology_template.policies [0].get(&apos;onap.restart.tca&apos;).version == &quot;3.0.0&quot;;
5455 }</stringProp>
5456           </JSR223Assertion>
5457           <hashTree/>
5458         </hashTree>
5459         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get TCA Policy V4" enabled="true">
5460           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
5461             <collectionProp name="Arguments.arguments"/>
5462           </elementProp>
5463           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
5464           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
5465           <stringProp name="HTTPSampler.protocol">https</stringProp>
5466           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
5467           <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>
5468           <stringProp name="HTTPSampler.method">GET</stringProp>
5469           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
5470           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
5471           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
5472           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
5473           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
5474           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
5475           <stringProp name="HTTPSampler.response_timeout"></stringProp>
5476         </HTTPSamplerProxy>
5477         <hashTree>
5478           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
5479             <collectionProp name="Asserion.test_strings">
5480               <stringProp name="49586">200</stringProp>
5481             </collectionProp>
5482             <stringProp name="Assertion.custom_message"></stringProp>
5483             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
5484             <boolProp name="Assertion.assume_success">false</boolProp>
5485             <intProp name="Assertion.test_type">1</intProp>
5486           </ResponseAssertion>
5487           <hashTree/>
5488           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
5489             <stringProp name="scriptLanguage">groovy</stringProp>
5490             <stringProp name="parameters"></stringProp>
5491             <stringProp name="filename"></stringProp>
5492             <stringProp name="cacheKey">true</stringProp>
5493             <stringProp name="script">import groovy.json.JsonSlurper;
5494
5495 def res = [];
5496 if (prev.getResponseCode() == &apos;200&apos;) {
5497     def jsonSlurper = new JsonSlurper();
5498     res = jsonSlurper.parseText(prev.getResponseDataAsString());
5499
5500     assert res instanceof Map;
5501     assert res.topology_template.policies instanceof List;
5502     assert res.topology_template.policies.size == 1;
5503
5504     assert res.topology_template.policies[0] instanceof Map;
5505     assert res.topology_template.policies [0].get(&apos;onap.restart.tca&apos;).version == &quot;4.0.0&quot;;
5506 }</stringProp>
5507           </JSR223Assertion>
5508           <hashTree/>
5509         </hashTree>
5510         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get TCA Policy V5" enabled="true">
5511           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
5512             <collectionProp name="Arguments.arguments"/>
5513           </elementProp>
5514           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
5515           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
5516           <stringProp name="HTTPSampler.protocol">https</stringProp>
5517           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
5518           <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>
5519           <stringProp name="HTTPSampler.method">GET</stringProp>
5520           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
5521           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
5522           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
5523           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
5524           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
5525           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
5526           <stringProp name="HTTPSampler.response_timeout"></stringProp>
5527         </HTTPSamplerProxy>
5528         <hashTree>
5529           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
5530             <collectionProp name="Asserion.test_strings">
5531               <stringProp name="49586">200</stringProp>
5532             </collectionProp>
5533             <stringProp name="Assertion.custom_message"></stringProp>
5534             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
5535             <boolProp name="Assertion.assume_success">false</boolProp>
5536             <intProp name="Assertion.test_type">1</intProp>
5537           </ResponseAssertion>
5538           <hashTree/>
5539           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
5540             <stringProp name="scriptLanguage">groovy</stringProp>
5541             <stringProp name="parameters"></stringProp>
5542             <stringProp name="filename"></stringProp>
5543             <stringProp name="cacheKey">true</stringProp>
5544             <stringProp name="script">import groovy.json.JsonSlurper;
5545
5546 def res = [];
5547 if (prev.getResponseCode() == &apos;200&apos;) {
5548     def jsonSlurper = new JsonSlurper();
5549     res = jsonSlurper.parseText(prev.getResponseDataAsString());
5550
5551     assert res instanceof Map;
5552     assert res.topology_template.policies instanceof List;
5553     assert res.topology_template.policies.size == 1;
5554
5555     assert res.topology_template.policies[0] instanceof Map;
5556     assert res.topology_template.policies [0].get(&apos;onap.restart.tca&apos;).version == &quot;5.0.0&quot;;
5557 }</stringProp>
5558           </JSR223Assertion>
5559           <hashTree/>
5560         </hashTree>
5561         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get TCA Policy V6" enabled="true">
5562           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
5563             <collectionProp name="Arguments.arguments"/>
5564           </elementProp>
5565           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
5566           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
5567           <stringProp name="HTTPSampler.protocol">https</stringProp>
5568           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
5569           <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>
5570           <stringProp name="HTTPSampler.method">GET</stringProp>
5571           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
5572           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
5573           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
5574           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
5575           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
5576           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
5577           <stringProp name="HTTPSampler.response_timeout"></stringProp>
5578         </HTTPSamplerProxy>
5579         <hashTree>
5580           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
5581             <collectionProp name="Asserion.test_strings">
5582               <stringProp name="49586">200</stringProp>
5583             </collectionProp>
5584             <stringProp name="Assertion.custom_message"></stringProp>
5585             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
5586             <boolProp name="Assertion.assume_success">false</boolProp>
5587             <intProp name="Assertion.test_type">1</intProp>
5588           </ResponseAssertion>
5589           <hashTree/>
5590           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
5591             <stringProp name="scriptLanguage">groovy</stringProp>
5592             <stringProp name="parameters"></stringProp>
5593             <stringProp name="filename"></stringProp>
5594             <stringProp name="cacheKey">true</stringProp>
5595             <stringProp name="script">import groovy.json.JsonSlurper;
5596
5597 def res = [];
5598 if (prev.getResponseCode() == &apos;200&apos;) {
5599     def jsonSlurper = new JsonSlurper();
5600     res = jsonSlurper.parseText(prev.getResponseDataAsString());
5601
5602     assert res instanceof Map;
5603     assert res.topology_template.policies instanceof List;
5604     assert res.topology_template.policies.size == 1;
5605
5606     assert res.topology_template.policies[0] instanceof Map;
5607     assert res.topology_template.policies [0].get(&apos;onap.restart.tca&apos;).version == &quot;6.0.0&quot;;
5608 }</stringProp>
5609           </JSR223Assertion>
5610           <hashTree/>
5611         </hashTree>
5612         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get TCA Policy V7" enabled="true">
5613           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
5614             <collectionProp name="Arguments.arguments"/>
5615           </elementProp>
5616           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
5617           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
5618           <stringProp name="HTTPSampler.protocol">https</stringProp>
5619           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
5620           <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>
5621           <stringProp name="HTTPSampler.method">GET</stringProp>
5622           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
5623           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
5624           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
5625           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
5626           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
5627           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
5628           <stringProp name="HTTPSampler.response_timeout"></stringProp>
5629         </HTTPSamplerProxy>
5630         <hashTree>
5631           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
5632             <collectionProp name="Asserion.test_strings">
5633               <stringProp name="49586">200</stringProp>
5634             </collectionProp>
5635             <stringProp name="Assertion.custom_message"></stringProp>
5636             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
5637             <boolProp name="Assertion.assume_success">false</boolProp>
5638             <intProp name="Assertion.test_type">1</intProp>
5639           </ResponseAssertion>
5640           <hashTree/>
5641           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
5642             <stringProp name="scriptLanguage">groovy</stringProp>
5643             <stringProp name="parameters"></stringProp>
5644             <stringProp name="filename"></stringProp>
5645             <stringProp name="cacheKey">true</stringProp>
5646             <stringProp name="script">import groovy.json.JsonSlurper;
5647
5648 def res = [];
5649 if (prev.getResponseCode() == &apos;200&apos;) {
5650     def jsonSlurper = new JsonSlurper();
5651     res = jsonSlurper.parseText(prev.getResponseDataAsString());
5652
5653     assert res instanceof Map;
5654     assert res.topology_template.policies instanceof List;
5655     assert res.topology_template.policies.size == 1;
5656
5657     assert res.topology_template.policies[0] instanceof Map;
5658     assert res.topology_template.policies [0].get(&apos;onap.restart.tca&apos;).version == &quot;7.0.0&quot;;
5659 }</stringProp>
5660           </JSR223Assertion>
5661           <hashTree/>
5662         </hashTree>
5663         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get TCA Policy V8" enabled="true">
5664           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
5665             <collectionProp name="Arguments.arguments"/>
5666           </elementProp>
5667           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
5668           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
5669           <stringProp name="HTTPSampler.protocol">https</stringProp>
5670           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
5671           <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>
5672           <stringProp name="HTTPSampler.method">GET</stringProp>
5673           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
5674           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
5675           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
5676           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
5677           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
5678           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
5679           <stringProp name="HTTPSampler.response_timeout"></stringProp>
5680         </HTTPSamplerProxy>
5681         <hashTree>
5682           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
5683             <collectionProp name="Asserion.test_strings">
5684               <stringProp name="49586">200</stringProp>
5685             </collectionProp>
5686             <stringProp name="Assertion.custom_message"></stringProp>
5687             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
5688             <boolProp name="Assertion.assume_success">false</boolProp>
5689             <intProp name="Assertion.test_type">1</intProp>
5690           </ResponseAssertion>
5691           <hashTree/>
5692           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
5693             <stringProp name="scriptLanguage">groovy</stringProp>
5694             <stringProp name="parameters"></stringProp>
5695             <stringProp name="filename"></stringProp>
5696             <stringProp name="cacheKey">true</stringProp>
5697             <stringProp name="script">import groovy.json.JsonSlurper;
5698
5699 def res = [];
5700 if (prev.getResponseCode() == &apos;200&apos;) {
5701     def jsonSlurper = new JsonSlurper();
5702     res = jsonSlurper.parseText(prev.getResponseDataAsString());
5703
5704     assert res instanceof Map;
5705     assert res.topology_template.policies instanceof List;
5706     assert res.topology_template.policies.size == 1;
5707
5708     assert res.topology_template.policies[0] instanceof Map;
5709     assert res.topology_template.policies [0].get(&apos;onap.restart.tca&apos;).version == &quot;8.0.0&quot;;
5710 }</stringProp>
5711           </JSR223Assertion>
5712           <hashTree/>
5713         </hashTree>
5714         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get TCA Policy V9" enabled="true">
5715           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
5716             <collectionProp name="Arguments.arguments"/>
5717           </elementProp>
5718           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
5719           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
5720           <stringProp name="HTTPSampler.protocol">https</stringProp>
5721           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
5722           <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>
5723           <stringProp name="HTTPSampler.method">GET</stringProp>
5724           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
5725           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
5726           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
5727           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
5728           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
5729           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
5730           <stringProp name="HTTPSampler.response_timeout"></stringProp>
5731         </HTTPSamplerProxy>
5732         <hashTree>
5733           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
5734             <collectionProp name="Asserion.test_strings">
5735               <stringProp name="49586">200</stringProp>
5736             </collectionProp>
5737             <stringProp name="Assertion.custom_message"></stringProp>
5738             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
5739             <boolProp name="Assertion.assume_success">false</boolProp>
5740             <intProp name="Assertion.test_type">1</intProp>
5741           </ResponseAssertion>
5742           <hashTree/>
5743           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
5744             <stringProp name="scriptLanguage">groovy</stringProp>
5745             <stringProp name="parameters"></stringProp>
5746             <stringProp name="filename"></stringProp>
5747             <stringProp name="cacheKey">true</stringProp>
5748             <stringProp name="script">import groovy.json.JsonSlurper;
5749
5750 def res = [];
5751 if (prev.getResponseCode() == &apos;200&apos;) {
5752     def jsonSlurper = new JsonSlurper();
5753     res = jsonSlurper.parseText(prev.getResponseDataAsString());
5754
5755     assert res instanceof Map;
5756     assert res.topology_template.policies instanceof List;
5757     assert res.topology_template.policies.size == 1;
5758
5759     assert res.topology_template.policies[0] instanceof Map;
5760     assert res.topology_template.policies [0].get(&apos;onap.restart.tca&apos;).version == &quot;9.0.0&quot;;
5761 }</stringProp>
5762           </JSR223Assertion>
5763           <hashTree/>
5764         </hashTree>
5765         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get TCA Policy V10" enabled="true">
5766           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
5767             <collectionProp name="Arguments.arguments"/>
5768           </elementProp>
5769           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
5770           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
5771           <stringProp name="HTTPSampler.protocol">https</stringProp>
5772           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
5773           <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>
5774           <stringProp name="HTTPSampler.method">GET</stringProp>
5775           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
5776           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
5777           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
5778           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
5779           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
5780           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
5781           <stringProp name="HTTPSampler.response_timeout"></stringProp>
5782         </HTTPSamplerProxy>
5783         <hashTree>
5784           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
5785             <collectionProp name="Asserion.test_strings">
5786               <stringProp name="49586">200</stringProp>
5787             </collectionProp>
5788             <stringProp name="Assertion.custom_message"></stringProp>
5789             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
5790             <boolProp name="Assertion.assume_success">false</boolProp>
5791             <intProp name="Assertion.test_type">1</intProp>
5792           </ResponseAssertion>
5793           <hashTree/>
5794           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
5795             <stringProp name="scriptLanguage">groovy</stringProp>
5796             <stringProp name="parameters"></stringProp>
5797             <stringProp name="filename"></stringProp>
5798             <stringProp name="cacheKey">true</stringProp>
5799             <stringProp name="script">import groovy.json.JsonSlurper;
5800
5801 def res = [];
5802 if (prev.getResponseCode() == &apos;200&apos;) {
5803     def jsonSlurper = new JsonSlurper();
5804     res = jsonSlurper.parseText(prev.getResponseDataAsString());
5805
5806     assert res instanceof Map;
5807     assert res.topology_template.policies instanceof List;
5808     assert res.topology_template.policies.size == 1;
5809
5810     assert res.topology_template.policies[0] instanceof Map;
5811     assert res.topology_template.policies [0].get(&apos;onap.restart.tca&apos;).version == &quot;10.0.0&quot;;
5812 }</stringProp>
5813           </JSR223Assertion>
5814           <hashTree/>
5815         </hashTree>
5816         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get TCA Policy V11" enabled="true">
5817           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
5818             <collectionProp name="Arguments.arguments"/>
5819           </elementProp>
5820           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
5821           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
5822           <stringProp name="HTTPSampler.protocol">https</stringProp>
5823           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
5824           <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>
5825           <stringProp name="HTTPSampler.method">GET</stringProp>
5826           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
5827           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
5828           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
5829           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
5830           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
5831           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
5832           <stringProp name="HTTPSampler.response_timeout"></stringProp>
5833         </HTTPSamplerProxy>
5834         <hashTree>
5835           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
5836             <collectionProp name="Asserion.test_strings">
5837               <stringProp name="49586">200</stringProp>
5838             </collectionProp>
5839             <stringProp name="Assertion.custom_message"></stringProp>
5840             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
5841             <boolProp name="Assertion.assume_success">false</boolProp>
5842             <intProp name="Assertion.test_type">1</intProp>
5843           </ResponseAssertion>
5844           <hashTree/>
5845           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
5846             <stringProp name="scriptLanguage">groovy</stringProp>
5847             <stringProp name="parameters"></stringProp>
5848             <stringProp name="filename"></stringProp>
5849             <stringProp name="cacheKey">true</stringProp>
5850             <stringProp name="script">import groovy.json.JsonSlurper;
5851
5852 def res = [];
5853 if (prev.getResponseCode() == &apos;200&apos;) {
5854     def jsonSlurper = new JsonSlurper();
5855     res = jsonSlurper.parseText(prev.getResponseDataAsString());
5856
5857     assert res instanceof Map;
5858     assert res.topology_template.policies instanceof List;
5859     assert res.topology_template.policies.size == 1;
5860
5861     assert res.topology_template.policies[0] instanceof Map;
5862     assert res.topology_template.policies [0].get(&apos;onap.restart.tca&apos;).version == &quot;11.0.0&quot;;
5863 }</stringProp>
5864           </JSR223Assertion>
5865           <hashTree/>
5866         </hashTree>
5867         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get latest TCA Policy" enabled="true">
5868           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
5869             <collectionProp name="Arguments.arguments"/>
5870           </elementProp>
5871           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
5872           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
5873           <stringProp name="HTTPSampler.protocol">https</stringProp>
5874           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
5875           <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>
5876           <stringProp name="HTTPSampler.method">GET</stringProp>
5877           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
5878           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
5879           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
5880           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
5881           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
5882           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
5883           <stringProp name="HTTPSampler.response_timeout"></stringProp>
5884         </HTTPSamplerProxy>
5885         <hashTree>
5886           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
5887             <collectionProp name="Asserion.test_strings">
5888               <stringProp name="49586">200</stringProp>
5889             </collectionProp>
5890             <stringProp name="Assertion.custom_message"></stringProp>
5891             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
5892             <boolProp name="Assertion.assume_success">false</boolProp>
5893             <intProp name="Assertion.test_type">1</intProp>
5894           </ResponseAssertion>
5895           <hashTree/>
5896           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
5897             <stringProp name="scriptLanguage">groovy</stringProp>
5898             <stringProp name="parameters"></stringProp>
5899             <stringProp name="filename"></stringProp>
5900             <stringProp name="cacheKey">true</stringProp>
5901             <stringProp name="script">import groovy.json.JsonSlurper;
5902
5903 def res = [];
5904 if (prev.getResponseCode() == &apos;200&apos;) {
5905     def jsonSlurper = new JsonSlurper();
5906     res = jsonSlurper.parseText(prev.getResponseDataAsString());
5907
5908     assert res instanceof Map;
5909     assert res.topology_template.policies instanceof List;
5910     assert res.topology_template.policies.size == 1;
5911
5912     assert res.topology_template.policies[0] instanceof Map;
5913     assert res.topology_template.policies [0].get(&apos;onap.restart.tca&apos;).version == &quot;11.0.0&quot;;
5914 }</stringProp>
5915           </JSR223Assertion>
5916           <hashTree/>
5917         </hashTree>
5918         <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true">
5919           <stringProp name="ConstantTimer.delay">5000</stringProp>
5920         </ConstantTimer>
5921         <hashTree/>
5922         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create Guard Policy V1" enabled="true">
5923           <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
5924           <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
5925             <collectionProp name="Arguments.arguments">
5926               <elementProp name="" elementType="HTTPArgument">
5927                 <boolProp name="HTTPArgument.always_encode">false</boolProp>
5928                 <stringProp name="Argument.value">{&#xd;
5929   &quot;policy-id&quot; : &quot;guard.frequency.scaleout&quot;,&#xd;
5930   &quot;policy-version&quot; : &quot;1&quot;,&#xd;
5931   &quot;content&quot; : {&#xd;
5932             &quot;actor&quot;: &quot;SO&quot;,&#xd;
5933             &quot;recipe&quot;: &quot;scaleOut&quot;,&#xd;
5934             &quot;targets&quot;: &quot;.*&quot;,&#xd;
5935             &quot;clname&quot;: &quot;ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3&quot;,&#xd;
5936             &quot;limit&quot;: &quot;1&quot;,&#xd;
5937             &quot;timeWindow&quot;: &quot;10&quot;,&#xd;
5938             &quot;timeUnits&quot;: &quot;minute&quot;,&#xd;
5939             &quot;guardActiveStart&quot;: &quot;00:00:01-05:00&quot;,&#xd;
5940             &quot;guardActiveEnd&quot;: &quot;23:59:59-05:00&quot;&#xd;
5941    }&#xd;
5942 }</stringProp>
5943                 <stringProp name="Argument.metadata">=</stringProp>
5944               </elementProp>
5945             </collectionProp>
5946           </elementProp>
5947           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
5948           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
5949           <stringProp name="HTTPSampler.protocol">https</stringProp>
5950           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
5951           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.controlloop.Guard/versions/1.0.0/policies</stringProp>
5952           <stringProp name="HTTPSampler.method">POST</stringProp>
5953           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
5954           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
5955           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
5956           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
5957           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
5958           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
5959           <stringProp name="HTTPSampler.response_timeout"></stringProp>
5960         </HTTPSamplerProxy>
5961         <hashTree>
5962           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
5963             <collectionProp name="Asserion.test_strings">
5964               <stringProp name="49586">200</stringProp>
5965             </collectionProp>
5966             <stringProp name="Assertion.custom_message"></stringProp>
5967             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
5968             <boolProp name="Assertion.assume_success">false</boolProp>
5969             <intProp name="Assertion.test_type">1</intProp>
5970           </ResponseAssertion>
5971           <hashTree/>
5972           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
5973             <stringProp name="scriptLanguage">groovy</stringProp>
5974             <stringProp name="parameters"></stringProp>
5975             <stringProp name="filename"></stringProp>
5976             <stringProp name="cacheKey">true</stringProp>
5977             <stringProp name="script">import groovy.json.JsonSlurper;
5978
5979 def res = [];
5980 if (prev.getResponseCode() == &apos;200&apos;) {
5981     def jsonSlurper = new JsonSlurper();
5982     res = jsonSlurper.parseText(prev.getResponseDataAsString());
5983
5984     assert res instanceof Map;
5985     assert res.get(&apos;guard.frequency.scaleout&apos;).version == &quot;1.0.0&quot;;
5986 }</stringProp>
5987           </JSR223Assertion>
5988           <hashTree/>
5989         </hashTree>
5990         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create Guard Policy V5" enabled="true">
5991           <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
5992           <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
5993             <collectionProp name="Arguments.arguments">
5994               <elementProp name="" elementType="HTTPArgument">
5995                 <boolProp name="HTTPArgument.always_encode">false</boolProp>
5996                 <stringProp name="Argument.value">{&#xd;
5997   &quot;policy-id&quot; : &quot;guard.frequency.scaleout&quot;,&#xd;
5998   &quot;policy-version&quot; : &quot;5&quot;,&#xd;
5999   &quot;content&quot; : {&#xd;
6000             &quot;actor&quot;: &quot;SO&quot;,&#xd;
6001             &quot;recipe&quot;: &quot;scaleOut&quot;,&#xd;
6002             &quot;targets&quot;: &quot;.*&quot;,&#xd;
6003             &quot;clname&quot;: &quot;ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3&quot;,&#xd;
6004             &quot;limit&quot;: &quot;1&quot;,&#xd;
6005             &quot;timeWindow&quot;: &quot;10&quot;,&#xd;
6006             &quot;timeUnits&quot;: &quot;minute&quot;,&#xd;
6007             &quot;guardActiveStart&quot;: &quot;00:00:01-05:00&quot;,&#xd;
6008             &quot;guardActiveEnd&quot;: &quot;23:59:59-05:00&quot;&#xd;
6009    }&#xd;
6010 }</stringProp>
6011                 <stringProp name="Argument.metadata">=</stringProp>
6012               </elementProp>
6013             </collectionProp>
6014           </elementProp>
6015           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
6016           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
6017           <stringProp name="HTTPSampler.protocol">https</stringProp>
6018           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
6019           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.controlloop.Guard/versions/1.0.0/policies</stringProp>
6020           <stringProp name="HTTPSampler.method">POST</stringProp>
6021           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
6022           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
6023           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
6024           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
6025           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
6026           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
6027           <stringProp name="HTTPSampler.response_timeout"></stringProp>
6028         </HTTPSamplerProxy>
6029         <hashTree>
6030           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
6031             <collectionProp name="Asserion.test_strings">
6032               <stringProp name="49586">200</stringProp>
6033             </collectionProp>
6034             <stringProp name="Assertion.custom_message"></stringProp>
6035             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
6036             <boolProp name="Assertion.assume_success">false</boolProp>
6037             <intProp name="Assertion.test_type">1</intProp>
6038           </ResponseAssertion>
6039           <hashTree/>
6040           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
6041             <stringProp name="scriptLanguage">groovy</stringProp>
6042             <stringProp name="parameters"></stringProp>
6043             <stringProp name="filename"></stringProp>
6044             <stringProp name="cacheKey">true</stringProp>
6045             <stringProp name="script">import groovy.json.JsonSlurper;
6046
6047 def res = [];
6048 if (prev.getResponseCode() == &apos;200&apos;) {
6049     def jsonSlurper = new JsonSlurper();
6050     res = jsonSlurper.parseText(prev.getResponseDataAsString());
6051
6052     assert res instanceof Map;
6053     assert res.get(&apos;guard.frequency.scaleout&apos;).version == &quot;5.0.0&quot;;
6054 }</stringProp>
6055           </JSR223Assertion>
6056           <hashTree/>
6057         </hashTree>
6058         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create Guard Policy V9" enabled="true">
6059           <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
6060           <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
6061             <collectionProp name="Arguments.arguments">
6062               <elementProp name="" elementType="HTTPArgument">
6063                 <boolProp name="HTTPArgument.always_encode">false</boolProp>
6064                 <stringProp name="Argument.value">{&#xd;
6065   &quot;policy-id&quot; : &quot;guard.frequency.scaleout&quot;,&#xd;
6066   &quot;policy-version&quot; : &quot;9&quot;,&#xd;
6067   &quot;content&quot; : {&#xd;
6068             &quot;actor&quot;: &quot;SO&quot;,&#xd;
6069             &quot;recipe&quot;: &quot;scaleOut&quot;,&#xd;
6070             &quot;targets&quot;: &quot;.*&quot;,&#xd;
6071             &quot;clname&quot;: &quot;ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3&quot;,&#xd;
6072             &quot;limit&quot;: &quot;1&quot;,&#xd;
6073             &quot;timeWindow&quot;: &quot;10&quot;,&#xd;
6074             &quot;timeUnits&quot;: &quot;minute&quot;,&#xd;
6075             &quot;guardActiveStart&quot;: &quot;00:00:01-05:00&quot;,&#xd;
6076             &quot;guardActiveEnd&quot;: &quot;23:59:59-05:00&quot;&#xd;
6077    }&#xd;
6078 }</stringProp>
6079                 <stringProp name="Argument.metadata">=</stringProp>
6080               </elementProp>
6081             </collectionProp>
6082           </elementProp>
6083           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
6084           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
6085           <stringProp name="HTTPSampler.protocol">https</stringProp>
6086           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
6087           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.controlloop.Guard/versions/1.0.0/policies</stringProp>
6088           <stringProp name="HTTPSampler.method">POST</stringProp>
6089           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
6090           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
6091           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
6092           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
6093           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
6094           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
6095           <stringProp name="HTTPSampler.response_timeout"></stringProp>
6096         </HTTPSamplerProxy>
6097         <hashTree>
6098           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
6099             <collectionProp name="Asserion.test_strings">
6100               <stringProp name="49586">200</stringProp>
6101             </collectionProp>
6102             <stringProp name="Assertion.custom_message"></stringProp>
6103             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
6104             <boolProp name="Assertion.assume_success">false</boolProp>
6105             <intProp name="Assertion.test_type">1</intProp>
6106           </ResponseAssertion>
6107           <hashTree/>
6108           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
6109             <stringProp name="scriptLanguage">groovy</stringProp>
6110             <stringProp name="parameters"></stringProp>
6111             <stringProp name="filename"></stringProp>
6112             <stringProp name="cacheKey">true</stringProp>
6113             <stringProp name="script">import groovy.json.JsonSlurper;
6114
6115 def res = [];
6116 if (prev.getResponseCode() == &apos;200&apos;) {
6117     def jsonSlurper = new JsonSlurper();
6118     res = jsonSlurper.parseText(prev.getResponseDataAsString());
6119
6120     assert res instanceof Map;
6121     assert res.get(&apos;guard.frequency.scaleout&apos;).version == &quot;9.0.0&quot;;
6122 }</stringProp>
6123           </JSR223Assertion>
6124           <hashTree/>
6125         </hashTree>
6126         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create Guard Policy V12" enabled="true">
6127           <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
6128           <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
6129             <collectionProp name="Arguments.arguments">
6130               <elementProp name="" elementType="HTTPArgument">
6131                 <boolProp name="HTTPArgument.always_encode">false</boolProp>
6132                 <stringProp name="Argument.value">{&#xd;
6133   &quot;policy-id&quot; : &quot;guard.frequency.scaleout&quot;,&#xd;
6134   &quot;policy-version&quot; : &quot;12&quot;,&#xd;
6135   &quot;content&quot; : {&#xd;
6136             &quot;actor&quot;: &quot;SO&quot;,&#xd;
6137             &quot;recipe&quot;: &quot;scaleOut&quot;,&#xd;
6138             &quot;targets&quot;: &quot;.*&quot;,&#xd;
6139             &quot;clname&quot;: &quot;ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3&quot;,&#xd;
6140             &quot;limit&quot;: &quot;1&quot;,&#xd;
6141             &quot;timeWindow&quot;: &quot;10&quot;,&#xd;
6142             &quot;timeUnits&quot;: &quot;minute&quot;,&#xd;
6143             &quot;guardActiveStart&quot;: &quot;00:00:01-05:00&quot;,&#xd;
6144             &quot;guardActiveEnd&quot;: &quot;23:59:59-05:00&quot;&#xd;
6145    }&#xd;
6146 }</stringProp>
6147                 <stringProp name="Argument.metadata">=</stringProp>
6148               </elementProp>
6149             </collectionProp>
6150           </elementProp>
6151           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
6152           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
6153           <stringProp name="HTTPSampler.protocol">https</stringProp>
6154           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
6155           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.controlloop.Guard/versions/1.0.0/policies</stringProp>
6156           <stringProp name="HTTPSampler.method">POST</stringProp>
6157           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
6158           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
6159           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
6160           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
6161           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
6162           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
6163           <stringProp name="HTTPSampler.response_timeout"></stringProp>
6164         </HTTPSamplerProxy>
6165         <hashTree>
6166           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
6167             <collectionProp name="Asserion.test_strings">
6168               <stringProp name="49586">200</stringProp>
6169             </collectionProp>
6170             <stringProp name="Assertion.custom_message"></stringProp>
6171             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
6172             <boolProp name="Assertion.assume_success">false</boolProp>
6173             <intProp name="Assertion.test_type">1</intProp>
6174           </ResponseAssertion>
6175           <hashTree/>
6176           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
6177             <stringProp name="scriptLanguage">groovy</stringProp>
6178             <stringProp name="parameters"></stringProp>
6179             <stringProp name="filename"></stringProp>
6180             <stringProp name="cacheKey">true</stringProp>
6181             <stringProp name="script">import groovy.json.JsonSlurper;
6182
6183 def res = [];
6184 if (prev.getResponseCode() == &apos;200&apos;) {
6185     def jsonSlurper = new JsonSlurper();
6186     res = jsonSlurper.parseText(prev.getResponseDataAsString());
6187
6188     assert res instanceof Map;
6189     assert res.get(&apos;guard.frequency.scaleout&apos;).version == &quot;12.0.0&quot;;
6190 }</stringProp>
6191           </JSR223Assertion>
6192           <hashTree/>
6193         </hashTree>
6194         <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true">
6195           <stringProp name="ConstantTimer.delay">10000</stringProp>
6196         </ConstantTimer>
6197         <hashTree/>
6198         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Guard Policy V1" enabled="true">
6199           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
6200             <collectionProp name="Arguments.arguments"/>
6201           </elementProp>
6202           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
6203           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
6204           <stringProp name="HTTPSampler.protocol">https</stringProp>
6205           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
6206           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.controlloop.Guard/versions/1.0.0/policies/guard.frequency.scaleout/versions/1</stringProp>
6207           <stringProp name="HTTPSampler.method">GET</stringProp>
6208           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
6209           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
6210           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
6211           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
6212           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
6213           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
6214           <stringProp name="HTTPSampler.response_timeout"></stringProp>
6215         </HTTPSamplerProxy>
6216         <hashTree>
6217           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
6218             <collectionProp name="Asserion.test_strings">
6219               <stringProp name="49586">200</stringProp>
6220             </collectionProp>
6221             <stringProp name="Assertion.custom_message"></stringProp>
6222             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
6223             <boolProp name="Assertion.assume_success">false</boolProp>
6224             <intProp name="Assertion.test_type">1</intProp>
6225           </ResponseAssertion>
6226           <hashTree/>
6227           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
6228             <stringProp name="scriptLanguage">groovy</stringProp>
6229             <stringProp name="parameters"></stringProp>
6230             <stringProp name="filename"></stringProp>
6231             <stringProp name="cacheKey">true</stringProp>
6232             <stringProp name="script">import groovy.json.JsonSlurper;
6233
6234 def res = [];
6235 if (prev.getResponseCode() == &apos;200&apos;) {
6236     def jsonSlurper = new JsonSlurper();
6237     res = jsonSlurper.parseText(prev.getResponseDataAsString());
6238
6239     assert res instanceof Map;
6240     assert res.get(&apos;guard.frequency.scaleout&apos;).version == &quot;1.0.0&quot;;
6241 }</stringProp>
6242           </JSR223Assertion>
6243           <hashTree/>
6244         </hashTree>
6245         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Guard Policy V5" enabled="true">
6246           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
6247             <collectionProp name="Arguments.arguments"/>
6248           </elementProp>
6249           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
6250           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
6251           <stringProp name="HTTPSampler.protocol">https</stringProp>
6252           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
6253           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.controlloop.Guard/versions/1.0.0/policies/guard.frequency.scaleout/versions/5</stringProp>
6254           <stringProp name="HTTPSampler.method">GET</stringProp>
6255           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
6256           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
6257           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
6258           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
6259           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
6260           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
6261           <stringProp name="HTTPSampler.response_timeout"></stringProp>
6262         </HTTPSamplerProxy>
6263         <hashTree>
6264           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
6265             <collectionProp name="Asserion.test_strings">
6266               <stringProp name="49586">200</stringProp>
6267             </collectionProp>
6268             <stringProp name="Assertion.custom_message"></stringProp>
6269             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
6270             <boolProp name="Assertion.assume_success">false</boolProp>
6271             <intProp name="Assertion.test_type">1</intProp>
6272           </ResponseAssertion>
6273           <hashTree/>
6274           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
6275             <stringProp name="scriptLanguage">groovy</stringProp>
6276             <stringProp name="parameters"></stringProp>
6277             <stringProp name="filename"></stringProp>
6278             <stringProp name="cacheKey">true</stringProp>
6279             <stringProp name="script">import groovy.json.JsonSlurper;
6280
6281 def res = [];
6282 if (prev.getResponseCode() == &apos;200&apos;) {
6283     def jsonSlurper = new JsonSlurper();
6284     res = jsonSlurper.parseText(prev.getResponseDataAsString());
6285
6286     assert res instanceof Map;
6287     assert res.get(&apos;guard.frequency.scaleout&apos;).version == &quot;5.0.0&quot;;
6288 }</stringProp>
6289           </JSR223Assertion>
6290           <hashTree/>
6291         </hashTree>
6292         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Guard Policy V9" enabled="true">
6293           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
6294             <collectionProp name="Arguments.arguments"/>
6295           </elementProp>
6296           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
6297           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
6298           <stringProp name="HTTPSampler.protocol">https</stringProp>
6299           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
6300           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.controlloop.Guard/versions/1.0.0/policies/guard.frequency.scaleout/versions/9</stringProp>
6301           <stringProp name="HTTPSampler.method">GET</stringProp>
6302           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
6303           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
6304           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
6305           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
6306           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
6307           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
6308           <stringProp name="HTTPSampler.response_timeout"></stringProp>
6309         </HTTPSamplerProxy>
6310         <hashTree>
6311           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
6312             <collectionProp name="Asserion.test_strings">
6313               <stringProp name="49586">200</stringProp>
6314             </collectionProp>
6315             <stringProp name="Assertion.custom_message"></stringProp>
6316             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
6317             <boolProp name="Assertion.assume_success">false</boolProp>
6318             <intProp name="Assertion.test_type">1</intProp>
6319           </ResponseAssertion>
6320           <hashTree/>
6321           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
6322             <stringProp name="scriptLanguage">groovy</stringProp>
6323             <stringProp name="parameters"></stringProp>
6324             <stringProp name="filename"></stringProp>
6325             <stringProp name="cacheKey">true</stringProp>
6326             <stringProp name="script">import groovy.json.JsonSlurper;
6327
6328 def res = [];
6329 if (prev.getResponseCode() == &apos;200&apos;) {
6330     def jsonSlurper = new JsonSlurper();
6331     res = jsonSlurper.parseText(prev.getResponseDataAsString());
6332
6333     assert res instanceof Map;
6334     assert res.get(&apos;guard.frequency.scaleout&apos;).version == &quot;9.0.0&quot;;
6335 }</stringProp>
6336           </JSR223Assertion>
6337           <hashTree/>
6338         </hashTree>
6339         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Guard Policy V12" enabled="true">
6340           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
6341             <collectionProp name="Arguments.arguments"/>
6342           </elementProp>
6343           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
6344           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
6345           <stringProp name="HTTPSampler.protocol">https</stringProp>
6346           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
6347           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.controlloop.Guard/versions/1.0.0/policies/guard.frequency.scaleout/versions/12</stringProp>
6348           <stringProp name="HTTPSampler.method">GET</stringProp>
6349           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
6350           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
6351           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
6352           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
6353           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
6354           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
6355           <stringProp name="HTTPSampler.response_timeout"></stringProp>
6356         </HTTPSamplerProxy>
6357         <hashTree>
6358           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
6359             <collectionProp name="Asserion.test_strings">
6360               <stringProp name="49586">200</stringProp>
6361             </collectionProp>
6362             <stringProp name="Assertion.custom_message"></stringProp>
6363             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
6364             <boolProp name="Assertion.assume_success">false</boolProp>
6365             <intProp name="Assertion.test_type">1</intProp>
6366           </ResponseAssertion>
6367           <hashTree/>
6368           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
6369             <stringProp name="scriptLanguage">groovy</stringProp>
6370             <stringProp name="parameters"></stringProp>
6371             <stringProp name="filename"></stringProp>
6372             <stringProp name="cacheKey">true</stringProp>
6373             <stringProp name="script">import groovy.json.JsonSlurper;
6374
6375 def res = [];
6376 if (prev.getResponseCode() == &apos;200&apos;) {
6377     def jsonSlurper = new JsonSlurper();
6378     res = jsonSlurper.parseText(prev.getResponseDataAsString());
6379
6380     assert res instanceof Map;
6381     assert res.get(&apos;guard.frequency.scaleout&apos;).version == &quot;12.0.0&quot;;
6382 }</stringProp>
6383           </JSR223Assertion>
6384           <hashTree/>
6385         </hashTree>
6386         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get Latest Guard Policy" enabled="true">
6387           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
6388             <collectionProp name="Arguments.arguments"/>
6389           </elementProp>
6390           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
6391           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
6392           <stringProp name="HTTPSampler.protocol">https</stringProp>
6393           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
6394           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.controlloop.Guard/versions/1.0.0/policies/guard.frequency.scaleout/versions/latest</stringProp>
6395           <stringProp name="HTTPSampler.method">GET</stringProp>
6396           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
6397           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
6398           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
6399           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
6400           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
6401           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
6402           <stringProp name="HTTPSampler.response_timeout"></stringProp>
6403         </HTTPSamplerProxy>
6404         <hashTree>
6405           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
6406             <collectionProp name="Asserion.test_strings">
6407               <stringProp name="49586">200</stringProp>
6408             </collectionProp>
6409             <stringProp name="Assertion.custom_message"></stringProp>
6410             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
6411             <boolProp name="Assertion.assume_success">false</boolProp>
6412             <intProp name="Assertion.test_type">1</intProp>
6413           </ResponseAssertion>
6414           <hashTree/>
6415           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
6416             <stringProp name="scriptLanguage">groovy</stringProp>
6417             <stringProp name="parameters"></stringProp>
6418             <stringProp name="filename"></stringProp>
6419             <stringProp name="cacheKey">true</stringProp>
6420             <stringProp name="script">import groovy.json.JsonSlurper;
6421
6422 def res = [];
6423 if (prev.getResponseCode() == &apos;200&apos;) {
6424     def jsonSlurper = new JsonSlurper();
6425     res = jsonSlurper.parseText(prev.getResponseDataAsString());
6426
6427     assert res instanceof Map;
6428     assert res.get(&apos;guard.frequency.scaleout&apos;).version == &quot;12.0.0&quot;;
6429 }</stringProp>
6430           </JSR223Assertion>
6431           <hashTree/>
6432         </hashTree>
6433         <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true">
6434           <stringProp name="ConstantTimer.delay">3000</stringProp>
6435         </ConstantTimer>
6436         <hashTree/>
6437       </hashTree>
6438       <PostThreadGroup guiclass="PostThreadGroupGui" testclass="PostThreadGroup" testname="tearDown Thread Group" enabled="true">
6439         <stringProp name="ThreadGroup.on_sample_error">continue</stringProp>
6440         <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true">
6441           <boolProp name="LoopController.continue_forever">false</boolProp>
6442           <stringProp name="LoopController.loops">1</stringProp>
6443         </elementProp>
6444         <stringProp name="ThreadGroup.num_threads">1</stringProp>
6445         <stringProp name="ThreadGroup.ramp_time">1</stringProp>
6446         <boolProp name="ThreadGroup.scheduler">false</boolProp>
6447         <stringProp name="ThreadGroup.duration"></stringProp>
6448         <stringProp name="ThreadGroup.delay"></stringProp>
6449       </PostThreadGroup>
6450       <hashTree>
6451         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy Type V2" enabled="true">
6452           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
6453             <collectionProp name="Arguments.arguments"/>
6454           </elementProp>
6455           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
6456           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
6457           <stringProp name="HTTPSampler.protocol">https</stringProp>
6458           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
6459           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/2.0.0</stringProp>
6460           <stringProp name="HTTPSampler.method">DELETE</stringProp>
6461           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
6462           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
6463           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
6464           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
6465           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
6466           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
6467           <stringProp name="HTTPSampler.response_timeout"></stringProp>
6468         </HTTPSamplerProxy>
6469         <hashTree>
6470           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
6471             <collectionProp name="Asserion.test_strings">
6472               <stringProp name="51517">409</stringProp>
6473             </collectionProp>
6474             <stringProp name="Assertion.custom_message"></stringProp>
6475             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
6476             <boolProp name="Assertion.assume_success">false</boolProp>
6477             <intProp name="Assertion.test_type">1</intProp>
6478           </ResponseAssertion>
6479           <hashTree/>
6480         </hashTree>
6481         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy Type V3" enabled="true">
6482           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
6483             <collectionProp name="Arguments.arguments"/>
6484           </elementProp>
6485           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
6486           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
6487           <stringProp name="HTTPSampler.protocol">https</stringProp>
6488           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
6489           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/3.0.0</stringProp>
6490           <stringProp name="HTTPSampler.method">DELETE</stringProp>
6491           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
6492           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
6493           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
6494           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
6495           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
6496           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
6497           <stringProp name="HTTPSampler.response_timeout"></stringProp>
6498         </HTTPSamplerProxy>
6499         <hashTree>
6500           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
6501             <collectionProp name="Asserion.test_strings">
6502               <stringProp name="49586">200</stringProp>
6503             </collectionProp>
6504             <stringProp name="Assertion.custom_message"></stringProp>
6505             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
6506             <boolProp name="Assertion.assume_success">false</boolProp>
6507             <intProp name="Assertion.test_type">1</intProp>
6508           </ResponseAssertion>
6509           <hashTree/>
6510           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
6511             <stringProp name="scriptLanguage">groovy</stringProp>
6512             <stringProp name="parameters"></stringProp>
6513             <stringProp name="filename"></stringProp>
6514             <stringProp name="cacheKey">true</stringProp>
6515             <stringProp name="script">import groovy.json.JsonSlurper;
6516
6517 def res = [];
6518 if (prev.getResponseCode() == &apos;200&apos;) {
6519     def jsonSlurper = new JsonSlurper();
6520     res = jsonSlurper.parseText(prev.getResponseDataAsString());
6521
6522     assert res instanceof Map;
6523     assert res.policy_types instanceof List;
6524     assert res.policy_types.size == 1;
6525     assert res.policy_types[0] instanceof Map;
6526     assert res.policy_types[0].get(&apos;onap.policies.monitoring.cdap.tca.hi.lo.app&apos;).version == &quot;3.0.0&quot;;
6527 }</stringProp>
6528           </JSR223Assertion>
6529           <hashTree/>
6530         </hashTree>
6531         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy Type V4" enabled="true">
6532           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
6533             <collectionProp name="Arguments.arguments"/>
6534           </elementProp>
6535           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
6536           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
6537           <stringProp name="HTTPSampler.protocol">https</stringProp>
6538           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
6539           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/4.0.0</stringProp>
6540           <stringProp name="HTTPSampler.method">DELETE</stringProp>
6541           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
6542           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
6543           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
6544           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
6545           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
6546           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
6547           <stringProp name="HTTPSampler.response_timeout"></stringProp>
6548         </HTTPSamplerProxy>
6549         <hashTree>
6550           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
6551             <collectionProp name="Asserion.test_strings">
6552               <stringProp name="49586">200</stringProp>
6553             </collectionProp>
6554             <stringProp name="Assertion.custom_message"></stringProp>
6555             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
6556             <boolProp name="Assertion.assume_success">false</boolProp>
6557             <intProp name="Assertion.test_type">1</intProp>
6558           </ResponseAssertion>
6559           <hashTree/>
6560           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
6561             <stringProp name="scriptLanguage">groovy</stringProp>
6562             <stringProp name="parameters"></stringProp>
6563             <stringProp name="filename"></stringProp>
6564             <stringProp name="cacheKey">true</stringProp>
6565             <stringProp name="script">import groovy.json.JsonSlurper;
6566
6567 def res = [];
6568 if (prev.getResponseCode() == &apos;200&apos;) {
6569     def jsonSlurper = new JsonSlurper();
6570     res = jsonSlurper.parseText(prev.getResponseDataAsString());
6571
6572     assert res instanceof Map;
6573     assert res.policy_types instanceof List;
6574     assert res.policy_types.size == 1;
6575     assert res.policy_types[0] instanceof Map;
6576     assert res.policy_types[0].get(&apos;onap.policies.monitoring.cdap.tca.hi.lo.app&apos;).version == &quot;4.0.0&quot;;
6577 }</stringProp>
6578           </JSR223Assertion>
6579           <hashTree/>
6580         </hashTree>
6581         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy Type V5" enabled="true">
6582           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
6583             <collectionProp name="Arguments.arguments"/>
6584           </elementProp>
6585           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
6586           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
6587           <stringProp name="HTTPSampler.protocol">https</stringProp>
6588           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
6589           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/5.0.0</stringProp>
6590           <stringProp name="HTTPSampler.method">DELETE</stringProp>
6591           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
6592           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
6593           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
6594           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
6595           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
6596           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
6597           <stringProp name="HTTPSampler.response_timeout"></stringProp>
6598         </HTTPSamplerProxy>
6599         <hashTree>
6600           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
6601             <collectionProp name="Asserion.test_strings">
6602               <stringProp name="49586">200</stringProp>
6603             </collectionProp>
6604             <stringProp name="Assertion.custom_message"></stringProp>
6605             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
6606             <boolProp name="Assertion.assume_success">false</boolProp>
6607             <intProp name="Assertion.test_type">1</intProp>
6608           </ResponseAssertion>
6609           <hashTree/>
6610           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
6611             <stringProp name="scriptLanguage">groovy</stringProp>
6612             <stringProp name="parameters"></stringProp>
6613             <stringProp name="filename"></stringProp>
6614             <stringProp name="cacheKey">true</stringProp>
6615             <stringProp name="script">import groovy.json.JsonSlurper;
6616
6617 def res = [];
6618 if (prev.getResponseCode() == &apos;200&apos;) {
6619     def jsonSlurper = new JsonSlurper();
6620     res = jsonSlurper.parseText(prev.getResponseDataAsString());
6621
6622     assert res instanceof Map;
6623     assert res.policy_types instanceof List;
6624     assert res.policy_types.size == 1;
6625     assert res.policy_types[0] instanceof Map;
6626     assert res.policy_types[0].get(&apos;onap.policies.monitoring.cdap.tca.hi.lo.app&apos;).version == &quot;5.0.0&quot;;
6627 }</stringProp>
6628           </JSR223Assertion>
6629           <hashTree/>
6630         </hashTree>
6631         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy Type V6" enabled="true">
6632           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
6633             <collectionProp name="Arguments.arguments"/>
6634           </elementProp>
6635           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
6636           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
6637           <stringProp name="HTTPSampler.protocol">https</stringProp>
6638           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
6639           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/6.0.0</stringProp>
6640           <stringProp name="HTTPSampler.method">DELETE</stringProp>
6641           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
6642           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
6643           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
6644           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
6645           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
6646           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
6647           <stringProp name="HTTPSampler.response_timeout"></stringProp>
6648         </HTTPSamplerProxy>
6649         <hashTree>
6650           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
6651             <collectionProp name="Asserion.test_strings">
6652               <stringProp name="49586">200</stringProp>
6653             </collectionProp>
6654             <stringProp name="Assertion.custom_message"></stringProp>
6655             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
6656             <boolProp name="Assertion.assume_success">false</boolProp>
6657             <intProp name="Assertion.test_type">1</intProp>
6658           </ResponseAssertion>
6659           <hashTree/>
6660           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
6661             <stringProp name="scriptLanguage">groovy</stringProp>
6662             <stringProp name="parameters"></stringProp>
6663             <stringProp name="filename"></stringProp>
6664             <stringProp name="cacheKey">true</stringProp>
6665             <stringProp name="script">import groovy.json.JsonSlurper;
6666
6667 def res = [];
6668 if (prev.getResponseCode() == &apos;200&apos;) {
6669     def jsonSlurper = new JsonSlurper();
6670     res = jsonSlurper.parseText(prev.getResponseDataAsString());
6671
6672     assert res instanceof Map;
6673     assert res.policy_types instanceof List;
6674     assert res.policy_types.size == 1;
6675     assert res.policy_types[0] instanceof Map;
6676     assert res.policy_types[0].get(&apos;onap.policies.monitoring.cdap.tca.hi.lo.app&apos;).version == &quot;6.0.0&quot;;
6677 }</stringProp>
6678           </JSR223Assertion>
6679           <hashTree/>
6680         </hashTree>
6681         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy Type V7" enabled="true">
6682           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
6683             <collectionProp name="Arguments.arguments"/>
6684           </elementProp>
6685           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
6686           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
6687           <stringProp name="HTTPSampler.protocol">https</stringProp>
6688           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
6689           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/7.0.0</stringProp>
6690           <stringProp name="HTTPSampler.method">DELETE</stringProp>
6691           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
6692           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
6693           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
6694           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
6695           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
6696           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
6697           <stringProp name="HTTPSampler.response_timeout"></stringProp>
6698         </HTTPSamplerProxy>
6699         <hashTree>
6700           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
6701             <collectionProp name="Asserion.test_strings">
6702               <stringProp name="49586">200</stringProp>
6703             </collectionProp>
6704             <stringProp name="Assertion.custom_message"></stringProp>
6705             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
6706             <boolProp name="Assertion.assume_success">false</boolProp>
6707             <intProp name="Assertion.test_type">1</intProp>
6708           </ResponseAssertion>
6709           <hashTree/>
6710           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
6711             <stringProp name="scriptLanguage">groovy</stringProp>
6712             <stringProp name="parameters"></stringProp>
6713             <stringProp name="filename"></stringProp>
6714             <stringProp name="cacheKey">true</stringProp>
6715             <stringProp name="script">import groovy.json.JsonSlurper;
6716
6717 def res = [];
6718 if (prev.getResponseCode() == &apos;200&apos;) {
6719     def jsonSlurper = new JsonSlurper();
6720     res = jsonSlurper.parseText(prev.getResponseDataAsString());
6721
6722     assert res instanceof Map;
6723     assert res.policy_types instanceof List;
6724     assert res.policy_types.size == 1;
6725     assert res.policy_types[0] instanceof Map;
6726     assert res.policy_types[0].get(&apos;onap.policies.monitoring.cdap.tca.hi.lo.app&apos;).version == &quot;7.0.0&quot;;
6727 }</stringProp>
6728           </JSR223Assertion>
6729           <hashTree/>
6730         </hashTree>
6731         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy Type V8" enabled="true">
6732           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
6733             <collectionProp name="Arguments.arguments"/>
6734           </elementProp>
6735           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
6736           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
6737           <stringProp name="HTTPSampler.protocol">https</stringProp>
6738           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
6739           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/8.0.0</stringProp>
6740           <stringProp name="HTTPSampler.method">DELETE</stringProp>
6741           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
6742           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
6743           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
6744           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
6745           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
6746           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
6747           <stringProp name="HTTPSampler.response_timeout"></stringProp>
6748         </HTTPSamplerProxy>
6749         <hashTree>
6750           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
6751             <collectionProp name="Asserion.test_strings">
6752               <stringProp name="49586">200</stringProp>
6753             </collectionProp>
6754             <stringProp name="Assertion.custom_message"></stringProp>
6755             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
6756             <boolProp name="Assertion.assume_success">false</boolProp>
6757             <intProp name="Assertion.test_type">1</intProp>
6758           </ResponseAssertion>
6759           <hashTree/>
6760           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
6761             <stringProp name="scriptLanguage">groovy</stringProp>
6762             <stringProp name="parameters"></stringProp>
6763             <stringProp name="filename"></stringProp>
6764             <stringProp name="cacheKey">true</stringProp>
6765             <stringProp name="script">import groovy.json.JsonSlurper;
6766
6767 def res = [];
6768 if (prev.getResponseCode() == &apos;200&apos;) {
6769     def jsonSlurper = new JsonSlurper();
6770     res = jsonSlurper.parseText(prev.getResponseDataAsString());
6771
6772     assert res instanceof Map;
6773     assert res.policy_types instanceof List;
6774     assert res.policy_types.size == 1;
6775     assert res.policy_types[0] instanceof Map;
6776     assert res.policy_types[0].get(&apos;onap.policies.monitoring.cdap.tca.hi.lo.app&apos;).version == &quot;8.0.0&quot;;
6777 }</stringProp>
6778           </JSR223Assertion>
6779           <hashTree/>
6780         </hashTree>
6781         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy Type V9" enabled="true">
6782           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
6783             <collectionProp name="Arguments.arguments"/>
6784           </elementProp>
6785           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
6786           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
6787           <stringProp name="HTTPSampler.protocol">https</stringProp>
6788           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
6789           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/9.0.0</stringProp>
6790           <stringProp name="HTTPSampler.method">DELETE</stringProp>
6791           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
6792           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
6793           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
6794           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
6795           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
6796           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
6797           <stringProp name="HTTPSampler.response_timeout"></stringProp>
6798         </HTTPSamplerProxy>
6799         <hashTree>
6800           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
6801             <collectionProp name="Asserion.test_strings">
6802               <stringProp name="49586">200</stringProp>
6803             </collectionProp>
6804             <stringProp name="Assertion.custom_message"></stringProp>
6805             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
6806             <boolProp name="Assertion.assume_success">false</boolProp>
6807             <intProp name="Assertion.test_type">1</intProp>
6808           </ResponseAssertion>
6809           <hashTree/>
6810           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
6811             <stringProp name="scriptLanguage">groovy</stringProp>
6812             <stringProp name="parameters"></stringProp>
6813             <stringProp name="filename"></stringProp>
6814             <stringProp name="cacheKey">true</stringProp>
6815             <stringProp name="script">import groovy.json.JsonSlurper;
6816
6817 def res = [];
6818 if (prev.getResponseCode() == &apos;200&apos;) {
6819     def jsonSlurper = new JsonSlurper();
6820     res = jsonSlurper.parseText(prev.getResponseDataAsString());
6821
6822     assert res instanceof Map;
6823     assert res.policy_types instanceof List;
6824     assert res.policy_types.size == 1;
6825     assert res.policy_types[0] instanceof Map;
6826     assert res.policy_types[0].get(&apos;onap.policies.monitoring.cdap.tca.hi.lo.app&apos;).version == &quot;9.0.0&quot;;
6827 }</stringProp>
6828           </JSR223Assertion>
6829           <hashTree/>
6830         </hashTree>
6831         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy Type V10" enabled="true">
6832           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
6833             <collectionProp name="Arguments.arguments"/>
6834           </elementProp>
6835           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
6836           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
6837           <stringProp name="HTTPSampler.protocol">https</stringProp>
6838           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
6839           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/10.0.0</stringProp>
6840           <stringProp name="HTTPSampler.method">DELETE</stringProp>
6841           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
6842           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
6843           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
6844           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
6845           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
6846           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
6847           <stringProp name="HTTPSampler.response_timeout"></stringProp>
6848         </HTTPSamplerProxy>
6849         <hashTree>
6850           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
6851             <collectionProp name="Asserion.test_strings">
6852               <stringProp name="49586">200</stringProp>
6853             </collectionProp>
6854             <stringProp name="Assertion.custom_message"></stringProp>
6855             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
6856             <boolProp name="Assertion.assume_success">false</boolProp>
6857             <intProp name="Assertion.test_type">1</intProp>
6858           </ResponseAssertion>
6859           <hashTree/>
6860           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
6861             <stringProp name="scriptLanguage">groovy</stringProp>
6862             <stringProp name="parameters"></stringProp>
6863             <stringProp name="filename"></stringProp>
6864             <stringProp name="cacheKey">true</stringProp>
6865             <stringProp name="script">import groovy.json.JsonSlurper;
6866
6867 def res = [];
6868 if (prev.getResponseCode() == &apos;200&apos;) {
6869     def jsonSlurper = new JsonSlurper();
6870     res = jsonSlurper.parseText(prev.getResponseDataAsString());
6871
6872     assert res instanceof Map;
6873     assert res.policy_types instanceof List;
6874     assert res.policy_types.size == 1;
6875     assert res.policy_types[0] instanceof Map;
6876     assert res.policy_types[0].get(&apos;onap.policies.monitoring.cdap.tca.hi.lo.app&apos;).version == &quot;10.0.0&quot;;
6877 }</stringProp>
6878           </JSR223Assertion>
6879           <hashTree/>
6880         </hashTree>
6881         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy Type V11" enabled="true">
6882           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
6883             <collectionProp name="Arguments.arguments"/>
6884           </elementProp>
6885           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
6886           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
6887           <stringProp name="HTTPSampler.protocol">https</stringProp>
6888           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
6889           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/11.0.0</stringProp>
6890           <stringProp name="HTTPSampler.method">DELETE</stringProp>
6891           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
6892           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
6893           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
6894           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
6895           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
6896           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
6897           <stringProp name="HTTPSampler.response_timeout"></stringProp>
6898         </HTTPSamplerProxy>
6899         <hashTree>
6900           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
6901             <collectionProp name="Asserion.test_strings">
6902               <stringProp name="49586">200</stringProp>
6903             </collectionProp>
6904             <stringProp name="Assertion.custom_message"></stringProp>
6905             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
6906             <boolProp name="Assertion.assume_success">false</boolProp>
6907             <intProp name="Assertion.test_type">1</intProp>
6908           </ResponseAssertion>
6909           <hashTree/>
6910           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
6911             <stringProp name="scriptLanguage">groovy</stringProp>
6912             <stringProp name="parameters"></stringProp>
6913             <stringProp name="filename"></stringProp>
6914             <stringProp name="cacheKey">true</stringProp>
6915             <stringProp name="script">import groovy.json.JsonSlurper;
6916
6917 def res = [];
6918 if (prev.getResponseCode() == &apos;200&apos;) {
6919     def jsonSlurper = new JsonSlurper();
6920     res = jsonSlurper.parseText(prev.getResponseDataAsString());
6921
6922     assert res instanceof Map;
6923     assert res.policy_types instanceof List;
6924     assert res.policy_types.size == 1;
6925     assert res.policy_types[0] instanceof Map;
6926     assert res.policy_types[0].get(&apos;onap.policies.monitoring.cdap.tca.hi.lo.app&apos;).version == &quot;11.0.0&quot;;
6927 }</stringProp>
6928           </JSR223Assertion>
6929           <hashTree/>
6930         </hashTree>
6931         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy V1" enabled="true">
6932           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
6933             <collectionProp name="Arguments.arguments"/>
6934           </elementProp>
6935           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
6936           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
6937           <stringProp name="HTTPSampler.protocol">https</stringProp>
6938           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
6939           <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>
6940           <stringProp name="HTTPSampler.method">DELETE</stringProp>
6941           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
6942           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
6943           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
6944           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
6945           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
6946           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
6947           <stringProp name="HTTPSampler.response_timeout"></stringProp>
6948         </HTTPSamplerProxy>
6949         <hashTree>
6950           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
6951             <collectionProp name="Asserion.test_strings">
6952               <stringProp name="49586">200</stringProp>
6953             </collectionProp>
6954             <stringProp name="Assertion.custom_message"></stringProp>
6955             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
6956             <boolProp name="Assertion.assume_success">false</boolProp>
6957             <intProp name="Assertion.test_type">1</intProp>
6958           </ResponseAssertion>
6959           <hashTree/>
6960           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
6961             <stringProp name="scriptLanguage">groovy</stringProp>
6962             <stringProp name="parameters"></stringProp>
6963             <stringProp name="filename"></stringProp>
6964             <stringProp name="cacheKey">true</stringProp>
6965             <stringProp name="script">import groovy.json.JsonSlurper;
6966
6967 def res = [];
6968 if (prev.getResponseCode() == &apos;200&apos;) {
6969     def jsonSlurper = new JsonSlurper();
6970     res = jsonSlurper.parseText(prev.getResponseDataAsString());
6971
6972     assert res instanceof Map;
6973     assert res.topology_template.policies instanceof List;
6974     assert res.topology_template.policies.size == 1;
6975     assert res.topology_template.policies[0] instanceof Map;
6976     assert res.topology_template.policies[0].get(&apos;onap.restart.tca&apos;).version == &quot;1.0.0&quot;;
6977 }</stringProp>
6978           </JSR223Assertion>
6979           <hashTree/>
6980         </hashTree>
6981         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy V2" enabled="true">
6982           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
6983             <collectionProp name="Arguments.arguments"/>
6984           </elementProp>
6985           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
6986           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
6987           <stringProp name="HTTPSampler.protocol">https</stringProp>
6988           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
6989           <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>
6990           <stringProp name="HTTPSampler.method">DELETE</stringProp>
6991           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
6992           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
6993           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
6994           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
6995           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
6996           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
6997           <stringProp name="HTTPSampler.response_timeout"></stringProp>
6998         </HTTPSamplerProxy>
6999         <hashTree>
7000           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
7001             <collectionProp name="Asserion.test_strings">
7002               <stringProp name="49586">200</stringProp>
7003             </collectionProp>
7004             <stringProp name="Assertion.custom_message"></stringProp>
7005             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
7006             <boolProp name="Assertion.assume_success">false</boolProp>
7007             <intProp name="Assertion.test_type">1</intProp>
7008           </ResponseAssertion>
7009           <hashTree/>
7010           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
7011             <stringProp name="scriptLanguage">groovy</stringProp>
7012             <stringProp name="parameters"></stringProp>
7013             <stringProp name="filename"></stringProp>
7014             <stringProp name="cacheKey">true</stringProp>
7015             <stringProp name="script">import groovy.json.JsonSlurper;
7016
7017 def res = [];
7018 if (prev.getResponseCode() == &apos;200&apos;) {
7019     def jsonSlurper = new JsonSlurper();
7020     res = jsonSlurper.parseText(prev.getResponseDataAsString());
7021
7022     assert res instanceof Map;
7023     assert res.topology_template.policies instanceof List;
7024     assert res.topology_template.policies.size == 1;
7025     assert res.topology_template.policies[0] instanceof Map;
7026     assert res.topology_template.policies[0].get(&apos;onap.restart.tca&apos;).version == &quot;2.0.0&quot;;
7027 }</stringProp>
7028           </JSR223Assertion>
7029           <hashTree/>
7030         </hashTree>
7031         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy V3" enabled="true">
7032           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
7033             <collectionProp name="Arguments.arguments"/>
7034           </elementProp>
7035           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
7036           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
7037           <stringProp name="HTTPSampler.protocol">https</stringProp>
7038           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
7039           <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>
7040           <stringProp name="HTTPSampler.method">DELETE</stringProp>
7041           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
7042           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
7043           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
7044           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
7045           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
7046           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
7047           <stringProp name="HTTPSampler.response_timeout"></stringProp>
7048         </HTTPSamplerProxy>
7049         <hashTree>
7050           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
7051             <collectionProp name="Asserion.test_strings">
7052               <stringProp name="49586">200</stringProp>
7053             </collectionProp>
7054             <stringProp name="Assertion.custom_message"></stringProp>
7055             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
7056             <boolProp name="Assertion.assume_success">false</boolProp>
7057             <intProp name="Assertion.test_type">1</intProp>
7058           </ResponseAssertion>
7059           <hashTree/>
7060           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
7061             <stringProp name="scriptLanguage">groovy</stringProp>
7062             <stringProp name="parameters"></stringProp>
7063             <stringProp name="filename"></stringProp>
7064             <stringProp name="cacheKey">true</stringProp>
7065             <stringProp name="script">import groovy.json.JsonSlurper;
7066
7067 def res = [];
7068 if (prev.getResponseCode() == &apos;200&apos;) {
7069     def jsonSlurper = new JsonSlurper();
7070     res = jsonSlurper.parseText(prev.getResponseDataAsString());
7071
7072     assert res instanceof Map;
7073     assert res.topology_template.policies instanceof List;
7074     assert res.topology_template.policies.size == 1;
7075     assert res.topology_template.policies[0] instanceof Map;
7076     assert res.topology_template.policies[0].get(&apos;onap.restart.tca&apos;).version == &quot;3.0.0&quot;;
7077 }</stringProp>
7078           </JSR223Assertion>
7079           <hashTree/>
7080         </hashTree>
7081         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy V4" enabled="true">
7082           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
7083             <collectionProp name="Arguments.arguments"/>
7084           </elementProp>
7085           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
7086           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
7087           <stringProp name="HTTPSampler.protocol">https</stringProp>
7088           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
7089           <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>
7090           <stringProp name="HTTPSampler.method">DELETE</stringProp>
7091           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
7092           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
7093           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
7094           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
7095           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
7096           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
7097           <stringProp name="HTTPSampler.response_timeout"></stringProp>
7098         </HTTPSamplerProxy>
7099         <hashTree>
7100           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
7101             <collectionProp name="Asserion.test_strings">
7102               <stringProp name="49586">200</stringProp>
7103             </collectionProp>
7104             <stringProp name="Assertion.custom_message"></stringProp>
7105             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
7106             <boolProp name="Assertion.assume_success">false</boolProp>
7107             <intProp name="Assertion.test_type">1</intProp>
7108           </ResponseAssertion>
7109           <hashTree/>
7110           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
7111             <stringProp name="scriptLanguage">groovy</stringProp>
7112             <stringProp name="parameters"></stringProp>
7113             <stringProp name="filename"></stringProp>
7114             <stringProp name="cacheKey">true</stringProp>
7115             <stringProp name="script">import groovy.json.JsonSlurper;
7116
7117 def res = [];
7118 if (prev.getResponseCode() == &apos;200&apos;) {
7119     def jsonSlurper = new JsonSlurper();
7120     res = jsonSlurper.parseText(prev.getResponseDataAsString());
7121
7122     assert res instanceof Map;
7123     assert res.topology_template.policies instanceof List;
7124     assert res.topology_template.policies.size == 1;
7125     assert res.topology_template.policies[0] instanceof Map;
7126     assert res.topology_template.policies[0].get(&apos;onap.restart.tca&apos;).version == &quot;4.0.0&quot;;
7127 }</stringProp>
7128           </JSR223Assertion>
7129           <hashTree/>
7130         </hashTree>
7131         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy V5" enabled="true">
7132           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
7133             <collectionProp name="Arguments.arguments"/>
7134           </elementProp>
7135           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
7136           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
7137           <stringProp name="HTTPSampler.protocol">https</stringProp>
7138           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
7139           <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>
7140           <stringProp name="HTTPSampler.method">DELETE</stringProp>
7141           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
7142           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
7143           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
7144           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
7145           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
7146           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
7147           <stringProp name="HTTPSampler.response_timeout"></stringProp>
7148         </HTTPSamplerProxy>
7149         <hashTree>
7150           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
7151             <collectionProp name="Asserion.test_strings">
7152               <stringProp name="49586">200</stringProp>
7153             </collectionProp>
7154             <stringProp name="Assertion.custom_message"></stringProp>
7155             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
7156             <boolProp name="Assertion.assume_success">false</boolProp>
7157             <intProp name="Assertion.test_type">1</intProp>
7158           </ResponseAssertion>
7159           <hashTree/>
7160           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
7161             <stringProp name="scriptLanguage">groovy</stringProp>
7162             <stringProp name="parameters"></stringProp>
7163             <stringProp name="filename"></stringProp>
7164             <stringProp name="cacheKey">true</stringProp>
7165             <stringProp name="script">import groovy.json.JsonSlurper;
7166
7167 def res = [];
7168 if (prev.getResponseCode() == &apos;200&apos;) {
7169     def jsonSlurper = new JsonSlurper();
7170     res = jsonSlurper.parseText(prev.getResponseDataAsString());
7171
7172     assert res instanceof Map;
7173     assert res.topology_template.policies instanceof List;
7174     assert res.topology_template.policies.size == 1;
7175     assert res.topology_template.policies[0] instanceof Map;
7176     assert res.topology_template.policies[0].get(&apos;onap.restart.tca&apos;).version == &quot;5.0.0&quot;;
7177 }</stringProp>
7178           </JSR223Assertion>
7179           <hashTree/>
7180         </hashTree>
7181         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy V6" enabled="true">
7182           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
7183             <collectionProp name="Arguments.arguments"/>
7184           </elementProp>
7185           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
7186           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
7187           <stringProp name="HTTPSampler.protocol">https</stringProp>
7188           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
7189           <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>
7190           <stringProp name="HTTPSampler.method">DELETE</stringProp>
7191           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
7192           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
7193           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
7194           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
7195           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
7196           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
7197           <stringProp name="HTTPSampler.response_timeout"></stringProp>
7198         </HTTPSamplerProxy>
7199         <hashTree>
7200           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
7201             <collectionProp name="Asserion.test_strings">
7202               <stringProp name="49586">200</stringProp>
7203             </collectionProp>
7204             <stringProp name="Assertion.custom_message"></stringProp>
7205             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
7206             <boolProp name="Assertion.assume_success">false</boolProp>
7207             <intProp name="Assertion.test_type">1</intProp>
7208           </ResponseAssertion>
7209           <hashTree/>
7210           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
7211             <stringProp name="scriptLanguage">groovy</stringProp>
7212             <stringProp name="parameters"></stringProp>
7213             <stringProp name="filename"></stringProp>
7214             <stringProp name="cacheKey">true</stringProp>
7215             <stringProp name="script">import groovy.json.JsonSlurper;
7216
7217 def res = [];
7218 if (prev.getResponseCode() == &apos;200&apos;) {
7219     def jsonSlurper = new JsonSlurper();
7220     res = jsonSlurper.parseText(prev.getResponseDataAsString());
7221
7222     assert res instanceof Map;
7223     assert res.topology_template.policies instanceof List;
7224     assert res.topology_template.policies.size == 1;
7225     assert res.topology_template.policies[0] instanceof Map;
7226     assert res.topology_template.policies[0].get(&apos;onap.restart.tca&apos;).version == &quot;6.0.0&quot;;
7227 }</stringProp>
7228           </JSR223Assertion>
7229           <hashTree/>
7230         </hashTree>
7231         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy V7" enabled="true">
7232           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
7233             <collectionProp name="Arguments.arguments"/>
7234           </elementProp>
7235           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
7236           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
7237           <stringProp name="HTTPSampler.protocol">https</stringProp>
7238           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
7239           <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>
7240           <stringProp name="HTTPSampler.method">DELETE</stringProp>
7241           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
7242           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
7243           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
7244           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
7245           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
7246           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
7247           <stringProp name="HTTPSampler.response_timeout"></stringProp>
7248         </HTTPSamplerProxy>
7249         <hashTree>
7250           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
7251             <collectionProp name="Asserion.test_strings">
7252               <stringProp name="49586">200</stringProp>
7253             </collectionProp>
7254             <stringProp name="Assertion.custom_message"></stringProp>
7255             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
7256             <boolProp name="Assertion.assume_success">false</boolProp>
7257             <intProp name="Assertion.test_type">1</intProp>
7258           </ResponseAssertion>
7259           <hashTree/>
7260           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
7261             <stringProp name="scriptLanguage">groovy</stringProp>
7262             <stringProp name="parameters"></stringProp>
7263             <stringProp name="filename"></stringProp>
7264             <stringProp name="cacheKey">true</stringProp>
7265             <stringProp name="script">import groovy.json.JsonSlurper;
7266
7267 def res = [];
7268 if (prev.getResponseCode() == &apos;200&apos;) {
7269     def jsonSlurper = new JsonSlurper();
7270     res = jsonSlurper.parseText(prev.getResponseDataAsString());
7271
7272     assert res instanceof Map;
7273     assert res.topology_template.policies instanceof List;
7274     assert res.topology_template.policies.size == 1;
7275     assert res.topology_template.policies[0] instanceof Map;
7276     assert res.topology_template.policies[0].get(&apos;onap.restart.tca&apos;).version == &quot;7.0.0&quot;;
7277 }</stringProp>
7278           </JSR223Assertion>
7279           <hashTree/>
7280         </hashTree>
7281         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy V8" enabled="true">
7282           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
7283             <collectionProp name="Arguments.arguments"/>
7284           </elementProp>
7285           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
7286           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
7287           <stringProp name="HTTPSampler.protocol">https</stringProp>
7288           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
7289           <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>
7290           <stringProp name="HTTPSampler.method">DELETE</stringProp>
7291           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
7292           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
7293           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
7294           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
7295           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
7296           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
7297           <stringProp name="HTTPSampler.response_timeout"></stringProp>
7298         </HTTPSamplerProxy>
7299         <hashTree>
7300           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
7301             <collectionProp name="Asserion.test_strings">
7302               <stringProp name="49586">200</stringProp>
7303             </collectionProp>
7304             <stringProp name="Assertion.custom_message"></stringProp>
7305             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
7306             <boolProp name="Assertion.assume_success">false</boolProp>
7307             <intProp name="Assertion.test_type">1</intProp>
7308           </ResponseAssertion>
7309           <hashTree/>
7310           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
7311             <stringProp name="scriptLanguage">groovy</stringProp>
7312             <stringProp name="parameters"></stringProp>
7313             <stringProp name="filename"></stringProp>
7314             <stringProp name="cacheKey">true</stringProp>
7315             <stringProp name="script">import groovy.json.JsonSlurper;
7316
7317 def res = [];
7318 if (prev.getResponseCode() == &apos;200&apos;) {
7319     def jsonSlurper = new JsonSlurper();
7320     res = jsonSlurper.parseText(prev.getResponseDataAsString());
7321
7322     assert res instanceof Map;
7323     assert res.topology_template.policies instanceof List;
7324     assert res.topology_template.policies.size == 1;
7325     assert res.topology_template.policies[0] instanceof Map;
7326     assert res.topology_template.policies[0].get(&apos;onap.restart.tca&apos;).version == &quot;8.0.0&quot;;
7327 }</stringProp>
7328           </JSR223Assertion>
7329           <hashTree/>
7330         </hashTree>
7331         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy V9" enabled="true">
7332           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
7333             <collectionProp name="Arguments.arguments"/>
7334           </elementProp>
7335           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
7336           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
7337           <stringProp name="HTTPSampler.protocol">https</stringProp>
7338           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
7339           <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>
7340           <stringProp name="HTTPSampler.method">DELETE</stringProp>
7341           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
7342           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
7343           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
7344           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
7345           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
7346           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
7347           <stringProp name="HTTPSampler.response_timeout"></stringProp>
7348         </HTTPSamplerProxy>
7349         <hashTree>
7350           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
7351             <collectionProp name="Asserion.test_strings">
7352               <stringProp name="49586">200</stringProp>
7353             </collectionProp>
7354             <stringProp name="Assertion.custom_message"></stringProp>
7355             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
7356             <boolProp name="Assertion.assume_success">false</boolProp>
7357             <intProp name="Assertion.test_type">1</intProp>
7358           </ResponseAssertion>
7359           <hashTree/>
7360           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
7361             <stringProp name="scriptLanguage">groovy</stringProp>
7362             <stringProp name="parameters"></stringProp>
7363             <stringProp name="filename"></stringProp>
7364             <stringProp name="cacheKey">true</stringProp>
7365             <stringProp name="script">import groovy.json.JsonSlurper;
7366
7367 def res = [];
7368 if (prev.getResponseCode() == &apos;200&apos;) {
7369     def jsonSlurper = new JsonSlurper();
7370     res = jsonSlurper.parseText(prev.getResponseDataAsString());
7371
7372     assert res instanceof Map;
7373     assert res.topology_template.policies instanceof List;
7374     assert res.topology_template.policies.size == 1;
7375     assert res.topology_template.policies[0] instanceof Map;
7376     assert res.topology_template.policies[0].get(&apos;onap.restart.tca&apos;).version == &quot;9.0.0&quot;;
7377 }</stringProp>
7378           </JSR223Assertion>
7379           <hashTree/>
7380         </hashTree>
7381         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy V10" enabled="true">
7382           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
7383             <collectionProp name="Arguments.arguments"/>
7384           </elementProp>
7385           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
7386           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
7387           <stringProp name="HTTPSampler.protocol">https</stringProp>
7388           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
7389           <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>
7390           <stringProp name="HTTPSampler.method">DELETE</stringProp>
7391           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
7392           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
7393           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
7394           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
7395           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
7396           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
7397           <stringProp name="HTTPSampler.response_timeout"></stringProp>
7398         </HTTPSamplerProxy>
7399         <hashTree>
7400           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
7401             <collectionProp name="Asserion.test_strings">
7402               <stringProp name="49586">200</stringProp>
7403             </collectionProp>
7404             <stringProp name="Assertion.custom_message"></stringProp>
7405             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
7406             <boolProp name="Assertion.assume_success">false</boolProp>
7407             <intProp name="Assertion.test_type">1</intProp>
7408           </ResponseAssertion>
7409           <hashTree/>
7410           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
7411             <stringProp name="scriptLanguage">groovy</stringProp>
7412             <stringProp name="parameters"></stringProp>
7413             <stringProp name="filename"></stringProp>
7414             <stringProp name="cacheKey">true</stringProp>
7415             <stringProp name="script">import groovy.json.JsonSlurper;
7416
7417 def res = [];
7418 if (prev.getResponseCode() == &apos;200&apos;) {
7419     def jsonSlurper = new JsonSlurper();
7420     res = jsonSlurper.parseText(prev.getResponseDataAsString());
7421
7422     assert res instanceof Map;
7423     assert res.topology_template.policies instanceof List;
7424     assert res.topology_template.policies.size == 1;
7425     assert res.topology_template.policies[0] instanceof Map;
7426     assert res.topology_template.policies[0].get(&apos;onap.restart.tca&apos;).version == &quot;10.0.0&quot;;
7427 }</stringProp>
7428           </JSR223Assertion>
7429           <hashTree/>
7430         </hashTree>
7431         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy V11" enabled="true">
7432           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
7433             <collectionProp name="Arguments.arguments"/>
7434           </elementProp>
7435           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
7436           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
7437           <stringProp name="HTTPSampler.protocol">https</stringProp>
7438           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
7439           <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>
7440           <stringProp name="HTTPSampler.method">DELETE</stringProp>
7441           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
7442           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
7443           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
7444           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
7445           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
7446           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
7447           <stringProp name="HTTPSampler.response_timeout"></stringProp>
7448         </HTTPSamplerProxy>
7449         <hashTree>
7450           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
7451             <collectionProp name="Asserion.test_strings">
7452               <stringProp name="49586">200</stringProp>
7453             </collectionProp>
7454             <stringProp name="Assertion.custom_message"></stringProp>
7455             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
7456             <boolProp name="Assertion.assume_success">false</boolProp>
7457             <intProp name="Assertion.test_type">1</intProp>
7458           </ResponseAssertion>
7459           <hashTree/>
7460           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
7461             <stringProp name="scriptLanguage">groovy</stringProp>
7462             <stringProp name="parameters"></stringProp>
7463             <stringProp name="filename"></stringProp>
7464             <stringProp name="cacheKey">true</stringProp>
7465             <stringProp name="script">import groovy.json.JsonSlurper;
7466
7467 def res = [];
7468 if (prev.getResponseCode() == &apos;200&apos;) {
7469     def jsonSlurper = new JsonSlurper();
7470     res = jsonSlurper.parseText(prev.getResponseDataAsString());
7471
7472     assert res instanceof Map;
7473     assert res.topology_template.policies instanceof List;
7474     assert res.topology_template.policies.size == 1;
7475     assert res.topology_template.policies[0] instanceof Map;
7476     assert res.topology_template.policies[0].get(&apos;onap.restart.tca&apos;).version == &quot;11.0.0&quot;;
7477 }</stringProp>
7478           </JSR223Assertion>
7479           <hashTree/>
7480         </hashTree>
7481         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete TCA Policy Type V2" enabled="true">
7482           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
7483             <collectionProp name="Arguments.arguments"/>
7484           </elementProp>
7485           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
7486           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
7487           <stringProp name="HTTPSampler.protocol">https</stringProp>
7488           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
7489           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/2.0.0</stringProp>
7490           <stringProp name="HTTPSampler.method">DELETE</stringProp>
7491           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
7492           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
7493           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
7494           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
7495           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
7496           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
7497           <stringProp name="HTTPSampler.response_timeout"></stringProp>
7498         </HTTPSamplerProxy>
7499         <hashTree>
7500           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
7501             <collectionProp name="Asserion.test_strings">
7502               <stringProp name="49586">200</stringProp>
7503             </collectionProp>
7504             <stringProp name="Assertion.custom_message"></stringProp>
7505             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
7506             <boolProp name="Assertion.assume_success">false</boolProp>
7507             <intProp name="Assertion.test_type">1</intProp>
7508           </ResponseAssertion>
7509           <hashTree/>
7510           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
7511             <stringProp name="scriptLanguage">groovy</stringProp>
7512             <stringProp name="parameters"></stringProp>
7513             <stringProp name="filename"></stringProp>
7514             <stringProp name="cacheKey">true</stringProp>
7515             <stringProp name="script">import groovy.json.JsonSlurper;
7516
7517 def res = [];
7518 if (prev.getResponseCode() == &apos;200&apos;) {
7519     def jsonSlurper = new JsonSlurper();
7520     res = jsonSlurper.parseText(prev.getResponseDataAsString());
7521
7522     assert res instanceof Map;
7523     assert res.policy_types instanceof List;
7524     assert res.policy_types.size == 1;
7525     assert res.policy_types[0] instanceof Map;
7526     assert res.policy_types[0].get(&apos;onap.policies.monitoring.cdap.tca.hi.lo.app&apos;).version == &quot;2.0.0&quot;;
7527 }</stringProp>
7528           </JSR223Assertion>
7529           <hashTree/>
7530         </hashTree>
7531         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete Guard Policy V1" enabled="true">
7532           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
7533             <collectionProp name="Arguments.arguments"/>
7534           </elementProp>
7535           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
7536           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
7537           <stringProp name="HTTPSampler.protocol">https</stringProp>
7538           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
7539           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.controlloop.Guard/versions/1.0.0/policies/guard.frequency.scaleout/versions/1</stringProp>
7540           <stringProp name="HTTPSampler.method">DELETE</stringProp>
7541           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
7542           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
7543           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
7544           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
7545           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
7546           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
7547           <stringProp name="HTTPSampler.response_timeout"></stringProp>
7548         </HTTPSamplerProxy>
7549         <hashTree>
7550           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
7551             <collectionProp name="Asserion.test_strings">
7552               <stringProp name="49586">200</stringProp>
7553             </collectionProp>
7554             <stringProp name="Assertion.custom_message"></stringProp>
7555             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
7556             <boolProp name="Assertion.assume_success">false</boolProp>
7557             <intProp name="Assertion.test_type">1</intProp>
7558           </ResponseAssertion>
7559           <hashTree/>
7560           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
7561             <stringProp name="scriptLanguage">groovy</stringProp>
7562             <stringProp name="parameters"></stringProp>
7563             <stringProp name="filename"></stringProp>
7564             <stringProp name="cacheKey">true</stringProp>
7565             <stringProp name="script">import groovy.json.JsonSlurper;
7566
7567 def res = [];
7568 if (prev.getResponseCode() == &apos;200&apos;) {
7569     def jsonSlurper = new JsonSlurper();
7570     res = jsonSlurper.parseText(prev.getResponseDataAsString());
7571
7572     assert res instanceof Map;
7573     assert res.get(&apos;guard.frequency.scaleout&apos;).version == &quot;1.0.0&quot;;
7574 }</stringProp>
7575           </JSR223Assertion>
7576           <hashTree/>
7577         </hashTree>
7578         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete Guard Policy V5" enabled="true">
7579           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
7580             <collectionProp name="Arguments.arguments"/>
7581           </elementProp>
7582           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
7583           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
7584           <stringProp name="HTTPSampler.protocol">https</stringProp>
7585           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
7586           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.controlloop.Guard/versions/1.0.0/policies/guard.frequency.scaleout/versions/5</stringProp>
7587           <stringProp name="HTTPSampler.method">DELETE</stringProp>
7588           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
7589           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
7590           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
7591           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
7592           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
7593           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
7594           <stringProp name="HTTPSampler.response_timeout"></stringProp>
7595         </HTTPSamplerProxy>
7596         <hashTree>
7597           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
7598             <collectionProp name="Asserion.test_strings">
7599               <stringProp name="49586">200</stringProp>
7600             </collectionProp>
7601             <stringProp name="Assertion.custom_message"></stringProp>
7602             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
7603             <boolProp name="Assertion.assume_success">false</boolProp>
7604             <intProp name="Assertion.test_type">1</intProp>
7605           </ResponseAssertion>
7606           <hashTree/>
7607           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
7608             <stringProp name="scriptLanguage">groovy</stringProp>
7609             <stringProp name="parameters"></stringProp>
7610             <stringProp name="filename"></stringProp>
7611             <stringProp name="cacheKey">true</stringProp>
7612             <stringProp name="script">import groovy.json.JsonSlurper;
7613
7614 def res = [];
7615 if (prev.getResponseCode() == &apos;200&apos;) {
7616     def jsonSlurper = new JsonSlurper();
7617     res = jsonSlurper.parseText(prev.getResponseDataAsString());
7618
7619     assert res instanceof Map;
7620     assert res.get(&apos;guard.frequency.scaleout&apos;).version == &quot;5.0.0&quot;;
7621 }</stringProp>
7622           </JSR223Assertion>
7623           <hashTree/>
7624         </hashTree>
7625         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete Guard Policy V9" enabled="true">
7626           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
7627             <collectionProp name="Arguments.arguments"/>
7628           </elementProp>
7629           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
7630           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
7631           <stringProp name="HTTPSampler.protocol">https</stringProp>
7632           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
7633           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.controlloop.Guard/versions/1.0.0/policies/guard.frequency.scaleout/versions/9</stringProp>
7634           <stringProp name="HTTPSampler.method">DELETE</stringProp>
7635           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
7636           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
7637           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
7638           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
7639           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
7640           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
7641           <stringProp name="HTTPSampler.response_timeout"></stringProp>
7642         </HTTPSamplerProxy>
7643         <hashTree>
7644           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
7645             <collectionProp name="Asserion.test_strings">
7646               <stringProp name="49586">200</stringProp>
7647             </collectionProp>
7648             <stringProp name="Assertion.custom_message"></stringProp>
7649             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
7650             <boolProp name="Assertion.assume_success">false</boolProp>
7651             <intProp name="Assertion.test_type">1</intProp>
7652           </ResponseAssertion>
7653           <hashTree/>
7654           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
7655             <stringProp name="scriptLanguage">groovy</stringProp>
7656             <stringProp name="parameters"></stringProp>
7657             <stringProp name="filename"></stringProp>
7658             <stringProp name="cacheKey">true</stringProp>
7659             <stringProp name="script">import groovy.json.JsonSlurper;
7660
7661 def res = [];
7662 if (prev.getResponseCode() == &apos;200&apos;) {
7663     def jsonSlurper = new JsonSlurper();
7664     res = jsonSlurper.parseText(prev.getResponseDataAsString());
7665
7666     assert res instanceof Map;
7667     assert res.get(&apos;guard.frequency.scaleout&apos;).version == &quot;9.0.0&quot;;
7668 }</stringProp>
7669           </JSR223Assertion>
7670           <hashTree/>
7671         </hashTree>
7672         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete Guard Policy V12" enabled="true">
7673           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
7674             <collectionProp name="Arguments.arguments"/>
7675           </elementProp>
7676           <stringProp name="HTTPSampler.domain">${API_HOST}</stringProp>
7677           <stringProp name="HTTPSampler.port">${API_PORT}</stringProp>
7678           <stringProp name="HTTPSampler.protocol">https</stringProp>
7679           <stringProp name="HTTPSampler.contentEncoding"></stringProp>
7680           <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.controlloop.Guard/versions/1.0.0/policies/guard.frequency.scaleout/versions/12</stringProp>
7681           <stringProp name="HTTPSampler.method">DELETE</stringProp>
7682           <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
7683           <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
7684           <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
7685           <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
7686           <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
7687           <stringProp name="HTTPSampler.connect_timeout"></stringProp>
7688           <stringProp name="HTTPSampler.response_timeout"></stringProp>
7689         </HTTPSamplerProxy>
7690         <hashTree>
7691           <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
7692             <collectionProp name="Asserion.test_strings">
7693               <stringProp name="49586">200</stringProp>
7694             </collectionProp>
7695             <stringProp name="Assertion.custom_message"></stringProp>
7696             <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
7697             <boolProp name="Assertion.assume_success">false</boolProp>
7698             <intProp name="Assertion.test_type">1</intProp>
7699           </ResponseAssertion>
7700           <hashTree/>
7701           <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
7702             <stringProp name="scriptLanguage">groovy</stringProp>
7703             <stringProp name="parameters"></stringProp>
7704             <stringProp name="filename"></stringProp>
7705             <stringProp name="cacheKey">true</stringProp>
7706             <stringProp name="script">import groovy.json.JsonSlurper;
7707
7708 def res = [];
7709 if (prev.getResponseCode() == &apos;200&apos;) {
7710     def jsonSlurper = new JsonSlurper();
7711     res = jsonSlurper.parseText(prev.getResponseDataAsString());
7712
7713     assert res instanceof Map;
7714     assert res.get(&apos;guard.frequency.scaleout&apos;).version == &quot;12.0.0&quot;;
7715 }</stringProp>
7716           </JSR223Assertion>
7717           <hashTree/>
7718         </hashTree>
7719       </hashTree>
7720       <ResultCollector guiclass="SummaryReport" testclass="ResultCollector" testname="Summary Report" enabled="true">
7721         <boolProp name="ResultCollector.error_logging">false</boolProp>
7722         <objProp>
7723           <name>saveConfig</name>
7724           <value class="SampleSaveConfiguration">
7725             <time>true</time>
7726             <latency>true</latency>
7727             <timestamp>true</timestamp>
7728             <success>true</success>
7729             <label>true</label>
7730             <code>true</code>
7731             <message>true</message>
7732             <threadName>true</threadName>
7733             <dataType>true</dataType>
7734             <encoding>false</encoding>
7735             <assertions>true</assertions>
7736             <subresults>true</subresults>
7737             <responseData>false</responseData>
7738             <samplerData>false</samplerData>
7739             <xml>false</xml>
7740             <fieldNames>true</fieldNames>
7741             <responseHeaders>false</responseHeaders>
7742             <requestHeaders>false</requestHeaders>
7743             <responseDataOnError>false</responseDataOnError>
7744             <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
7745             <assertionsResultsToSave>0</assertionsResultsToSave>
7746             <bytes>true</bytes>
7747             <sentBytes>true</sentBytes>
7748             <url>true</url>
7749             <threadCounts>true</threadCounts>
7750             <idleTime>true</idleTime>
7751             <connectTime>true</connectTime>
7752           </value>
7753         </objProp>
7754         <stringProp name="filename">/home/ubuntu/s3p/stability.log</stringProp>
7755       </ResultCollector>
7756       <hashTree/>
7757       <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true">
7758         <boolProp name="ResultCollector.error_logging">false</boolProp>
7759         <objProp>
7760           <name>saveConfig</name>
7761           <value class="SampleSaveConfiguration">
7762             <time>true</time>
7763             <latency>true</latency>
7764             <timestamp>true</timestamp>
7765             <success>true</success>
7766             <label>true</label>
7767             <code>true</code>
7768             <message>true</message>
7769             <threadName>true</threadName>
7770             <dataType>true</dataType>
7771             <encoding>false</encoding>
7772             <assertions>true</assertions>
7773             <subresults>true</subresults>
7774             <responseData>false</responseData>
7775             <samplerData>false</samplerData>
7776             <xml>false</xml>
7777             <fieldNames>true</fieldNames>
7778             <responseHeaders>false</responseHeaders>
7779             <requestHeaders>false</requestHeaders>
7780             <responseDataOnError>false</responseDataOnError>
7781             <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
7782             <assertionsResultsToSave>0</assertionsResultsToSave>
7783             <bytes>true</bytes>
7784             <sentBytes>true</sentBytes>
7785             <url>true</url>
7786             <threadCounts>true</threadCounts>
7787             <idleTime>true</idleTime>
7788             <connectTime>true</connectTime>
7789           </value>
7790         </objProp>
7791         <stringProp name="filename">/home/ubuntu/s3p/stability.log</stringProp>
7792       </ResultCollector>
7793       <hashTree/>
7794       <ResultCollector guiclass="TableVisualizer" testclass="ResultCollector" testname="View Results in Table" enabled="true">
7795         <boolProp name="ResultCollector.error_logging">false</boolProp>
7796         <objProp>
7797           <name>saveConfig</name>
7798           <value class="SampleSaveConfiguration">
7799             <time>true</time>
7800             <latency>true</latency>
7801             <timestamp>true</timestamp>
7802             <success>true</success>
7803             <label>true</label>
7804             <code>true</code>
7805             <message>true</message>
7806             <threadName>true</threadName>
7807             <dataType>true</dataType>
7808             <encoding>false</encoding>
7809             <assertions>true</assertions>
7810             <subresults>true</subresults>
7811             <responseData>false</responseData>
7812             <samplerData>false</samplerData>
7813             <xml>false</xml>
7814             <fieldNames>true</fieldNames>
7815             <responseHeaders>false</responseHeaders>
7816             <requestHeaders>false</requestHeaders>
7817             <responseDataOnError>false</responseDataOnError>
7818             <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
7819             <assertionsResultsToSave>0</assertionsResultsToSave>
7820             <bytes>true</bytes>
7821             <sentBytes>true</sentBytes>
7822             <url>true</url>
7823             <threadCounts>true</threadCounts>
7824             <idleTime>true</idleTime>
7825             <connectTime>true</connectTime>
7826           </value>
7827         </objProp>
7828         <stringProp name="filename">/home/ubuntu/s3p/stability.log</stringProp>
7829       </ResultCollector>
7830       <hashTree/>
7831     </hashTree>
7832   </hashTree>
7833 </jmeterTestPlan>