aboutsummaryrefslogtreecommitdiffstats
path: root/src/test/resources/example
diff options
context:
space:
mode:
authorDeterme, Sebastien (sd378r) <sd378r@intl.att.com>2017-08-08 03:14:52 -0700
committerSébastien Determe <sd378r@intl.att.com>2017-08-08 12:36:19 +0000
commit249699f8fb908359213697055b66637c9baeda99 (patch)
tree0041a981ee940c8aaf32ecaf77916c36b8f25988 /src/test/resources/example
parente63aa2efcd5dff2af82b39368d5989763c9cdd6f (diff)
Rework of the unit tests (mainly IT)
Rework of the unit tests (mainly IT) + new example files and test resource config Change-Id: I4970b3710c7decdc8a3265a86115097d4394ad80 Issue-Id: CLAMP-1 Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
Diffstat (limited to 'src/test/resources/example')
-rw-r--r--src/test/resources/example/modelBpmnProp.json42
-rw-r--r--src/test/resources/example/modelBpmnPropForPolicy.json26
-rw-r--r--src/test/resources/example/modelProp.json1114
-rw-r--r--src/test/resources/example/modelPropForPolicy.json404
-rw-r--r--src/test/resources/example/templatePropForTca.json10
5 files changed, 1248 insertions, 348 deletions
diff --git a/src/test/resources/example/modelBpmnProp.json b/src/test/resources/example/modelBpmnProp.json
index 140a5679..26fd884d 100644
--- a/src/test/resources/example/modelBpmnProp.json
+++ b/src/test/resources/example/modelBpmnProp.json
@@ -1 +1,41 @@
-{"collector":[{"id":"Collector_", "from":"StartEvent_1"}],"stringMatch":[{"id":"StringMatch_", "from":"Collector_"}],"policy":[{"id":"Policy_", "from":"StringMatch_"}],"tca":[{"id":"TCA_", "from":""}]} \ No newline at end of file
+{
+ "collector":
+ [
+ {
+ "id": "Collector_",
+ "from": "StartEvent_1"
+ }
+ ],
+
+ "stringMatch":
+ [
+ {
+ "id": "StringMatch_",
+ "from": "Collector_"
+ }
+ ],
+
+ "policy":
+ [
+ {
+ "id": "Policy_",
+ "from": "StringMatch_"
+ }
+ ],
+
+ "tca":
+ [
+ {
+ "id": "TCA_",
+ "from": ""
+ }
+ ],
+
+ "customType":
+ [
+ {
+ "id": "CustomType_",
+ "from": ""
+ }
+ ]
+} \ No newline at end of file
diff --git a/src/test/resources/example/modelBpmnPropForPolicy.json b/src/test/resources/example/modelBpmnPropForPolicy.json
new file mode 100644
index 00000000..243f7e80
--- /dev/null
+++ b/src/test/resources/example/modelBpmnPropForPolicy.json
@@ -0,0 +1,26 @@
+{
+ "collector":
+ [
+
+ ],
+ "stringMatch":
+ [
+
+ ],
+
+ "policy":
+ [
+ {
+ "id": "Policy_",
+ "from": "StartEvent_1"
+ }
+ ],
+
+ "tca":
+ [
+ {
+ "id": "TCA_",
+ "from": ""
+ }
+ ]
+} \ No newline at end of file
diff --git a/src/test/resources/example/modelProp.json b/src/test/resources/example/modelProp.json
index 831bf2d7..8b8e984f 100644
--- a/src/test/resources/example/modelProp.json
+++ b/src/test/resources/example/modelProp.json
@@ -1,369 +1,789 @@
{
- "Collector_":[
- {
- "name":"topicPublishes",
- "value":"DCAE-COLLECTOR-UCSNMP"
- }
- ],
- "global":[
- {
- "name":"service",
- "value":[
- "df6fcd2b-1932-429e-bb13-0cd0d32113cb"
- ]
- },
- {
- "name":"vf",
- "value":[
- "4b49acee-cf70-4b20-b956-a4fe0c1a8239"
- ]
- },
- {
- "name":"location",
- "value":[
- "SNDGCA64",
- "ALPRGAED"
- ]
- }
- ],
- "StringMatch_":[
+ "Collector_":
[
- {
- "name":"topicPublishes",
- "value":"DCAE-CL-EVENT"
- }
+ {
+ "name": "topicPublishes",
+ "value": "DCAE-COLLECTOR-UCSNMP"
+ }
],
- {
- "serviceConfigurations":[
- [
- {
- "name":"aaiMatchingFields",
- "value":[
- "Identiy"
- ]
- },
- {
- "name":"aaiSendFields",
- "value":[
- "VMID"
- ]
- },
- {
- "name":"groupNumber",
- "value":[
- "1"
- ]
- },
- {
- "name":"timeWindow",
- "value":[
- "1"
+
+ "global":
+ [
+ {
+ "name": "service",
+ "value":
+ [
+ "0f983e18-4603-4bb4-a98c-e29691fb16a1"
]
- },
- {
- "name":"ageLimit",
- "value":[
- "1600"
+ },
+
+ {
+ "name": "vf",
+ "value":
+ [
+ "6c7aaec2-59eb-41d9-8681-b7f976ab668d"
]
- },
- {
- "name":"createClosedLoopEventId",
- "value":[
- "Initial"
+ },
+
+ {
+ "name": "actionSet",
+ "value":
+ [
+ "enbRecipe"
]
- },
- {
- "name":"outputEventName",
- "value":[
- "OnSet"
+ },
+
+ {
+ "name": "location",
+ "value":
+ [
+ "SNDGCA64"
]
- },
- {
- "stringSet":[
- {
- "name":"alarmCondition",
- "value":[
- "Reports a transient alarm condition when an outgoing Ro message send fails"
- ]
- },
- {
- "name":"eventSeverity",
- "value":[
- "WARNING"
- ]
- },
- {
- "name":"eventSourceType",
- "value":[
- "f5BigIP"
+ }
+ ],
+
+ "HighlandPark_":
+ [
+ [
+ {
+ "name": "topicPublishes",
+ "value": "DCAE-HIGHLANDPARK-EVENT-OUTPUT-VOIP"
+ }
+ ],
+
+ {
+ "serviceConfigurations":
+ [
+ [
+ {
+ "name": "alarmCondition",
+ "value":
+ [
+ "Reports a transient alarm condition when an incoming ACR message is in conflict with former ACR in one diameter session"
+ ]
+ },
+
+ {
+ "name": "eventSourceType",
+ "value":
+ [
+ "f5BigIP"
+ ]
+ },
+
+ {
+ "name": "eventSeverity",
+ "value":
+ [
+ "NORMAL"
+ ]
+ }
+ ],
+
+ [
+ {
+ "name": "alarmCondition",
+ "value":
+ [
+ "Reports a transient alarm condition when an incoming ACR message is in conflict with former ACR in one diameter session"
+ ]
+ },
+
+ {
+ "name": "eventSourceType",
+ "value":
+ [
+ "f5BigIP"
+ ]
+ },
+
+ {
+ "name": "eventSeverity",
+ "value":
+ [
+ "NORMAL"
+ ]
+ }
]
- }
]
- }
+ }
+ ],
+
+ "StringMatch_":
+ {
+ "Group1":
+ [
+ {
+ "name": "rgname",
+ "value": "1493749598520"
+ },
+
+ {
+ "name": "rgfriendlyname",
+ "value": "Group1"
+ },
+
+ {
+ "name": "policyName",
+ "value": "Policy1"
+ },
+
+ {
+ "name": "policyId",
+ "value": "1"
+ },
+
+ {
+ "serviceConfigurations":
+ [
+ [
+ {
+ "name": "aaiMatchingFields",
+ "value":
+ [
+ "complex.city",
+ "vserver.vserver-name"
+ ]
+ },
+
+ {
+ "name": "aaiSendFields",
+ "value":
+ [
+ "complex.city",
+ "vserver.vserver-name"
+ ]
+ },
+
+ {
+ "name": "timeWindow",
+ "value":
+ [
+ "100"
+ ]
+ },
+
+ {
+ "name": "ageLimit",
+ "value":
+ [
+ "100"
+ ]
+ },
+
+ {
+ "name": "createClosedLoopEventId",
+ "value":
+ [
+ "Initial"
+ ]
+ },
+
+ {
+ "name": "outputEventName",
+ "value":
+ [
+ "ONSET"
+ ]
+ },
+
+ {
+ "stringSet":
+ [
+ {
+ "name": "alarmCondition",
+ "value":
+ [
+ "Reports a transient alarm condition when an outgoing Ro message send fails"
+ ]
+ },
+
+ {
+ "name": "eventSeverity",
+ "value":
+ [
+ "WARNING"
+ ]
+ },
+
+ {
+ "name": "eventSourceType",
+ "value":
+ [
+ "f5BigIP"
+ ]
+ }
+ ]
+ }
+ ]
+ ]
+ }
],
+
+ "Group2":
[
- {
- "name":"aaiMatchingFields",
- "value":[
- "VMID"
- ]
- },
- {
- "name":"aaiSendFields",
- "value":[
- "Identiy"
- ]
- },
- {
- "name":"groupNumber",
- "value":[
- "1"
- ]
- },
- {
- "name":"timeWindow",
- "value":[
- "0"
- ]
- },
- {
- "name":"ageLimit",
- "value":[
- "1600"
- ]
- },
- {
- "name":"createClosedLoopEventId",
- "value":[
- "Close"
- ]
- },
- {
- "name":"outputEventName",
- "value":[
- "Abatement"
- ]
- },
- {
- "stringSet":[
- {
- "name":"alarmCondition",
- "value":[
- "Reports a transient alarm condition when an outgoing GTP' message send fails"
+ {
+ "name": "rgname",
+ "value": "1493749665149"
+ },
+
+ {
+ "name": "rgfriendlyname",
+ "value": "Group2"
+ },
+
+ {
+ "name": "policyName",
+ "value": "Policy2"
+ },
+
+ {
+ "name": "policyId",
+ "value": "2"
+ },
+
+ {
+ "serviceConfigurations":
+ [
+ [
+ {
+ "name": "aaiMatchingFields",
+ "value":
+ [
+ "cloud-region.identity-url",
+ "vserver.vserver-name"
+ ]
+ },
+
+ {
+ "name": "aaiSendFields",
+ "value":
+ [
+ "cloud-region.identity-url",
+ "vserver.vserver-name"
+ ]
+ },
+
+ {
+ "name": "timeWindow",
+ "value":
+ [
+ "1000"
+ ]
+ },
+
+ {
+ "name": "ageLimit",
+ "value":
+ [
+ "1000"
+ ]
+ },
+
+ {
+ "name": "createClosedLoopEventId",
+ "value":
+ [
+ "Initial"
+ ]
+ },
+
+ {
+ "name": "outputEventName",
+ "value":
+ [
+ "ONSET"
+ ]
+ },
+
+ {
+ "stringSet":
+ [
+ {
+ "name": "alarmCondition",
+ "value":
+ [
+ "LSS_asdaCommunicationFailure"
+ ]
+ },
+
+ {
+ "name": "eventSeverity",
+ "value":
+ [
+ "WARNING"
+ ]
+ },
+
+ {
+ "name": "eventSourceType",
+ "value":
+ [
+ "f5BigIP"
+ ]
+ }
+ ]
+ }
+ ],
+
+ [
+ {
+ "name": "aaiMatchingFields",
+ "value":
+ [
+ "generic-vnf.vnf-name",
+ "vserver.vserver-name"
+ ]
+ },
+
+ {
+ "name": "aaiSendFields",
+ "value":
+ [
+ "generic-vnf.vnf-name",
+ "vserver.vserver-name"
+ ]
+ },
+
+ {
+ "name": "timeWindow",
+ "value":
+ [
+ "3000"
+ ]
+ },
+
+ {
+ "name": "ageLimit",
+ "value":
+ [
+ "3000"
+ ]
+ },
+
+ {
+ "name": "createClosedLoopEventId",
+ "value":
+ [
+ "Initial"
+ ]
+ },
+
+ {
+ "name": "outputEventName",
+ "value":
+ [
+ "ABATED"
+ ]
+ },
+
+ {
+ "stringSet":
+ [
+ {
+ "name": "alarmCondition",
+ "value":
+ [
+ "LSS_asdaCommunicationFailure"
+ ]
+ },
+
+ {
+ "name": "eventSeverity",
+ "value":
+ [
+ "MAJOR"
+ ]
+ },
+
+ {
+ "name": "eventSourceType",
+ "value":
+ [
+ "f5BigIP"
+ ]
+ }
+ ]
+ }
+ ]
]
- },
- {
- "name":"eventSeverity",
- "value":[
- "NORMAL"
+ }
+ ]
+ },
+
+ "Policy_":
+ {
+ "Policy1":
+ [
+ {
+ "name": "pname",
+ "value": "Policy1"
+ },
+
+ {
+ "name": "pid",
+ "value": "1"
+ },
+
+ {
+ "name": "timeout",
+ "value": "500"
+ },
+
+ {
+ "policyConfigurations":
+ [
+ [
+ {
+ "name": "recipe",
+ "value":
+ [
+ "restart"
+ ]
+ },
+
+ {
+ "name": "maxRetries",
+ "value":
+ [
+ "3"
+ ]
+ },
+
+ {
+ "name": "retryTimeLimit",
+ "value":
+ [
+ "180"
+ ]
+ },
+
+ {
+ "name": "_id",
+ "value":
+ [
+ "n9bQ4t6"
+ ]
+ },
+
+ {
+ "name": "parentPolicy",
+ "value":
+ [
+ ""
+ ]
+ }
+ ],
+
+ [
+ {
+ "name": "recipe",
+ "value":
+ [
+ "rebuild"
+ ]
+ },
+
+ {
+ "name": "maxRetries",
+ "value":
+ [
+ "3"
+ ]
+ },
+
+ {
+ "name": "retryTimeLimit",
+ "value":
+ [
+ "180"
+ ]
+ },
+
+ {
+ "name": "_id",
+ "value":
+ [
+ "ItE5xKT"
+ ]
+ },
+
+ {
+ "name": "parentPolicy",
+ "value":
+ [
+ "n9bQ4t6"
+ ]
+ },
+
+ {
+ "name": "parentPolicyConditions",
+ "value":
+ [
+ "Failure_Retries",
+ "Failure_Timeout",
+ "Failure_Exception",
+ "Failure"
+ ]
+ }
+ ]
]
- },
- {
- "name":"eventSourceType",
- "value":[
- "f5BigIP"
+ }
+ ],
+
+ "Policy2":
+ [
+ {
+ "name": "pname",
+ "value": "Policy2"
+ },
+
+ {
+ "name": "pid",
+ "value": "2"
+ },
+
+ {
+ "name": "timeout",
+ "value": "500"
+ },
+
+ {
+ "policyConfigurations":
+ [
+ [
+ {
+ "name": "recipe",
+ "value":
+ [
+ "restart"
+ ]
+ },
+
+ {
+ "name": "maxRetries",
+ "value":
+ [
+ "3"
+ ]
+ },
+
+ {
+ "name": "retryTimeLimit",
+ "value":
+ [
+ "180"
+ ]
+ },
+
+ {
+ "name": "_id",
+ "value":
+ [
+ "n9bQ4t6"
+ ]
+ },
+
+ {
+ "name": "parentPolicy",
+ "value":
+ [
+ ""
+ ]
+ }
+ ],
+
+ [
+ {
+ "name": "recipe",
+ "value":
+ [
+ "rebuild"
+ ]
+ },
+
+ {
+ "name": "maxRetries",
+ "value":
+ [
+ "3"
+ ]
+ },
+
+ {
+ "name": "retryTimeLimit",
+ "value":
+ [
+ "180"
+ ]
+ },
+
+ {
+ "name": "_id",
+ "value":
+ [
+ "ItE5xKT"
+ ]
+ },
+
+ {
+ "name": "parentPolicy",
+ "value":
+ [
+ "n9bQ4t6"
+ ]
+ },
+
+ {
+ "name": "parentPolicyConditions",
+ "value":
+ [
+ "Failure_Retries",
+ "Failure_Timeout",
+ "Failure_Exception",
+ "Failure"
+ ]
+ }
+ ]
]
- }
- ]
- }
+ }
]
- ]
- }
- ],
- "Policy_":[
- [
- {
- "name":"timeout",
- "value":"500"
- }
- ],
+ },
+
+ "TCA_":
{
- "policyConfigurations":[
+ "Narra":
[
- {
- "name":"recipe",
- "value":[
- "restart"
- ]
- },
- {
- "name":"maxRetries",
- "value":[
- "3"
- ]
- },
- {
- "name":"retryTimeLimit",
- "value":[
- "180"
- ]
- },
- {
- "name":"_id",
- "value":[
- "n9bQ4t6"
- ]
- },
- {
- "name":"parentPolicy",
- "value":[
- ""
- ]
- }
+ {
+ "name": "tname",
+ "value": "Narra"
+ },
+
+ {
+ "name": "tuuid",
+ "value": "886be8da-14fe-tca1-d04b-d13b55d58df9"
+ },
+
+ {
+ "name": "tnfc",
+ "value": "ENBE"
+ },
+
+ {
+ "name": "tcaEnab",
+ "value": "on"
+ },
+
+ {
+ "name": "tcaPol",
+ "value": "Policy1"
+ },
+
+ {
+ "name": "tcaPolId",
+ "value": "1"
+ },
+
+ {
+ "name": "tcaInt",
+ "value": "2"
+ },
+
+ {
+ "name": "tcaSev",
+ "value": "Warning"
+ },
+
+ {
+ "name": "tcaVio",
+ "value": "3"
+ },
+
+ {
+ "serviceConfigurations":
+ [
+ [
+ "PMRRCCONNESTABFAILCELLLATENCY",
+ "LESS",
+ "4",
+ "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[?(@.Name == 'PMRRCCONNESTABFAILCELLLATENCY')].Value"
+ ],
+
+ [
+ "PMRAATTCBRA",
+ "GREATER",
+ "30",
+ "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[?(@.Name == 'PMRAATTCBRA')].Value"
+ ]
+ ]
+ }
],
+
+ "Srini":
[
- {
- "name":"recipe",
- "value":[
- "rebuild"
- ]
- },
- {
- "name":"maxRetries",
- "value":[
- "3"
- ]
- },
- {
- "name":"retryTimeLimit",
- "value":[
- "180"
- ]
- },
- {
- "name":"_id",
- "value":[
- "ItE5xKT"
- ]
- },
- {
- "name":"parentPolicy",
- "value":[
- "n9bQ4t6"
- ]
- },
- {
- "name":"parentPolicyConditions",
- "value":[
- "Failure_Retries",
- "Failure_Timeout",
- "Failure_Exception",
- "Failure"
- ]
- }
+ {
+ "name": "tname",
+ "value": "Srini"
+ },
+
+ {
+ "name": "tuuid",
+ "value": "8b5ba88d-f4b4-tf0e-50b1-78a5a7dd412d"
+ },
+
+ {
+ "name": "tnfc",
+ "value": "ENBE"
+ },
+
+ {
+ "name": "tcaEnab",
+ "value": "on"
+ },
+
+ {
+ "name": "tcaPol",
+ "value": "Policy2"
+ },
+
+ {
+ "name": "tcaPolId",
+ "value": "2"
+ },
+
+ {
+ "name": "tcaInt",
+ "value": "10"
+ },
+
+ {
+ "name": "tcaSev",
+ "value": "Critical"
+ },
+
+ {
+ "name": "tcaVio",
+ "value": "5"
+ },
+
+ {
+ "serviceConfigurations":
+ [
+ [
+ "PMRRCCONNESTABFAILCELLLATENCY",
+ "EQUAL",
+ "3",
+ "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[?(@.Name == 'PMRRCCONNESTABFAILCELLLATENCY')].Value"
+ ],
+
+ [
+ "PMRAATTCBRA",
+ "GREATER",
+ "30",
+ "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[?(@.Name == 'PMRAATTCBRA')].Value"
+ ]
+ ]
+ }
]
- ]
}
- ],
-
- "TCA_":{
- "Narra":[
- {
- "name": "tname",
- "value": "Narra"
- },
- {
- "name": "tuuid",
- "value": "886be8da-14fe-tca1-d04b-d13b55d58df9"
- },
- {
- "name": "tnfc",
- "value": "ENBE"
- },
- {
- "name": "tcaEnab",
- "value": "on"
- },
- {
- "name": "tcaPol",
- "value": "Policy1"
- },
- {
- "name": "tcaPolId",
- "value": "1"
- },
- {
- "name": "tcaInt",
- "value": "2"
- },
- {
- "name": "tcaSev",
- "value": "Warning"
- },
- {
- "name": "tcaVio",
- "value": "3"
- },
- {
- "serviceConfigurations":[
- [
- "PMRRCCONNESTABFAILCELLLATENCY",
- "LESS",
- "4",
- "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[?(@.Name == 'PMRRCCONNESTABFAILCELLLATENCY')].Value"
- ],
- [
- "PMRAATTCBRA",
- "GREATER",
- "30",
- "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[?(@.Name == 'PMRAATTCBRA')].Value"
- ]
- ]
- }
- ],
- "Srini":[
- {
- "name": "tname",
- "value": "Srini"
- },
- {
- "name": "tuuid",
- "value": "8b5ba88d-f4b4-tf0e-50b1-78a5a7dd412d"
- },
- {
- "name": "tnfc",
- "value": "ENBE"
- },
- {
- "name": "tcaEnab",
- "value": "on"
- },
- {
- "name": "tcaPol",
- "value": "Policy2"
- },
- {
- "name": "tcaPolId",
- "value": "2"
- },
- {
- "name": "tcaInt",
- "value": "10"
- },
- {
- "name": "tcaSev",
- "value": "Critical"
- },
- {
- "name": "tcaVio",
- "value": "5"
- },
- {
- "serviceConfigurations":[
- [
- "PMRRCCONNESTABFAILCELLLATENCY",
- "EQUAL",
- "3",
- "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[?(@.Name == 'PMRRCCONNESTABFAILCELLLATENCY')].Value"
- ],
- [
- "PMRAATTCBRA",
- "GREATER",
- "30",
- "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[?(@.Name == 'PMRAATTCBRA')].Value"
- ]
- ]
- }
- ]
- }
} \ No newline at end of file
diff --git a/src/test/resources/example/modelPropForPolicy.json b/src/test/resources/example/modelPropForPolicy.json
new file mode 100644
index 00000000..6923e1a6
--- /dev/null
+++ b/src/test/resources/example/modelPropForPolicy.json
@@ -0,0 +1,404 @@
+{
+ "global":
+ [
+ {
+ "name": "service",
+ "value":
+ [
+ "0f983e18-4603-4bb4-a98c-e29691fb16a1"
+ ]
+ },
+
+ {
+ "name": "vf",
+ "value":
+ [
+ "6c7aaec2-59eb-41d9-8681-b7f976ab668d"
+ ]
+ },
+
+ {
+ "name": "location",
+ "value":
+ [
+ "SNDGCA64"
+ ]
+ }
+ ],
+
+ "Policy_":
+ {
+ "Policy1":
+ [
+ {
+ "name": "pname",
+ "value": "Policy1"
+ },
+
+ {
+ "name": "pid",
+ "value": "1"
+ },
+
+ {
+ "name": "timeout",
+ "value": "500"
+ },
+
+ {
+ "policyConfigurations":
+ [
+ [
+ {
+ "name": "recipe",
+ "value":
+ [
+ "restart"
+ ]
+ },
+
+ {
+ "name": "maxRetries",
+ "value":
+ [
+ "3"
+ ]
+ },
+
+ {
+ "name": "retryTimeLimit",
+ "value":
+ [
+ "180"
+ ]
+ },
+
+ {
+ "name": "_id",
+ "value":
+ [
+ "n9bQ4t6"
+ ]
+ },
+
+ {
+ "name": "parentPolicy",
+ "value":
+ [
+ ""
+ ]
+ }
+ ],
+
+ [
+ {
+ "name": "recipe",
+ "value":
+ [
+ "rebuild"
+ ]
+ },
+
+ {
+ "name": "maxRetries",
+ "value":
+ [
+ "3"
+ ]
+ },
+
+ {
+ "name": "retryTimeLimit",
+ "value":
+ [
+ "180"
+ ]
+ },
+
+ {
+ "name": "_id",
+ "value":
+ [
+ "ItE5xKT"
+ ]
+ },
+
+ {
+ "name": "parentPolicy",
+ "value":
+ [
+ "n9bQ4t6"
+ ]
+ },
+
+ {
+ "name": "parentPolicyConditions",
+ "value":
+ [
+ "Failure_Retries",
+ "Failure_Timeout",
+ "Failure_Exception",
+ "Failure"
+ ]
+ }
+ ]
+ ]
+ }
+ ],
+
+ "Policy2":
+ [
+ {
+ "name": "pname",
+ "value": "Policy2"
+ },
+
+ {
+ "name": "pid",
+ "value": "2"
+ },
+
+ {
+ "name": "timeout",
+ "value": "500"
+ },
+
+ {
+ "policyConfigurations":
+ [
+ [
+ {
+ "name": "recipe",
+ "value":
+ [
+ "restart"
+ ]
+ },
+
+ {
+ "name": "maxRetries",
+ "value":
+ [
+ "3"
+ ]
+ },
+
+ {
+ "name": "retryTimeLimit",
+ "value":
+ [
+ "180"
+ ]
+ },
+
+ {
+ "name": "_id",
+ "value":
+ [
+ "n9bQ4t6"
+ ]
+ },
+
+ {
+ "name": "parentPolicy",
+ "value":
+ [
+ ""
+ ]
+ }
+ ],
+
+ [
+ {
+ "name": "recipe",
+ "value":
+ [
+ "rebuild"
+ ]
+ },
+
+ {
+ "name": "maxRetries",
+ "value":
+ [
+ "3"
+ ]
+ },
+
+ {
+ "name": "retryTimeLimit",
+ "value":
+ [
+ "180"
+ ]
+ },
+
+ {
+ "name": "_id",
+ "value":
+ [
+ "ItE5xKT"
+ ]
+ },
+
+ {
+ "name": "parentPolicy",
+ "value":
+ [
+ "n9bQ4t6"
+ ]
+ },
+
+ {
+ "name": "parentPolicyConditions",
+ "value":
+ [
+ "Failure_Retries",
+ "Failure_Timeout",
+ "Failure_Exception",
+ "Failure"
+ ]
+ }
+ ]
+ ]
+ }
+ ]
+ },
+
+ "TCA_":
+ {
+ "Narra":
+ [
+ {
+ "name": "tname",
+ "value": "Narra"
+ },
+
+ {
+ "name": "tuuid",
+ "value": "886be8da-14fe-tca1-d04b-d13b55d58df9"
+ },
+
+ {
+ "name": "tnfc",
+ "value": "ENBE"
+ },
+
+ {
+ "name": "tcaEnab",
+ "value": "on"
+ },
+
+ {
+ "name": "tcaPol",
+ "value": "Policy1"
+ },
+
+ {
+ "name": "tcaPolId",
+ "value": "1"
+ },
+
+ {
+ "name": "tcaInt",
+ "value": "2"
+ },
+
+ {
+ "name": "tcaSev",
+ "value": "Warning"
+ },
+
+ {
+ "name": "tcaVio",
+ "value": "3"
+ },
+
+ {
+ "serviceConfigurations":
+ [
+ [
+ "PMRRCCONNESTABFAILCELLLATENCY",
+ "LESS",
+ "4",
+ "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[?(@.Name == 'PMRRCCONNESTABFAILCELLLATENCY')].Value"
+ ],
+
+ [
+ "PMRAATTCBRA",
+ "GREATER",
+ "30",
+ "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[?(@.Name == 'PMRAATTCBRA')].Value"
+ ]
+ ]
+ }
+ ],
+
+ "Srini":
+ [
+ {
+ "name": "tname",
+ "value": "Srini"
+ },
+
+ {
+ "name": "tuuid",
+ "value": "8b5ba88d-f4b4-tf0e-50b1-78a5a7dd412d"
+ },
+
+ {
+ "name": "tnfc",
+ "value": "ENBE"
+ },
+
+ {
+ "name": "tcaEnab",
+ "value": "on"
+ },
+
+ {
+ "name": "tcaPol",
+ "value": "Policy2"
+ },
+
+ {
+ "name": "tcaPolId",
+ "value": "2"
+ },
+
+ {
+ "name": "tcaInt",
+ "value": "10"
+ },
+
+ {
+ "name": "tcaSev",
+ "value": "Critical"
+ },
+
+ {
+ "name": "tcaVio",
+ "value": "5"
+ },
+
+ {
+ "serviceConfigurations":
+ [
+ [
+ "PMRRCCONNESTABFAILCELLLATENCY",
+ "EQUAL",
+ "3",
+ "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[?(@.Name == 'PMRRCCONNESTABFAILCELLLATENCY')].Value"
+ ],
+
+ [
+ "PMRAATTCBRA",
+ "GREATER",
+ "30",
+ "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[?(@.Name == 'PMRAATTCBRA')].Value"
+ ]
+ ]
+ }
+ ]
+ }
+} \ No newline at end of file
diff --git a/src/test/resources/example/templatePropForTca.json b/src/test/resources/example/templatePropForTca.json
new file mode 100644
index 00000000..9f1ce1da
--- /dev/null
+++ b/src/test/resources/example/templatePropForTca.json
@@ -0,0 +1,10 @@
+{
+ "global": [
+ {
+ "name": "service",
+ "value": [
+ "tosca_definitions_version: cloudify_dsl_1_2\r\n\r\nimports:\r\n- http://www.getcloudify.org/spec/cloudify/3.3.1/types.yaml\r\n- http://135.207.127.211/1607_prod/type_files/cdap_app.yaml\r\n\r\nnode_templates:\r\n MTCA:\r\n type: dcae.nodes.cdap_app\r\n properties:\r\n service_name: \"cdap-mtca-central\"\r\n deployment_JSON: |-\r\n {\r\n \"clusterService\": {\"$ref\": \"/services/vm-cdap-cluster-central/instances/rdm2c\"},\r\n \"namespace\": \"MTCA\",\r\n \"appNames\": [ \"cdap-mtca\" ],\r\n \"flowNames\": [ \"cdap-mtca.TCAVESCollectorFlow\" ],\r\n \"workerNames\": [\"cdap-mtca.TCADMaaPMRSubscriberWorker\", \"cdap-mtca.TCADMaaPMRPublisherWorker\"],\r\n \"serviceNames\" : [],\r\n \"apps\": {\r\n \"cdap-mtca\": {\r\n \"jarFile\": \"/opt/app/cdap-apps/dcae-analytics-mtca-1.0.0.jar\",\r\n \"artifactName\": \"dcae-analytics-mtca\",\r\n \"version\": \"1.0.0\",\r\n \"appConfigFileContent\": \"{config:{ \\\"appName\\\":\\\"cdap-mtca\\\", \\\"appDescription\\\":\\\"DCAE Analytics Threshold Crossing Alert Application\\\", \\\"tcaSubscriberOutputStreamName\\\":\\\"TCASubscriberOutputStream\\\", \\\"thresholdCalculatorFlowletInstances\\\":2, \\\"tcaVESMessageStatusTableName\\\":\\\"TCAVESMessageStatusTable\\\", \\\"tcaVESMessageStatusTableTTLSeconds\\\":864000, \\\"tcaVESAlertsTableName\\\":\\\"TCAVESAlertsTable\\\", \\\"tcaVESAlertsTableTTLSeconds\\\":1728000 }}\"\r\n }\r\n },\r\n \r\n \"configuration\": {\r\n \"$class\": \"com.att.ecomp.dcae.clamp.common.MThresholdCrossingConfiguration\",\r\n \"subscriberContentType\": \"\",\r\n \"subscriberConsumerId\": \"c12\",\r\n \"subscriberConsumerGroup\": \"OpenDCAE-c12\",\r\n \"subscriberTimeoutMS\": \"-1\",\r\n \"subscriberMessageLimit\": \"-1\",\r\n \"subscriberPollingInterval\": \"20000\",\r\n \"publisherContentType\": \"application/json\",\r\n \"publisherMaxBatchSize\": \"10\",\r\n \"publisherMaxRecoveryQueueSize\": \"100000\",\r\n \"publisherPollingInterval\": \"20000\",\r\n \"publisherAlertWindowingTime\": \"86400\",\r\n \"policyName\": \"policy.dcae.configuration\",\r\n \"policyScope\": \"pnf=eNodeB;type=configuration\",\r\n \"policyVersion\": \"1.0.0\",\r\n \"domain\" : \"measurementsForVfScaling\",\r\n \r\n \"signatures\" : {\r\n \t }\r\n\r\n }\r\n }\r\n"
+ ]
+ }
+ ]
+} \ No newline at end of file