Rollback policyScope 71/43571/1
authorDeterme, Sebastien (sd378r) <sd378r@intl.att.com>
Wed, 18 Apr 2018 15:57:09 +0000 (17:57 +0200)
committerDeterme, Sebastien (sd378r) <sd378r@intl.att.com>
Wed, 18 Apr 2018 15:57:32 +0000 (17:57 +0200)
Rollback policy Scope to DCAE as required for the microservices

Issue-ID: CLAMP-153
Change-Id: I6a4569f89167eb825c961f38f8a0a4aa5a2fec12
Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
src/main/resources/clds/templates/tca-policy-template.json
src/main/resources/clds/templates/tca-template.json
src/test/resources/example/tca-policy-req/blueprint-expected.yaml
src/test/resources/example/tca-policy-req/tca-policy-expected.json

index 275b6a4..f91f239 100644 (file)
@@ -5,7 +5,7 @@
        "configName": "SampleConfigName",
        "uuid": "test",
        "templateVersion": "OpenSource.version.1",
-       "policyName": "MicroService",
+       "policyName": "???",
        "description": "MicroService Policy",
        "priority": "1",
        "riskType": "SampleRiskType",
index d2c04bf..892fc0d 100644 (file)
@@ -4,7 +4,7 @@
                {
                        "eventName": "???",
                        "controlLoopSchemaType": "VNF",
-                       "policyScope": "CLAMP",
+                       "policyScope": "DCAE",
                        "policyName": "???",
                        "policyVersion": "v0.0.1",
                        "thresholds": [
index e0b14f3..8739bb2 100644 (file)
@@ -30,7 +30,7 @@ node_templates:
         subscriberMessageLimit: '-1', subscriberPollingInterval: '20000', subscriberProtocol: https,
         subscriberTimeoutMS: '-1', subscriberTopicName: org.onap.dcae.dmaap.mtnje2.DcaeTestVESSub,
         subscriberUserName: m00502@tca.af.dcae.onap.org, subscriberUserPassword: Te5021abc,
-        tca_policy: '{"domain":"measurementsForVfScaling","metricsPerEventName":[{"eventName":"vFirewallBroadcastPackets","controlLoopSchemaType":"VNF","policyScope":"CLAMP","policyName":"example_model01.ClosedLoop_FRWL_SIG_fad4dcae_e498_11e6_852e_0050568c4ccf_TCA_1jy9to4","policyVersion":"v0.0.1","thresholds":[{"closedLoopControlName":"ClosedLoop_FRWL_SIG_fad4dcae_e498_11e6_852e_0050568c4ccf_null","version":"1.0.2","fieldPath":"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsDelta","thresholdValue":123,"direction":"GREATER_OR_EQUAL","severity":"MAJOR","closedLoopEventStatus":"ONSET"},{"closedLoopControlName":"ClosedLoop_FRWL_SIG_fad4dcae_e498_11e6_852e_0050568c4ccf_null","version":"1.0.2","fieldPath":"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsDelta","thresholdValue":123,"direction":"GREATER_OR_EQUAL","severity":"MAJOR","closedLoopEventStatus":"ONSET"}]}]}'}
+        tca_policy: '{"domain":"measurementsForVfScaling","metricsPerEventName":[{"eventName":"vFirewallBroadcastPackets","controlLoopSchemaType":"VNF","policyScope":"DCAE","policyName":"example_model01.ClosedLoop_FRWL_SIG_fad4dcae_e498_11e6_852e_0050568c4ccf_TCA_1jy9to4","policyVersion":"v0.0.1","thresholds":[{"closedLoopControlName":"ClosedLoop_FRWL_SIG_fad4dcae_e498_11e6_852e_0050568c4ccf_null","version":"1.0.2","fieldPath":"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsDelta","thresholdValue":123,"direction":"GREATER_OR_EQUAL","severity":"MAJOR","closedLoopEventStatus":"ONSET"},{"closedLoopControlName":"ClosedLoop_FRWL_SIG_fad4dcae_e498_11e6_852e_0050568c4ccf_null","version":"1.0.2","fieldPath":"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsDelta","thresholdValue":123,"direction":"GREATER_OR_EQUAL","severity":"MAJOR","closedLoopEventStatus":"ONSET"}]}]}'}
       artifact_name: dcae-analytics-tca
       artifact_version: 1.0.0
       connections:
index a04e223..6b27307 100644 (file)
@@ -18,7 +18,7 @@
         {
           "eventName": "vFirewallBroadcastPackets",
           "controlLoopSchemaType": "VNF",
-          "policyScope": "CLAMP",
+          "policyScope": "DCAE",
           "policyName": "example_model01.ClosedLoop_FRWL_SIG_fad4dcae_e498_11e6_852e_0050568c4ccf_TCA_1jy9to4",
           "policyVersion": "v0.0.1",
           "thresholds": [