summaryrefslogtreecommitdiffstats
path: root/src/test/resources/example
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/resources/example')
-rw-r--r--src/test/resources/example/dao/bpmn-template.xml20
-rw-r--r--src/test/resources/example/dao/image-template.xml42
-rw-r--r--src/test/resources/example/model-properties/holmes/modelBpmn.json20
-rw-r--r--src/test/resources/example/model-properties/holmes/modelBpmnProperties.json116
-rw-r--r--src/test/resources/example/model-properties/modelBpmn.json14
-rw-r--r--src/test/resources/example/model-properties/modelBpmnProp.json86
-rw-r--r--src/test/resources/example/model-properties/modelBpmnPropWithGlobal.json77
-rw-r--r--src/test/resources/example/model-properties/tca/modelBpmn.json20
-rw-r--r--src/test/resources/example/model-properties/tca/modelBpmnProperties.json150
-rw-r--r--src/test/resources/example/modelBpmnProp.json24
-rw-r--r--src/test/resources/example/modelBpmnPropForPolicy.json13
-rw-r--r--src/test/resources/example/modelProp.json392
-rw-r--r--src/test/resources/example/sdc/sdcVFResources.json2
-rw-r--r--src/test/resources/example/tca-policy-req/blueprint-expected.yaml50
-rw-r--r--src/test/resources/example/tca-policy-req/blueprint-input.yaml79
-rw-r--r--src/test/resources/example/tca-policy-req/tca-policy-expected.json35
-rw-r--r--src/test/resources/example/templateProp.json10
-rw-r--r--src/test/resources/example/templatePropForTca.json10
-rw-r--r--src/test/resources/example/xsl-validation/modelBpmn.xml23
-rw-r--r--src/test/resources/example/xsl-validation/modelBpmnForVerif.json14
20 files changed, 524 insertions, 673 deletions
diff --git a/src/test/resources/example/dao/bpmn-template.xml b/src/test/resources/example/dao/bpmn-template.xml
index 5aa133acf..12671ac92 100644
--- a/src/test/resources/example/dao/bpmn-template.xml
+++ b/src/test/resources/example/dao/bpmn-template.xml
@@ -4,16 +4,8 @@
<bpmn:startEvent id="StartEvent_1">
<bpmn:outgoing>SequenceFlow_0mshiwd</bpmn:outgoing>
</bpmn:startEvent>
- <bpmn:collector id="Collector_1i63yo1">
- <bpmn:incoming>SequenceFlow_0mshiwd</bpmn:incoming>
- <bpmn:outgoing>SequenceFlow_0z37chw</bpmn:outgoing>
- </bpmn:collector>
- <bpmn:stringMatch id="StringMatch_1g5af0z">
- <bpmn:incoming>SequenceFlow_0z37chw</bpmn:incoming>
- <bpmn:outgoing>SequenceFlow_1io8zzg</bpmn:outgoing>
- </bpmn:stringMatch>
<bpmn:vesCollector id="VesCollector_1s3sgbh">
- <bpmn:incoming>SequenceFlow_1io8zzg</bpmn:incoming>
+ <bpmn:incoming>SequenceFlow_0mshiwd</bpmn:incoming>
<bpmn:outgoing>SequenceFlow_0yenh9m</bpmn:outgoing>
</bpmn:vesCollector>
<bpmn:holmes id="Holmes_1m8n1s9">
@@ -31,9 +23,7 @@
<bpmn:endEvent id="EndEvent_0z8t6ek">
<bpmn:incoming>SequenceFlow_1q2yngv</bpmn:incoming>
</bpmn:endEvent>
- <bpmn:sequenceFlow id="SequenceFlow_0mshiwd" sourceRef="StartEvent_1" targetRef="Collector_1i63yo1" />
- <bpmn:sequenceFlow id="SequenceFlow_0z37chw" sourceRef="Collector_1i63yo1" targetRef="StringMatch_1g5af0z" />
- <bpmn:sequenceFlow id="SequenceFlow_1io8zzg" sourceRef="StringMatch_1g5af0z" targetRef="VesCollector_1s3sgbh" />
+ <bpmn:sequenceFlow id="SequenceFlow_0mshiwd" sourceRef="StartEvent_1" targetRef="VesCollector_1s3sgbh" />
<bpmn:sequenceFlow id="SequenceFlow_0yenh9m" sourceRef="VesCollector_1s3sgbh" targetRef="Holmes_1m8n1s9" />
<bpmn:sequenceFlow id="SequenceFlow_1gq21be" sourceRef="Holmes_1m8n1s9" targetRef="TCA_11n5nl9" />
<bpmn:sequenceFlow id="SequenceFlow_14phr7v" sourceRef="TCA_11n5nl9" targetRef="Policy_19c1hms" />
@@ -44,12 +34,6 @@
<bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
<dc:Bounds x="50" y="162" width="36" height="36" />
</bpmndi:BPMNShape>
- <bpmndi:BPMNShape id="Collector_1i63yo1_di" bpmnElement="Collector_1i63yo1">
- <dc:Bounds x="216" y="152" width="120" height="80" />
- </bpmndi:BPMNShape>
- <bpmndi:BPMNShape id="StringMatch_1g5af0z_di" bpmnElement="StringMatch_1g5af0z">
- <dc:Bounds x="378" y="140" width="120" height="80" />
- </bpmndi:BPMNShape>
<bpmndi:BPMNShape id="VesCollector_1s3sgbh_di" bpmnElement="VesCollector_1s3sgbh">
<dc:Bounds x="552" y="140" width="120" height="80" />
</bpmndi:BPMNShape>
diff --git a/src/test/resources/example/dao/image-template.xml b/src/test/resources/example/dao/image-template.xml
index d7af2aa67..fe0af0671 100644
--- a/src/test/resources/example/dao/image-template.xml
+++ b/src/test/resources/example/dao/image-template.xml
@@ -70,48 +70,6 @@
</g>
</g>
<g class="djs-group" xmlns="http://www.w3.org/2000/svg">
- <g class="djs-element djs-shape" data-element-id="Collector_1i63yo1"
- transform="matrix(1,0,0,1,216,152)" style="display: block;">
- <rect fill="none" class="djs-outline" x="-6" y="-6" width="132"
- height="92"></rect>
- <g class="djs-visual">
- <rect x="0" y="0" width="120" height="80" rx="0" ry="0"
- style="stroke-width: 2;" stroke="#000000" fill="#ffffff"></rect>
- <polyline points="120,80 120,20 " style="stroke-width: 2;"
- fill="none" stroke="#000000"></polyline>
- <polyline points="20,0 20,80 " style="stroke-width: 2;"
- fill="none" stroke="#000000"></polyline>
- <text style="font-family: Arial,sans-serif; font-size: 12px;"
- class=" djs-label">
- <tspan x="35.5" y="43.5">Collector</tspan>
- </text>
- </g>
- <rect x="0" y="0" width="120" height="80"
- style="stroke-opacity: 0; stroke-width: 15;" fill="none" stroke="#ffffff"
- class="djs-hit"></rect>
- </g>
- </g>
- <g class="djs-group" xmlns="http://www.w3.org/2000/svg">
- <g class="djs-element djs-shape" data-element-id="StringMatch_1g5af0z"
- transform="matrix(1,0,0,1,378,140)" style="display: block;">
- <rect fill="none" class="djs-outline" x="-6" y="-6" width="132"
- height="92"></rect>
- <g class="djs-visual">
- <rect x="0" y="0" width="120" height="80" rx="0" ry="0"
- style="stroke-width: 2;" stroke="#000000" fill="#ffffff"></rect>
- <polyline points="0,20 120,20 " style="stroke-width: 2;"
- fill="none" stroke="#000000"></polyline>
- <text style="font-family: Arial,sans-serif; font-size: 12px;"
- class=" djs-label">
- <tspan x="27.5" y="43.5">StringMatch</tspan>
- </text>
- </g>
- <rect x="0" y="0" width="120" height="80"
- style="stroke-opacity: 0; stroke-width: 15;" fill="none" stroke="#ffffff"
- class="djs-hit"></rect>
- </g>
- </g>
- <g class="djs-group" xmlns="http://www.w3.org/2000/svg">
<g class="djs-element djs-shape" data-element-id="VesCollector_1s3sgbh"
transform="matrix(1,0,0,1,552,140)" style="display: block;">
<rect fill="none" class="djs-outline" x="-6" y="-6" width="132"
diff --git a/src/test/resources/example/model-properties/holmes/modelBpmn.json b/src/test/resources/example/model-properties/holmes/modelBpmn.json
new file mode 100644
index 000000000..db8e54dd3
--- /dev/null
+++ b/src/test/resources/example/model-properties/holmes/modelBpmn.json
@@ -0,0 +1,20 @@
+{
+ "vesCollector": [
+ {
+ "id": "VesCollector_0orydnh",
+ "from": "StartEvent_1"
+ }
+ ],
+ "holmes": [
+ {
+ "id": "Holmes_0i4n2mm",
+ "from": "VesCollector_0orydnh"
+ }
+ ],
+ "policy": [
+ {
+ "id": "Policy_0honxgv",
+ "from": "Holmes_0i4n2mm"
+ }
+ ]
+}
diff --git a/src/test/resources/example/model-properties/holmes/modelBpmnProperties.json b/src/test/resources/example/model-properties/holmes/modelBpmnProperties.json
new file mode 100644
index 000000000..14b3a8c28
--- /dev/null
+++ b/src/test/resources/example/model-properties/holmes/modelBpmnProperties.json
@@ -0,0 +1,116 @@
+{
+ "Holmes_0i4n2mm": [
+ {
+ "name": "correlationalLogic",
+ "value": "blabla"
+ },
+ {
+ "name": "operationalPolicy",
+ "value": "policy1"
+ }
+ ],
+ "Policy_0honxgv": {
+ "policy1": [
+ {
+ "name": "pname",
+ "value": "policy1"
+ },
+ {
+ "name": "pid",
+ "value": "0"
+ },
+ {
+ "name": "timeout",
+ "value": "345"
+ },
+ {
+ "policyConfigurations": [
+ [
+ {
+ "name": "maxRetries",
+ "value": [
+ "3"
+ ]
+ },
+ {
+ "name": "retryTimeLimit",
+ "value": [
+ "180"
+ ]
+ },
+ {
+ "name": "_id",
+ "value": [
+ "dGLuNqg"
+ ]
+ },
+ {
+ "name": "parentPolicy",
+ "value": [
+ ""
+ ]
+ },
+ {
+ "name": "targetResourceId",
+ "value": [
+ "resourceid"
+ ]
+ }
+ ]
+ ]
+ }
+ ]
+ },
+ "global": [
+ {
+ "name": "actionSet",
+ "value": [
+ "vnfRecipe"
+ ]
+ },
+ {
+ "name": "location",
+ "value": [
+ "SNDGCA64",
+ "ALPRGAED"
+ ]
+ },
+ {
+ "name": "vf",
+ "value": [
+ "f5213e3a-9191-4362-93b5-b67f8d770e44"
+ ]
+ },
+ {
+ "name": "location",
+ "value": [
+ "SNDGCA64",
+ "ALPRGAED",
+ "LSLEILAA",
+ "MDTWNJC1"
+ ]
+ }
+ ],
+ "shared": {
+ "byService": {
+ "": {
+ "vf": {
+ "": ""
+ },
+ "location": {
+ "": ""
+ },
+ "alarmCondition": {
+ "": ""
+ }
+ }
+ },
+ "byVf": {
+ "": {
+ "vfc": {
+ "": ""
+ }
+ }
+ }
+ }
+}
diff --git a/src/test/resources/example/model-properties/modelBpmn.json b/src/test/resources/example/model-properties/modelBpmn.json
index 823641c73..8f7b8e61a 100644
--- a/src/test/resources/example/model-properties/modelBpmn.json
+++ b/src/test/resources/example/model-properties/modelBpmn.json
@@ -1,16 +1,4 @@
{
- "collector": [
- {
- "id": "Collector_1c72ct5",
- "from": "StartEvent_1"
- }
- ],
- "stringMatch": [
- {
- "id": "StringMatch_05arstl",
- "from": "Collector_1c72ct5"
- }
- ],
"policy": [
{
"id": "Policy_0honxgv",
@@ -32,7 +20,7 @@
"vesCollector": [
{
"id": "VesCollector_0orydnh",
- "from": "StringMatch_05arstl"
+ "from": "StartEvent_1"
}
]
}
diff --git a/src/test/resources/example/model-properties/modelBpmnProp.json b/src/test/resources/example/model-properties/modelBpmnProp.json
index 3b86ad79b..a521ba7d7 100644
--- a/src/test/resources/example/model-properties/modelBpmnProp.json
+++ b/src/test/resources/example/model-properties/modelBpmnProp.json
@@ -1,90 +1,4 @@
{
- "Collector_1c72ct5": [
- {
- "name": "topicPublishes",
- "value": "DCAE-COLLECTOR-UCSNMP"
- }
- ],
- "StringMatch_05arstl": {
- "group1": [
- {
- "name": "rgname",
- "value": "1505133578560"
- },
- {
- "name": "rgfriendlyname",
- "value": "group1"
- },
- {
- "name": "policyName",
- "value": "policy1"
- },
- {
- "name": "policyId",
- "value": "0"
- },
- {
- "serviceConfigurations": [
- [
- {
- "name": "aaiMatchingFields",
- "value": [
- "complex.city"
- ]
- },
- {
- "name": "aaiSendFields",
- "value": [
- "cloud-region.identity-url"
- ]
- },
- {
- "name": "timeWindow",
- "value": [
- "0"
- ]
- },
- {
- "name": "ageLimit",
- "value": [
- "1600"
- ]
- },
- {
- "name": "createClosedLoopEventId",
- "value": [
- "Initial"
- ]
- },
- {
- "name": "outputEventName",
- "value": [
- ""
- ]
- },
- {
- "stringSet": [
- {
- },
- {
- "name": "eventSeverity",
- "value": [
- "NORMAL"
- ]
- },
- {
- "name": "eventSourceType",
- "value": [
- ""
- ]
- }
- ]
- }
- ]
- ]
- }
- ]
- },
"Policy_0honxgv": {
"policy1": [
{
diff --git a/src/test/resources/example/model-properties/modelBpmnPropWithGlobal.json b/src/test/resources/example/model-properties/modelBpmnPropWithGlobal.json
index fba99c6f4..3030adfb3 100644
--- a/src/test/resources/example/model-properties/modelBpmnPropWithGlobal.json
+++ b/src/test/resources/example/model-properties/modelBpmnPropWithGlobal.json
@@ -1,81 +1,4 @@
{
- "collector": {
- "topicPublishes": {
- "DCAE-COLLECTOR-UCSNMP": "DCAE-COLLECTOR-UCSNMP",
- "GFP-IP-AIC-SNMP-TRAPS": "GFP-IP-AIC-SNMP-TRAPS",
- "AIC-SNMP-TRAPS": "AIC-SNMP-TRAPS"
- }
- },
- "string_match": {
- "topicPublishes": {
- "DCAE-CL-EVENT": "DCAE-CL-EVENT"
- },
- "aaiMatchingFields": {
- "cloud-region.identity-url": "cloud-region.identity-url",
- "complex.city": "complex.city",
- "complex.physical-location-id": "complex.physical-location-id",
- "complex.state": "complex.state",
- "generic-vnf.service-id": "generic-vnf.service-id",
- "generic-vnf.vnf-name": "generic-vnf.vnf-name",
- "generic-vnf.vnf-type": "generic-vnf.vnf-type",
- "tenant.tenant-id": "tenant.tenant-id",
- "vserver.in-maint": "vserver.in-maint",
- "vserver.is-closed-loop-disabled": "vserver.is-closed-loop-disabled",
- "vserver.l-interface.interface-name": "vserver.l-interface.interface-name",
- "vserver.l-interface.l3-interface-ipv4-address-list.l3-inteface-ipv4-address": "vserver.l-interface.l3-interface-ipv4-address-list.l3-inteface-ipv4-address",
- "vserver.l-interface.l3-interface-ipv6-address-list.l3-inteface-ipv6-address": "vserver.l-interface.l3-interface-ipv6-address-list.l3-inteface-ipv6-address",
- "vserver.l-interface.network-name": "vserver.l-interface.network-name",
- "vserver.prov-status": "vserver.prov-status",
- "vserver.selflink": "vserver.selflink",
- "vserver.vserver-id": "vserver.vserver-id",
- "vserver.vserver-name": "vserver.vserver-name"
- },
- "aaiSendFields": {
- "cloud-region.identity-url": "cloud-region.identity-url",
- "complex.city": "complex.city",
- "complex.physical-location-id": "complex.physical-location-id",
- "complex.state": "complex.state",
- "generic-vnf.service-id": "generic-vnf.service-id",
- "generic-vnf.vnf-name": "generic-vnf.vnf-name",
- "generic-vnf.vnf-type": "generic-vnf.vnf-type",
- "tenant.tenant-id": "tenant.tenant-id",
- "vserver.in-maint": "vserver.in-maint",
- "vserver.is-closed-loop-disabled": "vserver.is-closed-loop-disabled",
- "vserver.l-interface.interface-name": "vserver.l-interface.interface-name",
- "vserver.l-interface.l3-interface-ipv4-address-list.l3-inteface-ipv4-address": "vserver.l-interface.l3-interface-ipv4-address-list.l3-inteface-ipv4-address",
- "vserver.l-interface.l3-interface-ipv6-address-list.l3-inteface-ipv6-address": "vserver.l-interface.l3-interface-ipv6-address-list.l3-inteface-ipv6-address",
- "vserver.l-interface.network-name": "vserver.l-interface.network-name",
- "vserver.prov-status": "vserver.prov-status",
- "vserver.selflink": "vserver.selflink",
- "vserver.vserver-id": "vserver.vserver-id",
- "vserver.vserver-name": "vserver.vserver-name"
- },
- "eventSourceType": {
- "f5BigIP": "f5BigIP",
- "vSBG_Alarms": "vSBG_Alarms",
- "vCTS_Alarms": "vCTS_Alarms"
- },
- "eventSeverity": {
- "NORMAL": "NORMAL",
- "not-NORMAL": "not-NORMAL",
- "OK": "OK",
- "WARNING": "WARNING",
- "MINOR": "MINOR",
- "MAJOR": "MAJOR",
- "CRITICAL": "CRITICAL"
- },
- "timeWindow": 0,
- "ageLimit": 1600,
- "outputEventName": {
- "": "",
- "ONSET": "ONSET",
- "ABATED": "ABATED"
- },
- "createClosedLoopEventId": {
- "Initial": "Initial",
- "Close": "Close"
- }
- },
"tca": {
"tname": "New_Set",
"tcaInt": "1",
diff --git a/src/test/resources/example/model-properties/tca/modelBpmn.json b/src/test/resources/example/model-properties/tca/modelBpmn.json
new file mode 100644
index 000000000..7358f9ade
--- /dev/null
+++ b/src/test/resources/example/model-properties/tca/modelBpmn.json
@@ -0,0 +1,20 @@
+{
+ "vesCollector": [
+ {
+ "id": "VesCollector_0orydnh",
+ "from": "StartEvent_1"
+ }
+ ],
+ "tca": [
+ {
+ "id": "TCA_1jy9to4",
+ "from": "VesCollector_0orydnh"
+ }
+ ],
+ "policy": [
+ {
+ "id": "Policy_0honxgv",
+ "from": "TCA_1jy9to4"
+ }
+ ]
+}
diff --git a/src/test/resources/example/model-properties/tca/modelBpmnProperties.json b/src/test/resources/example/model-properties/tca/modelBpmnProperties.json
new file mode 100644
index 000000000..0bfa78ce1
--- /dev/null
+++ b/src/test/resources/example/model-properties/tca/modelBpmnProperties.json
@@ -0,0 +1,150 @@
+{
+ "TCA_1jy9to4": {
+ "group1": [
+ {
+ "name": "tname",
+ "value": "group1"
+ },
+ {
+ "name": "tuuid",
+ "value": "f734f031-10aa-t8fb-330f-04dde2886325"
+ },
+ {
+ "name": "tcaPolId",
+ "value": "policy1"
+ },
+ {
+ "name": "eventName",
+ "value": "vFirewallBroadcastPackets"
+ },
+ {
+ "serviceConfigurations": [
+ [
+ "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated",
+ "LESS_OR_EQUAL",
+ "123",
+ "VM",
+ "ABATED"
+ ],
+ [
+ "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsDelta",
+ "GREATER_OR_EQUAL",
+ "123",
+ "VNF",
+ "ONSET"
+ ]
+ ]
+ }
+ ]
+ },
+ "Policy_0honxgv": {
+ "policy1": [
+ {
+ "name": "pname",
+ "value": "policy1"
+ },
+ {
+ "name": "pid",
+ "value": "0"
+ },
+ {
+ "name": "timeout",
+ "value": "345"
+ },
+ {
+ "policyConfigurations": [
+ [
+ {
+ "name": "maxRetries",
+ "value": [
+ "3"
+ ]
+ },
+ {
+ "name": "retryTimeLimit",
+ "value": [
+ "180"
+ ]
+ },
+ {
+ "name": "_id",
+ "value": [
+ "dGLuNqg"
+ ]
+ },
+ {
+ "name": "parentPolicy",
+ "value": [
+ ""
+ ]
+ },
+ {
+ "name": "targetResourceId",
+ "value": [
+ "resourceid"
+ ]
+ }
+ ]
+ ]
+ }
+ ]
+ },
+ "global": [
+ {
+ "name": "actionSet",
+ "value": [
+ "vnfRecipe"
+ ]
+ },
+ {
+ "name": "service",
+ "value": [
+ "serviceUUID"
+ ]
+ },
+ {
+ "name": "location",
+ "value": [
+ "SNDGCA64",
+ "ALPRGAED"
+ ]
+ },
+ {
+ "name": "vf",
+ "value": [
+ "f5213e3a-9191-4362-93b5-b67f8d770e44"
+ ]
+ },
+ {
+ "name": "location",
+ "value": [
+ "SNDGCA64",
+ "ALPRGAED",
+ "LSLEILAA",
+ "MDTWNJC1"
+ ]
+ }
+ ],
+ "shared": {
+ "byService": {
+ "": {
+ "vf": {
+ "": ""
+ },
+ "location": {
+ "": ""
+ },
+ "alarmCondition": {
+ "": ""
+ }
+ }
+ },
+ "byVf": {
+ "": {
+ "vfc": {
+ "": ""
+ }
+ }
+ }
+ }
+}
diff --git a/src/test/resources/example/modelBpmnProp.json b/src/test/resources/example/modelBpmnProp.json
index 26fd884d8..c8efff877 100644
--- a/src/test/resources/example/modelBpmnProp.json
+++ b/src/test/resources/example/modelBpmnProp.json
@@ -1,29 +1,13 @@
{
- "collector":
- [
- {
- "id": "Collector_",
- "from": "StartEvent_1"
- }
- ],
-
- "stringMatch":
- [
- {
- "id": "StringMatch_",
- "from": "Collector_"
- }
- ],
-
- "policy":
+ "policy":
[
{
"id": "Policy_",
- "from": "StringMatch_"
+ "from": "StartEvent_1"
}
],
- "tca":
+ "tca":
[
{
"id": "TCA_",
@@ -31,7 +15,7 @@
}
],
- "customType":
+ "customType":
[
{
"id": "CustomType_",
diff --git a/src/test/resources/example/modelBpmnPropForPolicy.json b/src/test/resources/example/modelBpmnPropForPolicy.json
index 243f7e807..de643a69a 100644
--- a/src/test/resources/example/modelBpmnPropForPolicy.json
+++ b/src/test/resources/example/modelBpmnPropForPolicy.json
@@ -1,14 +1,5 @@
{
- "collector":
- [
-
- ],
- "stringMatch":
- [
-
- ],
-
- "policy":
+ "policy":
[
{
"id": "Policy_",
@@ -16,7 +7,7 @@
}
],
- "tca":
+ "tca":
[
{
"id": "TCA_",
diff --git a/src/test/resources/example/modelProp.json b/src/test/resources/example/modelProp.json
index c2262f528..99f67b62e 100644
--- a/src/test/resources/example/modelProp.json
+++ b/src/test/resources/example/modelProp.json
@@ -1,17 +1,9 @@
{
- "Collector_":
- [
- {
- "name": "topicPublishes",
- "value": "DCAE-COLLECTOR-UCSNMP"
- }
- ],
-
- "global":
+ "global":
[
{
"name": "service",
- "value":
+ "value":
[
"0f983e18-4603-4bb4-a98c-e29691fb16a1"
]
@@ -19,7 +11,7 @@
{
"name": "vf",
- "value":
+ "value":
[
"6c7aaec2-59eb-41d9-8681-b7f976ab668d"
]
@@ -27,7 +19,7 @@
{
"name": "actionSet",
- "value":
+ "value":
[
"enbRecipe"
]
@@ -35,318 +27,16 @@
{
"name": "location",
- "value":
+ "value":
[
"SNDGCA64"
]
}
],
- "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": "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"
- ]
- }
- ]
- }
- ]
- ]
- }
- ]
- },
-
- "Policy_":
+ "Policy_":
{
- "Policy1":
+ "Policy1":
[
{
"name": "pname",
@@ -364,12 +54,12 @@
},
{
- "policyConfigurations":
+ "policyConfigurations":
[
[
{
"name": "recipe",
- "value":
+ "value":
[
"restart"
]
@@ -377,7 +67,7 @@
{
"name": "maxRetries",
- "value":
+ "value":
[
"3"
]
@@ -385,7 +75,7 @@
{
"name": "retryTimeLimit",
- "value":
+ "value":
[
"180"
]
@@ -393,7 +83,7 @@
{
"name": "_id",
- "value":
+ "value":
[
"n9bQ4t6"
]
@@ -401,14 +91,14 @@
{
"name": "parentPolicy",
- "value":
+ "value":
[
""
]
},
{
"name": "targetResourceId",
- "value":
+ "value":
[
"resource-id"
]
@@ -418,7 +108,7 @@
[
{
"name": "recipe",
- "value":
+ "value":
[
"rebuild"
]
@@ -426,7 +116,7 @@
{
"name": "maxRetries",
- "value":
+ "value":
[
"3"
]
@@ -434,7 +124,7 @@
{
"name": "retryTimeLimit",
- "value":
+ "value":
[
"180"
]
@@ -442,7 +132,7 @@
{
"name": "_id",
- "value":
+ "value":
[
"ItE5xKT"
]
@@ -450,7 +140,7 @@
{
"name": "parentPolicy",
- "value":
+ "value":
[
"n9bQ4t6"
]
@@ -458,7 +148,7 @@
{
"name": "parentPolicyConditions",
- "value":
+ "value":
[
"Failure_Retries",
"Failure_Timeout",
@@ -468,7 +158,7 @@
},
{
"name": "targetResourceId",
- "value":
+ "value":
[
"resource-id"
]
@@ -478,7 +168,7 @@
}
],
- "Policy2":
+ "Policy2":
[
{
"name": "pname",
@@ -496,12 +186,12 @@
},
{
- "policyConfigurations":
+ "policyConfigurations":
[
[
{
"name": "recipe",
- "value":
+ "value":
[
"restart"
]
@@ -509,7 +199,7 @@
{
"name": "maxRetries",
- "value":
+ "value":
[
"3"
]
@@ -517,7 +207,7 @@
{
"name": "retryTimeLimit",
- "value":
+ "value":
[
"180"
]
@@ -525,7 +215,7 @@
{
"name": "_id",
- "value":
+ "value":
[
"n9bQ4t6"
]
@@ -533,14 +223,14 @@
{
"name": "parentPolicy",
- "value":
+ "value":
[
""
]
},
{
"name": "targetResourceId",
- "value":
+ "value":
[
"resource-id"
]
@@ -550,7 +240,7 @@
[
{
"name": "recipe",
- "value":
+ "value":
[
"rebuild"
]
@@ -558,7 +248,7 @@
{
"name": "maxRetries",
- "value":
+ "value":
[
"3"
]
@@ -566,7 +256,7 @@
{
"name": "retryTimeLimit",
- "value":
+ "value":
[
"180"
]
@@ -574,7 +264,7 @@
{
"name": "_id",
- "value":
+ "value":
[
"ItE5xKT"
]
@@ -582,7 +272,7 @@
{
"name": "parentPolicy",
- "value":
+ "value":
[
"n9bQ4t6"
]
@@ -590,7 +280,7 @@
{
"name": "parentPolicyConditions",
- "value":
+ "value":
[
"Failure_Retries",
"Failure_Timeout",
@@ -600,7 +290,7 @@
},
{
"name": "targetResourceId",
- "value":
+ "value":
[
"resource-id"
]
@@ -611,9 +301,9 @@
]
},
- "TCA_":
+ "TCA_":
{
- "Narra":
+ "Narra":
[
{
"name": "tname",
@@ -661,7 +351,7 @@
},
{
- "serviceConfigurations":
+ "serviceConfigurations":
[
[
"PMRRCCONNESTABFAILCELLLATENCY",
@@ -680,7 +370,7 @@
}
],
- "Srini":
+ "Srini":
[
{
"name": "tname",
@@ -728,7 +418,7 @@
},
{
- "serviceConfigurations":
+ "serviceConfigurations":
[
[
"PMRRCCONNESTABFAILCELLLATENCY",
diff --git a/src/test/resources/example/sdc/sdcVFResources.json b/src/test/resources/example/sdc/sdcVFResources.json
index a8f32195d..62c58bee6 100644
--- a/src/test/resources/example/sdc/sdcVFResources.json
+++ b/src/test/resources/example/sdc/sdcVFResources.json
@@ -197,7 +197,7 @@
{
"uuid": "10b535db-b01b-4a4b-aeef-97423d2d2093",
"invariantUUID": "761ed279-e5ff-43e2-8a05-b160224b7f54",
- "name": "StringMatchingMS",
+ "name": "TcaMS",
"version": "0.1",
"toscaModelURL": "/sdc/v1/catalog/resources/10b535db-b01b-4a4b-aeef-97423d2d2093/toscaModel",
"category": "DCAE Component",
diff --git a/src/test/resources/example/tca-policy-req/blueprint-expected.yaml b/src/test/resources/example/tca-policy-req/blueprint-expected.yaml
new file mode 100644
index 000000000..cd8ebd8fd
--- /dev/null
+++ b/src/test/resources/example/tca-policy-req/blueprint-expected.yaml
@@ -0,0 +1,50 @@
+tosca_definitions_version: cloudify_dsl_1_3
+imports: ['http://www.getcloudify.org/spec/cloudify/3.4/types.yaml', 'https://nexus01.research.att.com:8443/repository/solutioning01-mte2-raw/type_files/docker/2.2.0/node-type.yaml',
+ 'https://nexus01.research.att.com:8443/repository/solutioning01-mte2-raw/type_files/relationship/1.0.0/node-type.yaml',
+ 'http://nexus01.research.att.com:8081/repository/solutioning01-mte2-raw/type_files/dmaap/dmaap_mr.yaml']
+inputs:
+ location_id: {type: string}
+ service_id: {type: string}
+node_templates:
+ cdap_host_host:
+ type: dcae.nodes.StreamingAnalytics.SelectedCDAPInfrastructure
+ properties:
+ location_id: {get_input: location_id}
+ scn_override: cdap_broker.solutioning-central.dcae.att.com
+ interfaces:
+ cloudify.interfaces.lifecycle: {}
+ tca_tca:
+ type: dcae.nodes.MicroService.cdap
+ properties:
+ app_config: {appDescription: DCAE Analytics Threshold Crossing Alert Application,
+ appName: dcae-tca, tcaSubscriberOutputStreamName: TCASubscriberOutputStream,
+ tcaVESAlertsTableName: TCAVESAlertsTable, tcaVESAlertsTableTTLSeconds: '1728000',
+ tcaVESMessageStatusTableName: TCAVESMessageStatusTable, tcaVESMessageStatusTableTTLSeconds: '86400',
+ thresholdCalculatorFlowletInstances: '2'}
+ app_preferences: {publisherContentType: application/json, publisherHostName: mrlocal-mtnjftle01.homer.att.com,
+ publisherHostPort: '3905', publisherMaxBatchSize: '10', publisherMaxRecoveryQueueSize: '100000',
+ publisherPollingInterval: '20000', publisherProtocol: https, publisherTopicName: com.att.dcae.dmaap.mtnje2.DcaeTestVESPub,
+ publisherUserName: m00502@tca.af.dcae.att.com, publisherUserPassword: Te5021abc,
+ subscriberConsumerGroup: OpenDCAE-c12, subscriberConsumerId: c12, subscriberContentType: application/json,
+ subscriberHostName: mrlocal-mtnjftle01.homer.att.com, subscriberHostPort: '3905',
+ subscriberMessageLimit: '-1', subscriberPollingInterval: '20000', subscriberProtocol: https,
+ subscriberTimeoutMS: '-1', subscriberTopicName: com.att.dcae.dmaap.mtnje2.DcaeTestVESSub,
+ subscriberUserName: m00502@tca.af.dcae.att.com, subscriberUserPassword: Te5021abc,
+ tca_policy: '{"cdap-tca-hi-lo_policy":{"domain":"measurementsForVfScaling","metricsPerEventName":[{"eventName":"vFirewallBroadcastPackets","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","controlLoopSchema":"VNF","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","controlLoopSchema":"VNF","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:
+ streams_publishes: []
+ streams_subscribes: []
+ jar_url: http://somejar
+ location_id: {get_input: location_id}
+ namespace: cdap_tca_hi_lo
+ programs:
+ - {program_id: TCAVESCollectorFlow, program_type: flows}
+ - {program_id: TCADMaaPMRSubscriberWorker, program_type: workers}
+ - {program_id: TCADMaaPMRPublisherWorker, program_type: workers}
+ service_component_type: cdap_app_tca
+ service_id: {get_input: service_id}
+ streamname: TCASubscriberOutputStream
+ relationships:
+ - {target: cdap_host_host, type: dcae.relationships.component_contained_in}
diff --git a/src/test/resources/example/tca-policy-req/blueprint-input.yaml b/src/test/resources/example/tca-policy-req/blueprint-input.yaml
new file mode 100644
index 000000000..95322258e
--- /dev/null
+++ b/src/test/resources/example/tca-policy-req/blueprint-input.yaml
@@ -0,0 +1,79 @@
+tosca_definitions_version: cloudify_dsl_1_3
+imports:
+- http://www.getcloudify.org/spec/cloudify/3.4/types.yaml
+- https://nexus01.research.att.com:8443/repository/solutioning01-mte2-raw/type_files/docker/2.2.0/node-type.yaml
+- https://nexus01.research.att.com:8443/repository/solutioning01-mte2-raw/type_files/relationship/1.0.0/node-type.yaml
+- http://nexus01.research.att.com:8081/repository/solutioning01-mte2-raw/type_files/dmaap/dmaap_mr.yaml
+inputs:
+ location_id:
+ type: string
+ service_id:
+ type: string
+node_templates:
+ cdap_host_host:
+ type: dcae.nodes.StreamingAnalytics.SelectedCDAPInfrastructure
+ properties:
+ location_id:
+ get_input: location_id
+ scn_override: cdap_broker.solutioning-central.dcae.att.com
+ interfaces:
+ cloudify.interfaces.lifecycle: {}
+ tca_tca:
+ type: dcae.nodes.MicroService.cdap
+ properties:
+ app_config:
+ appDescription: DCAE Analytics Threshold Crossing Alert Application
+ appName: dcae-tca
+ tcaSubscriberOutputStreamName: TCASubscriberOutputStream
+ tcaVESAlertsTableName: TCAVESAlertsTable
+ tcaVESAlertsTableTTLSeconds: '1728000'
+ tcaVESMessageStatusTableName: TCAVESMessageStatusTable
+ tcaVESMessageStatusTableTTLSeconds: '86400'
+ thresholdCalculatorFlowletInstances: '2'
+ app_preferences:
+ publisherContentType: application/json
+ publisherHostName: mrlocal-mtnjftle01.homer.att.com
+ publisherHostPort: '3905'
+ publisherMaxBatchSize: '10'
+ publisherMaxRecoveryQueueSize: '100000'
+ publisherPollingInterval: '20000'
+ publisherProtocol: https
+ publisherTopicName: com.att.dcae.dmaap.mtnje2.DcaeTestVESPub
+ publisherUserName: m00502@tca.af.dcae.att.com
+ publisherUserPassword: Te5021abc
+ subscriberConsumerGroup: OpenDCAE-c12
+ subscriberConsumerId: c12
+ subscriberContentType: application/json
+ subscriberHostName: mrlocal-mtnjftle01.homer.att.com
+ subscriberHostPort: '3905'
+ subscriberMessageLimit: '-1'
+ subscriberPollingInterval: '20000'
+ subscriberProtocol: https
+ subscriberTimeoutMS: '-1'
+ subscriberTopicName: com.att.dcae.dmaap.mtnje2.DcaeTestVESSub
+ subscriberUserName: m00502@tca.af.dcae.att.com
+ subscriberUserPassword: Te5021abc
+ tca_policy:
+ artifact_name: dcae-analytics-tca
+ artifact_version: 1.0.0
+ connections:
+ streams_publishes: []
+ streams_subscribes: []
+ jar_url: http://somejar
+ location_id:
+ get_input: location_id
+ namespace: cdap_tca_hi_lo
+ programs:
+ - program_id: TCAVESCollectorFlow
+ program_type: flows
+ - program_id: TCADMaaPMRSubscriberWorker
+ program_type: workers
+ - program_id: TCADMaaPMRPublisherWorker
+ program_type: workers
+ service_component_type: cdap_app_tca
+ service_id:
+ get_input: service_id
+ streamname: TCASubscriberOutputStream
+ relationships:
+ - target: cdap_host_host
+ type: dcae.relationships.component_contained_in
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
new file mode 100644
index 000000000..ce230918f
--- /dev/null
+++ b/src/test/resources/example/tca-policy-req/tca-policy-expected.json
@@ -0,0 +1,35 @@
+{
+ "cdap-tca-hi-lo_policy": {
+ "domain": "measurementsForVfScaling",
+ "metricsPerEventName": [
+ {
+ "eventName": "vFirewallBroadcastPackets",
+ "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",
+ "controlLoopSchema": "VNF",
+ "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",
+ "controlLoopSchema": "VNF",
+ "version": "1.0.2",
+ "fieldPath": "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsDelta",
+ "thresholdValue": 123,
+ "direction": "GREATER_OR_EQUAL",
+ "severity": "MAJOR",
+ "closedLoopEventStatus": "ONSET"
+ }
+ ]
+ }
+ ]
+ }
+}
diff --git a/src/test/resources/example/templateProp.json b/src/test/resources/example/templateProp.json
deleted file mode 100644
index bbbfca598..000000000
--- a/src/test/resources/example/templateProp.json
+++ /dev/null
@@ -1,10 +0,0 @@
-{
- "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:\/\/127.0.0.1\/1607_prod\/type_files\/cdap_app.yaml\r\n\r\nnode_templates:\r\n SM:\r\n type: dcae.nodes.cdap_app\r\n properties:\r\n service_name: \"cdap-string-matching\"\r\n deployment_JSON: |-\r\n {\r\n \"clusterService\": {\"$ref\": \"\/services\/vm-cdap-cluster-central\/instances\/rdm2-central\"},\r\n \"$class\": \"com.att.ecomp.dcae.controller.service.cdap.CdapServiceInstance\",\r\n \"namespace\": \"<%= dcae_target_name %>\",\r\n \"appNames\": [ \"SM\" ],\r\n \"flowNames\": [ \"SM.SimpleFlow\" ],\r\n \"apps\": {\r\n \"SM\": {\r\n \"jarFile\": \"\/opt\/app\/dcae-analytics-closed-loop-stringmatching-jars\/lib\/CdapClosedLoopSnmpTrapStringMatcher-0.1.jar\",\r\n \"artifactName\": \"CdapClosedLoopSnmpTrapStringMatcher\",\r\n \"version\": \"0.1\"\r\n }\r\n },\r\n \r\n \"configuration\": {\r\n \"$class\": \"com.att.ecomp.dcae.clamp.common.StringMatchingConfiguration\",\r\n \"messageReaderConsumerID\":\"4699\",\r\n \"messageReaderConsumerGroup\": \"<%= dcae_target_name %>\",\r\n \"aaiURL\": \"http:\/\/REPLACE_THIS_WITH_IP_PORT_FROM_BOOTED_DOCKER\/tenant\/\",\r\n \"closedLoopEventClient\": \"configuration.dcae.microservice.stringmatcher.xml\",\r\n \"dcae_target_name\": \"<%= dcae_target_name %>\",\r\n \"dcae_target_type\": \"VM\",\r\n \r\n \"serviceConfigurations\": {}\r\n }\r\n }}}"
- ]
- }
- ]
-}
diff --git a/src/test/resources/example/templatePropForTca.json b/src/test/resources/example/templatePropForTca.json
deleted file mode 100644
index 9f1ce1dac..000000000
--- a/src/test/resources/example/templatePropForTca.json
+++ /dev/null
@@ -1,10 +0,0 @@
-{
- "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
diff --git a/src/test/resources/example/xsl-validation/modelBpmn.xml b/src/test/resources/example/xsl-validation/modelBpmn.xml
index 3021902c7..d80c89e3e 100644
--- a/src/test/resources/example/xsl-validation/modelBpmn.xml
+++ b/src/test/resources/example/xsl-validation/modelBpmn.xml
@@ -7,18 +7,10 @@
<bpmn:startEvent id="StartEvent_1">
<bpmn:outgoing>SequenceFlow_1nvvr00</bpmn:outgoing>
</bpmn:startEvent>
- <bpmn:stringMatch id="StringMatch_0tw2y4f">
- <bpmn:incoming>SequenceFlow_0qf2552</bpmn:incoming>
- <bpmn:outgoing>SequenceFlow_1a2oxpd</bpmn:outgoing>
- </bpmn:stringMatch>
<bpmn:vesCollector id="VesCollector_1kxjxy6" name="AAAAA">
<bpmn:incoming>SequenceFlow_0jeu0gv</bpmn:incoming>
<bpmn:outgoing>SequenceFlow_15gkgs5</bpmn:outgoing>
</bpmn:vesCollector>
- <bpmn:collector id="Collector_">
- <bpmn:incoming>SequenceFlow_1nvvr00</bpmn:incoming>
- <bpmn:outgoing>SequenceFlow_0qf2552</bpmn:outgoing>
- </bpmn:collector>
<bpmn:tCA id="TCA_09hcdsx">
<bpmn:incoming>SequenceFlow_15gkgs5</bpmn:incoming>
<bpmn:outgoing>SequenceFlow_0ev75ss</bpmn:outgoing>
@@ -31,15 +23,11 @@
<bpmn:incoming>SequenceFlow_103hvmr</bpmn:incoming>
</bpmn:endEvent>
<bpmn:holmes id="Holmes_1fzdqp9">
- <bpmn:incoming>SequenceFlow_1a2oxpd</bpmn:incoming>
+ <bpmn:incoming>SequenceFlow_1nvvr00</bpmn:incoming>
<bpmn:outgoing>SequenceFlow_0jeu0gv</bpmn:outgoing>
</bpmn:holmes>
<bpmn:sequenceFlow id="SequenceFlow_1nvvr00"
- sourceRef="StartEvent_1" targetRef="Collector_" />
- <bpmn:sequenceFlow id="SequenceFlow_0qf2552"
- sourceRef="Collector_" targetRef="StringMatch_0tw2y4f" />
- <bpmn:sequenceFlow id="SequenceFlow_1a2oxpd"
- sourceRef="StringMatch_0tw2y4f" targetRef="Holmes_1fzdqp9" />
+ sourceRef="StartEvent_1" targetRef="Holmes_1fzdqp9" />
<bpmn:sequenceFlow id="SequenceFlow_0jeu0gv"
sourceRef="Holmes_1fzdqp9" targetRef="VesCollector_1kxjxy6" />
<bpmn:sequenceFlow id="SequenceFlow_15gkgs5"
@@ -55,17 +43,10 @@
bpmnElement="StartEvent_1">
<dc:Bounds x="50" y="162" width="36" height="36" />
</bpmndi:BPMNShape>
- <bpmndi:BPMNShape id="StringMatch_0tw2y4f_di"
- bpmnElement="StringMatch_0tw2y4f">
- <dc:Bounds x="324" y="192" width="120" height="80" />
- </bpmndi:BPMNShape>
<bpmndi:BPMNShape id="VesCollector_1kxjxy6_di"
bpmnElement="VesCollector_1kxjxy6">
<dc:Bounds x="492" y="192" width="120" height="80" />
</bpmndi:BPMNShape>
- <bpmndi:BPMNShape id="Collector__di" bpmnElement="Collector_">
- <dc:Bounds x="159" y="206" width="120" height="80" />
- </bpmndi:BPMNShape>
<bpmndi:BPMNShape id="TCA_09hcdsx_di" bpmnElement="TCA_09hcdsx">
<dc:Bounds x="651" y="192" width="120" height="80" />
</bpmndi:BPMNShape>
diff --git a/src/test/resources/example/xsl-validation/modelBpmnForVerif.json b/src/test/resources/example/xsl-validation/modelBpmnForVerif.json
index 40afe179e..567a69db3 100644
--- a/src/test/resources/example/xsl-validation/modelBpmnForVerif.json
+++ b/src/test/resources/example/xsl-validation/modelBpmnForVerif.json
@@ -1,16 +1,4 @@
{
- "collector": [
- {
- "id": "Collector_",
- "from": "StartEvent_1"
- }
- ],
- "stringMatch": [
- {
- "id": "StringMatch_0tw2y4f",
- "from": "Collector_"
- }
- ],
"policy": [
{
"id": "Policy_",
@@ -32,7 +20,7 @@
"holmes": [
{
"id": "Holmes_1fzdqp9",
- "from": "StringMatch_0tw2y4f"
+ "from": "StartEvent_1"
}
]
}