summaryrefslogtreecommitdiffstats
path: root/public/cypress
diff options
context:
space:
mode:
authorStone, Avi (as206k) <as206k@att.com>2018-06-03 13:12:12 +0300
committerAvi Stone <as206k@att.com>2018-06-03 11:56:49 +0000
commit548c5a220333c7cd666b861e737bff0b45461f18 (patch)
tree13c60b67291bd8bada498ad73c02a9e35afb5c9e /public/cypress
parent193095b01daf094c78f7fafacdf1c1cc31f290fe (diff)
Update FE project
Update FE to latest version so that fe can run on docker Change-Id: I9c5dee756b567dbe64fac6d3d6fd89362813bdcc Issue-ID: SDC-1359 Signed-off-by: Stone, Avi (as206k) <as206k@att.com>
Diffstat (limited to 'public/cypress')
-rw-r--r--public/cypress/fixtures/createMcRes.json69
-rw-r--r--public/cypress/fixtures/createMcResWithBooleanDDL.json1060
-rw-r--r--public/cypress/fixtures/doneSaveEditSimpleCopy.json21
-rw-r--r--public/cypress/fixtures/doneSaveSimpleLogText.json26
-rw-r--r--public/cypress/fixtures/doneSaveSimpleMap.json29
-rw-r--r--public/cypress/integration/e2e/e2eWithIntegration-spec.ts98
-rw-r--r--public/cypress/integration/mocks/errorDialog-spec.ts10
-rw-r--r--public/cypress/integration/mocks/generalPage-spec.ts108
-rw-r--r--public/cypress/integration/mocks/homePage-spec.ts75
-rw-r--r--public/cypress/integration/mocks/importPage-spec.ts19
-rw-r--r--public/cypress/integration/mocks/ruleEngine-spec.ts643
-rw-r--r--public/cypress/support/generalCommands.ts16
-rw-r--r--public/cypress/support/homeCommands.ts28
-rw-r--r--public/cypress/support/index.js28
-rw-r--r--public/cypress/support/ruleEngineCommands.ts85
15 files changed, 2182 insertions, 133 deletions
diff --git a/public/cypress/fixtures/createMcRes.json b/public/cypress/fixtures/createMcRes.json
index ada82bc..e764c18 100644
--- a/public/cypress/fixtures/createMcRes.json
+++ b/public/cypress/fixtures/createMcRes.json
@@ -1,5 +1,5 @@
{
- "vfcmt":{
+ "vfcmt": {
"uuid": "6d436c07-8006-4335-8c84-d65b4740f8d6"
},
"cdump": {
@@ -965,7 +965,72 @@
"type": { "name": "tosca.dcae.nodes.cdapApp.Enrich" }
}
],
- "relations": [],
+ "relations": [
+ {
+ "n1": "n.1520766712715.7",
+ "name1": "foi",
+ "n2": "n.1520766711386.5",
+ "name2": "topic1",
+ "meta": {
+ "n1": "n.1520766712715.7",
+ "p1": "stream_publish_0",
+ "relationship": ["foi", null, "stream_publish_0"],
+ "n2": "n.1520766711386.5",
+ "p2": "topic"
+ }
+ },
+ {
+ "n1": "n.1520766712715.7",
+ "name1": "foi",
+ "n2": "n.1520766712709.6",
+ "name2": "feed0",
+ "meta": {
+ "n1": "n.1520766712715.7",
+ "p1": "stream_publish_0",
+ "n2": "n.1520766712709.6",
+ "p2": "feed",
+ "relationship": [
+ "foi",
+ "dcae.relationships.publish_files",
+ "stream_publish_0"
+ ]
+ }
+ },
+ {
+ "n1": "n.1520766711370.3",
+ "name1": "componentSpec_docker_map",
+ "n2": "n.1520766711379.4",
+ "name2": "feed0",
+ "meta": {
+ "n1": "n.1520766711370.3",
+ "p1": "stream_subscribe_0",
+ "n2": "n.1520766711379.4",
+ "p2": "feed",
+ "relationship": [
+ "componentSpec_docker_map",
+ "dcae.relationships.subscribe_to_files",
+ "stream_subscribe_0"
+ ]
+ }
+ },
+ {
+ "n1": "n.1520766711370.3",
+ "name1": "componentSpec_docker_map",
+ "n2": "n.1520766711386.5",
+ "name2": "topic1",
+ "meta": {
+ "n1": "n.1520766711370.3",
+ "p1": "stream_publish_0",
+ "n2": "n.1520766711386.5",
+ "p2": "topic",
+ "relationship": [
+ "componentSpec_docker_map",
+ "dcae.relationships.publish_events",
+ "stream_publish_0"
+ ]
+ }
+ }
+ ],
"inputs": [],
"outputs": []
}
diff --git a/public/cypress/fixtures/createMcResWithBooleanDDL.json b/public/cypress/fixtures/createMcResWithBooleanDDL.json
new file mode 100644
index 0000000..3fcd512
--- /dev/null
+++ b/public/cypress/fixtures/createMcResWithBooleanDDL.json
@@ -0,0 +1,1060 @@
+{
+ "vfcmt": {
+ "uuid": "6d436c07-8006-4335-8c84-d65b4740f8d6"
+ },
+ "cdump": {
+ "cid": "47908e78-9893-4f18-b767-ea7131dd8de7",
+ "version": 0,
+ "nodes": [
+ {
+ "name": "map",
+ "description":
+ "/sdc/v1/catalog/resources/e45ec9d7-01df-4cb1-896f-aff2a6ca5a8b/artifacts/6134d7c8-f9af-4562-bf8d-e60039ec58bb",
+ "id": "e45ec9d7-01df-4cb1-896f-aff2a6ca5a8b",
+ "nid": "n.1517823219961.0",
+ "capabilities": [
+ {
+ "name": "stream_subscribe_0",
+ "type": {
+ "name": "dcae.capabilities.stream.subscribe",
+ "id": "template.yaml/dcae.capabilities.stream.subscribe"
+ },
+ "properties": [
+ {
+ "assignment": { "value": "Map_input" },
+ "name": "format",
+ "type": "string"
+ },
+ {
+ "assignment": { "value": "IGNORE" },
+ "name": "route",
+ "type": "string"
+ },
+ {
+ "assignment": { "value": "1.0.0" },
+ "name": "version",
+ "type": "string"
+ }
+ ]
+ },
+ {
+ "name": "feature",
+ "type": {
+ "name": "tosca.capabilities.Node",
+ "id": "template.yaml/tosca.capabilities.Node"
+ }
+ }
+ ],
+ "requirements": [
+ {
+ "capability": {
+ "name": "dcae.capabilities.stream.subscribe",
+ "id": "template.yaml/dcae.capabilities.stream.subscribe"
+ },
+ "node_filter": {
+ "capabilities": [
+ {
+ "dcae.capabilities.stream.subscribe": {
+ "properties": [
+ { "format": [{ "equal": "VES_specification" }] },
+ { "version": [{ "equal": "5.28.4" }] }
+ ]
+ }
+ }
+ ]
+ },
+ "name": "stream_publish_0",
+ "relationship": { "type": "dcae.relationships.rework_connected_to" }
+ },
+ {
+ "capability": {
+ "name": "dcae.capabilities.cdapHost",
+ "id": "template.yaml/dcae.capabilities.cdapHost"
+ },
+ "name": "host",
+ "relationship": {
+ "type": "dcae.relationships.component_contained_in"
+ }
+ },
+ {
+ "capability": {
+ "name": "dcae.capabilities.composition.host",
+ "id": "template.yaml/dcae.capabilities.composition.host"
+ },
+ "name": "composition"
+ },
+ {
+ "occurrences": [0, "UNBOUNDED"],
+ "node": "tosca.nodes.Root",
+ "capability": {
+ "name": "tosca.capabilities.Node",
+ "id": "template.yaml/tosca.capabilities.Node"
+ },
+ "name": "dependency",
+ "relationship": { "type": "tosca.relationships.DependsOn" }
+ }
+ ],
+ "properties": [
+ {
+ "assignment": {
+ "value": ""
+ },
+ "name": "valueUndefined",
+ "description": "valueUndefined",
+ "type": "boolean",
+ "constraints": [
+ {
+ "valid_values": ["single", "multiple"]
+ }
+ ]
+ },
+ {
+ "assignment": {
+ "value": "false"
+ },
+ "name": "valueFalse",
+ "description": "DDL value false",
+ "type": "boolean",
+ "constraints": [
+ {
+ "valid_values": ["single", "multiple"]
+ }
+ ]
+ },
+ {
+ "assignment": {
+ "value": "true"
+ },
+ "name": "valueTrue",
+ "description": "DDL value true",
+ "type": "boolean",
+ "constraints": [
+ {
+ "valid_values": ["single", "multiple"]
+ }
+ ]
+ },
+ {
+ "assignment": {
+ "value": "multiple"
+ },
+ "name": "mappingType",
+ "description":
+ "CSV to VES mapping, from the file to generate multiple events or single event",
+ "type": "string",
+ "constraints": [
+ {
+ "valid_values": ["single", "multiple"]
+ }
+ ]
+ },
+ {
+ "assignment": {
+ "value":
+ "com.att.gfp.dcae.eventProcessor.Catalog,com.att.ecomp.dcae.eventproc.cdap.common.processors.Catalog"
+ },
+ "name": "defaultCatalogs",
+ "type": "string"
+ },
+ {
+ "assignment": { "value": { "get_input": "defaultObjects" } },
+ "name": "defaultObjects",
+ "type": "string"
+ },
+ {
+ "assignment": { "value": "Map Microservice" },
+ "name": "description",
+ "type": "string"
+ },
+ {
+ "assignment": { "value": { "get_input": "dmaapConsumerGrp" } },
+ "name": "dmaapConsumerGrp",
+ "type": "string"
+ },
+ {
+ "assignment": { "value": "" },
+ "name": "eventFactory",
+ "type": "string"
+ },
+ {
+ "assignment": {
+ "value":
+ "{\"processing\":[{\"phase\":\"snmp_map\",\"filter\":{\"class\":\"StartsWith\",\"string\":\"${notify OID}\",\"value\":\".1.3.6.1.4.1.26878.200.2\"},\"processors\":[{\"class\":\"SnmpConvertor\",\"array\":\"varbinds\",\"keycolumn\":\"varbind_oid\",\"datacolumn\":\"varbind_value\"},{\"class\":\"RunPhase\",\"phase\":\"vPCRF_MOGParsingPhase\"}]},{\"phase\":\"vPCRF_MOGParsingPhase\",\"processors\":[{\"class\":\"MapAlarmValues\",\"field\":\"_1_3_6_1_4_1_26878_100_1_1_9\",\"toField\":\"eventGroup\",\"map\":{\"LinkDown\":\"LinkUp_Down\",\"LinkUp\":\"LinkUp_Down\",\"HIGH CPU USAGE Alert\":\"HighCpuUsageAlert-Clear\",\"HIGH CPU USAGE Clear\":\"HighCpuUsageAlert-Clear\",\"ProcessDown\":\"ProcessUp-Down\",\"ProcessUp\":\"ProcessUp-Down\",\"HighLoadAlert\":\"HighLoadAlert-Clear\",\"HighLoadClear\":\"HighLoadAlert-Clear\",\"DiskFullAlert\":\"DiskFullAlert-Clear\",\"DiskFullClear\":\"DiskFullAlert-Clear\",\"LowSwapAlert\":\"LowMemoryAlert-Clear\",\"LowSwapClear\":\"LowMemoryAlert-Clear\",\"LowMemoryAlert\":\"LowMemoryAlert-Clear\",\"LowMemoryClear\":\"LowMemoryAlert-Clear\",\"ApplicationStartError\":\"ApplicationStartError\",\"LicenseUsageThresholdExceeded \":\"LicenseUsageThresholdExceeded \",\"LicensedSessionCreation\":\"LicensedSessionCreation\",\"InvalidLicense\":\"InvalidLicense\",\"PoliciesNotConfigured\":\"PoliciesNotConfigured\",\"DiameterAllPeersDown\":\"DiameterAllPeersUp-Down\",\"DiameterAllPeersUp\":\"DiameterAllPeersUp-Down\",\"HA Failover\":\"HAFailover\",\"GR Failover\":\"GRFailover\",\"All DB Member of replica set Down\":\"AllDBMemberReplicaSetUp-Down\",\"All DB Member of replica set Up\":\"AllDBMemberReplicaSetUp-Down\",\"No Primary DB Member Found\":\"PrimaryDBMemberFound-NotFound\",\"Primary DB Member Found\":\"PrimaryDBMemberFound-NotFound\",\"Secondary DB Member Down\":\"SecondaryDBMemberUp-Down\",\"Secondary DB Member Up\":\"SecondaryDBMemberUp-Down\",\"Arbiter Down\":\"ArbiterUp-Down\",\"Arbiter Up\":\"ArbiterUp-Down\",\"DB resync is needed\":\"DBResyncNeeded-NotNeeded\",\"DB resync is not needed\":\"DBResyncNeeded-NotNeeded\",\"Config Server Down\":\"ConfigServerUp-Down\",\"Config Server Up\":\"ConfigServerUp-Down\",\"VM Down\":\"VMUp-Down\",\"VM Up\":\"VMUp-Down\",\"QNS Process Down\":\"QNSProcessUp-Down\",\"QNS Process Up\":\"QNSProcessUp-Down\",\"VirtualInterface Down\":\"VirtualInterfaceUp-Down\",\"VirtualInterface Up\":\"VirtualInterfaceUp-Down\",\"MemcachedConnectError\":\"MemcachedConnectError\",\"PolicyConfiguration\":\"PolicyConfiguration\",\"DiameterPeerDown\":\"DiameterPeerDown\",\"DeveloperMode\":\"DeveloperMode\",\"ZeroMQConnectionError\":\"ZeroMQConnectionError\",\"Admin User Logged In\":\"AdminUserLoggedIn\"}},{\"class\":\"Set\",\"updates\":{\"event.commonEventHeader.domain\":\"fault\",\"event.commonEventHeader.version\":3,\"event.faultFields.faultFieldsVersion\":2.0,\"event.faultFields.vfStatus\":\"Active\",\"event.commonEventHeader.priority\":\"Normal\",\"event.commonEventHeader.sequence\":0,\"event.faultFields.alarmCondition\":\"${_1_3_6_1_4_1_26878_100_1_1_9}\",\"event.faultFields.alarmAdditionalInformation[0].name\":\"EventGroup\",\"event.faultFields.alarmAdditionalInformation[0].value\":\"${eventGroup}\",\"event.faultFields.alarmAdditionalInformation[1].name\":\"OID1\",\"event.faultFields.alarmAdditionalInformation[1].value\":\"${varbinds[0].varbind_value}\"}},{\"class\":\"Set\",\"updates\":{\"event.commonEventHeader.startEpochMicrosec\":\"%{now.ms}\"}},{\"class\":\"MapAlarmValues\",\"field\":\"_1_3_6_1_4_1_26878_100_1_4\",\"default\":\"WARNING\",\"toField\":\"event.faultFields.eventSeverity\",\"map\":{\"0\":\"CRITICAL\",\"1\":\"CRITICAL\",\"2\":\"MAJOR\",\"3\":\"MAJOR\",\"4\":\"MINOR\",\"5\":\"WARNING\",\"6\":\"WARNING\",\"7\":\"WARNING\",\"8\":\"WARNING\",\"9\":\"NORMAL\"}},{\"class\":\"MapAlarmValues\",\"field\":\"_1_3_6_1_4_1_26878_100_1_3\",\"default\":\"\",\"toField\":\"event.faultFields.specificProblem\",\"map\":{\"0\":\"Hardware\",\"1\":\"Networking\",\"2\":\"Virtualization\",\"3\":\"Operating System\",\"4\":\"Application\",\"5\":\"Process\"}},{\"class\":\"Set\",\"updates\":{\"event.commonEventHeader.lastEpochMicrosec\":\"${event.commonEventHeader.startEpochMicrosec}\"}},{\"class\":\"ConvertFieldTypes\",\"updates\":{\"event.commonEventHeader.startEpochMicrosec\":\"long\",\"event.commonEventHeader.lastEpochMicrosec\":\"long\"}}]},{\"phase\":\"vPCRF_MOGParsingPhase\",\"filter\":{\"class\":\"OneOf\",\"field\":\"_1_3_6_1_4_1_26878_100_1_1_9\",\"values\":[\"DiskFullAlert\",\"LowSwapAlert\",\"LowMemoryAlert\"]},\"processors\":[{\"class\":\"Set\",\"updates\":{\"event.faultFields.eventSeverity\":\"MAJOR\"}}]},{\"phase\":\"vPCRF_MOGParsingPhase\",\"filter\":{\"class\":\"Contains\",\"string\":\"${_1_3_6_1_4_1_26878_100_1_1_10}\",\"value\":\"mog\"},\"processors\":[{\"class\":\"ExtractText\",\"field\":\"event.commonEventHeader.sourceName\",\"value\":\"${_1_3_6_1_4_1_26878_100_1_1_10}\",\"regex\":\"([^:]*):.*\"},{\"class\":\"Set\",\"updates\":{\"event.faultFields.eventSourceType\":\"vMOG\",\"event.commonEventHeader.functionalRole\":\"vMoG\",\"event.commonEventHeader.eventType\":\"vMoG_Alarms\",\"event.commonEventHeader.eventId\":\"${event.commonEventHeader.sourceName}_${eventGroup}\",\"event.commonEventHeader.eventName\":\"NA\"}}]},{\"phase\":\"vPCRF_MOGParsingPhase\",\"filter\":{\"class\":\"Not\",\"filter\":{\"class\":\"Contains\",\"string\":\"${_1_3_6_1_4_1_26878_100_1_1_10}\",\"value\":\"mog\"}},\"processors\":[{\"class\":\"Set\",\"updates\":{\"event.commonEventHeader.sourceName\":\"${agent address}\",\"event.faultFields.eventSourceType\":\"vPCRF\",\"event.commonEventHeader.functionalRole\":\"vPCRF\",\"event.commonEventHeader.eventType\":\"PCRF_Alarms\",\"event.commonEventHeader.eventId\":\"${agent address}_${eventGroup}\",\"event.commonEventHeader.reportingEntityName\":\"${event.commonEventHeader.sourceName}\"}}]},{\"phase\":\"vPCRF_MOGParsingPhase\",\"filter\":{\"class\":\"Contains\",\"string\":\"${_1_3_6_1_4_1_26878_100_1_1_7}\",\"value\":\"mogx\"},\"processors\":[{\"class\":\"Set\",\"updates\":{\"event.faultFields.alarmCondition\":\"${_1_3_6_1_4_1_26878_100_1_1_10}\",\"event.faultFields.specificProblem\":\"${_1_3_6_1_4_1_26878_100_1_1_9}\",\"event.commonEventHeader.reportingEntityName\":\"${event.commonEventHeader.sourceName}\"}},{\"class\":\"RunPhase\",\"phase\":\"vPCRF_MOGX_ParsingPhase\"},{\"class\":\"Set\",\"updates\":{\"event.commonEventHeader.eventId\":\"${event.commonEventHeader.sourceName}_${eventGroup}_${eventKey}\"}}]},{\"phase\":\"vPCRF_MOGX_ParsingPhase\",\"filter\":{\"class\":\"OneOf\",\"field\":\"_1_3_6_1_4_1_26878_100_1_1_9\",\"values\":[\"LinkDown\",\"LinkUp\"]},\"processors\":[{\"class\":\"ExtractText\",\"field\":\"eventKey\",\"value\":\"${_1_3_6_1_4_1_26878_100_1_1_10}\",\"regex\":\".* (.*)\"}]},{\"phase\":\"vPCRF_MOGX_ParsingPhase\",\"filter\":{\"class\":\"OneOf\",\"field\":\"_1_3_6_1_4_1_26878_100_1_1_9\",\"values\":[\"ProcessDown\",\"ProcessUp\"]},\"processors\":[{\"class\":\"ExtractText\",\"field\":\"eventKey\",\"value\":\"${_1_3_6_1_4_1_26878_100_1_1_10}\",\"regex\":\".*:(.*) process.*\"}]},{\"phase\":\"vPCRF_MOGX_ParsingPhase\",\"filter\":{\"class\":\"OneOf\",\"field\":\"_1_3_6_1_4_1_26878_100_1_1_9\",\"values\":[\"DiskFullAlert\",\"DiskFullClear\"]},\"processors\":[{\"class\":\"ExtractText\",\"field\":\"eventKey\",\"value\":\"${_1_3_6_1_4_1_26878_100_1_1_10}\",\"regex\":\".*:(.*):.*\"}]},{\"phase\":\"vPCRF_MOGX_ParsingPhase\",\"filter\":{\"class\":\"OneOf\",\"field\":\"_1_3_6_1_4_1_26878_100_1_1_9\",\"values\":[\"QNS Process Down\",\"QNS Process Up\"]},\"processors\":[{\"class\":\"ExtractText\",\"field\":\"eventKey\",\"value\":\"${_1_3_6_1_4_1_26878_100_1_1_10}\",\"regex\":\".*:(.*) server on .*\"}]},{\"phase\":\"vPCRF_MOGX_ParsingPhase\",\"filter\":{\"class\":\"OneOf\",\"field\":\"_1_3_6_1_4_1_26878_100_1_1_9\",\"values\":[\"DiameterPeerDown\"]},\"processors\":[{\"class\":\"ExtractText\",\"field\":\"eventKey\",\"value\":\"${_1_3_6_1_4_1_26878_100_1_1_10}\",\"regex\":\".* (.*) [R/r]ealm.*\"}]},{\"phase\":\"vPCRF_MOGX_ParsingPhase\",\"filter\":{\"class\":\"OneOf\",\"field\":\"_1_3_6_1_4_1_26878_100_1_1_9\",\"values\":[\"DiameterAllPeersDown\"]},\"processors\":[{\"class\":\"ExtractText\",\"field\":\"eventKey\",\"value\":\"${_1_3_6_1_4_1_26878_100_1_1_10}\",\"regex\":\".*Realm: (.*):[^:]*peers.*\"}]},{\"phase\":\"vPCRF_MOGX_ParsingPhase\",\"filter\":{\"class\":\"OneOf\",\"field\":\"_1_3_6_1_4_1_26878_100_1_1_9\",\"values\":[\"VirtualInterface Down\"]},\"processors\":[{\"class\":\"ExtractText\",\"field\":\"eventKey\",\"value\":\"${_1_3_6_1_4_1_26878_100_1_1_10}\",\"regex\":\".*onnect (.*). Not reachable\"}]},{\"phase\":\"vPCRF_MOGX_ParsingPhase\",\"filter\":{\"class\":\"OneOf\",\"field\":\"_1_3_6_1_4_1_26878_100_1_1_9\",\"values\":[\"VirtualInterface Up\"]},\"processors\":[{\"class\":\"ExtractText\",\"field\":\"eventKey\",\"value\":\"${_1_3_6_1_4_1_26878_100_1_1_10}\",\"regex\":\".*: (.*) is up\"}]},{\"phase\":\"vPCRF_MOGX_ParsingPhase\",\"filter\":{\"class\":\"OneOf\",\"field\":\"_1_3_6_1_4_1_26878_100_1_1_9\",\"values\":[\"GR Failover\"]},\"processors\":[{\"class\":\"ExtractText\",\"field\":\"eventKey\",\"value\":\"${_1_3_6_1_4_1_26878_100_1_1_10}\",\"regex\":\".*: (Geo Failover done from .*) of .*\"}]},{\"phase\":\"vPCRF_MOGX_ParsingPhase\",\"filter\":{\"class\":\"OneOf\",\"field\":\"_1_3_6_1_4_1_26878_100_1_1_9\",\"values\":[\"Arbiter Down\",\"Arbiter Up\"]},\"processors\":[{\"class\":\"ExtractText\",\"field\":\"eventKey\",\"value\":\"${_1_3_6_1_4_1_26878_100_1_1_10}\",\"regex\":\".* Arbiter (.*) is .*\"}]},{\"phase\":\"vPCRF_MOGX_ParsingPhase\",\"filter\":{\"class\":\"OneOf\",\"field\":\"_1_3_6_1_4_1_26878_100_1_1_9\",\"values\":[\"All DB Member of replica set Down\",\"All DB Member of replica set Up\"]},\"processors\":[{\"class\":\"ExtractText\",\"field\":\"eventKey\",\"value\":\"${_1_3_6_1_4_1_26878_100_1_1_10}\",\"regex\":\".* All DB members of replica set (.*) are .*\"}]},{\"phase\":\"vPCRF_MOGX_ParsingPhase\",\"filter\":{\"class\":\"OneOf\",\"field\":\"_1_3_6_1_4_1_26878_100_1_1_9\",\"values\":[\"No Primary DB Member Found\",\"Primary DB Member Found\"]},\"processors\":[{\"class\":\"ExtractText\",\"field\":\"eventKey\",\"value\":\"${_1_3_6_1_4_1_26878_100_1_1_10}\",\"regex\":\".* Replica-set (.*)\"}]},{\"phase\":\"vPCRF_MOGX_ParsingPhase\",\"filter\":{\"class\":\"OneOf\",\"field\":\"_1_3_6_1_4_1_26878_100_1_1_9\",\"values\":[\"DB Member Down\",\"DB Member Up\"]},\"processors\":[{\"class\":\"ExtractText\",\"field\":\"eventKey\",\"value\":\"${_1_3_6_1_4_1_26878_100_1_1_10}\",\"regex\":\".* (DB.Member .*) of SET .*\"}]},{\"phase\":\"vPCRF_MOGX_ParsingPhase\",\"filter\":{\"class\":\"OneOf\",\"field\":\"_1_3_6_1_4_1_26878_100_1_1_9\",\"values\":[\"Secondary DB Member Down\",\"Secondary DB Member Up\"]},\"processors\":[{\"class\":\"ExtractText\",\"field\":\"eventKey\",\"value\":\"${_1_3_6_1_4_1_26878_100_1_1_10}\",\"regex\":\".*Secondary (DB.*) is.*\"}]},{\"phase\":\"vPCRF_MOGX_ParsingPhase\",\"filter\":{\"class\":\"OneOf\",\"field\":\"_1_3_6_1_4_1_26878_100_1_1_9\",\"values\":[\"DB Resync is needed\",\"DB Resync is not needed\"]},\"processors\":[{\"class\":\"ExtractText\",\"field\":\"eventKey\",\"value\":\"${_1_3_6_1_4_1_26878_100_1_1_10}\",\"regex\":\".* member (.*:[0-9]+).*$\"}]},{\"phase\":\"vPCRF_MOGX_ParsingPhase\",\"filter\":{\"class\":\"OneOf\",\"field\":\"_1_3_6_1_4_1_26878_100_1_1_9\",\"values\":[\"ZeroMQConnectionError\"]},\"processors\":[{\"class\":\"ExtractText\",\"field\":\"eventKey\",\"value\":\"${_1_3_6_1_4_1_26878_100_1_1_10}\",\"regex\":\".* for (tcp.*)\"}]},{\"phase\":\"vPCRF_MOGParsingPhase\",\"processors\":[{\"class\":\"Clear\",\"fields\":[\"community len\",\"cambria.partition\",\"notify OID\",\"notify OID len\",\"epoch_serno\",\"protocol version\",\"agent name\",\"trap category\",\"community\",\"time received\",\"agent address\",\"varbinds\"]},{\"class\":\"ClearNoneStandardFields\",\"reservedFields\":[\"event\",\"parserType\"]},{\"class\":\"LogEvent\",\"title\":\"UCSNMPEvent-vPCRF_MOG_Parser_Output\",\"logName\":\"com.att.gfp.dcae.eventProcessor.output\",\"logLevel\":\"DEBUG\"},{\"class\":\"LogText\",\"logLevel\":\"INFO\",\"logText\":\"Finished_vPCRF_MOGParsingPhase Mapping Phase\"},{\"class\":\"RunPhase\",\"phase\":\"map_publish\"}]}]}"
+ },
+ "name": "json",
+ "type": "string"
+ },
+ {
+ "assignment": { "value": { "get_input": "monitorThreads" } },
+ "name": "monitorThreads",
+ "type": "string"
+ },
+ {
+ "assignment": { "value": "mapMS" },
+ "name": "name",
+ "type": "string"
+ },
+ {
+ "assignment": { "value": "snmp_map" },
+ "name": "phases.snmp_map.phaseName",
+ "type": "string"
+ },
+ {
+ "assignment": { "value": ".*snmp.*" },
+ "name": "phases.snmp_map.streamPattern",
+ "type": "string"
+ },
+ {
+ "assignment": { "value": "syslog_map" },
+ "name": "phases.syslog_map.phaseName",
+ "type": "string"
+ },
+ {
+ "assignment": { "value": ".*syslog.*" },
+ "name": "phases.syslog_map.streamPattern",
+ "type": "string"
+ },
+ {
+ "assignment": {
+ "value":
+ "{\"phase\":\"map_publish\",\"processors\":[{\"class\":\"EventProcessorMetric\",\"metric\":\"out.events\"},{\"class\":\"SendEvent\",\"channel\":\"DCAE-MAP-EVENT-OUT\"}]}"
+ },
+ "name": "postConfig",
+ "type": "string"
+ },
+ {
+ "assignment": { "value": "vnfTypes.*" },
+ "name": "ruleKeyPattern",
+ "type": "string"
+ },
+ {
+ "assignment": {
+ "value":
+ "[{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"MOD\",\"INT\":\"INT\",\"HSEV\":\"header-SEV \",\"SEVDES\":\"Syslog-Severity\"},\"filter\":{\"${Priority}\":\"$Priority\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"1\",\"INT\":\"0\",\"HSEV\":\"CRITICAL\",\"SEVDES\":\"Alert: action must be taken immediately\"},\"filter\":{\"${Priority}\":\"1\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"2\",\"INT\":\"0\",\"HSEV\":\"MAJOR\",\"SEVDES\":\"Critical: critical conditions\"},\"filter\":{\"${Priority}\":\"2\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"3\",\"INT\":\"0\",\"HSEV\":\"MINOR\",\"SEVDES\":\"Error: error conditions\"},\"filter\":{\"${Priority}\":\"3\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"4\",\"INT\":\"0\",\"HSEV\":\"WARNING\",\"SEVDES\":\"Warning: warning conditions\"},\"filter\":{\"${Priority}\":\"4\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"5\",\"INT\":\"0\",\"HSEV\":\"NORMAL\",\"SEVDES\":\"Notice: normal but significant condition\"},\"filter\":{\"${Priority}\":\"5\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"6\",\"INT\":\"0\",\"HSEV\":\"NORMAL\",\"SEVDES\":\"Informational: informational messages\"},\"filter\":{\"${Priority}\":\"6\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"7\",\"INT\":\"0\",\"HSEV\":\"NORMAL\",\"SEVDES\":\"Debug: debug-level messages\"},\"filter\":{\"${Priority}\":\"7\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"0\",\"INT\":\"1\",\"HSEV\":\"CRITICAL\",\"SEVDES\":\"Emergency: system is unusable\"},\"filter\":{\"${Priority}\":\"8\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"1\",\"INT\":\"1\",\"HSEV\":\"CRITICAL\",\"SEVDES\":\"Alert: action must be taken immediately\"},\"filter\":{\"${Priority}\":\"9\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"2\",\"INT\":\"1\",\"HSEV\":\"MAJOR\",\"SEVDES\":\"Critical: critical conditions\"},\"filter\":{\"${Priority}\":\"10\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"3\",\"INT\":\"1\",\"HSEV\":\"MINOR\",\"SEVDES\":\"Error: error conditions\"},\"filter\":{\"${Priority}\":\"11\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"4\",\"INT\":\"1\",\"HSEV\":\"WARNING\",\"SEVDES\":\"Warning: warning conditions\"},\"filter\":{\"${Priority}\":\"12\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"5\",\"INT\":\"1\",\"HSEV\":\"NORMAL\",\"SEVDES\":\"Notice: normal but significant condition\"},\"filter\":{\"${Priority}\":\"13\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"6\",\"INT\":\"1\",\"HSEV\":\"NORMAL\",\"SEVDES\":\"Informational: informational messages\"},\"filter\":{\"${Priority}\":\"14\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"7\",\"INT\":\"1\",\"HSEV\":\"NORMAL\",\"SEVDES\":\"Debug: debug-level messages\"},\"filter\":{\"${Priority}\":\"15\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"0\",\"INT\":\"2\",\"HSEV\":\"CRITICAL\",\"SEVDES\":\"Emergency: system is unusable\"},\"filter\":{\"${Priority}\":\"16\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"1\",\"INT\":\"2\",\"HSEV\":\"CRITICAL\",\"SEVDES\":\"Alert: action must be taken immediately\"},\"filter\":{\"${Priority}\":\"17\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"2\",\"INT\":\"2\",\"HSEV\":\"MAJOR\",\"SEVDES\":\"Critical: critical conditions\"},\"filter\":{\"${Priority}\":\"18\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"3\",\"INT\":\"2\",\"HSEV\":\"MINOR\",\"SEVDES\":\"Error: error conditions\"},\"filter\":{\"${Priority}\":\"19\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"4\",\"INT\":\"2\",\"HSEV\":\"WARNING\",\"SEVDES\":\"Warning: warning conditions\"},\"filter\":{\"${Priority}\":\"20\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"5\",\"INT\":\"2\",\"HSEV\":\"NORMAL\",\"SEVDES\":\"Notice: normal but significant condition\"},\"filter\":{\"${Priority}\":\"21\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"6\",\"INT\":\"2\",\"HSEV\":\"NORMAL\",\"SEVDES\":\"Informational: informational messages\"},\"filter\":{\"${Priority}\":\"22\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"7\",\"INT\":\"2\",\"HSEV\":\"NORMAL\",\"SEVDES\":\"Debug: debug-level messages\"},\"filter\":{\"${Priority}\":\"23\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"0\",\"INT\":\"3\",\"HSEV\":\"CRITICAL\",\"SEVDES\":\"Emergency: system is unusable\"},\"filter\":{\"${Priority}\":\"24\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"1\",\"INT\":\"3\",\"HSEV\":\"CRITICAL\",\"SEVDES\":\"Alert: action must be taken immediately\"},\"filter\":{\"${Priority}\":\"25\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"2\",\"INT\":\"3\",\"HSEV\":\"MAJOR\",\"SEVDES\":\"Critical: critical conditions\"},\"filter\":{\"${Priority}\":\"26\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"3\",\"INT\":\"3\",\"HSEV\":\"MINOR\",\"SEVDES\":\"Error: error conditions\"},\"filter\":{\"${Priority}\":\"27\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"4\",\"INT\":\"3\",\"HSEV\":\"WARNING\",\"SEVDES\":\"Warning: warning conditions\"},\"filter\":{\"${Priority}\":\"28\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"5\",\"INT\":\"3\",\"HSEV\":\"NORMAL\",\"SEVDES\":\"Notice: normal but significant condition\"},\"filter\":{\"${Priority}\":\"29\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"6\",\"INT\":\"3\",\"HSEV\":\"NORMAL\",\"SEVDES\":\"Informational: informational messages\"},\"filter\":{\"${Priority}\":\"30\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"7\",\"INT\":\"3\",\"HSEV\":\"NORMAL\",\"SEVDES\":\"Debug: debug-level messages\"},\"filter\":{\"${Priority}\":\"31\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"0\",\"INT\":\"4\",\"HSEV\":\"CRITICAL\",\"SEVDES\":\"Emergency: system is unusable\"},\"filter\":{\"${Priority}\":\"32\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"1\",\"INT\":\"4\",\"HSEV\":\"CRITICAL\",\"SEVDES\":\"Alert: action must be taken immediately\"},\"filter\":{\"${Priority}\":\"33\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"2\",\"INT\":\"4\",\"HSEV\":\"MAJOR\",\"SEVDES\":\"Critical: critical conditions\"},\"filter\":{\"${Priority}\":\"34\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"3\",\"INT\":\"4\",\"HSEV\":\"MINOR\",\"SEVDES\":\"Error: error conditions\"},\"filter\":{\"${Priority}\":\"35\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"4\",\"INT\":\"4\",\"HSEV\":\"WARNING\",\"SEVDES\":\"Warning: warning conditions\"},\"filter\":{\"${Priority}\":\"36\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"5\",\"INT\":\"4\",\"HSEV\":\"NORMAL\",\"SEVDES\":\"Notice: normal but significant condition\"},\"filter\":{\"${Priority}\":\"37\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"6\",\"INT\":\"4\",\"HSEV\":\"NORMAL\",\"SEVDES\":\"Informational: informational messages\"},\"filter\":{\"${Priority}\":\"38\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"7\",\"INT\":\"4\",\"HSEV\":\"NORMAL\",\"SEVDES\":\"Debug: debug-level messages\"},\"filter\":{\"${Priority}\":\"39\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"0\",\"INT\":\"5\",\"HSEV\":\"CRITICAL\",\"SEVDES\":\"Emergency: system is unusable\"},\"filter\":{\"${Priority}\":\"40\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"1\",\"INT\":\"5\",\"HSEV\":\"CRITICAL\",\"SEVDES\":\"Alert: action must be taken immediately\"},\"filter\":{\"${Priority}\":\"41\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"2\",\"INT\":\"5\",\"HSEV\":\"MAJOR\",\"SEVDES\":\"Critical: critical conditions\"},\"filter\":{\"${Priority}\":\"42\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"3\",\"INT\":\"5\",\"HSEV\":\"MINOR\",\"SEVDES\":\"Error: error conditions\"},\"filter\":{\"${Priority}\":\"43\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"4\",\"INT\":\"5\",\"HSEV\":\"WARNING\",\"SEVDES\":\"Warning: warning conditions\"},\"filter\":{\"${Priority}\":\"44\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"5\",\"INT\":\"5\",\"HSEV\":\"NORMAL\",\"SEVDES\":\"Notice: normal but significant condition\"},\"filter\":{\"${Priority}\":\"45\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"6\",\"INT\":\"5\",\"HSEV\":\"NORMAL\",\"SEVDES\":\"Informational: informational messages\"},\"filter\":{\"${Priority}\":\"46\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"7\",\"INT\":\"5\",\"HSEV\":\"NORMAL\",\"SEVDES\":\"Debug: debug-level messages\"},\"filter\":{\"${Priority}\":\"47\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"0\",\"INT\":\"6\",\"HSEV\":\"CRITICAL\",\"SEVDES\":\"Emergency: system is unusable\"},\"filter\":{\"${Priority}\":\"48\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"1\",\"INT\":\"6\",\"HSEV\":\"CRITICAL\",\"SEVDES\":\"Alert: action must be taken immediately\"},\"filter\":{\"${Priority}\":\"49\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"2\",\"INT\":\"6\",\"HSEV\":\"MAJOR\",\"SEVDES\":\"Critical: critical conditions\"},\"filter\":{\"${Priority}\":\"50\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"3\",\"INT\":\"6\",\"HSEV\":\"MINOR\",\"SEVDES\":\"Error: error conditions\"},\"filter\":{\"${Priority}\":\"51\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"4\",\"INT\":\"6\",\"HSEV\":\"WARNING\",\"SEVDES\":\"Warning: warning conditions\"},\"filter\":{\"${Priority}\":\"52\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"5\",\"INT\":\"6\",\"HSEV\":\"NORMAL\",\"SEVDES\":\"Notice: normal but significant condition\"},\"filter\":{\"${Priority}\":\"53\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"6\",\"INT\":\"6\",\"HSEV\":\"NORMAL\",\"SEVDES\":\"Informational: informational messages\"},\"filter\":{\"${Priority}\":\"54\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"7\",\"INT\":\"6\",\"HSEV\":\"NORMAL\",\"SEVDES\":\"Debug: debug-level messages\"},\"filter\":{\"${Priority}\":\"55\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"0\",\"INT\":\"7\",\"HSEV\":\"CRITICAL\",\"SEVDES\":\"Emergency: system is unusable\"},\"filter\":{\"${Priority}\":\"56\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"1\",\"INT\":\"7\",\"HSEV\":\"CRITICAL\",\"SEVDES\":\"Alert: action must be taken immediately\"},\"filter\":{\"${Priority}\":\"57\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"2\",\"INT\":\"7\",\"HSEV\":\"MAJOR\",\"SEVDES\":\"Critical: critical conditions\"},\"filter\":{\"${Priority}\":\"58\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"3\",\"INT\":\"7\",\"HSEV\":\"MINOR\",\"SEVDES\":\"Error: error conditions\"},\"filter\":{\"${Priority}\":\"59\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"4\",\"INT\":\"7\",\"HSEV\":\"WARNING\",\"SEVDES\":\"Warning: warning conditions\"},\"filter\":{\"${Priority}\":\"60\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"5\",\"INT\":\"7\",\"HSEV\":\"NORMAL\",\"SEVDES\":\"Notice: normal but significant condition\"},\"filter\":{\"${Priority}\":\"61\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"6\",\"INT\":\"7\",\"HSEV\":\"NORMAL\",\"SEVDES\":\"Informational: informational messages\"},\"filter\":{\"${Priority}\":\"62\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"7\",\"INT\":\"7\",\"HSEV\":\"NORMAL\",\"SEVDES\":\"Debug: debug-level messages\"},\"filter\":{\"${Priority}\":\"63\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"0\",\"INT\":\"8\",\"HSEV\":\"CRITICAL\",\"SEVDES\":\"Emergency: system is unusable\"},\"filter\":{\"${Priority}\":\"64\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"1\",\"INT\":\"8\",\"HSEV\":\"CRITICAL\",\"SEVDES\":\"Alert: action must be taken immediately\"},\"filter\":{\"${Priority}\":\"65\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"2\",\"INT\":\"8\",\"HSEV\":\"MAJOR\",\"SEVDES\":\"Critical: critical conditions\"},\"filter\":{\"${Priority}\":\"66\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"3\",\"INT\":\"8\",\"HSEV\":\"MINOR\",\"SEVDES\":\"Error: error conditions\"},\"filter\":{\"${Priority}\":\"67\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"4\",\"INT\":\"8\",\"HSEV\":\"WARNING\",\"SEVDES\":\"Warning: warning conditions\"},\"filter\":{\"${Priority}\":\"68\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"5\",\"INT\":\"8\",\"HSEV\":\"NORMAL\",\"SEVDES\":\"Notice: normal but significant condition\"},\"filter\":{\"${Priority}\":\"69\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"6\",\"INT\":\"8\",\"HSEV\":\"NORMAL\",\"SEVDES\":\"Informational: informational messages\"},\"filter\":{\"${Priority}\":\"70\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"7\",\"INT\":\"8\",\"HSEV\":\"NORMAL\",\"SEVDES\":\"Debug: debug-level messages\"},\"filter\":{\"${Priority}\":\"71\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"0\",\"INT\":\"9\",\"HSEV\":\"CRITICAL\",\"SEVDES\":\"Emergency: system is unusable\"},\"filter\":{\"${Priority}\":\"72\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"1\",\"INT\":\"9\",\"HSEV\":\"CRITICAL\",\"SEVDES\":\"Alert: action must be taken immediately\"},\"filter\":{\"${Priority}\":\"73\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"2\",\"INT\":\"9\",\"HSEV\":\"MAJOR\",\"SEVDES\":\"Critical: critical conditions\"},\"filter\":{\"${Priority}\":\"74\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"3\",\"INT\":\"9\",\"HSEV\":\"MINOR\",\"SEVDES\":\"Error: error conditions\"},\"filter\":{\"${Priority}\":\"75\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"4\",\"INT\":\"9\",\"HSEV\":\"WARNING\",\"SEVDES\":\"Warning: warning conditions\"},\"filter\":{\"${Priority}\":\"76\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"5\",\"INT\":\"9\",\"HSEV\":\"NORMAL\",\"SEVDES\":\"Notice: normal but significant condition\"},\"filter\":{\"${Priority}\":\"77\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"6\",\"INT\":\"9\",\"HSEV\":\"NORMAL\",\"SEVDES\":\"Informational: informational messages\"},\"filter\":{\"${Priority}\":\"78\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"7\",\"INT\":\"9\",\"HSEV\":\"NORMAL\",\"SEVDES\":\"Debug: debug-level messages\"},\"filter\":{\"${Priority}\":\"79\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"0\",\"INT\":\"10\",\"HSEV\":\"CRITICAL\",\"SEVDES\":\"Emergency: system is unusable\"},\"filter\":{\"${Priority}\":\"80\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"1\",\"INT\":\"10\",\"HSEV\":\"CRITICAL\",\"SEVDES\":\"Alert: action must be taken immediately\"},\"filter\":{\"${Priority}\":\"81\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"2\",\"INT\":\"10\",\"HSEV\":\"MAJOR\",\"SEVDES\":\"Critical: critical conditions\"},\"filter\":{\"${Priority}\":\"82\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"3\",\"INT\":\"10\",\"HSEV\":\"MINOR\",\"SEVDES\":\"Error: error conditions\"},\"filter\":{\"${Priority}\":\"83\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"4\",\"INT\":\"10\",\"HSEV\":\"WARNING\",\"SEVDES\":\"Warning: warning conditions\"},\"filter\":{\"${Priority}\":\"84\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"5\",\"INT\":\"10\",\"HSEV\":\"NORMAL\",\"SEVDES\":\"Notice: normal but significant condition\"},\"filter\":{\"${Priority}\":\"85\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"6\",\"INT\":\"10\",\"HSEV\":\"NORMAL\",\"SEVDES\":\"Informational: informational messages\"},\"filter\":{\"${Priority}\":\"86\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"7\",\"INT\":\"10\",\"HSEV\":\"NORMAL\",\"SEVDES\":\"Debug: debug-level messages\"},\"filter\":{\"${Priority}\":\"87\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"0\",\"INT\":\"11\",\"HSEV\":\"CRITICAL\",\"SEVDES\":\"Emergency: system is unusable\"},\"filter\":{\"${Priority}\":\"88\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"1\",\"INT\":\"11\",\"HSEV\":\"CRITICAL\",\"SEVDES\":\"Alert: action must be taken immediately\"},\"filter\":{\"${Priority}\":\"89\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"2\",\"INT\":\"11\",\"HSEV\":\"MAJOR\",\"SEVDES\":\"Critical: critical conditions\"},\"filter\":{\"${Priority}\":\"90\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"3\",\"INT\":\"11\",\"HSEV\":\"MINOR\",\"SEVDES\":\"Error: error conditions\"},\"filter\":{\"${Priority}\":\"91\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"4\",\"INT\":\"11\",\"HSEV\":\"WARNING\",\"SEVDES\":\"Warning: warning conditions\"},\"filter\":{\"${Priority}\":\"92\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"5\",\"INT\":\"11\",\"HSEV\":\"NORMAL\",\"SEVDES\":\"Notice: normal but significant condition\"},\"filter\":{\"${Priority}\":\"93\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"6\",\"INT\":\"11\",\"HSEV\":\"NORMAL\",\"SEVDES\":\"Informational: informational messages\"},\"filter\":{\"${Priority}\":\"94\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"7\",\"INT\":\"11\",\"HSEV\":\"NORMAL\",\"SEVDES\":\"Debug: debug-level messages\"},\"filter\":{\"${Priority}\":\"95\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"0\",\"INT\":\"12\",\"HSEV\":\"CRITICAL\",\"SEVDES\":\"Emergency: system is unusable\"},\"filter\":{\"${Priority}\":\"96\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"1\",\"INT\":\"12\",\"HSEV\":\"CRITICAL\",\"SEVDES\":\"Alert: action must be taken immediately\"},\"filter\":{\"${Priority}\":\"97\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"2\",\"INT\":\"12\",\"HSEV\":\"MAJOR\",\"SEVDES\":\"Critical: critical conditions\"},\"filter\":{\"${Priority}\":\"98\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"3\",\"INT\":\"12\",\"HSEV\":\"MINOR\",\"SEVDES\":\"Error: error conditions\"},\"filter\":{\"${Priority}\":\"99\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"4\",\"INT\":\"12\",\"HSEV\":\"WARNING\",\"SEVDES\":\"Warning: warning conditions\"},\"filter\":{\"${Priority}\":\"100\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"5\",\"INT\":\"12\",\"HSEV\":\"NORMAL\",\"SEVDES\":\"Notice: normal but significant condition\"},\"filter\":{\"${Priority}\":\"101\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"6\",\"INT\":\"12\",\"HSEV\":\"NORMAL\",\"SEVDES\":\"Informational: informational messages\"},\"filter\":{\"${Priority}\":\"102\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"7\",\"INT\":\"12\",\"HSEV\":\"NORMAL\",\"SEVDES\":\"Debug: debug-level messages\"},\"filter\":{\"${Priority}\":\"103\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"0\",\"INT\":\"13\",\"HSEV\":\"CRITICAL\",\"SEVDES\":\"Emergency: system is unusable\"},\"filter\":{\"${Priority}\":\"104\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"1\",\"INT\":\"13\",\"HSEV\":\"CRITICAL\",\"SEVDES\":\"Alert: action must be taken immediately\"},\"filter\":{\"${Priority}\":\"105\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"2\",\"INT\":\"13\",\"HSEV\":\"MAJOR\",\"SEVDES\":\"Critical: critical conditions\"},\"filter\":{\"${Priority}\":\"106\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"3\",\"INT\":\"13\",\"HSEV\":\"MINOR\",\"SEVDES\":\"Error: error conditions\"},\"filter\":{\"${Priority}\":\"107\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"4\",\"INT\":\"13\",\"HSEV\":\"WARNING\",\"SEVDES\":\"Warning: warning conditions\"},\"filter\":{\"${Priority}\":\"108\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"5\",\"INT\":\"13\",\"HSEV\":\"NORMAL\",\"SEVDES\":\"Notice: normal but significant condition\"},\"filter\":{\"${Priority}\":\"109\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"6\",\"INT\":\"13\",\"HSEV\":\"NORMAL\",\"SEVDES\":\"Informational: informational messages\"},\"filter\":{\"${Priority}\":\"110\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"7\",\"INT\":\"13\",\"HSEV\":\"NORMAL\",\"SEVDES\":\"Debug: debug-level messages\"},\"filter\":{\"${Priority}\":\"111\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"0\",\"INT\":\"14\",\"HSEV\":\"CRITICAL\",\"SEVDES\":\"Emergency: system is unusable\"},\"filter\":{\"${Priority}\":\"112\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"1\",\"INT\":\"14\",\"HSEV\":\"CRITICAL\",\"SEVDES\":\"Alert: action must be taken immediately\"},\"filter\":{\"${Priority}\":\"113\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"2\",\"INT\":\"14\",\"HSEV\":\"MAJOR\",\"SEVDES\":\"Critical: critical conditions\"},\"filter\":{\"${Priority}\":\"114\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"3\",\"INT\":\"14\",\"HSEV\":\"MINOR\",\"SEVDES\":\"Error: error conditions\"},\"filter\":{\"${Priority}\":\"115\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"4\",\"INT\":\"14\",\"HSEV\":\"WARNING\",\"SEVDES\":\"Warning: warning conditions\"},\"filter\":{\"${Priority}\":\"116\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"5\",\"INT\":\"14\",\"HSEV\":\"NORMAL\",\"SEVDES\":\"Notice: normal but significant condition\"},\"filter\":{\"${Priority}\":\"117\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"6\",\"INT\":\"14\",\"HSEV\":\"NORMAL\",\"SEVDES\":\"Informational: informational messages\"},\"filter\":{\"${Priority}\":\"118\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"7\",\"INT\":\"14\",\"HSEV\":\"NORMAL\",\"SEVDES\":\"Debug: debug-level messages\"},\"filter\":{\"${Priority}\":\"119\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"0\",\"INT\":\"15\",\"HSEV\":\"CRITICAL\",\"SEVDES\":\"Emergency: system is unusable\"},\"filter\":{\"${Priority}\":\"120\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"1\",\"INT\":\"15\",\"HSEV\":\"CRITICAL\",\"SEVDES\":\"Alert: action must be taken immediately\"},\"filter\":{\"${Priority}\":\"121\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"2\",\"INT\":\"15\",\"HSEV\":\"MAJOR\",\"SEVDES\":\"Critical: critical conditions\"},\"filter\":{\"${Priority}\":\"122\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"3\",\"INT\":\"15\",\"HSEV\":\"MINOR\",\"SEVDES\":\"Error: error conditions\"},\"filter\":{\"${Priority}\":\"123\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"4\",\"INT\":\"15\",\"HSEV\":\"WARNING\",\"SEVDES\":\"Warning: warning conditions\"},\"filter\":{\"${Priority}\":\"124\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"5\",\"INT\":\"15\",\"HSEV\":\"NORMAL\",\"SEVDES\":\"Notice: normal but significant condition\"},\"filter\":{\"${Priority}\":\"125\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"6\",\"INT\":\"15\",\"HSEV\":\"NORMAL\",\"SEVDES\":\"Informational: informational messages\"},\"filter\":{\"${Priority}\":\"126\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"7\",\"INT\":\"15\",\"HSEV\":\"NORMAL\",\"SEVDES\":\"Debug: debug-level messages\"},\"filter\":{\"${Priority}\":\"127\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"0\",\"INT\":\"16\",\"HSEV\":\"CRITICAL\",\"SEVDES\":\"Emergency: system is unusable\"},\"filter\":{\"${Priority}\":\"128\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"1\",\"INT\":\"16\",\"HSEV\":\"CRITICAL\",\"SEVDES\":\"Alert: action must be taken immediately\"},\"filter\":{\"${Priority}\":\"129\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"2\",\"INT\":\"16\",\"HSEV\":\"MAJOR\",\"SEVDES\":\"Critical: critical conditions\"},\"filter\":{\"${Priority}\":\"130\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"3\",\"INT\":\"16\",\"HSEV\":\"MINOR\",\"SEVDES\":\"Error: error conditions\"},\"filter\":{\"${Priority}\":\"131\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"4\",\"INT\":\"16\",\"HSEV\":\"WARNING\",\"SEVDES\":\"Warning: warning conditions\"},\"filter\":{\"${Priority}\":\"132\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"5\",\"INT\":\"16\",\"HSEV\":\"NORMAL\",\"SEVDES\":\"Notice: normal but significant condition\"},\"filter\":{\"${Priority}\":\"133\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"6\",\"INT\":\"16\",\"HSEV\":\"NORMAL\",\"SEVDES\":\"Informational: informational messages\"},\"filter\":{\"${Priority}\":\"134\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"7\",\"INT\":\"16\",\"HSEV\":\"NORMAL\",\"SEVDES\":\"Debug: debug-level messages\"},\"filter\":{\"${Priority}\":\"135\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"0\",\"INT\":\"17\",\"HSEV\":\"CRITICAL\",\"SEVDES\":\"Emergency: system is unusable\"},\"filter\":{\"${Priority}\":\"136\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"1\",\"INT\":\"17\",\"HSEV\":\"CRITICAL\",\"SEVDES\":\"Alert: action must be taken immediately\"},\"filter\":{\"${Priority}\":\"137\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"2\",\"INT\":\"17\",\"HSEV\":\"MAJOR\",\"SEVDES\":\"Critical: critical conditions\"},\"filter\":{\"${Priority}\":\"138\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"3\",\"INT\":\"17\",\"HSEV\":\"MINOR\",\"SEVDES\":\"Error: error conditions\"},\"filter\":{\"${Priority}\":\"139\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"4\",\"INT\":\"17\",\"HSEV\":\"WARNING\",\"SEVDES\":\"Warning: warning conditions\"},\"filter\":{\"${Priority}\":\"140\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"5\",\"INT\":\"17\",\"HSEV\":\"NORMAL\",\"SEVDES\":\"Notice: normal but significant condition\"},\"filter\":{\"${Priority}\":\"141\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"6\",\"INT\":\"17\",\"HSEV\":\"NORMAL\",\"SEVDES\":\"Informational: informational messages\"},\"filter\":{\"${Priority}\":\"142\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"7\",\"INT\":\"17\",\"HSEV\":\"NORMAL\",\"SEVDES\":\"Debug: debug-level messages\"},\"filter\":{\"${Priority}\":\"143\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"0\",\"INT\":\"18\",\"HSEV\":\"CRITICAL\",\"SEVDES\":\"Emergency: system is unusable\"},\"filter\":{\"${Priority}\":\"144\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"1\",\"INT\":\"18\",\"HSEV\":\"CRITICAL\",\"SEVDES\":\"Alert: action must be taken immediately\"},\"filter\":{\"${Priority}\":\"145\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"2\",\"INT\":\"18\",\"HSEV\":\"MAJOR\",\"SEVDES\":\"Critical: critical conditions\"},\"filter\":{\"${Priority}\":\"146\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"3\",\"INT\":\"18\",\"HSEV\":\"MINOR\",\"SEVDES\":\"Error: error conditions\"},\"filter\":{\"${Priority}\":\"147\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"4\",\"INT\":\"18\",\"HSEV\":\"WARNING\",\"SEVDES\":\"Warning: warning conditions\"},\"filter\":{\"${Priority}\":\"148\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"5\",\"INT\":\"18\",\"HSEV\":\"NORMAL\",\"SEVDES\":\"Notice: normal but significant condition\"},\"filter\":{\"${Priority}\":\"149\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"6\",\"INT\":\"18\",\"HSEV\":\"NORMAL\",\"SEVDES\":\"Informational: informational messages\"},\"filter\":{\"${Priority}\":\"150\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"7\",\"INT\":\"18\",\"HSEV\":\"NORMAL\",\"SEVDES\":\"Debug: debug-level messages\"},\"filter\":{\"${Priority}\":\"151\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"0\",\"INT\":\"19\",\"HSEV\":\"CRITICAL\",\"SEVDES\":\"Emergency: system is unusable\"},\"filter\":{\"${Priority}\":\"152\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"1\",\"INT\":\"19\",\"HSEV\":\"CRITICAL\",\"SEVDES\":\"Alert: action must be taken immediately\"},\"filter\":{\"${Priority}\":\"153\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"2\",\"INT\":\"19\",\"HSEV\":\"MAJOR\",\"SEVDES\":\"Critical: critical conditions\"},\"filter\":{\"${Priority}\":\"154\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"3\",\"INT\":\"19\",\"HSEV\":\"MINOR\",\"SEVDES\":\"Error: error conditions\"},\"filter\":{\"${Priority}\":\"155\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"4\",\"INT\":\"19\",\"HSEV\":\"WARNING\",\"SEVDES\":\"Warning: warning conditions\"},\"filter\":{\"${Priority}\":\"156\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"5\",\"INT\":\"19\",\"HSEV\":\"NORMAL\",\"SEVDES\":\"Notice: normal but significant condition\"},\"filter\":{\"${Priority}\":\"157\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"6\",\"INT\":\"19\",\"HSEV\":\"NORMAL\",\"SEVDES\":\"Informational: informational messages\"},\"filter\":{\"${Priority}\":\"158\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"7\",\"INT\":\"19\",\"HSEV\":\"NORMAL\",\"SEVDES\":\"Debug: debug-level messages\"},\"filter\":{\"${Priority}\":\"159\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"0\",\"INT\":\"20\",\"HSEV\":\"CRITICAL\",\"SEVDES\":\"Emergency: system is unusable\"},\"filter\":{\"${Priority}\":\"160\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"1\",\"INT\":\"20\",\"HSEV\":\"CRITICAL\",\"SEVDES\":\"Alert: action must be taken immediately\"},\"filter\":{\"${Priority}\":\"161\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"2\",\"INT\":\"20\",\"HSEV\":\"MAJOR\",\"SEVDES\":\"Critical: critical conditions\"},\"filter\":{\"${Priority}\":\"162\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"3\",\"INT\":\"20\",\"HSEV\":\"MINOR\",\"SEVDES\":\"Error: error conditions\"},\"filter\":{\"${Priority}\":\"163\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"4\",\"INT\":\"20\",\"HSEV\":\"WARNING\",\"SEVDES\":\"Warning: warning conditions\"},\"filter\":{\"${Priority}\":\"164\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"5\",\"INT\":\"20\",\"HSEV\":\"NORMAL\",\"SEVDES\":\"Notice: normal but significant condition\"},\"filter\":{\"${Priority}\":\"165\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"6\",\"INT\":\"20\",\"HSEV\":\"NORMAL\",\"SEVDES\":\"Informational: informational messages\"},\"filter\":{\"${Priority}\":\"166\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"7\",\"INT\":\"20\",\"HSEV\":\"NORMAL\",\"SEVDES\":\"Debug: debug-level messages\"},\"filter\":{\"${Priority}\":\"167\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"0\",\"INT\":\"21\",\"HSEV\":\"CRITICAL\",\"SEVDES\":\"Emergency: system is unusable\"},\"filter\":{\"${Priority}\":\"168\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"1\",\"INT\":\"21\",\"HSEV\":\"CRITICAL\",\"SEVDES\":\"Alert: action must be taken immediately\"},\"filter\":{\"${Priority}\":\"169\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"2\",\"INT\":\"21\",\"HSEV\":\"MAJOR\",\"SEVDES\":\"Critical: critical conditions\"},\"filter\":{\"${Priority}\":\"170\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"3\",\"INT\":\"21\",\"HSEV\":\"MINOR\",\"SEVDES\":\"Error: error conditions\"},\"filter\":{\"${Priority}\":\"171\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"4\",\"INT\":\"21\",\"HSEV\":\"WARNING\",\"SEVDES\":\"Warning: warning conditions\"},\"filter\":{\"${Priority}\":\"172\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"5\",\"INT\":\"21\",\"HSEV\":\"NORMAL\",\"SEVDES\":\"Notice: normal but significant condition\"},\"filter\":{\"${Priority}\":\"173\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"6\",\"INT\":\"21\",\"HSEV\":\"NORMAL\",\"SEVDES\":\"Informational: informational messages\"},\"filter\":{\"${Priority}\":\"174\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"7\",\"INT\":\"21\",\"HSEV\":\"NORMAL\",\"SEVDES\":\"Debug: debug-level messages\"},\"filter\":{\"${Priority}\":\"175\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"0\",\"INT\":\"22\",\"HSEV\":\"CRITICAL\",\"SEVDES\":\"Emergency: system is unusable\"},\"filter\":{\"${Priority}\":\"176\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"1\",\"INT\":\"22\",\"HSEV\":\"CRITICAL\",\"SEVDES\":\"Alert: action must be taken immediately\"},\"filter\":{\"${Priority}\":\"177\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"2\",\"INT\":\"22\",\"HSEV\":\"MAJOR\",\"SEVDES\":\"Critical: critical conditions\"},\"filter\":{\"${Priority}\":\"178\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"3\",\"INT\":\"22\",\"HSEV\":\"MINOR\",\"SEVDES\":\"Error: error conditions\"},\"filter\":{\"${Priority}\":\"179\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"4\",\"INT\":\"22\",\"HSEV\":\"WARNING\",\"SEVDES\":\"Warning: warning conditions\"},\"filter\":{\"${Priority}\":\"180\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"5\",\"INT\":\"22\",\"HSEV\":\"NORMAL\",\"SEVDES\":\"Notice: normal but significant condition\"},\"filter\":{\"${Priority}\":\"181\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"6\",\"INT\":\"22\",\"HSEV\":\"NORMAL\",\"SEVDES\":\"Informational: informational messages\"},\"filter\":{\"${Priority}\":\"182\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"7\",\"INT\":\"22\",\"HSEV\":\"NORMAL\",\"SEVDES\":\"Debug: debug-level messages\"},\"filter\":{\"${Priority}\":\"183\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"0\",\"INT\":\"23\",\"HSEV\":\"CRITICAL\",\"SEVDES\":\"Emergency: system is unusable\"},\"filter\":{\"${Priority}\":\"184\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"1\",\"INT\":\"23\",\"HSEV\":\"CRITICAL\",\"SEVDES\":\"Alert: action must be taken immediately\"},\"filter\":{\"${Priority}\":\"185\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"2\",\"INT\":\"23\",\"HSEV\":\"MAJOR\",\"SEVDES\":\"Critical: critical conditions\"},\"filter\":{\"${Priority}\":\"186\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"3\",\"INT\":\"23\",\"HSEV\":\"MINOR\",\"SEVDES\":\"Error: error conditions\"},\"filter\":{\"${Priority}\":\"187\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"4\",\"INT\":\"23\",\"HSEV\":\"WARNING\",\"SEVDES\":\"Warning: warning conditions\"},\"filter\":{\"${Priority}\":\"188\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"5\",\"INT\":\"23\",\"HSEV\":\"NORMAL\",\"SEVDES\":\"Notice: normal but significant condition\"},\"filter\":{\"${Priority}\":\"189\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"6\",\"INT\":\"23\",\"HSEV\":\"NORMAL\",\"SEVDES\":\"Informational: informational messages\"},\"filter\":{\"${Priority}\":\"190\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"7\",\"INT\":\"23\",\"HSEV\":\"NORMAL\",\"SEVDES\":\"Debug: debug-level messages\"},\"filter\":{\"${Priority}\":\"191\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"0\",\"INT\":\"24\",\"HSEV\":\"CRITICAL\",\"SEVDES\":\"Emergency: system is unusable\"},\"filter\":{\"${Priority}\":\"192\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"1\",\"INT\":\"24\",\"HSEV\":\"CRITICAL\",\"SEVDES\":\"Alert: action must be taken immediately\"},\"filter\":{\"${Priority}\":\"193\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"2\",\"INT\":\"24\",\"HSEV\":\"MAJOR\",\"SEVDES\":\"Critical: critical conditions\"},\"filter\":{\"${Priority}\":\"194\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"3\",\"INT\":\"24\",\"HSEV\":\"MINOR\",\"SEVDES\":\"Error: error conditions\"},\"filter\":{\"${Priority}\":\"195\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"4\",\"INT\":\"24\",\"HSEV\":\"WARNING\",\"SEVDES\":\"Warning: warning conditions\"},\"filter\":{\"${Priority}\":\"196\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"5\",\"INT\":\"24\",\"HSEV\":\"NORMAL\",\"SEVDES\":\"Notice: normal but significant condition\"},\"filter\":{\"${Priority}\":\"197\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"6\",\"INT\":\"24\",\"HSEV\":\"NORMAL\",\"SEVDES\":\"Informational: informational messages\"},\"filter\":{\"${Priority}\":\"198\"}},{\"key\":\"syslogLookup\",\"value\":{\"MOD\":\"7\",\"INT\":\"23\",\"HSEV\":\"NORMAL\",\"SEVDES\":\"Debug: debug-level messages\"},\"filter\":{\"${Priority}\":\"199\"}}]"
+ },
+ "name": "settings",
+ "type": "string"
+ },
+ {
+ "assignment": { "value": "False" },
+ "name": "startNoChannels",
+ "type": "string"
+ },
+ {
+ "default": "cdap_broker",
+ "assignment": {
+ "value": { "get_input": "connected_broker_dns_name" }
+ },
+ "name": "connected_broker_dns_name",
+ "type": "string",
+ "required": true
+ },
+ { "name": "jar_url", "type": "string", "required": true },
+ {
+ "assignment": {
+ "value": {
+ "get_property": ["SELF", "composition", "location_id"]
+ }
+ },
+ "name": "location_id",
+ "type": "string",
+ "required": true
+ },
+ {
+ "name": "service_component_type",
+ "type": "string",
+ "required": true
+ }
+ ],
+ "typeinfo": {
+ "itemId":
+ "e45ec9d7-01df-4cb1-896f-aff2a6ca5a8b/tosca.dcae.nodes.cdapApp.Map",
+ "requirements": [
+ {
+ "node": {
+ "name": "dcae.capabilities.stream.subscribe",
+ "id":
+ "e45ec9d7-01df-4cb1-896f-aff2a6ca5a8b/dcae.capabilities.stream.subscribe"
+ },
+ "capability": {
+ "name": "dcae.capabilities.stream.subscribe",
+ "id":
+ "e45ec9d7-01df-4cb1-896f-aff2a6ca5a8b/dcae.capabilities.stream.subscribe"
+ },
+ "name": "stream_publish_0",
+ "id": "e45ec9d7-01df-4cb1-896f-aff2a6ca5a8b/stream_publish_0",
+ "relationship": {
+ "type": "dcae.relationships.rework_connected_to"
+ }
+ },
+ {
+ "node": {
+ "name": "dcae.capabilities.cdapHost",
+ "id":
+ "e45ec9d7-01df-4cb1-896f-aff2a6ca5a8b/dcae.capabilities.cdapHost"
+ },
+ "capability": {
+ "name": "dcae.capabilities.cdapHost",
+ "id":
+ "e45ec9d7-01df-4cb1-896f-aff2a6ca5a8b/dcae.capabilities.cdapHost"
+ },
+ "name": "host",
+ "id": "e45ec9d7-01df-4cb1-896f-aff2a6ca5a8b/host",
+ "relationship": {
+ "type": "dcae.relationships.component_contained_in"
+ }
+ },
+ {
+ "node": {
+ "name": "dcae.capabilities.composition.host",
+ "id":
+ "e45ec9d7-01df-4cb1-896f-aff2a6ca5a8b/dcae.capabilities.composition.host"
+ },
+ "capability": {
+ "name": "dcae.capabilities.composition.host",
+ "id":
+ "e45ec9d7-01df-4cb1-896f-aff2a6ca5a8b/dcae.capabilities.composition.host"
+ },
+ "name": "composition",
+ "id": "e45ec9d7-01df-4cb1-896f-aff2a6ca5a8b/composition"
+ },
+ {
+ "occurrences": [0, "UNBOUNDED"],
+ "node": {
+ "name": "tosca.capabilities.Node",
+ "id":
+ "e45ec9d7-01df-4cb1-896f-aff2a6ca5a8b/tosca.capabilities.Node"
+ },
+ "capability": {
+ "name": "tosca.capabilities.Node",
+ "id":
+ "e45ec9d7-01df-4cb1-896f-aff2a6ca5a8b/tosca.capabilities.Node"
+ },
+ "name": "dependency",
+ "id": "e45ec9d7-01df-4cb1-896f-aff2a6ca5a8b/dependency",
+ "relationship": { "type": "tosca.relationships.DependsOn" }
+ }
+ ],
+ "capabilities": [
+ {
+ "name": "stream_subscribe_0",
+ "type": {
+ "name": "dcae.capabilities.stream.subscribe",
+ "id":
+ "e45ec9d7-01df-4cb1-896f-aff2a6ca5a8b/dcae.capabilities.stream.subscribe"
+ }
+ },
+ {
+ "name": "feature",
+ "type": {
+ "name": "tosca.capabilities.Node",
+ "id":
+ "e45ec9d7-01df-4cb1-896f-aff2a6ca5a8b/tosca.capabilities.Node"
+ }
+ }
+ ],
+ "catalogId": 0,
+ "catalog": "http://135.91.225.81:8080",
+ "hierarchy": [
+ {
+ "name": "tosca.dcae.nodes.cdapApp",
+ "id":
+ "e45ec9d7-01df-4cb1-896f-aff2a6ca5a8b/tosca.dcae.nodes.cdapApp"
+ },
+ {
+ "name": "tosca.dcae.nodes.Root",
+ "id": "e45ec9d7-01df-4cb1-896f-aff2a6ca5a8b/tosca.dcae.nodes.Root"
+ },
+ {
+ "name": "tosca.nodes.Root",
+ "description":
+ "The TOSCA Node Type all other TOSCA base Node Types derive from",
+ "id": "e45ec9d7-01df-4cb1-896f-aff2a6ca5a8b/tosca.nodes.Root"
+ }
+ ],
+ "name": "tosca.dcae.nodes.cdapApp.Map",
+ "id": 0
+ },
+ "type": { "name": "tosca.dcae.nodes.cdapApp.Map" }
+ },
+ {
+ "name": "supplement",
+ "description":
+ "/sdc/v1/catalog/resources/30d0b4f4-efc5-424a-9d26-6d7843a0971d/artifacts/2d68c4e3-a4ab-46b3-ae3b-2a593fa97ded",
+ "id": "30d0b4f4-efc5-424a-9d26-6d7843a0971d",
+ "nid": "n.1517823224030.1",
+ "capabilities": [
+ {
+ "name": "stream_subscribe_0",
+ "type": {
+ "name": "dcae.capabilities.stream.subscribe",
+ "id": "template.yaml/dcae.capabilities.stream.subscribe"
+ },
+ "properties": [
+ {
+ "assignment": { "value": "VES_specification" },
+ "name": "format",
+ "type": "string"
+ },
+ {
+ "assignment": { "value": "IGNORE" },
+ "name": "route",
+ "type": "string"
+ },
+ {
+ "assignment": { "value": "5.28.4" },
+ "name": "version",
+ "type": "string"
+ }
+ ]
+ },
+ {
+ "name": "feature",
+ "type": {
+ "name": "tosca.capabilities.Node",
+ "id": "template.yaml/tosca.capabilities.Node"
+ }
+ }
+ ],
+ "requirements": [
+ {
+ "capability": {
+ "name": "dcae.capabilities.stream.subscribe",
+ "id": "template.yaml/dcae.capabilities.stream.subscribe"
+ },
+ "node_filter": {
+ "capabilities": [
+ {
+ "dcae.capabilities.stream.subscribe": {
+ "properties": [
+ { "format": [{ "equal": "VES_specification" }] },
+ { "version": [{ "equal": "5.28.4" }] }
+ ]
+ }
+ }
+ ]
+ },
+ "name": "stream_publish_0",
+ "relationship": { "type": "dcae.relationships.rework_connected_to" }
+ },
+ {
+ "capability": {
+ "name": "dcae.capabilities.cdapHost",
+ "id": "template.yaml/dcae.capabilities.cdapHost"
+ },
+ "name": "host",
+ "relationship": {
+ "type": "dcae.relationships.component_contained_in"
+ }
+ },
+ {
+ "capability": {
+ "name": "dcae.capabilities.composition.host",
+ "id": "template.yaml/dcae.capabilities.composition.host"
+ },
+ "name": "composition"
+ },
+ {
+ "occurrences": [0, "UNBOUNDED"],
+ "node": "tosca.nodes.Root",
+ "capability": {
+ "name": "tosca.capabilities.Node",
+ "id": "template.yaml/tosca.capabilities.Node"
+ },
+ "name": "dependency",
+ "relationship": { "type": "tosca.relationships.DependsOn" }
+ }
+ ],
+ "properties": [
+ {
+ "assignment": {
+ "value":
+ "com.att.gfp.dcae.eventProcessor.Catalog,com.att.ecomp.dcae.eventproc.cdap.common.processors.Catalog"
+ },
+ "name": "defaultCatalogs",
+ "type": "string"
+ },
+ {
+ "assignment": { "value": { "get_input": "defaultObjects" } },
+ "name": "defaultObjects",
+ "type": "string"
+ },
+ {
+ "assignment": { "value": "Supplement Microservice" },
+ "name": "description",
+ "type": "string"
+ },
+ {
+ "assignment": { "value": { "get_input": "dmaapConsumerGrp" } },
+ "name": "dmaapConsumerGrp",
+ "type": "string"
+ },
+ {
+ "assignment": { "value": "" },
+ "name": "eventFactory",
+ "type": "string"
+ },
+ {
+ "assignment": {
+ "value":
+ "{\"processing\":[{\"phase\":\"supplement\",\"filter\":{\"class\":\"OneOf\",\"field\":\"event.commonEventHeader.eventType\",\"values\":[\"vPCRF_Alarms\",\"vMoG_Alarms\",\"applicationVnf\",\"GuestOS_Alarms\",\"Control\"]},\"processors\":[{\"class\":\"DateFormatter\",\"value\":\"${event.commonEventHeader.startEpochMicrosec}\",\"fromFormat\":\"#ms\",\"fromTz\":\"GMT\",\"toField\":\"event.commonEventHeader.internalHeaderFields.firstDatetime\",\"toFormat\":\"EEE,ddMMMyyyyHH:mm:ssZ\",\"toTz\":\"GMT\"},{\"class\":\"DateFormatter\",\"value\":\"${event.commonEventHeader.lastEpochMicrosec}\",\"fromFormat\":\"#ms\",\"fromTz\":\"GMT\",\"toField\":\"event.commonEventHeader.internalHeaderFields.lastDatetime\",\"toFormat\":\"EEE,ddMMMyyyyHH:mm:ssZ\",\"toTz\":\"GMT\"},{\"class\":\"DateFormatter\",\"value\":\"%{now.ms}\",\"fromFormat\":\"#ms\",\"fromTz\":\"GMT\",\"toField\":\"event.commonEventHeader.internalHeaderFields.collectorTimeStamp\",\"toFormat\":\"EEE,ddMMMyyyyHH:mm:ssZ\",\"toTz\":\"GMT\"},{\"class\":\"Set\",\"updates\":{\"event.commonEventHeader.internalHeaderFields.internalHeaderFieldsVersion\":\"9.9\",\"event.commonEventHeader.internalHeaderFields.eventTag\":\"${hp.tag}\"}}]},{\"phase\":\"supplement\",\"processors\":[{\"class\":\"RunPhase\",\"phase\":\"supplement_publish\"}]},{\"phase\":\"ves_supplement\",\"filter\":{\"class\":\"OneOf\",\"field\":\"event.commonEventHeader.eventType\",\"values\":[\"vIRC_Alarms\"]},\"processors\":[{\"class\":\"RunPhase\",\"phase\":\"supplement_publish\"}]}]}"
+ },
+ "name": "json",
+ "type": "string"
+ },
+ {
+ "assignment": { "value": { "get_input": "monitorThreads" } },
+ "name": "monitorThreads",
+ "type": "string"
+ },
+ {
+ "assignment": { "value": "supplementMS" },
+ "name": "name",
+ "type": "string"
+ },
+ {
+ "assignment": { "value": "supplement" },
+ "name": "phases.supplement.phaseName",
+ "type": "string"
+ },
+ {
+ "assignment": { "value": ".*supplement-in.*" },
+ "name": "phases.supplement.streamPattern",
+ "type": "string"
+ },
+ {
+ "assignment": { "value": "ves_supplement" },
+ "name": "phases.ves_supplement.phaseName",
+ "type": "string"
+ },
+ {
+ "assignment": { "value": ".*sec-fault.*" },
+ "name": "phases.ves_supplement.streamPattern",
+ "type": "string"
+ },
+ {
+ "assignment": {
+ "value":
+ "{\"phase\":\"supplement_publish\",\"processors\":[{\"class\":\"EventProcessorMetric\",\"metric\":\"out.events\"},{\"class\":\"SendEvent\",\"channel\":\"DCAE-SUPPLEMENT-EVENT-OUT\"}]}"
+ },
+ "name": "postConfig",
+ "type": "string"
+ },
+ {
+ "assignment": { "value": "vnfTypes.*" },
+ "name": "ruleKeyPattern",
+ "type": "string"
+ },
+ {
+ "assignment": { "value": "False" },
+ "name": "startNoChannels",
+ "type": "string"
+ },
+ {
+ "default": "cdap_broker",
+ "assignment": {
+ "value": { "get_input": "connected_broker_dns_name" }
+ },
+ "name": "connected_broker_dns_name",
+ "type": "string",
+ "required": true
+ },
+ { "name": "jar_url", "type": "string", "required": true },
+ {
+ "assignment": {
+ "value": {
+ "get_property": ["SELF", "composition", "location_id"]
+ }
+ },
+ "name": "location_id",
+ "type": "string",
+ "required": true
+ },
+ {
+ "name": "service_component_type",
+ "type": "string",
+ "required": true
+ }
+ ],
+ "typeinfo": {
+ "itemId":
+ "30d0b4f4-efc5-424a-9d26-6d7843a0971d/tosca.dcae.nodes.cdapApp.Supplement",
+ "requirements": [
+ {
+ "node": {
+ "name": "dcae.capabilities.stream.subscribe",
+ "id":
+ "30d0b4f4-efc5-424a-9d26-6d7843a0971d/dcae.capabilities.stream.subscribe"
+ },
+ "capability": {
+ "name": "dcae.capabilities.stream.subscribe",
+ "id":
+ "30d0b4f4-efc5-424a-9d26-6d7843a0971d/dcae.capabilities.stream.subscribe"
+ },
+ "name": "stream_publish_0",
+ "id": "30d0b4f4-efc5-424a-9d26-6d7843a0971d/stream_publish_0",
+ "relationship": {
+ "type": "dcae.relationships.rework_connected_to"
+ }
+ },
+ {
+ "node": {
+ "name": "dcae.capabilities.cdapHost",
+ "id":
+ "30d0b4f4-efc5-424a-9d26-6d7843a0971d/dcae.capabilities.cdapHost"
+ },
+ "capability": {
+ "name": "dcae.capabilities.cdapHost",
+ "id":
+ "30d0b4f4-efc5-424a-9d26-6d7843a0971d/dcae.capabilities.cdapHost"
+ },
+ "name": "host",
+ "id": "30d0b4f4-efc5-424a-9d26-6d7843a0971d/host",
+ "relationship": {
+ "type": "dcae.relationships.component_contained_in"
+ }
+ },
+ {
+ "node": {
+ "name": "dcae.capabilities.composition.host",
+ "id":
+ "30d0b4f4-efc5-424a-9d26-6d7843a0971d/dcae.capabilities.composition.host"
+ },
+ "capability": {
+ "name": "dcae.capabilities.composition.host",
+ "id":
+ "30d0b4f4-efc5-424a-9d26-6d7843a0971d/dcae.capabilities.composition.host"
+ },
+ "name": "composition",
+ "id": "30d0b4f4-efc5-424a-9d26-6d7843a0971d/composition"
+ },
+ {
+ "occurrences": [0, "UNBOUNDED"],
+ "node": {
+ "name": "tosca.capabilities.Node",
+ "id":
+ "30d0b4f4-efc5-424a-9d26-6d7843a0971d/tosca.capabilities.Node"
+ },
+ "capability": {
+ "name": "tosca.capabilities.Node",
+ "id":
+ "30d0b4f4-efc5-424a-9d26-6d7843a0971d/tosca.capabilities.Node"
+ },
+ "name": "dependency",
+ "id": "30d0b4f4-efc5-424a-9d26-6d7843a0971d/dependency",
+ "relationship": { "type": "tosca.relationships.DependsOn" }
+ }
+ ],
+ "capabilities": [
+ {
+ "name": "stream_subscribe_0",
+ "type": {
+ "name": "dcae.capabilities.stream.subscribe",
+ "id":
+ "30d0b4f4-efc5-424a-9d26-6d7843a0971d/dcae.capabilities.stream.subscribe"
+ }
+ },
+ {
+ "name": "feature",
+ "type": {
+ "name": "tosca.capabilities.Node",
+ "id":
+ "30d0b4f4-efc5-424a-9d26-6d7843a0971d/tosca.capabilities.Node"
+ }
+ }
+ ],
+ "catalogId": 0,
+ "catalog": "http://135.91.225.81:8080",
+ "hierarchy": [
+ {
+ "name": "tosca.dcae.nodes.cdapApp",
+ "id":
+ "30d0b4f4-efc5-424a-9d26-6d7843a0971d/tosca.dcae.nodes.cdapApp"
+ },
+ {
+ "name": "tosca.dcae.nodes.Root",
+ "id": "30d0b4f4-efc5-424a-9d26-6d7843a0971d/tosca.dcae.nodes.Root"
+ },
+ {
+ "name": "tosca.nodes.Root",
+ "description":
+ "The TOSCA Node Type all other TOSCA base Node Types derive from",
+ "id": "30d0b4f4-efc5-424a-9d26-6d7843a0971d/tosca.nodes.Root"
+ }
+ ],
+ "name": "tosca.dcae.nodes.cdapApp.Supplement",
+ "id": 0
+ },
+ "type": { "name": "tosca.dcae.nodes.cdapApp.Supplement" }
+ },
+ {
+ "name": "enrich",
+ "description":
+ "/sdc/v1/catalog/resources/8743b27b-f01e-4b17-a306-37efd42983d0/artifacts/c96f3ffd-516c-470b-ab7c-ced64fb244f0",
+ "id": "8743b27b-f01e-4b17-a306-37efd42983d0",
+ "nid": "n.1517823228454.2",
+ "capabilities": [
+ {
+ "name": "stream_subscribe_0",
+ "type": {
+ "name": "dcae.capabilities.stream.subscribe",
+ "id": "template.yaml/dcae.capabilities.stream.subscribe"
+ },
+ "properties": [
+ {
+ "assignment": { "value": "VES_specification" },
+ "name": "format",
+ "type": "string"
+ },
+ {
+ "assignment": { "value": "IGNORE" },
+ "name": "route",
+ "type": "string"
+ },
+ {
+ "assignment": { "value": "5.28.4" },
+ "name": "version",
+ "type": "string"
+ }
+ ]
+ },
+ {
+ "name": "feature",
+ "type": {
+ "name": "tosca.capabilities.Node",
+ "id": "template.yaml/tosca.capabilities.Node"
+ }
+ }
+ ],
+ "requirements": [
+ {
+ "capability": {
+ "name": "dcae.capabilities.stream.subscribe",
+ "id": "template.yaml/dcae.capabilities.stream.subscribe"
+ },
+ "node_filter": {
+ "capabilities": [
+ {
+ "dcae.capabilities.stream.subscribe": {
+ "properties": [
+ { "format": [{ "equal": "VES_specification" }] },
+ { "version": [{ "equal": "5.28.4" }] }
+ ]
+ }
+ }
+ ]
+ },
+ "name": "stream_publish_0",
+ "relationship": { "type": "dcae.relationships.rework_connected_to" }
+ },
+ {
+ "capability": {
+ "name": "dcae.capabilities.cdapHost",
+ "id": "template.yaml/dcae.capabilities.cdapHost"
+ },
+ "name": "host",
+ "relationship": {
+ "type": "dcae.relationships.component_contained_in"
+ }
+ },
+ {
+ "capability": {
+ "name": "dcae.capabilities.composition.host",
+ "id": "template.yaml/dcae.capabilities.composition.host"
+ },
+ "name": "composition"
+ },
+ {
+ "occurrences": [0, "UNBOUNDED"],
+ "node": "tosca.nodes.Root",
+ "capability": {
+ "name": "tosca.capabilities.Node",
+ "id": "template.yaml/tosca.capabilities.Node"
+ },
+ "name": "dependency",
+ "relationship": { "type": "tosca.relationships.DependsOn" }
+ }
+ ],
+ "properties": [
+ {
+ "assignment": {
+ "value":
+ "com.att.ecomp.dcae.eventproc.cdap.common.processors.Catalog,com.att.sa.highlandPark.topoTools.HpTopoDbObjectCatalog,com.att.sa.highlandPark.topoTools.HpTopoDbProcessors,com.att.gfp.dcae.eventProcessor.Catalog"
+ },
+ "name": "defaultCatalogs",
+ "type": "string"
+ },
+ {
+ "assignment": { "value": { "get_input": "defaultObjects" } },
+ "name": "defaultObjects",
+ "type": "string"
+ },
+ {
+ "assignment": { "value": "Enrich Microservice" },
+ "name": "description",
+ "type": "string"
+ },
+ {
+ "assignment": { "value": { "get_input": "dmaapConsumerGrp" } },
+ "name": "dmaapConsumerGrp",
+ "type": "string"
+ },
+ {
+ "assignment": { "value": "" },
+ "name": "eventFactory",
+ "type": "string"
+ },
+ {
+ "assignment": {
+ "value":
+ "{\"processing\":[{\"phase\":\"enrich\",\"filter\":{\"class\":\"Assigned\",\"field\":\"event.commonEventHeader.sourceName\",\"emtpyIsAssigned\":false},\"processors\":[{\"class\":\"StringTransform\",\"value\":\"${event.commonEventHeader.sourceName}\",\"toField\":\"searchString\",\"targetCase\":\"lower\"},{\"class\":\"EventProcessorMetric\",\"metric\":\"in.events\"},{\"class\":\"LogText\",\"logLevel\":\"WARN\",\"logText\":\"Alarm_EnrichmentStartingfor${hp.tag}\"},{\"class\":\"TopoSearch\",\"searchField\":\"oid\",\"searchValue\":\"${searchString}\",\"updates\":{\"event.commonEventHeader.sourceName\":\"${ptnii_name}\",\"event.commonEventHeader.sourceId\":\"${vserver_id}\",\"event.commonEventHeader.reportingEntityName\":\"${vnf_name}\",\"event.commonEventHeader.reportingEntityId\":\"${vnf_id}\",\"event.commonEventHeader.internalHeaderFields.equipmentType\":\"${equip_type}\",\"event.commonEventHeader.internalHeaderFields.provStatus\":\"${prov_status}\",\"event.commonEventHeader.internalHeaderFields.inMaint\":\"${in_maint}\",\"event.commonEventHeader.internalHeaderFields.tenantName\":\"${tenant_name}\",\"event.commonEventHeader.internalHeaderFields.eventSourceHostname\":\"${hostname}\",\"isEnriched\":true}},{\"class\":\"Set\",\"updates\":{\"event.preCorrelationAging\":\"${preCorrelationAging}\",\"event.prepublishAging\":\"${prepublishAging}\"}},{\"class\":\"Clear\",\"fields\":[\"searchString\"]},{\"class\":\"RunPhase\",\"phase\":\"enrich_publish\"}]}]}"
+ },
+ "name": "json",
+ "type": "string"
+ },
+ {
+ "assignment": { "value": { "get_input": "monitorThreads" } },
+ "name": "monitorThreads",
+ "type": "string"
+ },
+ {
+ "assignment": { "value": "enrichMS" },
+ "name": "name",
+ "type": "string"
+ },
+ {
+ "assignment": { "value": "enrich" },
+ "name": "phases.enrich.phaseName",
+ "type": "string"
+ },
+ {
+ "assignment": { "value": ".*" },
+ "name": "phases.enrich.streamPattern",
+ "type": "string"
+ },
+ {
+ "assignment": {
+ "value":
+ "{\"phase\":\"enrich_publish\",\"processors\":[{\"class\":\"EventProcessorMetric\",\"metric\":\"out.events\"},{\"class\":\"SendEvent\",\"channel\":\"DCAE-ENRICH-EVENT-OUT\"}]}"
+ },
+ "name": "postConfig",
+ "type": "string"
+ },
+ {
+ "assignment": { "value": "vnfTypes.*" },
+ "name": "ruleKeyPattern",
+ "type": "string"
+ },
+ {
+ "assignment": { "value": "False" },
+ "name": "startNoChannels",
+ "type": "string"
+ },
+ {
+ "default": "cdap_broker",
+ "assignment": {
+ "value": { "get_input": "connected_broker_dns_name" }
+ },
+ "name": "connected_broker_dns_name",
+ "type": "string",
+ "required": true
+ },
+ { "name": "jar_url", "type": "string", "required": true },
+ {
+ "assignment": {
+ "value": {
+ "get_property": ["SELF", "composition", "location_id"]
+ }
+ },
+ "name": "location_id",
+ "type": "string",
+ "required": true
+ },
+ {
+ "name": "service_component_type",
+ "type": "string",
+ "required": true
+ }
+ ],
+ "typeinfo": {
+ "itemId":
+ "8743b27b-f01e-4b17-a306-37efd42983d0/tosca.dcae.nodes.cdapApp.Enrich",
+ "requirements": [
+ {
+ "node": {
+ "name": "dcae.capabilities.stream.subscribe",
+ "id":
+ "8743b27b-f01e-4b17-a306-37efd42983d0/dcae.capabilities.stream.subscribe"
+ },
+ "capability": {
+ "name": "dcae.capabilities.stream.subscribe",
+ "id":
+ "8743b27b-f01e-4b17-a306-37efd42983d0/dcae.capabilities.stream.subscribe"
+ },
+ "name": "stream_publish_0",
+ "id": "8743b27b-f01e-4b17-a306-37efd42983d0/stream_publish_0",
+ "relationship": {
+ "type": "dcae.relationships.rework_connected_to"
+ }
+ },
+ {
+ "node": {
+ "name": "dcae.capabilities.cdapHost",
+ "id":
+ "8743b27b-f01e-4b17-a306-37efd42983d0/dcae.capabilities.cdapHost"
+ },
+ "capability": {
+ "name": "dcae.capabilities.cdapHost",
+ "id":
+ "8743b27b-f01e-4b17-a306-37efd42983d0/dcae.capabilities.cdapHost"
+ },
+ "name": "host",
+ "id": "8743b27b-f01e-4b17-a306-37efd42983d0/host",
+ "relationship": {
+ "type": "dcae.relationships.component_contained_in"
+ }
+ },
+ {
+ "node": {
+ "name": "dcae.capabilities.composition.host",
+ "id":
+ "8743b27b-f01e-4b17-a306-37efd42983d0/dcae.capabilities.composition.host"
+ },
+ "capability": {
+ "name": "dcae.capabilities.composition.host",
+ "id":
+ "8743b27b-f01e-4b17-a306-37efd42983d0/dcae.capabilities.composition.host"
+ },
+ "name": "composition",
+ "id": "8743b27b-f01e-4b17-a306-37efd42983d0/composition"
+ },
+ {
+ "occurrences": [0, "UNBOUNDED"],
+ "node": {
+ "name": "tosca.capabilities.Node",
+ "id":
+ "8743b27b-f01e-4b17-a306-37efd42983d0/tosca.capabilities.Node"
+ },
+ "capability": {
+ "name": "tosca.capabilities.Node",
+ "id":
+ "8743b27b-f01e-4b17-a306-37efd42983d0/tosca.capabilities.Node"
+ },
+ "name": "dependency",
+ "id": "8743b27b-f01e-4b17-a306-37efd42983d0/dependency",
+ "relationship": { "type": "tosca.relationships.DependsOn" }
+ }
+ ],
+ "capabilities": [
+ {
+ "name": "stream_subscribe_0",
+ "type": {
+ "name": "dcae.capabilities.stream.subscribe",
+ "id":
+ "8743b27b-f01e-4b17-a306-37efd42983d0/dcae.capabilities.stream.subscribe"
+ }
+ },
+ {
+ "name": "feature",
+ "type": {
+ "name": "tosca.capabilities.Node",
+ "id":
+ "8743b27b-f01e-4b17-a306-37efd42983d0/tosca.capabilities.Node"
+ }
+ }
+ ],
+ "catalogId": 0,
+ "catalog": "http://135.91.225.81:8080",
+ "hierarchy": [
+ {
+ "name": "tosca.dcae.nodes.cdapApp",
+ "id":
+ "8743b27b-f01e-4b17-a306-37efd42983d0/tosca.dcae.nodes.cdapApp"
+ },
+ {
+ "name": "tosca.dcae.nodes.Root",
+ "id": "8743b27b-f01e-4b17-a306-37efd42983d0/tosca.dcae.nodes.Root"
+ },
+ {
+ "name": "tosca.nodes.Root",
+ "description":
+ "The TOSCA Node Type all other TOSCA base Node Types derive from",
+ "id": "8743b27b-f01e-4b17-a306-37efd42983d0/tosca.nodes.Root"
+ }
+ ],
+ "name": "tosca.dcae.nodes.cdapApp.Enrich",
+ "id": 0
+ },
+ "type": { "name": "tosca.dcae.nodes.cdapApp.Enrich" }
+ }
+ ],
+ "relations": [
+ {
+ "n1": "n.1520766712715.7",
+ "name1": "foi",
+ "n2": "n.1520766711386.5",
+ "name2": "topic1",
+ "meta": {
+ "n1": "n.1520766712715.7",
+ "p1": "stream_publish_0",
+ "relationship": ["foi", null, "stream_publish_0"],
+ "n2": "n.1520766711386.5",
+ "p2": "topic"
+ }
+ },
+ {
+ "n1": "n.1520766712715.7",
+ "name1": "foi",
+ "n2": "n.1520766712709.6",
+ "name2": "feed0",
+ "meta": {
+ "n1": "n.1520766712715.7",
+ "p1": "stream_publish_0",
+ "n2": "n.1520766712709.6",
+ "p2": "feed",
+ "relationship": [
+ "foi",
+ "dcae.relationships.publish_files",
+ "stream_publish_0"
+ ]
+ }
+ },
+ {
+ "n1": "n.1520766711370.3",
+ "name1": "componentSpec_docker_map",
+ "n2": "n.1520766711379.4",
+ "name2": "feed0",
+ "meta": {
+ "n1": "n.1520766711370.3",
+ "p1": "stream_subscribe_0",
+ "n2": "n.1520766711379.4",
+ "p2": "feed",
+ "relationship": [
+ "componentSpec_docker_map",
+ "dcae.relationships.subscribe_to_files",
+ "stream_subscribe_0"
+ ]
+ }
+ },
+ {
+ "n1": "n.1520766711370.3",
+ "name1": "componentSpec_docker_map",
+ "n2": "n.1520766711386.5",
+ "name2": "topic1",
+ "meta": {
+ "n1": "n.1520766711370.3",
+ "p1": "stream_publish_0",
+ "n2": "n.1520766711386.5",
+ "p2": "topic",
+ "relationship": [
+ "componentSpec_docker_map",
+ "dcae.relationships.publish_events",
+ "stream_publish_0"
+ ]
+ }
+ }
+ ],
+ "inputs": [],
+ "outputs": []
+ }
+}
diff --git a/public/cypress/fixtures/doneSaveEditSimpleCopy.json b/public/cypress/fixtures/doneSaveEditSimpleCopy.json
new file mode 100644
index 0000000..cf6344c
--- /dev/null
+++ b/public/cypress/fixtures/doneSaveEditSimpleCopy.json
@@ -0,0 +1,21 @@
+{
+ "version": "4.1",
+ "eventType": "syslogFields",
+ "description": "newRule",
+ "uid": "f620724b-7170-43e1-8a8b-55e98cabe658",
+ "phase": "sto2",
+ "condition": null,
+ "actions": [
+ {
+ "actionType": "copy",
+ "from": {
+ "regex": "",
+ "state": "closed",
+ "values": [{ "value": "" }, { "value": "" }],
+ "value": "aB"
+ },
+ "target": "event.commonEventHeader.domain",
+ "id": "296bcdd0-1d20-11e8-a96d-298fbe0cb0fd"
+ }
+ ]
+}
diff --git a/public/cypress/fixtures/doneSaveSimpleLogText.json b/public/cypress/fixtures/doneSaveSimpleLogText.json
new file mode 100644
index 0000000..be83753
--- /dev/null
+++ b/public/cypress/fixtures/doneSaveSimpleLogText.json
@@ -0,0 +1,26 @@
+{
+ "version": "4.1",
+ "eventType": "syslogFields",
+ "description": "newRule2",
+ "uid": "57612d40-c66d-4a5a-95c3-0165564f837d",
+ "phase": "phase_1",
+ "condition": null,
+ "actions": [
+ {
+ "logText": {
+ "name": "AAA",
+ "level": "BBB",
+ "text": "ABC"
+ },
+ "actionType": "log text",
+ "from": {
+ "regex": "",
+ "state": "closed",
+ "values": [{ "value": "" }, { "value": "" }],
+ "value": ""
+ },
+ "target": "",
+ "id": "e340ab50-423b-11e8-94f2-3dd2f158c314"
+ }
+ ]
+}
diff --git a/public/cypress/fixtures/doneSaveSimpleMap.json b/public/cypress/fixtures/doneSaveSimpleMap.json
new file mode 100644
index 0000000..eb637be
--- /dev/null
+++ b/public/cypress/fixtures/doneSaveSimpleMap.json
@@ -0,0 +1,29 @@
+{
+ "version": "4.1",
+ "eventType": "syslogFields",
+ "description": "newRule2",
+ "uid": "57612d40-c66d-4a5a-95c3-0165564f837d",
+ "phase": "phase_1",
+ "condition": null,
+ "actions": [
+ {
+ "map": {
+ "default": "",
+ "haveDefault": false,
+ "values": [
+ { "key": "Key1", "value": "Key1" },
+ { "key": "Key2", "value": "Key2" }
+ ]
+ },
+ "actionType": "map",
+ "from": {
+ "regex": "",
+ "state": "closed",
+ "values": [{ "value": "" }, { "value": "" }],
+ "value": "test"
+ },
+ "target": "event.commonEventHeader.eventId",
+ "id": "e340ab50-423b-11e8-94f2-3dd2f158c314"
+ }
+ ]
+}
diff --git a/public/cypress/integration/e2e/e2eWithIntegration-spec.ts b/public/cypress/integration/e2e/e2eWithIntegration-spec.ts
index 459a7de..949e966 100644
--- a/public/cypress/integration/e2e/e2eWithIntegration-spec.ts
+++ b/public/cypress/integration/e2e/e2eWithIntegration-spec.ts
@@ -3,7 +3,6 @@ const randomNodeName = () =>
.toString(36)
.substr(2, 7);
const NODE_NAME = randomNodeName();
-
const serverGetDDLData = () => {
return cy
.server()
@@ -12,14 +11,9 @@ const serverGetDDLData = () => {
Cypress.env('backendUrl') + '/getResourcesByMonitoringTemplateCategory'
)
.as('templateAPi')
- .route(
- 'GET',
- Cypress.env('backendUrl') +
- '/service/06c7d927-4e2f-47e1-a29d-b6ed229ebc0a'
- )
+ .route('GET', Cypress.env('backendUrl') + '/service/**')
.as('vfniListAPi');
};
-
const saveAndDoneHttp = () => {
cy.server();
cy
@@ -29,7 +23,6 @@ const saveAndDoneHttp = () => {
})
.as('doneSaveCopyRule');
};
-
const createNewMC = () => {
cy
.get('input[data-tests-id="nameMc"]')
@@ -64,18 +57,33 @@ const createNewMC = () => {
.click()
.wait('@newMC');
};
-
import { buttonCreateMC } from '../mocks/homePage-spec';
import {
selectVersionAndTypeAndAddFirstRule,
- fillRuleDecription,
+ fillRuleDescription,
addCopyAction,
editFirstRule
} from '../mocks/ruleEngine-spec';
+describe('DCAED - forntend e2e and inagration test ', () => {
+ // context(('home page'), () => { it.only('should open env', () => { cy
+ // .visit('https://www.e-access.att.com/DevOps02/sdc1/portal#!/dashboard')
+ // .get(':nth-child(2) > :nth-child(1) > [border="0"][width="100%"] >
+ // :nth-child(1) > :nt' + 'h-child(1) > td > input') .type('ym903w')
+ // .get(':nth-child(3) > td > input') .type('Apple1qazxsw2')
+ // .get('[border="0"][width="100%"] > :nth-child(1) > :nth-child(5) > td >
+ // input') .click() .get('#srv_successok > input') .click()
+ // .get(':nth-child(1) > .w-sdc-dashboard-card-new-content')
+ // .trigger('mouseover') .get('button[data-tests-id="createServiceButton"]')
+ // .click() .get('input[data-tests-id="name"]')
+ // .type(`DCAE_SRV_${NODE_NAME}`)
+ // .get('select[data-tests-id="selectGeneralCategory"]') .select('Mobility')
+ // .get('textarea[data-tests-id="description"]') .type('bla')
+ // .get('input[data-tests-id="projectCode"]') .type('att01')
+ // .get('button[data-tests-id="create/save"]') .click()
+ // .get('div[data-tests-id="CompositionLeftSideMenu"]') .click() }); });
-describe('DCAED - forntend e2e and inagration test', () => {
- context('Empty Monitoring Configuration list for service', () => {
- it('Loads', () => {
+ context('Empty Monitoring Configuration list for service ', () => {
+ it(' Loads ', () => {
cy.homePage();
});
});
@@ -96,50 +104,24 @@ describe('DCAED - forntend e2e and inagration test', () => {
.and('be.disabled');
});
- it('click on create mc - more then one tab should be visible', () => {
- createNewMC();
- cy
- .get('ul[p-tabviewnav]')
- .children()
- .should($el => {
- expect($el.length).to.be.greaterThan(1);
- });
- });
-
- it('should enter rule engine in map tab and create new rule', () => {
- createNewMC();
- cy
- .get('#ui-tabpanel-1-label')
- .should('contain', 'map')
- .click();
- selectVersionAndTypeAndAddFirstRule();
- fillRuleDecription('newRule');
- addCopyAction();
- saveAndDoneHttp();
- cy.get('button[data-tests-id="btnDone"]').click();
- cy
- .wait('@doneSaveCopyRule')
- .get('div[data-tests-id="ruleElement"]')
- .should('be.visible')
- .then(function($lis) {
- expect($lis).to.have.length(1);
- expect($lis.eq(0)).to.contain('newRule');
- });
- editFirstRule();
- fillRuleDecription('LiavRule');
- saveAndDoneHttp();
- cy
- .get('button[data-tests-id="btnSave"]')
- .click()
- .wait('@doneSaveCopyRule')
- .get('a[data-tests-id="btnBackRule"]')
- .click()
- .get('div[data-tests-id="ruleElement"]')
- .should('be.visible')
- .then(function($lis) {
- expect($lis).to.have.length(1);
- expect($lis.eq(0)).to.contain('LiavRule');
- });
- });
+ // it('click on create mc - more then one tab should be visible', () => {
+ // createNewMC(); cy .get('ul[p-tabviewnav]') .children()
+ // .should($el => { expect($el.length).to.be.greaterThan(1); }); });
+ // it('should enter rule engine in map tab and create new rule', () => {
+ // createNewMC(); cy .get('#ui-tabpanel-1-label') .should('contain',
+ // 'map') .click(); selectVersionAndTypeAndAddFirstRule();
+ // fillRuleDescription('newRule'); addCopyAction(); saveAndDoneHttp();
+ // cy.get('button[data-tests-id="btnDone"]').click(); cy
+ // .wait('@doneSaveCopyRule') .get('div[data-tests-id="ruleElement"]')
+ // .should('be.visible') .then(function($lis) {
+ // expect($lis).to.have.length(1);
+ // expect($lis.eq(0)).to.contain('newRule'); }); editFirstRule();
+ // fillRuleDescription('LiavRule'); saveAndDoneHttp(); cy
+ // .get('button[data-tests-id="btnSave"]') .click()
+ // .wait('@doneSaveCopyRule') .get('a[data-tests-id="btnBackRule"]')
+ // .click() .get('div[data-tests-id="ruleElement"]')
+ // .should('be.visible') .then(function($lis) {
+ // expect($lis).to.have.length(1);
+ // expect($lis.eq(0)).to.contain('LiavRule'); }); });
});
});
diff --git a/public/cypress/integration/mocks/errorDialog-spec.ts b/public/cypress/integration/mocks/errorDialog-spec.ts
index 9141ab2..e879a9f 100644
--- a/public/cypress/integration/mocks/errorDialog-spec.ts
+++ b/public/cypress/integration/mocks/errorDialog-spec.ts
@@ -10,12 +10,18 @@ describe('Dialog error - E2E test flow with mock', () => {
});
it('Simulate error dialog is close by cancel button', () => {
- cy.get('button[data-tests-id="error-cancel"]').click();
+ cy
+ .get('button[data-tests-id="error-cancel"]')
+ .first()
+ .click({ force: true });
cy.get('.ui-dialog').should('not.be.visible');
});
it('Simulate error dialog is close by X button', () => {
- cy.get('.ui-dialog-titlebar-icon').click();
+ cy
+ .get('span[data-tests-id="error-cancel-icon"]')
+ .first()
+ .click({ force: true });
cy.get('.ui-dialog').should('not.be.visible');
});
});
diff --git a/public/cypress/integration/mocks/generalPage-spec.ts b/public/cypress/integration/mocks/generalPage-spec.ts
index 1297de8..58a4bc8 100644
--- a/public/cypress/integration/mocks/generalPage-spec.ts
+++ b/public/cypress/integration/mocks/generalPage-spec.ts
@@ -1,4 +1,55 @@
describe('General Page - E2E test flow with mock', () => {
+ describe('Check Boolean DDL', () => {
+ beforeEach(() => {
+ cy.httpGenerateMappingRulesFileName();
+ cy.httpGetDDLData();
+ cy.httpCreateNewMcWithBooleanDDL();
+ cy.getMCListEmpty();
+ cy.homePage();
+ cy.get('button[data-tests-id="btn-create-mc"]').click();
+ });
+
+ it(
+ 'Check boolean DDL with value undefined - using true, true - using true and false' +
+ ' - using false.',
+ () => {
+ cy.fillNewMcForm();
+ cy
+ .get('button[data-tests-id="createMonitoring"]')
+ .as('createButton')
+ .not('[disabled]')
+ .should('not.contain', 'Disabled');
+
+ cy.httpCreateNewMcWithBooleanDDL();
+ cy.emptyRuleEngine('Type1');
+
+ cy.get('@createButton').click();
+ cy
+ .get('#ui-tabpanel-1-label')
+ .should('contain', 'map')
+ .click();
+ cy
+ .get('button[data-tests-id="setting-gear"]')
+ .should('be.visible')
+ .first()
+ .click({ multiple: true });
+
+ cy
+ .get('.map-setting-list #mappingType > .field-text')
+ .should('have.value', 'multiple');
+ cy
+ .get('.map-setting-list > form > #valueUndefined > select')
+ .should('have.value', 'true');
+ cy
+ .get('.map-setting-list > form > #valueTrue > select')
+ .should('have.value', 'true');
+ cy
+ .get('.map-setting-list > form > #valueFalse > select')
+ .should('have.value', 'false');
+ }
+ );
+ });
+
describe('Create new MC', () => {
beforeEach(() => {
cy.httpGetDDLData();
@@ -14,6 +65,39 @@ describe('General Page - E2E test flow with mock', () => {
.and('be.disabled');
});
+ it('After submit advenced setting description exist in first input', () => {
+ cy.fillNewMcForm();
+ cy
+ .get('button[data-tests-id="createMonitoring"]')
+ .as('createButton')
+ .not('[disabled]')
+ .should('not.contain', 'Disabled');
+
+ cy.httpCreateNewMc();
+ cy.emptyRuleEngine('Type1');
+
+ cy.get('@createButton').click();
+ cy
+ .get('#ui-tabpanel-1-label')
+ .should('contain', 'map')
+ .click();
+ cy
+ .get('button[data-tests-id="setting-gear"]')
+ .should('be.visible')
+ .first()
+ .click({ multiple: true });
+
+ cy
+ .get('.map-setting-list #Type1 .help-description')
+ .trigger('mouseenter')
+ .get('.ui-tooltip')
+ .should('be.visible')
+ .should(
+ 'contain',
+ 'CSV to VES mapping, from the file to generate multiple events or single event'
+ );
+ });
+
it('Fill form then click to submit verify setting button and constrain ddl', () => {
cy.fillNewMcForm();
cy
@@ -42,6 +126,29 @@ describe('General Page - E2E test flow with mock', () => {
});
});
+ describe('Flow diagram', () => {
+ beforeEach(() => {
+ cy.httpGetDDLData();
+ cy.getMCListEmpty();
+ cy.homePage();
+ cy.get('button[data-tests-id="btn-create-mc"]').click();
+ cy.fillNewMcForm();
+ cy.httpCreateNewMc();
+ cy.get('button[data-tests-id="createMonitoring"]').click();
+ });
+
+ it.only('should flow diagram need to exist', () => {
+ cy.get('#diagram').should('be.visible');
+ });
+
+ it('should flow diagram need to contain 4 connections', () => {
+ cy
+ .get('#diagram line')
+ .its('length')
+ .should('be.equal', 4);
+ });
+ });
+
describe('Tabs after MC created', () => {
beforeEach(() => {
cy.httpGetDDLData();
@@ -50,7 +157,6 @@ describe('General Page - E2E test flow with mock', () => {
cy.get('button[data-tests-id="btn-create-mc"]').click();
cy.fillNewMcForm();
cy.httpCreateNewMc();
- cy.emptyRuleEngine('Type1');
cy.get('button[data-tests-id="createMonitoring"]').click();
});
diff --git a/public/cypress/integration/mocks/homePage-spec.ts b/public/cypress/integration/mocks/homePage-spec.ts
index 2889390..5f96c98 100644
--- a/public/cypress/integration/mocks/homePage-spec.ts
+++ b/public/cypress/integration/mocks/homePage-spec.ts
@@ -6,11 +6,11 @@ export const buttonCreateMCSpan = () => {
};
export const tableItems = () => {
- return cy.get('tr[data-tests-id="monitoringComponentTableItems"]');
+ return cy.get('datatable-row-wrapper');
};
-export const tableHeaders = () => {
- return cy.get('tr[data-tests-id="monitoringComponentTableHeaders"]');
+export const monitoringComponentTable = () => {
+ return cy.get('ngx-datatable[data-tests-id="monitoringComponentTable"]');
};
export const tableItemsDeleteButton = () => {
return cy.get('button[data-tests-id="tableItemsButtonDelete"]');
@@ -64,9 +64,9 @@ describe('Home Page - E2E test flow with mock', () => {
});
it("Shouldn't have create table with headers", () => {
- tableHeaders().should('not.be.visible');
+ monitoringComponentTable().should('not.be.visible');
});
- it("Shouldn't have create table without items", () => {
+ it("Shouldn't have create table with items", () => {
buttonCreateMC()
.get('div[data-tests-id="new-monitoring-title"]')
.should('contain', 'Monitoring');
@@ -100,20 +100,13 @@ describe('Home Page - E2E test flow with mock', () => {
});
it('Should have create table with headers', () => {
- tableHeaders().should('be.visible');
+ monitoringComponentTable().should('be.visible');
});
it('Should have create table with items', () => {
tableItems().should('have.length', NUMBER_OF_ITEMS);
});
});
- describe('MC List Edit Tests', () => {
- beforeEach(() => {
- cy.getMCList();
- cy.homePage();
- });
- });
-
describe('MC List Delete Tests', () => {
beforeEach(() => {
cy.getMCList();
@@ -126,26 +119,34 @@ describe('Home Page - E2E test flow with mock', () => {
tableItemsDeleteButton().should('be.visible');
tableItemsInfoButton().should('not.be.visible');
});
- it('Mouse hover over item, call delete and remove not submitted (call delete without blueprint api)', () => {
- tableItems().should('have.length', NUMBER_OF_ITEMS);
- doHoverOverFirstLine();
- tableItemsDeleteButton()
- .should('be.visible')
- .click({ force: true });
- popupGetDeleteBtn().click({ force: true });
- tableItems().should('have.length', NUMBER_OF_ITEMS - 1);
- });
- it('Mouse hover over item, call delete and remove submitted (call delete with blueprint api)', () => {
- tableItems()
- .should('have.length', NUMBER_OF_ITEMS)
- .last()
- .trigger('mouseover');
- tableItemsDeleteButton()
- .should('be.visible')
- .click({ force: true });
- popupGetDeleteBtn().click({ force: true });
- tableItems().should('have.length', NUMBER_OF_ITEMS - 1);
- });
+ it(
+ 'Mouse hover over item, call delete and remove not submitted (call delete without' +
+ ' blueprint api)',
+ () => {
+ tableItems().should('have.length', NUMBER_OF_ITEMS);
+ doHoverOverFirstLine();
+ tableItemsDeleteButton()
+ .should('be.visible')
+ .click({ force: true });
+ popupGetDeleteBtn().click({ force: true });
+ tableItems().should('have.length', NUMBER_OF_ITEMS - 1);
+ }
+ );
+ it(
+ 'Mouse hover over item, call delete and remove submitted (call delete with bluepr' +
+ 'int api)',
+ () => {
+ tableItems()
+ .should('have.length', NUMBER_OF_ITEMS)
+ .last()
+ .trigger('mouseover');
+ tableItemsDeleteButton()
+ .should('be.visible')
+ .click({ force: true });
+ popupGetDeleteBtn().click({ force: true });
+ tableItems().should('have.length', NUMBER_OF_ITEMS - 1);
+ }
+ );
it('Mouse hover over item, call delete and cancelOperation', () => {
tableItems().should('have.length', NUMBER_OF_ITEMS);
doHoverOverFirstLine();
@@ -171,6 +172,7 @@ describe('Home Page - E2E test flow with mock', () => {
describe('Successfully Entry Home Page Monitoring Configuration', () => {
beforeEach(() => {
+ cy.httpGetDDLData();
cy.getMCListEmpty();
cy.homePage();
});
@@ -190,12 +192,17 @@ describe('Home Page - E2E test flow with mock', () => {
it('Buttons Functionality Assertion', () => {
buttonCreateMC()
.click()
- .get('div[data-tests-id="new-monitoring-title"]')
+ .get('div[data-tests-id="new-monitorying-titie"]')
.should('contain', 'Monitoring');
});
});
describe('Not Auth Entry Home Page Monitoring Configuration', () => {
+ beforeEach(() => {
+ cy.httpGetDDLData();
+ cy.getMCListEmpty();
+ });
+
it('Buttons disabled when user not owner', () => {
cy.sdcIsOwnerFalse();
navigateButtonDisabled();
diff --git a/public/cypress/integration/mocks/importPage-spec.ts b/public/cypress/integration/mocks/importPage-spec.ts
index 7af904e..446409c 100644
--- a/public/cypress/integration/mocks/importPage-spec.ts
+++ b/public/cypress/integration/mocks/importPage-spec.ts
@@ -5,13 +5,10 @@ const loadVfcmtList = () => {
method: 'GET',
url:
Cypress.env('backendUrl') +
- '/SERVICE/06c7d927-4e2f-47e1-a29d-b6ed229ebc0a/0.1/getVfcmtsForMigration',
+ '/SERVICES/06c7d927-4e2f-47e1-a29d-b6ed229ebc0a/0.1/getVfcmtsForMigration',
response: 'fixture:importVfcmt'
})
- .as('importVfcmtList')
- .visit(
- 'http://localhost:4300/#/main/SERVICE/06c7d927-4e2f-47e1-a29d-b6ed229ebc0a/0.1/import'
- );
+ .as('importVfcmtList');
};
const getVfcmtRefData = data => {
@@ -93,7 +90,11 @@ const getImportButton = () => {
describe('Import Page', () => {
context('First step - get vfcmts list and pick one', () => {
beforeEach(() => {
+ cy.httpGetDDLData();
+ cy.getMCListEmpty();
+ cy.homePage();
loadVfcmtList();
+ cy.get('button[data-tests-id="btn-import-mc"]').click();
});
it('should have values in ddl', () => {
@@ -129,7 +130,11 @@ describe('Import Page', () => {
context('second step - fill fileds according to server response', () => {
beforeEach(() => {
+ cy.httpGetDDLData();
+ cy.getMCListEmpty();
+ cy.homePage();
loadVfcmtList();
+ cy.get('button[data-tests-id="btn-import-mc"]').click();
});
it('get flow type true and service is match to context service', () => {
@@ -208,7 +213,11 @@ describe('Import Page', () => {
context('final step - import vfcmt and getting cdump for tabs', () => {
beforeEach(() => {
+ cy.httpGetDDLData();
+ cy.getMCListEmpty();
+ cy.homePage();
loadVfcmtList();
+ cy.get('button[data-tests-id="btn-import-mc"]').click();
getVfcmtRefData({
serviceUuid: '06c7d927-4e2f-47e1-a29d-b6ed229ebc0a',
name: 'test',
diff --git a/public/cypress/integration/mocks/ruleEngine-spec.ts b/public/cypress/integration/mocks/ruleEngine-spec.ts
index 9a75b87..d2c0b69 100644
--- a/public/cypress/integration/mocks/ruleEngine-spec.ts
+++ b/public/cypress/integration/mocks/ruleEngine-spec.ts
@@ -2,6 +2,14 @@ export const mappingTragetDDL = () => {
return cy.get('select[data-tests-id="mappingDdl"]');
};
+export const getExistRulesList = () => {
+ return cy.get('option[data-tests-id="templateOptionsExist"]');
+};
+
+export const getNotExistRulesList = () => {
+ return cy.get('option[data-tests-id="templateOptionsNotExist"]');
+};
+
export const selectVersionAndTypeAndAddFirstRule = () => {
return cy
.get('select[data-tests-id="selectVersion"]')
@@ -12,13 +20,55 @@ export const selectVersionAndTypeAndAddFirstRule = () => {
.click();
};
-export const fillRuleDecription = text => {
+export const fillRuleDescription = text => {
return cy
.get('input[data-tests-id="inputDescription"]')
.clear()
.type(text);
};
+export const addMapAndDeleteRowAction = () => {
+ cy.get('select[data-tests-id="selectAction"]').select('map');
+ cy.get('button[data-tests-id="btnAddAction"]').click();
+ // fill map action
+ cy
+ .get('input[data-tests-id="valueInput"]')
+ .first()
+ .type('B')
+ .should('have.value', 'B');
+
+ return cy
+ .get('input[data-tests-id="key"]')
+ .type('Key1')
+ .should('have.value', 'Key1')
+ .get('input[data-tests-id="value"]')
+ .type('Key1')
+ .should('have.value', 'Key1')
+ .get('button[data-tests-id="btn-add-row"]')
+ .click()
+ .get('input[data-tests-id="key"]')
+ .last()
+ .type('Key2')
+ .should('have.value', 'Key2')
+ .get('input[data-tests-id="value"]')
+ .last()
+ .type('Key2')
+ .should('have.value', 'Key2')
+ .get('button[data-tests-id="btn-add-row"]')
+ .click()
+ .get('input[data-tests-id="key"]')
+ .last()
+ .type('Key3')
+ .should('have.value', 'Key3')
+ .get('input[data-tests-id="value"]')
+ .last()
+ .type('Key3')
+ .should('have.value', 'Key3')
+ .get('button[data-tests-id="btn-remove-row"]')
+ .last()
+ .click();
+};
+
export const addCopyAction = () => {
return cy
.get('select[data-tests-id="selectAction"]')
@@ -27,6 +77,7 @@ export const addCopyAction = () => {
.click()
.get('input[data-tests-id="valueInput"]')
.type('A')
+ .should('have.value', 'A')
.get('span[data-tests-id="openTargetTree"]')
.click()
.get('.bottom-select')
@@ -56,11 +107,71 @@ export const editFirstRule = () => {
.click();
};
-export const translateValue = () => {
- return '{"processing":[{"phase":"snmp_map","processors":[{"array":"varbinds","datacolumn":"varbind_value","keycolumn":"varbind_oid","class":"SnmpConvertor"},{"phase":"sto2","class":"RunPhase"}]},{"phase":"sto2","processors":[{"updates":{"event.commonEventHeader.domain":"a"},"class":"Set"}]},{"phase":"sto2","processors":[{"phase":"map_publish","class":"RunPhase"}]}]}';
+export const editLastRule = () => {
+ return cy
+ .get('div[data-tests-id="ruleElement"]')
+ .last()
+ .trigger('mouseover')
+ .get('button[data-tests-id="editRule"]')
+ .should('be.visible')
+ .click();
};
+export const deleteFirstRule = () => {
+ cy
+ .get('div[data-tests-id="ruleElement"]')
+ .first()
+ .trigger('mouseover')
+ .get('button[data-tests-id="deleteRule"]')
+ .should('be.visible')
+ .click()
+ .get('div[data-tests-id="delete-popup"]');
+
+ cy.deleteRule();
+ return cy.get('button[data-tests-id="btnDelete"]').click();
+};
+
+export const translateValue = () => {
+ return (
+ '{"processing":[{"phase":"snmp_map","processors":[{"array":"varbinds","datacolumn' +
+ '":"varbind_value","keycolumn":"varbind_oid","class":"SnmpConvertor"},{"phase":"s' +
+ 'to2","class":"RunPhase"}]},{"phase":"sto2","processors":[{"updates":{"event.comm' +
+ 'onEventHeader.domain":"a"},"class":"Set"}]},{"phase":"sto2","processors":[{"phas' +
+ 'e":"map_publish","class":"RunPhase"}]}]}'
+ );
+};
+const NUMBER_OF_EXIST_ITEMS = 3;
+const NUMBER_OF_NOT_EXIST_ITEMS = 16;
describe('Rule engine - E2E test flow with mock', () => {
+ describe('Checking rules exist and not exist separation', () => {
+ beforeEach(() => {
+ cy.httpGenerateMappingRulesFileName();
+ cy.httpGetDDLData();
+ cy.getMCListEmpty();
+ cy.homePage();
+ cy.get('button[data-tests-id="btn-create-mc"]').click();
+ cy.fillNewMcForm();
+ cy.httpCreateNewMc();
+ cy.emptyRuleEngine('Type1');
+ cy.get('button[data-tests-id="createMonitoring"]').click();
+ cy
+ .get('#ui-tabpanel-1-label')
+ .should('contain', 'map')
+ .click();
+ });
+ it('In exist group contain 3 visible options and not exist 16 visible', () => {
+ mappingTragetDDL()
+ .should('be.visible')
+ .contains('json');
+ getExistRulesList()
+ .not('[hidden]')
+ .should('have.length', NUMBER_OF_EXIST_ITEMS);
+ getNotExistRulesList()
+ .not('[hidden]')
+ .should('have.length', NUMBER_OF_NOT_EXIST_ITEMS);
+ });
+ });
+
describe('Mapping target select', () => {
beforeEach(() => {
cy.httpGetDDLData();
@@ -82,25 +193,521 @@ describe('Rule engine - E2E test flow with mock', () => {
.should('be.visible')
.contains('json');
});
+ });
- it('should page refrash after change select value in mapping target ddl', () => {
+ describe('Fill all available Actions', () => {
+ beforeEach(() => {
+ cy.httpGetDDLData();
+ cy.getMCListEmpty();
+ cy.homePage();
+ cy.get('button[data-tests-id="btn-create-mc"]').click();
+ cy.fillNewMcForm();
+ cy.httpCreateNewMc();
+ cy.emptyRuleEngine('Type1');
+ cy
+ .get('button[data-tests-id="createMonitoring"]')
+ .click()
+ .get('#ui-tabpanel-1-label')
+ .should('contain', 'map')
+ .click();
cy.httpTargetTree();
+ selectVersionAndTypeAndAddFirstRule();
+ fillRuleDescription('newRule');
+ });
+
+ it('add copy action', () => {
+ addCopyAction();
+ });
+
+ it('add concat action', () => {
+ cy.get('select[data-tests-id="selectAction"]').select('concat');
+ cy.get('button[data-tests-id="btnAddAction"]').click();
+ // fill concat action
cy
- .get('select[data-tests-id="selectVersion"]')
- .select('4.1')
- .get('select[data-tests-id="selectEventType"]')
- .select('syslog')
- .get('button[data-tests-id="btnAddFirstRule"]')
- .should('be.visible');
- cy.emptyRuleEngine('json');
- mappingTragetDDL()
- .select('json')
- .get('select[data-tests-id="selectVersion"]')
- .should('have.value', null);
+ .get('input[data-tests-id="valueInput"]')
+ .first()
+ .type('A')
+ .should('have.value', 'A');
+ cy
+ .get('input[data-tests-id="valueInput"]')
+ .last()
+ .type('B')
+ .should('have.value', 'B');
+ cy
+ .get('span[data-tests-id="openTargetTree"]')
+ .click()
+ .get('.bottom-select')
+ .should('be.visible')
+ .find('.toggle-children')
+ .first()
+ .click();
+
+ cy
+ .get('span[data-tests-id="targetNode"]')
+ .should(node => {
+ expect(node.eq(0)).to.contain('commonEventHeader');
+ expect(node.eq(1)).to.contain('domain');
+ })
+ .each(($el, index) => {
+ if (index === 1) {
+ cy.wrap($el).click();
+ }
+ });
+
+ cy
+ .get('input[data-tests-id="inputTarget"]')
+ .should('have.value', 'event.commonEventHeader.domain');
+ });
+
+ it('add map action', () => {
+ addMapAndDeleteRowAction();
+
+ cy
+ .get('span[data-tests-id="openTargetTree"]')
+ .click()
+ .get('.bottom-select')
+ .should('be.visible')
+ .find('.toggle-children')
+ .first()
+ .click();
+
+ cy
+ .get('span[data-tests-id="targetNode"]')
+ .should(node => {
+ expect(node.eq(0)).to.contain('commonEventHeader');
+ expect(node.eq(1)).to.contain('domain');
+ })
+ .each(($el, index) => {
+ if (index === 1) {
+ cy.wrap($el).click();
+ }
+ });
+
+ cy.get('input[data-tests-id="defaultCheckbox"]').click();
+ cy.get('input[data-tests-id="defaultInput"]').type('default value');
+
+ cy
+ .get('input[data-tests-id="inputTarget"]')
+ .should('have.value', 'event.commonEventHeader.domain');
+ });
+
+ it('add date-formatter action', () => {
+ cy.get('select[data-tests-id="selectAction"]').select('date formatter');
+ cy.get('button[data-tests-id="btnAddAction"]').click();
+
+ // fill date-formatter action Section 1
+ cy
+ .get('input[data-tests-id="valueInput"]')
+ .first()
+ .type('A')
+ .should('have.value', 'A')
+ .get('span[data-tests-id="openTargetTree"]')
+ .click()
+ .get('.bottom-select')
+ .should('be.visible')
+ .find('.toggle-children')
+ .first()
+ .click()
+ .get('span[data-tests-id="targetNode"]')
+ .should(node => {
+ expect(node.eq(0)).to.contain('commonEventHeader');
+ expect(node.eq(1)).to.contain('domain');
+ })
+ .each(($el, index) => {
+ if (index === 1) {
+ cy.wrap($el).click();
+ }
+ });
+ cy
+ .get('input[data-tests-id="inputTarget"]')
+ .should('have.value', 'event.commonEventHeader.domain');
+
+ // Section 2
+ cy
+ .get('input[data-tests-id="InputFromFormat"]')
+ .type('04/03/2018')
+ .should('have.value', '04/03/2018')
+ .get('input[data-tests-id="InputFromTimezone"]')
+ .type('11:50:00')
+ .should('have.value', '11:50:00')
+ .get('input[data-tests-id="InputToFormat"]')
+ .type('04/08/2018')
+ .should('have.value', '04/08/2018')
+ .get('input[data-tests-id="InputToTimezone"]')
+ .type('11:50:00')
+ .should('have.value', '11:50:00');
+ });
+
+ it('add conditional action', () => {
+ cy
+ .get('input[data-tests-id="isCondition"]')
+ .click()
+ .get('input[data-tests-id="left"]')
+ .type('ABC')
+ .should('have.value', 'ABC');
+
+ cy
+ .get('select[data-tests-id="selectOperator"]')
+ .select('startsWith')
+ .get('input[data-tests-id="right"]')
+ .type('A')
+ .should('have.value', 'A');
+
+ cy
+ .get('button[data-tests-id="addCondition"]')
+ .click()
+ .get('input[data-tests-id="left"]')
+ .last()
+ .type('DEF')
+ .should('have.value', 'DEF');
+
+ cy
+ .get('select[data-tests-id="selectOperator"]')
+ .last()
+ .select('endsWith')
+ .get('input[data-tests-id="right"]')
+ .last()
+ .type('F')
+ .should('have.value', 'F');
+
+ cy
+ .get('button[data-tests-id="addCondition"]')
+ .click()
+ .get('input[data-tests-id="left"]')
+ .last()
+ .type('HIJ')
+ .should('have.value', 'HIJ');
+
+ cy
+ .get('select[data-tests-id="selectOperator"]')
+ .last()
+ .select('equals')
+ .get('input[data-tests-id="right"]')
+ .last()
+ .type('HHH')
+ .should('have.value', 'HHH');
+
+ cy
+ .get('button[data-tests-id="RemoveCondition"]')
+ .last()
+ .click()
+ .get('button[data-tests-id="addConditionGroup"]')
+ .click();
+
+ // try to delete element (1 of 2 items in group)
+ cy
+ .get('button[data-tests-id="RemoveCondition"]')
+ .last()
+ .click()
+ .get('input[data-tests-id="left"]')
+ .eq(2)
+ .type('KLM')
+ .should('have.value', 'KLM');
+
+ cy
+ .get('select[data-tests-id="selectOperator"]')
+ .eq(2)
+ .select('notEqual')
+ .get('input[data-tests-id="right"]')
+ .eq(2)
+ .type('MMM')
+ .should('have.value', 'MMM')
+ .get('input[data-tests-id="left"]')
+ .last()
+ .type('NOP')
+ .should('have.value', 'NOP');
+
+ cy
+ .get('select[data-tests-id="selectOperator"]')
+ .last()
+ .select('contains')
+ .get('input[data-tests-id="right"]')
+ .last()
+ .type('PPP')
+ .should('have.value', 'PPP');
+
+ cy
+ .get('button[data-tests-id="addCondition"]')
+ .last()
+ .click()
+ .get('input[data-tests-id="left"]')
+ .last()
+ .type('QQQ')
+ .should('have.value', 'QQQ');
+
+ cy
+ .get('select[data-tests-id="selectOperator"]')
+ .last()
+ .select('endsWith')
+ .get('input[data-tests-id="right"]')
+ .last()
+ .type('Q')
+ .should('have.value', 'Q')
+ .get('button[data-tests-id="RemoveCondition"]')
+ .last()
+ .click();
+
+ cy
+ .get('button[data-tests-id="removeConditionNode"]')
+ .last()
+ .click();
+ });
+
+ it('add clear action', () => {
+ cy
+ .get('select[data-tests-id="selectAction"]')
+ .select('clear')
+ .get('button[data-tests-id="btnAddAction"]')
+ .click()
+ .get('input[data-tests-id="valueInput"]')
+ .type('ABC')
+ .should('have.value', 'ABC');
+
+ cy
+ .get('button[data-tests-id="btnAddInput"]')
+ .click()
+ .get('input[data-tests-id="valueInput"]')
+ .last()
+ .type('DEA')
+ .should('have.value', 'DEA');
+
+ cy
+ .get('button[data-tests-id="btnDelete"]')
+ .first()
+ .click();
+ });
+
+ it('add replace text action', () => {
+ cy
+ .get('select[data-tests-id="selectAction"]')
+ .select('replace text')
+ .get('button[data-tests-id="btnAddAction"]')
+ .click();
+
+ cy
+ .get('input[data-tests-id="valueInput"]')
+ .type('ABC')
+ .should('have.value', 'ABC');
+
+ cy
+ .get('input[data-tests-id="InputFindWhat"]')
+ .type('AAA')
+ .should('have.value', 'AAA');
+
+ cy
+ .get('input[data-tests-id="InputReplaceWith"]')
+ .type('BBB')
+ .should('have.value', 'BBB');
+ });
+
+ it('add log text action', () => {
+ cy
+ .get('select[data-tests-id="selectAction"]')
+ .select('log text')
+ .get('button[data-tests-id="btnAddAction"]')
+ .click();
+
+ cy
+ .get('input[data-tests-id="InputLogText"]')
+ .type('ABC')
+ .should('have.value', 'ABC');
+
+ cy
+ .get('input[data-tests-id="InputLogName"]')
+ .type('AAA')
+ .should('have.value', 'AAA');
+
+ cy
+ .get('input[data-tests-id="InputLogLevel"]')
+ .type('BBB')
+ .should('have.value', 'BBB');
+ });
+
+ it('add log event action', () => {
+ cy
+ .get('select[data-tests-id="selectAction"]')
+ .select('log event')
+ .get('button[data-tests-id="btnAddAction"]')
+ .click();
+
+ cy
+ .get('input[data-tests-id="InputLogTitle"]')
+ .type('Title test')
+ .should('have.value', 'Title test');
+ });
+ });
+
+ describe('rule and Actions CRUD Procedure', () => {
+ beforeEach(() => {
+ cy.httpGetDDLData();
+ cy.getMCListEmpty();
+ cy.homePage();
+ cy.get('button[data-tests-id="btn-create-mc"]').click();
+ cy.fillNewMcForm();
+ cy.httpCreateNewMc();
+ cy.emptyRuleEngine('Type1');
+ cy
+ .get('button[data-tests-id="createMonitoring"]')
+ .click()
+ .get('#ui-tabpanel-1-label')
+ .should('contain', 'map')
+ .click();
+ cy.httpTargetTree();
+ selectVersionAndTypeAndAddFirstRule();
+ fillRuleDescription('newRule');
+ });
+
+ it('add clear action', () => {
+ cy
+ .get('select[data-tests-id="selectAction"]')
+ .select('copy')
+ .get('button[data-tests-id="btnAddAction"]')
+ .click()
+ .get('select[data-tests-id="selectAction"]')
+ .select('concat')
+ .get('button[data-tests-id="btnAddAction"]')
+ .click()
+ .get('select[data-tests-id="selectAction"]')
+ .select('map')
+ .get('button[data-tests-id="btnAddAction"]')
+ .click()
+ .get('select[data-tests-id="selectAction"]')
+ .select('date formatter')
+ .get('button[data-tests-id="btnAddAction"]')
+ .click()
+ .get('select[data-tests-id="selectAction"]')
+ .select('log text')
+ .get('button[data-tests-id="btnAddAction"]')
+ .click()
+ .get('select[data-tests-id="selectAction"]')
+ .select('log event')
+ .get('button[data-tests-id="btnAddAction"]')
+ .click()
+ .get('select[data-tests-id="selectAction"]')
+ .select('replace text')
+ .get('button[data-tests-id="btnAddAction"]')
+ .click()
+ .get('select[data-tests-id="selectAction"]')
+ .select('clear')
+ .get('button[data-tests-id="btnAddAction"]')
+ .click();
+ });
+
+ it('add rule with copy action CRUD procedure', () => {
+ // Create action
+ addCopyAction();
+
+ cy.doneSaveRule();
+ cy.get('button[data-tests-id="btnDone"]').click();
+
+ // value approve
+ editFirstRule();
+
+ cy
+ .get('input[data-tests-id="valueInput"]')
+ .should('have.value', 'a')
+ .get('input[data-tests-id="inputTarget"]')
+ .should('have.value', 'event.commonEventHeader.domain')
+
+ // change value
+ .get('input[data-tests-id="valueInput"]')
+ .type('B')
+ .get('button[data-tests-id="btnSave"]')
+ .click();
+ cy.doneSaveAndEditRule();
+ cy.get('button[data-tests-id="btnDone"]').click();
+
+ // Delete copy action
+ deleteFirstRule();
+ });
+
+ it('add multiple rules CRUD procedure', () => {
+ // Create actions
+ addCopyAction();
+ cy.doneSaveRule();
+ cy.get('button[data-tests-id="btnDone"]').click();
+
+ // Edit copy action - verify values
+ editFirstRule();
+
+ cy
+ .get('input[data-tests-id="valueInput"]')
+ .should('have.value', 'a')
+ .get('input[data-tests-id="inputTarget"]')
+ .should('have.value', 'event.commonEventHeader.domain')
+ .get('button[data-tests-id="btnDone"]')
+ .click();
+
+ // Add new rule with map action
+ cy.get('button[data-tests-id="addMoreRule"]').click();
+ fillRuleDescription('newRule2');
+ addMapAndDeleteRowAction();
+ cy.doneSaveMapRule();
+ cy.get('button[data-tests-id="btnDone"]').click();
+
+ // Verify map values
+ editLastRule();
+
+ cy
+ .get('input[data-tests-id="key"]')
+ .first()
+ .should('have.value', 'Key1')
+ .get('input[data-tests-id="value"]')
+ .first()
+ .should('have.value', 'Key1')
+ .get('input[data-tests-id="key"]')
+ .last()
+ .should('have.value', 'Key2')
+ .get('input[data-tests-id="value"]')
+ .last()
+ .should('have.value', 'Key2');
+ cy.get('button[data-tests-id="btnDone"]').click();
+
+ // Delete copy Action
+ deleteFirstRule();
+ });
+
+ it('add rule with log text action CRUD procedure', () => {
+ cy
+ .get('select[data-tests-id="selectAction"]')
+ .select('log text')
+ .get('button[data-tests-id="btnAddAction"]')
+ .click();
+
+ cy
+ .get('input[data-tests-id="InputLogText"]')
+ .type('ABC')
+ .should('have.value', 'ABC');
+
+ cy
+ .get('input[data-tests-id="InputLogName"]')
+ .type('AAA')
+ .should('have.value', 'AAA');
+
+ cy
+ .get('input[data-tests-id="InputLogLevel"]')
+ .type('BBB')
+ .should('have.value', 'BBB');
+
+ cy.doneSaveLogTextRule();
+ cy.get('button[data-tests-id="btnDone"]').click();
+
+ // value assertion
+ editFirstRule();
+
+ cy
+ .get('input[data-tests-id="InputLogText"]')
+ .should('have.value', 'ABC')
+ .get('input[data-tests-id="InputLogName"]')
+ .should('have.value', 'AAA')
+ .get('input[data-tests-id="InputLogLevel"]')
+ .should('have.value', 'BBB');
+
+ cy.get('button[data-tests-id="btnDone"]').click();
});
});
- describe('Translate And Save Rule List', () => {
+ describe('Translate and save Rule List', () => {
beforeEach(() => {
cy.httpGetDDLData();
cy.getMCListEmpty();
@@ -117,7 +724,7 @@ describe('Rule engine - E2E test flow with mock', () => {
.click();
cy.httpTargetTree();
selectVersionAndTypeAndAddFirstRule();
- fillRuleDecription('newRule');
+ fillRuleDescription('newRule');
addCopyAction();
cy.doneSaveRule();
});
@@ -159,7 +766,7 @@ describe('Rule engine - E2E test flow with mock', () => {
.click()
.get('.toast-container')
.should('be.visible')
- .get('.map-setting-list > #Type1 > input')
+ .get('.map-setting-list > form > #Type1 > input')
.should('be.visible')
.and('have.value', translateValue());
});
diff --git a/public/cypress/support/generalCommands.ts b/public/cypress/support/generalCommands.ts
index fc87acc..35d2fa7 100644
--- a/public/cypress/support/generalCommands.ts
+++ b/public/cypress/support/generalCommands.ts
@@ -3,6 +3,7 @@ declare namespace Cypress {
httpGetDDLData: typeof httpGetDDLData;
fillNewMcForm: typeof fillNewMcForm;
httpCreateNewMc: typeof httpCreateNewMc;
+ httpCreateNewMcWithBooleanDDL: typeof httpCreateNewMcWithBooleanDDL;
}
}
@@ -44,7 +45,22 @@ function httpCreateNewMc() {
.as('newMC');
}
+function httpCreateNewMcWithBooleanDDL() {
+ cy.server();
+ cy
+ .route({
+ method: 'POST',
+ url: Cypress.env('backendUrl') + '/createMC',
+ response: 'fixture:createMcResWithBooleanDDL'
+ })
+ .as('newMCWithBooleanDDL');
+}
+
// Add cypress commands
Cypress.Commands.add('httpGetDDLData', httpGetDDLData);
Cypress.Commands.add('fillNewMcForm', fillNewMcForm);
Cypress.Commands.add('httpCreateNewMc', httpCreateNewMc);
+Cypress.Commands.add(
+ 'httpCreateNewMcWithBooleanDDL',
+ httpCreateNewMcWithBooleanDDL
+);
diff --git a/public/cypress/support/homeCommands.ts b/public/cypress/support/homeCommands.ts
index 6f3349c..d54f30e 100644
--- a/public/cypress/support/homeCommands.ts
+++ b/public/cypress/support/homeCommands.ts
@@ -17,25 +17,33 @@ declare namespace Cypress {
// functionality
function sdcIsOwnerFalse(): void {
cy.visit(
- 'home?userId=cs0008&userRole=DESIGNER&displayType=context&contextType=SERVICE&uuid=b1645734-b812-4cd7-a0cc-5b5843940ad6&lifecycleState=NOT_CERTIFIED_CHECKOUT&isOwner=false'
+ 'home?userId=cs0008&userRole=DESIGNER&displayType=context&contextType=SERVICES&uu' +
+ 'id=06c7d927-4e2f-47e1-a29d-b6ed229ebc0a&lifecycleState=NOT_CERTIFIED_CHECKOUT&is' +
+ 'Owner=false&version=0.1'
);
}
function sdcUserNotCheckout(): void {
cy.visit(
- 'home?userId=cs0008&userRole=DESIGNER&displayType=context&contextType=SERVICE&uuid=b1645734-b812-4cd7-a0cc-5b5843940ad6&lifecycleState=READY_FOR_CERTIFICATION&isOwner=true'
+ 'home?userId=cs0008&userRole=DESIGNER&displayType=context&contextType=SERVICES&uu' +
+ 'id=06c7d927-4e2f-47e1-a29d-b6ed229ebc0a&lifecycleState=READY_FOR_CERTIFICATION&i' +
+ 'sOwner=true&version=0.1'
);
}
function homePage(): void {
cy.visit(
- 'home?userId=cs0008&userRole=DESIGNER&displayType=context&contextType=SERVICES&uuid=06c7d927-4e2f-47e1-a29d-b6ed229ebc0a&lifecycleState=NOT_CERTIFIED_CHECKOUT&isOwner=true&version=0.1'
+ 'home?userId=cs0008&userRole=DESIGNER&displayType=context&contextType=SERVICES&uu' +
+ 'id=06c7d927-4e2f-47e1-a29d-b6ed229ebc0a&lifecycleState=NOT_CERTIFIED_CHECKOUT&is' +
+ 'Owner=true&version=0.1'
);
}
function homePageCertified(): void {
cy.visit(
- 'home?userId=cs0008&userRole=DESIGNER&displayType=context&contextType=SERVICES&uuid=06c7d927-4e2f-47e1-a29d-b6ed229ebc0a&lifecycleState=CERTIFIED_CHECKOUT&isOwner=true&version=0.1'
+ 'home?userId=cs0008&userRole=DESIGNER&displayType=context&contextType=SERVICES&uu' +
+ 'id=06c7d927-4e2f-47e1-a29d-b6ed229ebc0a&lifecycleState=CERTIFIED_CHECKOUT&isOwne' +
+ 'r=true&version=0.1'
);
}
@@ -46,7 +54,8 @@ function deleteMonitoringComponent(): void {
method: 'DELETE',
url:
Cypress.env('backendUrl') +
- '/SERVICES/06c7d927-4e2f-47e1-a29d-b6ed229ebc0a/vfb53dd48360ff4fa2b66e6ceb1961bd9b0/cba37ed8-94e1-406f-b4f5-b5edbc31ac85/deleteVfcmtReference',
+ '/SERVICES/06c7d927-4e2f-47e1-a29d-b6ed229ebc0a/vfb53dd48360ff4fa2b66e6ceb1961bd9' +
+ 'b0/cba37ed8-94e1-406f-b4f5-b5edbc31ac85/deleteVfcmtReference',
response: '{}'
})
.as('deleteMonitoringComponent');
@@ -59,7 +68,8 @@ function saveMonitoringComponent(): void {
method: 'POST',
url:
Cypress.env('backendUrl') +
- '/SERVICES/06c7d927-4e2f-47e1-a29d-b6ed229ebc0a/vfb53dd48360ff4fa2b66e6ceb1961bd9b0/saveComposition/cba37ed8-94e1-406f-b4f5-b5edbc31ac85',
+ '/SERVICES/06c7d927-4e2f-47e1-a29d-b6ed229ebc0a/vfb53dd48360ff4fa2b66e6ceb1961bd9' +
+ 'b0/saveComposition/cba37ed8-94e1-406f-b4f5-b5edbc31ac85',
response: '{}'
})
.as('saveMonitoringComponent');
@@ -72,7 +82,8 @@ function submitMonitoringComponent(): void {
method: 'POST',
url:
Cypress.env('backendUrl') +
- '/SERVICES/createBluePrint/cba37ed8-94e1-406f-b4f5-b5edbc31ac85/06c7d927-4e2f-47e1-a29d-b6ed229ebc0a/vfb53dd48360ff4fa2b66e6ceb1961bd9b0/',
+ '/SERVICES/createBluePrint/cba37ed8-94e1-406f-b4f5-b5edbc31ac85/06c7d927-4e2f-47e' +
+ '1-a29d-b6ed229ebc0a/vfb53dd48360ff4fa2b66e6ceb1961bd9b0/',
response: '{}'
})
.as('submitMonitoringComponent');
@@ -85,7 +96,8 @@ function deleteMonitoringComponentWithBlueprint(): void {
method: 'DELETE',
url:
Cypress.env('backendUrl') +
- '/SERVICES/teSt.__.monitoring---TempLATE.6hnc/06c7d927-4e2f-47e1-a29d-b6ed229ebc0a/dump0/64471437-8feb-40d9-a8b0-9407a81dd5c0/deleteVfcmtReference',
+ '/SERVICES/06c7d927-4e2f-47e1-a29d-b6ed229ebc0a/dump0/64471437-8feb-40d9-a8b0-940' +
+ '7a81dd5c0/deleteVfcmtReference',
response: '{}'
})
.as('deleteMonitoringComponentWithBlueprint');
diff --git a/public/cypress/support/index.js b/public/cypress/support/index.js
index 2f70722..7cac3de 100644
--- a/public/cypress/support/index.js
+++ b/public/cypress/support/index.js
@@ -15,9 +15,31 @@
// Import commands.js using ES2015 syntax:
import './commands';
-import './homeCommands';
import './generalCommands';
+import './homeCommands';
import './ruleEngineCommands';
-// Alternatively you can use CommonJS syntax:
-// require('./commands')
+// const istanbul = require('istanbul-lib-coverage');
+
+// const map = istanbul.createCoverageMap({});
+
+// Cypress.on('window:before:unload', e => {
+// const coverage = e.currentTarget.__coverage__;
+
+// if (coverage) {
+// map.merge(coverage);
+// }
+// });
+
+// after(() => {
+// cy.window().then(win => {
+// const coverage = win.__coverage__;
+
+// if (coverage) {
+// map.merge(coverage);
+// }
+
+// cy.writeFile('.nyc_output/out.json', JSON.stringify(map));
+// cy.exec('nyc report --reporter=html');
+// });
+// })
diff --git a/public/cypress/support/ruleEngineCommands.ts b/public/cypress/support/ruleEngineCommands.ts
index 2142e7f..51ddc2d 100644
--- a/public/cypress/support/ruleEngineCommands.ts
+++ b/public/cypress/support/ruleEngineCommands.ts
@@ -3,7 +3,12 @@ declare namespace Cypress {
emptyRuleEngine: typeof emptyRuleEngine;
httpTargetTree: typeof httpTargetTree;
doneSaveRule: typeof doneSaveRule;
+ doneSaveAndEditRule: typeof doneSaveAndEditRule;
+ deleteRule: typeof deleteRule;
+ doneSaveMapRule: typeof doneSaveMapRule;
+ doneSaveLogTextRule: typeof doneSaveLogTextRule;
httpTransalte: typeof httpTransalte;
+ httpGenerateMappingRulesFileName: typeof httpGenerateMappingRulesFileName;
}
}
@@ -45,12 +50,65 @@ function doneSaveRule() {
method: 'POST',
url:
Cypress.env('backendUrl') +
- '/rule-editor/rule/6d436c07-8006-4335-8c84-d65b4740f8d6/map/n.1517823219961.0/Type1',
+ '/rule-editor/rule/6d436c07-8006-4335-8c84-d65b4740f8d6/map/n.1517823219961.0/Typ' +
+ 'e1',
response: 'fixture:doneSaveSimpleCopy'
})
.as('doneSaveCopyRule');
}
+function deleteRule() {
+ cy.server();
+ cy
+ .route({
+ method: 'DELETE',
+ url:
+ Cypress.env('backendUrl') +
+ '/rule-editor/rule/6d436c07-8006-4335-8c84-d65b4740f8d6/map/n.1517823219961.0/Type1/f620724b-7170-43e1-8a8b-55e98cabe658',
+ response: '{}'
+ })
+ .as('deleteCopyRule');
+}
+
+function doneSaveAndEditRule() {
+ cy.server();
+ cy
+ .route({
+ method: 'POST',
+ url:
+ Cypress.env('backendUrl') +
+ '/rule-editor/rule/6d436c07-8006-4335-8c84-d65b4740f8d6/map/n.1517823219961.0/Type1',
+ response: 'fixture:doneSaveEditSimpleCopy'
+ })
+ .as('doneSaveAndEditRule');
+}
+
+function doneSaveMapRule() {
+ cy.server();
+ cy
+ .route({
+ method: 'POST',
+ url:
+ Cypress.env('backendUrl') +
+ '/rule-editor/rule/6d436c07-8006-4335-8c84-d65b4740f8d6/map/n.1517823219961.0/Type1',
+ response: 'fixture:doneSaveSimpleMap'
+ })
+ .as('doneSaveMapRule');
+}
+
+function doneSaveLogTextRule() {
+ cy.server();
+ cy
+ .route({
+ method: 'POST',
+ url:
+ Cypress.env('backendUrl') +
+ '/rule-editor/rule/6d436c07-8006-4335-8c84-d65b4740f8d6/map/n.1517823219961.0/Type1',
+ response: 'fixture:doneSaveSimpleLogText'
+ })
+ .as('doneSaveLogTextRule');
+}
+
function httpTransalte() {
cy.server();
cy
@@ -58,14 +116,37 @@ function httpTransalte() {
method: 'GET',
url:
Cypress.env('backendUrl') +
- '/rule-editor/rule/translate/6d436c07-8006-4335-8c84-d65b4740f8d6/map/n.1517823219961.0/Type1',
+ '/rule-editor/rule/translate/6d436c07-8006-4335-8c84-d65b4740f8d6/map/n.151782321' +
+ '9961.0/Type1',
response: 'fixture:TranslateSimpleCopy'
})
.as('TranslateSimpleCopy');
}
+function httpGenerateMappingRulesFileName() {
+ cy.server();
+ cy
+ .route({
+ method: 'GET',
+ url:
+ Cypress.env('backendUrl') +
+ '/rule-editor/getExistingRuleTargets/6d436c07-8006-4335-8c84-d65b4740f8d6/map/n.1' +
+ '517823219961.0',
+ response: ['Type1', 'json', 'name']
+ })
+ .as('TranslateSimpleCopy');
+}
+
// Add cypress commands
Cypress.Commands.add('emptyRuleEngine', emptyRuleEngine);
Cypress.Commands.add('httpTargetTree', httpTargetTree);
Cypress.Commands.add('doneSaveRule', doneSaveRule);
+Cypress.Commands.add('doneSaveAndEditRule', doneSaveAndEditRule);
+Cypress.Commands.add('doneSaveMapRule', doneSaveMapRule);
+Cypress.Commands.add('doneSaveLogTextRule', doneSaveLogTextRule);
+Cypress.Commands.add('deleteRule', deleteRule);
Cypress.Commands.add('httpTransalte', httpTransalte);
+Cypress.Commands.add(
+ 'httpGenerateMappingRulesFileName',
+ httpGenerateMappingRulesFileName
+);