aboutsummaryrefslogtreecommitdiffstats
path: root/src/test/resources/example
diff options
context:
space:
mode:
authorChrisC <cc697w@intl.att.com>2017-06-21 02:38:57 -0700
committerChrisC <cc697w@intl.att.com>2017-06-21 02:58:20 -0700
commit5e9feb2a8e360b82dc2b6e4145e0fd847d2924ce (patch)
tree0c9e78d462252e5c41c977476c9dee26b1b0069b /src/test/resources/example
parent4d8ae6fe89a9ed6cd9a64c3276d2dc5a48bbcc34 (diff)
[CLAMP-1] Initial ONAP CLAMP seed code commit
Change-Id: I2e8070a590618a06070f393d7b2c011029af5e8a Signed-off-by: ChrisC <cc697w@intl.att.com>
Diffstat (limited to 'src/test/resources/example')
-rw-r--r--src/test/resources/example/modelBpmn.xml110
-rw-r--r--src/test/resources/example/modelBpmnProp.json1
-rw-r--r--src/test/resources/example/modelProp.json369
-rw-r--r--src/test/resources/example/templateProp.json10
4 files changed, 490 insertions, 0 deletions
diff --git a/src/test/resources/example/modelBpmn.xml b/src/test/resources/example/modelBpmn.xml
new file mode 100644
index 00000000..d84f7904
--- /dev/null
+++ b/src/test/resources/example/modelBpmn.xml
@@ -0,0 +1,110 @@
+<!--
+ ============LICENSE_START=======================================================
+ ONAP CLAMP
+ ================================================================================
+ Copyright (C) 2017 AT&T Intellectual Property. All rights
+ reserved.
+ ================================================================================
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ ============LICENSE_END============================================
+ ===================================================================
+ ECOMP is a trademark and service mark of AT&T Intellectual Property.
+ -->
+
+<bpmn:definitions xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id="Definitions_1" targetNamespace="http://bpmn.io/schema/bpmn">
+ <bpmn:process id="Process_1" isExecutable="false">
+ <bpmn:startEvent id="StartEvent_1">
+ <bpmn:outgoing>SequenceFlow_0ex3w2w</bpmn:outgoing>
+ </bpmn:startEvent>
+ <bpmn:collector id="Collector_">
+ <bpmn:incoming>SequenceFlow_0ex3w2w</bpmn:incoming>
+ <bpmn:outgoing>SequenceFlow_185iyma</bpmn:outgoing>
+ </bpmn:collector>
+ <bpmn:stringMatch id="StringMatch_">
+ <bpmn:incoming>SequenceFlow_185iyma</bpmn:incoming>
+ <bpmn:outgoing>SequenceFlow_092429t</bpmn:outgoing>
+ </bpmn:stringMatch>
+ <bpmn:policy id="Policy_">
+ <bpmn:incoming>SequenceFlow_092429t</bpmn:incoming>
+ <bpmn:outgoing>SequenceFlow_0hghw7g</bpmn:outgoing>
+ </bpmn:policy>
+ <bpmn:tCA id="TCA_">
+ <bpmn:incoming>SequenceFlow_08j3fsl</bpmn:incoming>
+ <bpmn:outgoing>SequenceFlow_0hghw7g</bpmn:outgoing>
+ </bpmn:tCA>
+ <bpmn:endEvent id="EndEvent_0lg612k">
+ <bpmn:incoming>SequenceFlow_0hghw7g</bpmn:incoming>
+ </bpmn:endEvent>
+ <bpmn:sequenceFlow id="SequenceFlow_0ex3w2w" sourceRef="StartEvent_1" targetRef="Collector_" />
+ <bpmn:sequenceFlow id="SequenceFlow_185iyma" sourceRef="Collector_" targetRef="StringMatch_" />
+ <bpmn:sequenceFlow id="SequenceFlow_092429t" sourceRef="StringMatch_" targetRef="Policy_" />
+ <bpmn:sequenceFlow id="SequenceFlow_0hghw7g" sourceRef="Policy_" targetRef="EndEvent_0lg612k" />
+ </bpmn:process>
+ <bpmndi:BPMNDiagram id="BPMNDiagram_1">
+ <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_1">
+ <bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
+ <dc:Bounds x="60" y="25" width="36" height="36" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="33" y="61" width="90" height="20" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNShape id="Collector__di" bpmnElement="Collector_">
+ <dc:Bounds x="169" y="140" width="120" height="80" />
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNShape id="StringMatch__di" bpmnElement="StringMatch_">
+ <dc:Bounds x="578" y="140" width="120" height="80" />
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNShape id="Policy__di" bpmnElement="Policy_">
+ <dc:Bounds x="768" y="140" width="100" height="80" />
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNShape id="EndEvent_0lg612k_di" bpmnElement="EndEvent_0lg612k">
+ <dc:Bounds x="949" y="162" width="36" height="36" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="922" y="198" width="90" height="20" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNEdge id="SequenceFlow_0ex3w2w_di" bpmnElement="SequenceFlow_0ex3w2w">
+ <di:waypoint xsi:type="dc:Point" x="96" y="43" />
+ <di:waypoint xsi:type="dc:Point" x="128" y="43" />
+ <di:waypoint xsi:type="dc:Point" x="128" y="180" />
+ <di:waypoint xsi:type="dc:Point" x="169" y="180" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="83" y="101.5" width="90" height="20" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNEdge>
+ <bpmndi:BPMNEdge id="SequenceFlow_185iyma_di" bpmnElement="SequenceFlow_185iyma">
+ <di:waypoint xsi:type="dc:Point" x="500" y="180" />
+ <di:waypoint xsi:type="dc:Point" x="578" y="180" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="494" y="170" width="90" height="20" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNEdge>
+ <bpmndi:BPMNEdge id="SequenceFlow_092429t_di" bpmnElement="SequenceFlow_092429t">
+ <di:waypoint xsi:type="dc:Point" x="698" y="180" />
+ <di:waypoint xsi:type="dc:Point" x="768" y="180" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="688" y="170" width="90" height="20" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNEdge>
+ <bpmndi:BPMNEdge id="SequenceFlow_0hghw7g_di" bpmnElement="SequenceFlow_0hghw7g">
+ <di:waypoint xsi:type="dc:Point" x="868" y="180" />
+ <di:waypoint xsi:type="dc:Point" x="907" y="180" />
+ <di:waypoint xsi:type="dc:Point" x="907" y="180" />
+ <di:waypoint xsi:type="dc:Point" x="949" y="180" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="862" y="170" width="90" height="20" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNEdge>
+ </bpmndi:BPMNPlane>
+ </bpmndi:BPMNDiagram>
+</bpmn:definitions>
diff --git a/src/test/resources/example/modelBpmnProp.json b/src/test/resources/example/modelBpmnProp.json
new file mode 100644
index 00000000..140a5679
--- /dev/null
+++ b/src/test/resources/example/modelBpmnProp.json
@@ -0,0 +1 @@
+{"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
diff --git a/src/test/resources/example/modelProp.json b/src/test/resources/example/modelProp.json
new file mode 100644
index 00000000..831bf2d7
--- /dev/null
+++ b/src/test/resources/example/modelProp.json
@@ -0,0 +1,369 @@
+{
+ "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_":[
+ [
+ {
+ "name":"topicPublishes",
+ "value":"DCAE-CL-EVENT"
+ }
+ ],
+ {
+ "serviceConfigurations":[
+ [
+ {
+ "name":"aaiMatchingFields",
+ "value":[
+ "Identiy"
+ ]
+ },
+ {
+ "name":"aaiSendFields",
+ "value":[
+ "VMID"
+ ]
+ },
+ {
+ "name":"groupNumber",
+ "value":[
+ "1"
+ ]
+ },
+ {
+ "name":"timeWindow",
+ "value":[
+ "1"
+ ]
+ },
+ {
+ "name":"ageLimit",
+ "value":[
+ "1600"
+ ]
+ },
+ {
+ "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"
+ ]
+ }
+ ]
+ }
+ ],
+ [
+ {
+ "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":"eventSeverity",
+ "value":[
+ "NORMAL"
+ ]
+ },
+ {
+ "name":"eventSourceType",
+ "value":[
+ "f5BigIP"
+ ]
+ }
+ ]
+ }
+ ]
+ ]
+ }
+ ],
+ "Policy_":[
+ [
+ {
+ "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/templateProp.json b/src/test/resources/example/templateProp.json
new file mode 100644
index 00000000..bbbfca59
--- /dev/null
+++ b/src/test/resources/example/templateProp.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:\/\/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 }}}"
+ ]
+ }
+ ]
+}