aboutsummaryrefslogtreecommitdiffstats
path: root/src/test/resources/example
diff options
context:
space:
mode:
authorxg353y <xg353y@intl.att.com>2017-11-03 10:30:12 +0100
committerxg353y <xg353y@intl.att.com>2017-11-03 10:33:44 +0100
commit46e7f8e7eebaeeab27b5024b13ea28a9fbf88543 (patch)
tree3b95d13da4562d1d686ab6c657035fd9b24b4670 /src/test/resources/example
parent451f53ce0a02532b3da6a9cc2fbb59fee17cbe53 (diff)
Update the content send to Policy
Adding tca_policy tag under content section, while sending configBody to Policy. Change-Id: I184d366b0cda24ff6b95c4e8c29d0a90bde7ba06 Issue-ID: CLAMP-62 Signed-off-by: xg353y <xg353y@intl.att.com>
Diffstat (limited to 'src/test/resources/example')
-rw-r--r--src/test/resources/example/tca-policy-req/tca-policy-expected.json64
1 files changed, 33 insertions, 31 deletions
diff --git a/src/test/resources/example/tca-policy-req/tca-policy-expected.json b/src/test/resources/example/tca-policy-req/tca-policy-expected.json
index ad95c07b9..2ade75f1e 100644
--- a/src/test/resources/example/tca-policy-req/tca-policy-expected.json
+++ b/src/test/resources/example/tca-policy-req/tca-policy-expected.json
@@ -1,5 +1,5 @@
{
- "service": "policy_tosca_tca",
+ "service": "tca_policy",
"version": "1.0.0",
"location": "SampleServiceLocation",
"configName": "SampleConfigName",
@@ -13,35 +13,37 @@
"riskLevel": "1",
"guard": "False",
"content": {
- "domain": "measurementsForVfScaling",
- "metricsPerEventName": [
- {
- "eventName": "vFirewallBroadcastPackets",
- "controlLoopSchemaType": "VNF",
- "policyScope": "DCAE",
- "policyName": "DCAE.Config_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": "DCAE.Config_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"
+ }
+ ]
+ }
+ ]
+ }
}
}