Add documentation for CLAMP CL pairwise testing
[policy/parent.git] / docs / development / devtools / tosca / pairwise-testing.yml
1 tosca_definitions_version: tosca_simple_yaml_1_3
2 data_types:
3   onap.datatypes.ToscaConceptIdentifier:
4     derived_from: tosca.datatypes.Root
5     properties:
6       name:
7         type: string
8         required: true
9       version:
10         type: string
11         required: true
12   onap.datatype.controlloop.Target:
13     derived_from: tosca.datatypes.Root
14     description: Definition for a entity in A&AI to perform a control loop operation on
15     properties:
16       targetType:
17         type: string
18         description: Category for the target type
19         required: true
20         constraints:
21           - valid_values:
22               - VNF
23               - VM
24               - VFMODULE
25               - PNF
26       entityIds:
27         type: map
28         description: |
29           Map of values that identify the resource. If none are provided, it is assumed that the
30           entity that generated the ONSET event will be the target.
31         required: false
32         metadata:
33           clamp_possible_values: ClampExecution:CSAR_RESOURCES
34         entry_schema:
35           type: string
36   onap.datatype.controlloop.Actor:
37     derived_from: tosca.datatypes.Root
38     description: An actor/operation/target definition
39     properties:
40       actor:
41         type: string
42         description: The actor performing the operation.
43         required: true
44         metadata:
45           clamp_possible_values: Dictionary:DefaultActors,ClampExecution:CDS/actor
46       operation:
47         type: string
48         description: The operation the actor is performing.
49         metadata:
50           clamp_possible_values: Dictionary:DefaultOperations,ClampExecution:CDS/operation
51         required: true
52       target:
53         type: onap.datatype.controlloop.Target
54         description: The resource the operation should be performed on.
55         required: true
56       payload:
57         type: map
58         description: Name/value pairs of payload information passed by Policy to the actor
59         required: false
60         metadata:
61           clamp_possible_values: ClampExecution:CDS/payload
62         entry_schema:
63           type: string
64   onap.datatype.controlloop.Operation:
65     derived_from: tosca.datatypes.Root
66     description: An operation supported by an actor
67     properties:
68       id:
69         type: string
70         description: Unique identifier for the operation
71         required: true
72       description:
73         type: string
74         description: A user-friendly description of the intent for the operation
75         required: false
76       operation:
77         type: onap.datatype.controlloop.Actor
78         description: The definition of the operation to be performed.
79         required: true
80       timeout:
81         type: integer
82         description: The amount of time for the actor to perform the operation.
83         required: true
84       retries:
85         type: integer
86         description: The number of retries the actor should attempt to perform the operation.
87         required: true
88         default: 0
89       success:
90         type: string
91         description: Points to the operation to invoke on success. A value of "final_success" indicates and end to the operation.
92         required: false
93         default: final_success
94       failure:
95         type: string
96         description: Points to the operation to invoke on Actor operation failure.
97         required: false
98         default: final_failure
99       failure_timeout:
100         type: string
101         description: Points to the operation to invoke when the time out for the operation occurs.
102         required: false
103         default: final_failure_timeout
104       failure_retries:
105         type: string
106         description: Points to the operation to invoke when the current operation has exceeded its max retries.
107         required: false
108         default: final_failure_retries
109       failure_exception:
110         type: string
111         description: Points to the operation to invoke when the current operation causes an exception.
112         required: false
113         default: final_failure_exception
114       failure_guard:
115         type: string
116         description: Points to the operation to invoke when the current operation is blocked due to guard policy enforcement.
117         required: false
118         default: final_failure_guard
119   onap.datatypes.monitoring.managedObjectDNsBasic:
120     constraints: []
121     properties:
122       DN:
123         name: DN
124         type: string
125         typeVersion: 0.0.0
126         description: Managed object distinguished name
127         required: true
128         constraints: []
129         metadata: {}
130     name: onap.datatypes.monitoring.managedObjectDNsBasic
131     version: 0.0.0
132     derived_from: tosca.datatypes.Root
133     metadata: {}
134   onap.datatypes.monitoring.managedObjectDNsBasics:
135     constraints: []
136     properties:
137       managedObjectDNsBasic:
138         name: managedObjectDNsBasic
139         type: map
140         typeVersion: 0.0.0
141         description: Managed object distinguished name object
142         required: true
143         constraints: []
144         entry_schema:
145           type: onap.datatypes.monitoring.managedObjectDNsBasic
146           typeVersion: 0.0.0
147           constraints: []
148         metadata: {}
149     name: onap.datatypes.monitoring.managedObjectDNsBasics
150     version: 0.0.0
151     derived_from: tosca.datatypes.Root
152     metadata: {}
153   onap.datatypes.monitoring.measurementGroup:
154     constraints: []
155     properties:
156       measurementTypes:
157         name: measurementTypes
158         type: list
159         typeVersion: 0.0.0
160         description: List of measurement types
161         required: true
162         constraints: []
163         entry_schema:
164           type: onap.datatypes.monitoring.measurementTypes
165           typeVersion: 0.0.0
166           constraints: []
167         metadata: {}
168       managedObjectDNsBasic:
169         name: managedObjectDNsBasic
170         type: list
171         typeVersion: 0.0.0
172         description: List of managed object distinguished names
173         required: true
174         constraints: []
175         entry_schema:
176           type: onap.datatypes.monitoring.managedObjectDNsBasics
177           typeVersion: 0.0.0
178           constraints: []
179         metadata: {}
180     name: onap.datatypes.monitoring.measurementGroup
181     version: 0.0.0
182     derived_from: tosca.datatypes.Root
183     metadata: {}
184   onap.datatypes.monitoring.measurementGroups:
185     constraints: []
186     properties:
187       measurementGroup:
188         name: measurementGroup
189         type: map
190         typeVersion: 0.0.0
191         description: Measurement Group
192         required: true
193         constraints: []
194         entry_schema:
195           type: onap.datatypes.monitoring.measurementGroup
196           typeVersion: 0.0.0
197           constraints: []
198         metadata: {}
199     name: onap.datatypes.monitoring.measurementGroups
200     version: 0.0.0
201     derived_from: tosca.datatypes.Root
202     metadata: {}
203   onap.datatypes.monitoring.measurementType:
204     constraints: []
205     properties:
206       measurementType:
207         name: measurementType
208         type: string
209         typeVersion: 0.0.0
210         description: Measurement type
211         required: true
212         constraints: []
213         metadata: {}
214     name: onap.datatypes.monitoring.measurementType
215     version: 0.0.0
216     derived_from: tosca.datatypes.Root
217     metadata: {}
218   onap.datatypes.monitoring.measurementTypes:
219     constraints: []
220     properties:
221       measurementType:
222         name: measurementType
223         type: map
224         typeVersion: 0.0.0
225         description: Measurement type object
226         required: true
227         constraints: []
228         entry_schema:
229           type: onap.datatypes.monitoring.measurementType
230           typeVersion: 0.0.0
231           constraints: []
232         metadata: {}
233     name: onap.datatypes.monitoring.measurementTypes
234     version: 0.0.0
235     derived_from: tosca.datatypes.Root
236     metadata: {}
237   onap.datatypes.monitoring.nfFilter:
238     constraints: []
239     properties:
240       modelNames:
241         name: modelNames
242         type: list
243         typeVersion: 0.0.0
244         description: List of model names
245         required: true
246         constraints: []
247         entry_schema:
248           type: string
249           typeVersion: 0.0.0
250           constraints: []
251         metadata: {}
252       modelInvariantIDs:
253         name: modelInvariantIDs
254         type: list
255         typeVersion: 0.0.0
256         description: List of model invariant IDs
257         required: true
258         constraints: []
259         entry_schema:
260           type: string
261           typeVersion: 0.0.0
262           constraints: []
263         metadata: {}
264       modelVersionIDs:
265         name: modelVersionIDs
266         type: list
267         typeVersion: 0.0.0
268         description: List of model version IDs
269         required: true
270         constraints: []
271         entry_schema:
272           type: string
273           typeVersion: 0.0.0
274           constraints: []
275         metadata: {}
276       nfNames:
277         name: nfNames
278         type: list
279         typeVersion: 0.0.0
280         description: List of network functions
281         required: true
282         constraints: []
283         entry_schema:
284           type: string
285           typeVersion: 0.0.0
286           constraints: []
287         metadata: {}
288     name: onap.datatypes.monitoring.nfFilter
289     version: 0.0.0
290     derived_from: tosca.datatypes.Root
291     metadata: {}
292   onap.datatypes.monitoring.subscription:
293     constraints: []
294     properties:
295       measurementGroups:
296         name: measurementGroups
297         type: list
298         typeVersion: 0.0.0
299         description: Measurement Groups
300         required: true
301         constraints: []
302         entry_schema:
303           type: onap.datatypes.monitoring.measurementGroups
304           typeVersion: 0.0.0
305           constraints: []
306         metadata: {}
307       fileBasedGP:
308         name: fileBasedGP
309         type: integer
310         typeVersion: 0.0.0
311         description: File based granularity period
312         required: true
313         constraints: []
314         metadata: {}
315       fileLocation:
316         name: fileLocation
317         type: string
318         typeVersion: 0.0.0
319         description: ROP file location
320         required: true
321         constraints: []
322         metadata: {}
323       subscriptionName:
324         name: subscriptionName
325         type: string
326         typeVersion: 0.0.0
327         description: Name of the subscription
328         required: true
329         constraints: []
330         metadata: {}
331       administrativeState:
332         name: administrativeState
333         type: string
334         typeVersion: 0.0.0
335         description: State of the subscription
336         required: true
337         constraints:
338           - valid_values:
339               - LOCKED
340               - UNLOCKED
341         metadata: {}
342       nfFilter:
343         name: nfFilter
344         type: map
345         typeVersion: 0.0.0
346         description: Network function filter
347         required: true
348         constraints: []
349         entry_schema:
350           type: onap.datatypes.monitoring.nfFilter
351           typeVersion: 0.0.0
352           constraints: []
353         metadata: {}
354     name: onap.datatypes.monitoring.subscription
355     version: 0.0.0
356     derived_from: tosca.datatypes.Root
357     metadata: {}
358   org.onap.datatypes.policy.clamp.controlloop.httpControlLoopElement.RestRequest:
359     version: 1.0.0
360     derived_from: tosca.datatypes.Root
361     properties:
362       restRequestId:
363         type:  onap.datatypes.ToscaConceptIdentifier
364         typeVersion: 1.0.0
365         required: true
366         description: The name and version of a REST request to be sent to a REST endpoint
367       httpMethod:
368         type: string
369         required: true
370         constraints:
371           - valid_values: [POST, PUT, GET, DELETE]
372         description: The REST method to use
373       path:
374         type: string
375         required: true
376         description: The path of the REST request relative to the base URL
377       body:
378         type: string
379         required: false
380         description: The body of the REST request for PUT and POST requests
381       expectedResponse:
382         type: integer
383         required: true
384         constraints: 
385           - in_range: [100, 599]
386         description: THe expected HTTP status code for the REST request
387     org.onap.datatypes.policy.clamp.controlloop.httpControlLoopElement.ConfigurationEntity:
388       version: 1.0.0
389       derived_from: tosca.datatypes.Root
390       properties:
391         configurationEntityId:
392           type:  onap.datatypes.ToscaConceptIdentifier
393           typeVersion: 1.0.0
394           required: true
395           description: The name and version of a Configuration Entity to be handled by the HTTP Control Loop Element
396         restSequence:
397           type: list
398           entry_schema:
399             type: org.onap.datatypes.policy.clamp.controlloop.httpControlLoopElement.RestRequest
400             typeVersion: 1.0.0
401           description: A sequence of REST commands to send to the REST endpoint
402 policy_types:
403   onap.policies.Monitoring:
404     derived_from: tosca.policies.Root
405     description: a base policy type for all policies that govern monitoring provisioning
406     version: 1.0.0
407     name: onap.policies.Monitoring
408   onap.policies.Sirisha:
409     derived_from: tosca.policies.Root
410     description: a base policy type for all policies that govern monitoring provisioning
411     version: 1.0.0
412     name: onap.policies.Sirisha
413   onap.policies.monitoring.dcae-pm-subscription-handler:
414     properties:
415       pmsh_policy:
416         name: pmsh_policy
417         type: onap.datatypes.monitoring.subscription
418         typeVersion: 0.0.0
419         description: PMSH Policy JSON
420         required: false
421         constraints: []
422         metadata: {}
423     name: onap.policies.monitoring.dcae-pm-subscription-handler
424     version: 1.0.0
425     derived_from: onap.policies.Monitoring
426     metadata: {}
427   onap.policies.controlloop.operational.Common:
428     derived_from: tosca.policies.Root
429     version: 1.0.0
430     name: onap.policies.controlloop.operational.Common
431     description: |
432       Operational Policy for Control Loop execution. Originated in Frankfurt to support TOSCA Compliant
433       Policy Types. This does NOT support the legacy Policy YAML policy type.
434     properties:
435       id:
436         type: string
437         description: The unique control loop id.
438         required: true
439       timeout:
440         type: integer
441         description: |
442           Overall timeout for executing all the operations. This timeout should equal or exceed the total
443           timeout for each operation listed.
444         required: true
445       abatement:
446         type: boolean
447         description: Whether an abatement event message will be expected for the control loop from DCAE.
448         required: true
449         default: false
450       trigger:
451         type: string
452         description: Initial operation to execute upon receiving an Onset event message for the Control Loop.
453         required: true
454       operations:
455         type: list
456         description: List of operations to be performed when Control Loop is triggered.
457         required: true
458         entry_schema:
459           type: onap.datatype.controlloop.Operation
460   onap.policies.controlloop.operational.common.Apex:
461     derived_from: onap.policies.controlloop.operational.Common
462     type_version: 1.0.0
463     version: 1.0.0
464     name: onap.policies.controlloop.operational.common.Apex
465     description: Operational policies for Apex PDP
466     properties:
467       engineServiceParameters:
468         type: string
469         description: The engine parameters like name, instanceCount, policy implementation, parameters etc.
470         required: true
471       eventInputParameters:
472         type: string
473         description: The event input parameters.
474         required: true
475       eventOutputParameters:
476         type: string
477         description: The event output parameters.
478         required: true
479       javaProperties:
480         type: string
481         description: Name/value pairs of properties to be set for APEX if needed.
482         required: false
483 node_types:
484   org.onap.policy.clamp.controlloop.Participant:
485     version: 1.0.1
486     derived_from: tosca.nodetypes.Root
487     properties:
488       provider:
489         type: string
490         requred: false
491   org.onap.policy.clamp.controlloop.ControlLoopElement:
492     version: 1.0.1
493     derived_from: tosca.nodetypes.Root
494     properties:
495       provider:
496         type: string
497         required: false
498         metadata:
499           common: true
500         description: Specifies the organization that provides the control loop element
501       participant_id:
502         type: onap.datatypes.ToscaConceptIdentifier
503         requred: true
504         metadata:
505           common: true
506       participantType:
507         type: onap.datatypes.ToscaConceptIdentifier
508         required: true
509         metadata:
510           common: true
511         description: The identity of the participant type that hosts this type of Control Loop Element
512       startPhase:
513         type: integer
514         required: false
515         constraints:
516           - greater_or_equal: 0
517         metadata:
518           common: true
519         description: A value indicating the start phase in which this control loop element will be started, the
520           first start phase is zero. Control Loop Elements are started in their start_phase order and stopped
521           in reverse start phase order. Control Loop Elements with the same start phase are started and
522           stopped simultaneously
523       uninitializedToPassiveTimeout:
524         type: integer
525         required: false
526         constraints:
527           - greater_or_equal: 0
528         default: 60
529         metadata:
530           common: true
531         description: The maximum time in seconds to wait for a state chage from uninitialized to passive
532       passiveToRunningTimeout:
533         type: integer
534         required: false
535         constraints:
536           - greater_or_equal: 0
537         default: 60
538         metadata:
539           common: true
540         description: The maximum time in seconds to wait for a state chage from passive to running
541       runningToPassiveTimeout:
542         type: integer
543         required: false
544         constraints:
545           - greater_or_equal: 0
546         default: 60
547         metadata:
548           common: true
549         description: The maximum time in seconds to wait for a state chage from running to passive
550       passiveToUninitializedTimeout:
551         type: integer
552         required: false
553         constraints:
554           - greater_or_equal: 0
555         default: 60
556         metadata:
557           common: true
558         description: The maximum time in seconds to wait for a state chage from passive to uninitialized
559   org.onap.policy.clamp.controlloop.ControlLoop:
560     version: 1.0.1
561     derived_from: tosca.nodetypes.Root
562     properties:
563       provider:
564         type: string
565         required: false
566         metadata:
567           common: true
568         description: Specifies the organization that provides the control loop element
569       elements:
570         type: list
571         required: true
572         metadata:
573           common: true
574         entry_schema:
575           type: onap.datatypes.ToscaConceptIdentifier
576         description: Specifies a list of control loop element definitions that make up this control loop definition
577   org.onap.policy.clamp.controlloop.PolicyControlLoopElement:
578     version: 1.0.1
579     derived_from: org.onap.policy.clamp.controlloop.ControlLoopElement
580     properties:
581       policy_type_id:
582         type: onap.datatypes.ToscaConceptIdentifier
583         requred: true
584       policy_id:
585         type: onap.datatypes.ToscaConceptIdentifier
586         requred: false
587   org.onap.policy.clamp.controlloop.DerivedPolicyControlLoopElement:
588     version: 1.0.1
589     derived_from: org.onap.policy.clamp.controlloop.PolicyControlLoopElement
590     properties:
591       policy_type_id:
592         type: onap.datatypes.ToscaConceptIdentifier
593         requred: true
594       policy_id:
595         type: onap.datatypes.ToscaConceptIdentifier
596         requred: false
597   org.onap.policy.clamp.controlloop.DerivedDerivedPolicyControlLoopElement:
598     version: 1.0.1
599     derived_from: org.onap.policy.clamp.controlloop.DerivedPolicyControlLoopElement
600     properties:
601       policy_type_id:
602         type: onap.datatypes.ToscaConceptIdentifier
603         requred: true
604       policy_id:
605         type: onap.datatypes.ToscaConceptIdentifier
606         requred: false
607   org.onap.policy.clamp.controlloop.CDSControlLoopElement:
608     version: 1.0.1
609     derived_from: org.onap.policy.clamp.controlloop.ControlLoopElement
610     properties:
611       cds_blueprint_id:
612         type: onap.datatypes.ToscaConceptIdentifier
613         requred: true
614   org.onap.policy.clamp.controlloop.K8SMicroserviceControlLoopElement:
615     version: 1.0.1
616     derived_from: org.onap.policy.clamp.controlloop.ControlLoopElement
617     properties:
618       chart:
619         type: string
620         required: true
621       configs:
622         type: list
623         required: false
624       requirements:
625         type: string
626         requred: false
627       templates:
628         type: list
629         required: false
630         entry_schema:
631       values:
632         type: string
633         requred: true
634   org.onap.policy.clamp.controlloop.HttpControlLoopElement:
635     version: 1.0.1
636     derived_from: org.onap.policy.clamp.controlloop.ControlLoopElement
637     properties:
638       baseUrl:
639         type: string
640         required: true
641         description: The base URL to be prepended to each path, identifies the host for the REST endpoints.
642       httpHeaders:
643         type: map
644         required: false
645         entry_schema:
646           type: string
647         description: HTTP headers to send on REST requests
648       configurationEntities:
649         type: map
650         required: true
651         entry_schema:
652           type: org.onap.datatypes.policy.clamp.controlloop.httpControlLoopElement.ConfigurationEntity
653           typeVersion: 1.0.0
654         description: The connfiguration entities the Control Loop Element is managing and their associated REST requests
655
656 topology_template:
657   inputs:
658     pmsh_monitoring_policy:
659       type: onap.datatypes.ToscaConceptIdentifier
660       description: The ID of the PMSH monitoring policy to use
661       default:
662         name: MICROSERVICE_vLoadBalancerMS_v1_0_dcae-pm-subscription-handler_1_0_0test
663         version: 1.0.0
664     pmsh_operational_policy:
665       type: onap.datatypes.ToscaConceptIdentifier
666       description: The ID of the PMSH operational policy to use
667       default:
668         name: operational.apex.pmcontrol
669         version: 1.0.0
670   node_templates:
671     org.onap.policy.controlloop.PolicyControlLoopParticipant:
672       version: 2.3.1
673       type: org.onap.policy.clamp.controlloop.Participant
674       type_version: 1.0.1
675       description: Participant for DCAE microservices
676       properties:
677         provider: ONAP
678     org.onap.domain.pmsh.PMSH_MonitoringPolicyControlLoopElement:
679       version: 1.2.3
680       type: org.onap.policy.clamp.controlloop.PolicyControlLoopElement
681       type_version: 1.0.0
682       description: Control loop element for the monitoring policy for Performance Management Subscription Handling
683       properties:
684         provider: Ericsson
685         participant_id:
686           name: org.onap.PM_Policy
687           version: 1.0.0
688         participantType:
689           name: org.onap.policy.controlloop.PolicyControlLoopParticipant
690           version: 2.3.1
691         policy_type_id:
692           name: onap.policies.monitoring.pm-subscription-handler
693           version: 1.0.0
694         policy_id:
695           get_input: pmsh_monitoring_policy
696     org.onap.domain.pmsh.PMSH_OperationalPolicyControlLoopElement:
697       version: 1.2.3
698       type: org.onap.policy.clamp.controlloop.PolicyControlLoopElement
699       type_version: 1.0.0
700       description: Control loop element for the operational policy for Performance Management Subscription Handling
701       properties:
702         provider: Ericsson
703         participant_id:
704           name: org.onap.PM_Policy
705           version: 1.0.0
706         participantType:
707           name: org.onap.policy.controlloop.PolicyControlLoopParticipant
708           version: 2.3.1
709         policy_type_id:
710           name: onap.policies.operational.pm-subscription-handler
711           version: 1.0.0
712         policy_id:
713           get_input: pmsh_operational_policy
714     org.onap.k8s.controlloop.K8SControlLoopParticipant:
715       version: 2.3.4
716       type: org.onap.policy.clamp.controlloop.Participant
717       type_version: 1.0.1
718       description: Participant for K8S
719       properties:
720         provider: ONAP
721     org.onap.domain.database.PMSH_K8SMicroserviceControlLoopElement:
722       # Chart from new repository
723       version: 1.2.3
724       type: org.onap.policy.clamp.controlloop.K8SMicroserviceControlLoopElement
725       type_version: 1.0.0
726       description: Control loop element for the K8S microservice for PMSH
727       properties:
728         provider: ONAP
729         participant_id:
730           name: K8sParticipant0
731           version: 1.0.0
732         participantType:
733           name: org.onap.k8s.controlloop.K8SControlLoopParticipant
734           version: 2.3.4
735         chart:
736           chartId:
737             name: dcae-pmsh
738             version: 8.0.0
739           namespace: onap
740           releaseName: pmshms
741           repository:
742             repoName: chartmuseum
743             protocol: http
744             address: chart-museum
745             port: 80
746             userName: onapinitializer
747             password: demo123456!
748           overrideParams:
749             global.masterPassword: test
750
751     org.onap.domain.database.Local_K8SMicroserviceControlLoopElement:
752       # Chart installation without passing repository info
753       version: 1.2.3
754       type: org.onap.policy.clamp.controlloop.K8SMicroserviceControlLoopElement
755       type_version: 1.0.0
756       description: Control loop element for the K8S microservice for local chart
757       properties:
758         provider: ONAP
759         participant_id:
760           name: K8sParticipant0
761           version: 1.0.0
762         participantType:
763           name: org.onap.k8s.controlloop.K8SControlLoopParticipant
764           version: 2.3.4
765         chart:
766           chartId:
767             name: nginx-ingress
768             version: 0.9.1
769           releaseName: nginxms
770           namespace: test
771     org.onap.controlloop.HttpControlLoopParticipant:
772       version: 2.3.4
773       type: org.onap.policy.clamp.controlloop.Participant
774       type_version: 1.0.1
775       description: Participant for Http requests
776       properties:
777         provider: ONAP
778     org.onap.domain.database.Http_PMSHMicroserviceControlLoopElement:
779       # Consul http config for PMSH.
780       version: 1.2.3
781       type: org.onap.policy.clamp.controlloop.HttpControlLoopElement
782       type_version: 1.0.1
783       description: Control loop element for the http requests of PMSH microservice
784       properties:
785         provider: ONAP
786         participant_id:
787           name: HttpParticipant0
788           version: 1.0.0
789         participantType:
790           name: org.onap.k8s.controlloop.HttpControlLoopParticipant
791           version: 2.3.4
792         uninitializedToPassiveTimeout: 180
793         startPhase: 1
794         baseUrl: http://consul-server-ui:8500
795         httpHeaders:
796           Content-Type: application/json
797         configurationEntities:
798           - configurationEntityId:
799               name: entity1
800               version: 1.0.1
801             restSequence:
802               - restRequestId:
803                   name: request1
804                   version: 1.0.1
805                 httpMethod: PUT
806                 path: v1/kv/dcae-pmsh2
807                 body: '{
808       "control_loop_name":"pmsh-control-loop",
809       "operational_policy_name":"pmsh-operational-policy",
810       "aaf_password":"demo123456!",
811       "aaf_identity":"dcae@dcae.onap.org",
812       "cert_path":"/opt/app/pmsh/etc/certs/cert.pem",
813       "key_path":"/opt/app/pmsh/etc/certs/key.pem",
814       "ca_cert_path":"/opt/app/pmsh/etc/certs/cacert.pem",
815       "enable_tls":"true",
816       "pmsh_policy":{
817          "subscription":{
818             "subscriptionName":"ExtraPM-All-gNB-R2B",
819             "administrativeState":"UNLOCKED",
820             "fileBasedGP":15,
821             "fileLocation":"\/pm\/pm.xml",
822             "nfFilter":{
823                "nfNames":[
824                   "^pnf.*",
825                   "^vnf.*"
826                ],
827                "modelInvariantIDs":[
828                ],
829                "modelVersionIDs":[
830                ],
831                "modelNames":[
832                ]
833             },
834             "measurementGroups":[
835                {
836                   "measurementGroup":{
837                      "measurementTypes":[
838                         {
839                            "measurementType":"countera"
840                         },
841                         {
842                            "measurementType":"counterb"
843                         }
844                      ],
845                      "managedObjectDNsBasic":[
846                         {
847                            "DN":"dna"
848                         },
849                         {
850                            "DN":"dnb"
851                         }
852                      ]
853                   }
854                },
855                {
856                   "measurementGroup":{
857                      "measurementTypes":[
858                         {
859                            "measurementType":"counterc"
860                         },
861                         {
862                            "measurementType":"counterd"
863                         }
864                      ],
865                      "managedObjectDNsBasic":[
866                         {
867                            "DN":"dnc"
868                         },
869                         {
870                            "DN":"dnd"
871                         }
872                      ]
873                   }
874                }
875             ]
876          }
877       },
878       "streams_subscribes":{
879          "aai_subscriber":{
880             "type":"message_router",
881             "dmaap_info":{
882                "topic_url":"https://10.152.183.151:3905/events/AAI_EVENT",
883                "client_role":"org.onap.dcae.aaiSub",
884                "location":"san-francisco",
885                "client_id":"1575976809466"
886             }
887          },
888          "policy_pm_subscriber":{
889             "type":"message_router",
890             "dmaap_info":{
891                "topic_url":"https://10.152.183.151:3905/events/org.onap.dmaap.mr.PM_SUBSCRIPTIONS",
892                "client_role":"org.onap.dcae.pmSubscriber",
893                "location":"san-francisco",
894                "client_id":"1575876809456"
895             }
896          }
897       },
898       "streams_publishes":{
899          "policy_pm_publisher":{
900             "type":"message_router",
901             "dmaap_info":{
902                "topic_url":"https://10.152.183.151:3905/events/org.onap.dmaap.mr.PM_SUBSCRIPTIONS",
903                "client_role":"org.onap.dcae.pmPublisher",
904                "location":"san-francisco",
905                "client_id":"1475976809466"
906             }
907          },
908          "other_publisher":{
909             "type":"message_router",
910             "dmaap_info":{
911                "topic_url":"https://10.152.183.151:3905/events/org.onap.dmaap.mr.SOME_OTHER_TOPIC",
912                "client_role":"org.onap.dcae.pmControlPub",
913                "location":"san-francisco",
914                "client_id":"1875976809466"
915             }
916          }
917       }
918    }'
919                 expectedResponse: 200
920     org.onap.domain.sample.GenericK8s_ControlLoopDefinition:
921       version: 1.2.3
922       type: org.onap.policy.clamp.controlloop.ControlLoop
923       type_version: 1.0.0
924       description: Control loop for Hello World
925       properties:
926         provider: ONAP
927         elements:
928           - name: org.onap.domain.database.PMSH_K8SMicroserviceControlLoopElement
929             version: 1.2.3
930           - name: org.onap.domain.database.Local_K8SMicroserviceControlLoopElement
931             version: 1.2.3
932           - name: org.onap.domain.database.Http_PMSHMicroserviceControlLoopElement
933             version: 1.2.3
934           - name: org.onap.domain.pmsh.PMSH_MonitoringPolicyControlLoopElement
935             version: 1.2.3
936           - name: org.onap.domain.pmsh.PMSH_OperationalPolicyControlLoopElement
937             version: 1.2.3
938             
939   policies:
940     - MICROSERVICE_vLoadBalancerMS_v1_0_dcae-pm-subscription-handler_1_0_0test:
941         type: onap.policies.monitoring.dcae-pm-subscription-handler
942         type_version: 1.0.0
943         name: MICROSERVICE_vLoadBalancerMS_v1_0_dcae-pm-subscription-handler_1_0_0test
944         version: 1.0.0
945         metadata:
946           policy-id: MICROSERVICE_vLoadBalancerMS_v1_0_dcae-pm-subscription-handler_1_0_0test
947           policy-version: 1.0.0
948         properties:
949           pmsh_policy:
950             fileBasedGP: 15
951             fileLocation: /pm/pm.xml
952             subscriptionName: subscriptiona
953             administrativeState: UNLOCKED
954             nfFilter:
955               onap.datatypes.monitoring.nfFilter:
956                 modelVersionIDs:
957                   - e80a6ae3-cafd-4d24-850d-e14c084a5ca9
958                 modelInvariantIDs:
959                   - 5845y423-g654-6fju-po78-8n53154532k6
960                   - 7129e420-d396-4efb-af02-6b83499b12f8
961                 modelNames: []
962                 nfNames:
963                   - '"^pnf1.*"'
964             measurementGroups:
965               - measurementGroup:
966                   onap.datatypes.monitoring.measurementGroup:
967                     measurementTypes:
968                       - measurementType:
969                           onap.datatypes.monitoring.measurementType:
970                             measurementType: countera
971                       - measurementType:
972                           onap.datatypes.monitoring.measurementType:
973                             measurementType: counterb
974                     managedObjectDNsBasic:
975                       - managedObjectDNsBasic:
976                           onap.datatypes.monitoring.managedObjectDNsBasic:
977                             DN: dna
978                       - managedObjectDNsBasic:
979                           onap.datatypes.monitoring.managedObjectDNsBasic:
980                             DN: dnb
981               - measurementGroup:
982                   onap.datatypes.monitoring.measurementGroup:
983                     measurementTypes:
984                       - measurementType:
985                           onap.datatypes.monitoring.measurementType:
986                             measurementType: counterc
987                       - measurementType:
988                           onap.datatypes.monitoring.measurementType:
989                             measurementType: counterd
990                     managedObjectDNsBasic:
991                       - managedObjectDNsBasic:
992                           onap.datatypes.monitoring.managedObjectDNsBasic:
993                             DN: dnc
994                       - managedObjectDNsBasic:
995                           onap.datatypes.monitoring.managedObjectDNsBasic:
996                             DN: dnd