Changing the PAP initial db data 13/86813/1
authorramverma <ram.krishna.verma@est.tech>
Thu, 2 May 2019 12:58:30 +0000 (12:58 +0000)
committerramverma <ram.krishna.verma@est.tech>
Thu, 2 May 2019 12:58:30 +0000 (12:58 +0000)
Changing PAP initial db data to bring all the xacml supportedPolicyTypes
in one PdpGroup.

Change-Id: I9a0788c788bab470109b0f09fb631e7fbb90042e
Issue-ID: POLICY-1723
Signed-off-by: ramverma <ram.krishna.verma@est.tech>
main/src/main/resources/PapDb.json

index 2967f3d..5be0bdb 100644 (file)
@@ -1,9 +1,9 @@
 {
   "groups": [
     {
-      "name": "controlloop",
+      "name": "defaultGroup",
       "version": "1.0.0",
-      "description": "This group should be used for managing all control loop related policies and pdps",
+      "description": "The default group that registers all supported policy types and pdps.",
       "pdpGroupState": "ACTIVE",
       "pdpSubgroups": [
         {
             {
               "name": "onap.policies.controlloop.guard.coordination.FirstBlocksSecond",
               "version": "1.0.0"
-            }
-          ],
-          "currentInstanceCount": 0,
-          "desiredInstanceCount": 1,
-          "policies": []
-        },
-        {
-          "pdpType": "drools",
-          "supportedPolicyTypes": [
-            {
-              "name": "onap.policies.controlloop.Operational",
-              "version": "1.0.0"
-            }
-          ],
-          "currentInstanceCount": 0,
-          "desiredInstanceCount": 1,
-          "policies": []
-        },
-        {
-          "pdpType": "apex",
-          "supportedPolicyTypes": [
-            {
-              "name": "onap.policies.controlloop.operational.Apex",
-              "version": "1.0.0"
-            }
-          ],
-          "currentInstanceCount": 0,
-          "desiredInstanceCount": 1,
-          "policies": []
-        }
-      ]
-    },
-    {
-      "name": "monitoring",
-      "version": "1.0.0",
-      "description": "This group should be used for managing all monitoring related policies and pdps",
-      "pdpGroupState": "ACTIVE",
-      "pdpSubgroups": [
-        {
-          "pdpType": "xacml",
-          "supportedPolicyTypes": [
+            },
             {
               "name": "onap.Monitoring",
               "version": "1.0.0"
             {
               "name": "onap.policies.monitoring.dcaegen2.collectors.datafile.datafile-app-server",
               "version": "1.0.0"
-            }
-          ],
-          "currentInstanceCount": 0,
-          "desiredInstanceCount": 1,
-          "policies": []
-        }
-      ]
-    },
-    {
-      "name": "optimization",
-      "version": "1.0.0",
-      "description": "This group should be used for managing all optimization related policies and pdps",
-      "pdpGroupState": "ACTIVE",
-      "pdpSubgroups": [
-        {
-          "pdpType": "xacml",
-          "supportedPolicyTypes": [
+            },
             {
               "name": "onap.policies.optimization.AffinityPolicy",
               "version": "1.0.0"
           "currentInstanceCount": 0,
           "desiredInstanceCount": 1,
           "policies": []
+        },
+        {
+          "pdpType": "drools",
+          "supportedPolicyTypes": [
+            {
+              "name": "onap.policies.controlloop.Operational",
+              "version": "1.0.0"
+            }
+          ],
+          "currentInstanceCount": 0,
+          "desiredInstanceCount": 1,
+          "policies": []
+        },
+        {
+          "pdpType": "apex",
+          "supportedPolicyTypes": [
+            {
+              "name": "onap.policies.controlloop.operational.Apex",
+              "version": "1.0.0"
+            }
+          ],
+          "currentInstanceCount": 0,
+          "desiredInstanceCount": 1,
+          "policies": []
         }
       ]
     }