diff options
Diffstat (limited to 'public/cypress')
27 files changed, 5384 insertions, 0 deletions
diff --git a/public/cypress/fixtures/TranslateSimpleCopy.json b/public/cypress/fixtures/TranslateSimpleCopy.json new file mode 100644 index 0000000..1099de7 --- /dev/null +++ b/public/cypress/fixtures/TranslateSimpleCopy.json @@ -0,0 +1,26 @@ +{ + "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" }] + } + ] +} diff --git a/public/cypress/fixtures/createMcRes.json b/public/cypress/fixtures/createMcRes.json new file mode 100644 index 0000000..ada82bc --- /dev/null +++ b/public/cypress/fixtures/createMcRes.json @@ -0,0 +1,972 @@ +{ + "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": { + "get_input": "mappingType" + } + }, + "name": "Type1", + "description": + "CSV to VES mapping, from the file to generate multiple events or single event", + "type": "string", + "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": [], + "inputs": [], + "outputs": [] + } +} diff --git a/public/cypress/fixtures/doneSaveSimpleCopy.json b/public/cypress/fixtures/doneSaveSimpleCopy.json new file mode 100644 index 0000000..e377e8c --- /dev/null +++ b/public/cypress/fixtures/doneSaveSimpleCopy.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": "a" + }, + "target": "event.commonEventHeader.domain", + "id": "296bcdd0-1d20-11e8-a96d-298fbe0cb0fd" + } + ] +} diff --git a/public/cypress/fixtures/example.json b/public/cypress/fixtures/example.json new file mode 100644 index 0000000..da18d93 --- /dev/null +++ b/public/cypress/fixtures/example.json @@ -0,0 +1,5 @@ +{ + "name": "Using fixtures to represent data", + "email": "hello@cypress.io", + "body": "Fixtures are a great way to mock data for responses to routes" +}
\ No newline at end of file diff --git a/public/cypress/fixtures/getMCMock.json b/public/cypress/fixtures/getMCMock.json new file mode 100644 index 0000000..602d2e0 --- /dev/null +++ b/public/cypress/fixtures/getMCMock.json @@ -0,0 +1,628 @@ +{ + "vfcmt": { + "uuid": "06c7d927-4e2f-47e1-a29d-b6ed229ebc0a", + "name": "vosk007", + "description": "the name is vosk, eran vosk", + "vfiName": "LiavSrv", + "flowType": "SNMP" + }, + "cdump": { + "cid": "47908e78-9893-4f18-b767-ea7131dd8de7", + "version": 0, + "nodes": [ + { + "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": [], + "inputs": [], + "outputs": [] + } +} diff --git a/public/cypress/fixtures/igorCreateMcRes.json b/public/cypress/fixtures/igorCreateMcRes.json new file mode 100644 index 0000000..4bca081 --- /dev/null +++ b/public/cypress/fixtures/igorCreateMcRes.json @@ -0,0 +1,1960 @@ +{ + "uuid": "6d436c07-8006-4335-8c84-d65b4740f8d6", + "cdump": { + "cid": "95222b23-df17-454d-84b0-d4667357b380", + "flowType": "SNMP", + "version": 0, + "nodes": [ + { + "requirements": [ + { + "capability": { + "name": "dcae.capabilities.dockerHost", + "id": "template.yaml/dcae.capabilities.dockerHost" + }, + "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" + } + } + ], + "capabilities": [ + { + "name": "feature", + "type": { + "name": "tosca.capabilities.Node", + "id": "template.yaml/tosca.capabilities.Node" + } + } + ], + "name": "fm_poller", + "description": + "/sdc/v1/catalog/resources/c8db6f9b-6173-4d7d-bd25-c20bfc154daa/artifacts/66b05681-a407-4e46-9239-86f245c68b81", + "type": { + "name": "tosca.dcae.nodes.dockerApp.fm_poller" + }, + "properties": [ + { + "assignment": { + "value": "ciscoRouter" + }, + "name": "DeviceCategory", + "type": "string", + "constraints": [ + { + "valid_values": [ + "ciscoSwitch", + "ciscoRouter", + "juniperSwitch", + "juniperRouter" + ] + } + ], + "value": "ciscoRouter" + }, + { + "assignment": { + "value": "/opt/app/discovery/seed" + }, + "name": "DeviceToWalkJson", + "type": "string", + "value": "/opt/app/discovery/seed" + }, + { + "assignment": { + "value": { + "get_input": "DisoveryInterval" + } + }, + "name": "DisoveryInterval", + "type": "string", + "value": { + "get_input": "DisoveryInterval" + } + }, + { + "assignment": { + "value": { + "get_input": "FlatironHost" + } + }, + "name": "FlatironHost", + "type": "string", + "value": { + "get_input": "FlatironHost" + } + }, + { + "assignment": { + "value": { + "get_input": "FlatironScope" + } + }, + "name": "FlatironScope", + "type": "string", + "value": { + "get_input": "FlatironScope" + } + }, + { + "assignment": { + "value": "/opt/app/discovery/curloutput" + }, + "name": "SeedFilePath", + "type": "string", + "value": "/opt/app/discovery/curloutput" + }, + { + "assignment": { + "value": + "/opt/app/topologyCollector/TopologyCollector-1.0.0/conf/app_config.json" + }, + "name": "app_config_file", + "type": "string", + "value": + "/opt/app/topologyCollector/TopologyCollector-1.0.0/conf/app_config.json" + }, + { + "assignment": { + "value": + "/opt/app/topologyCollector/TopologyCollector-1.0.0/data/ciscorouteroids" + }, + "name": "ciscorouter", + "type": "string", + "value": + "/opt/app/topologyCollector/TopologyCollector-1.0.0/data/ciscorouteroids" + }, + { + "assignment": { + "value": + "/opt/app/topologyCollector/TopologyCollector-1.0.0/data/ciscoswitchoids" + }, + "name": "ciscoswitch", + "type": "string", + "value": + "/opt/app/topologyCollector/TopologyCollector-1.0.0/data/ciscoswitchoids" + }, + { + "assignment": { + "value": { + "get_input": "clientUri" + } + }, + "name": "clientUri", + "type": "string", + "value": { + "get_input": "clientUri" + } + }, + { + "assignment": { + "value": { + "get_input": "dcae_service_location" + } + }, + "name": "dcae_service_location", + "type": "string", + "value": { + "get_input": "dcae_service_location" + } + }, + { + "assignment": { + "value": "rv1-dis / rv1-mib" + }, + "name": "dcae_target_type", + "type": "string", + "constraints": [ + { + "valid_values": [ + "rv1-dis / rv1-mib", + "rv2- dis / rv2-mib", + "rv3- dis / rv3-mib", + "rv4- dis / rv4-mib", + "rv5- dis / rv5-mib", + "rv6- dis / rv6-mib", + "rv7- dis / rv7-mib", + "me6- dis / me6- mib" + ] + } + ], + "value": "rv1-dis / rv1-mib" + }, + { + "assignment": { + "value": + "/opt/app/topologyCollector/TopologyCollector-1.0.0/data/defaultoids" + }, + "name": "default", + "type": "string", + "value": + "/opt/app/topologyCollector/TopologyCollector-1.0.0/data/defaultoids" + }, + { + "assignment": { + "value": "" + }, + "name": "dmaapSeedFilePath", + "type": "string" + }, + { + "assignment": { + "value": + "/opt/app/topologyCollector/TopologyCollector-1.0.0/conf/dmaap_config.json" + }, + "name": "dmaap_conf_file", + "type": "string", + "value": + "/opt/app/topologyCollector/TopologyCollector-1.0.0/conf/dmaap_config.json" + }, + { + "assignment": { + "value": + "/opt/app/topologyCollector/TopologyCollector-1.0.0/conf/dti_config.json" + }, + "name": "dti_config_file", + "type": "string", + "value": + "/opt/app/topologyCollector/TopologyCollector-1.0.0/conf/dti_config.json" + }, + { + "assignment": { + "value": { + "get_input": "environment" + } + }, + "name": "environment", + "type": "string", + "value": { + "get_input": "environment" + } + }, + { + "assignment": { + "value": + "/opt/app/topologyCollector/TopologyCollector-1.0.0/data/juniperrouteroids" + }, + "name": "juniperrouter", + "type": "string", + "value": + "/opt/app/topologyCollector/TopologyCollector-1.0.0/data/juniperrouteroids" + }, + { + "assignment": { + "value": + "/opt/app/topologyCollector/TopologyCollector-1.0.0/data/juniperswitchoids" + }, + "name": "juniperswitch", + "type": "string", + "value": + "/opt/app/topologyCollector/TopologyCollector-1.0.0/data/juniperswitchoids" + }, + { + "assignment": { + "value": "/opt/app/discovery/outdata" + }, + "name": "outdata", + "type": "string", + "value": "/opt/app/discovery/outdata" + }, + { + "name": "image", + "type": "string", + "required": true + }, + { + "assignment": { + "value": { + "get_property": ["SELF", "composition", "location_id"] + } + }, + "name": "location_id", + "type": "string", + "required": true, + "value": { + "get_property": ["SELF", "composition", "location_id"] + } + }, + { + "name": "service_component_type", + "type": "string", + "required": true + } + ], + "typeinfo": { + "itemId": + "c8db6f9b-6173-4d7d-bd25-c20bfc154daa/tosca.dcae.nodes.dockerApp.fm_poller", + "requirements": [ + { + "node": { + "name": "dcae.capabilities.dockerHost", + "id": + "c8db6f9b-6173-4d7d-bd25-c20bfc154daa/dcae.capabilities.dockerHost" + }, + "capability": { + "name": "dcae.capabilities.dockerHost", + "id": + "c8db6f9b-6173-4d7d-bd25-c20bfc154daa/dcae.capabilities.dockerHost" + }, + "name": "host", + "id": "c8db6f9b-6173-4d7d-bd25-c20bfc154daa/host", + "relationship": { + "type": "dcae.relationships.component_contained_in" + } + }, + { + "node": { + "name": "dcae.capabilities.composition.host", + "id": + "c8db6f9b-6173-4d7d-bd25-c20bfc154daa/dcae.capabilities.composition.host" + }, + "capability": { + "name": "dcae.capabilities.composition.host", + "id": + "c8db6f9b-6173-4d7d-bd25-c20bfc154daa/dcae.capabilities.composition.host" + }, + "name": "composition", + "id": "c8db6f9b-6173-4d7d-bd25-c20bfc154daa/composition" + }, + { + "occurrences": [0, "UNBOUNDED"], + "node": { + "name": "tosca.capabilities.Node", + "id": + "c8db6f9b-6173-4d7d-bd25-c20bfc154daa/tosca.capabilities.Node" + }, + "capability": { + "name": "tosca.capabilities.Node", + "id": + "c8db6f9b-6173-4d7d-bd25-c20bfc154daa/tosca.capabilities.Node" + }, + "name": "dependency", + "id": "c8db6f9b-6173-4d7d-bd25-c20bfc154daa/dependency", + "relationship": { + "type": "tosca.relationships.DependsOn" + } + } + ], + "capabilities": [ + { + "name": "feature", + "type": { + "name": "tosca.capabilities.Node", + "id": + "c8db6f9b-6173-4d7d-bd25-c20bfc154daa/tosca.capabilities.Node" + } + } + ], + "catalogId": 0, + "catalog": "https://zldcrdm2sdc4cbe01.3f1a87.rdm2.tci.att.com:8443", + "hierarchy": [ + { + "name": "tosca.dcae.nodes.dockerApp", + "id": + "c8db6f9b-6173-4d7d-bd25-c20bfc154daa/tosca.dcae.nodes.dockerApp" + }, + { + "name": "tosca.dcae.nodes.Root", + "id": "c8db6f9b-6173-4d7d-bd25-c20bfc154daa/tosca.dcae.nodes.Root" + }, + { + "name": "tosca.nodes.Root", + "description": + "The TOSCA Node Type all other TOSCA base Node Types derive from", + "id": "c8db6f9b-6173-4d7d-bd25-c20bfc154daa/tosca.nodes.Root" + } + ], + "name": "tosca.dcae.nodes.dockerApp.fm_poller", + "id": 0 + }, + "id": "c8db6f9b-6173-4d7d-bd25-c20bfc154daa", + "nid": "n.1519543437108.0", + "ndata": { + "name": "n.1519543437108.0", + "label": "fm_poller", + "x": 1642, + "y": 417, + "px": 1641, + "py": 416, + "ports": [], + "radius": 30 + } + }, + { + "requirements": [ + { + "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" + } + } + ], + "capabilities": [ + { + "name": "policy", + "type": { + "name": "dcae.capabilities.policy", + "id": "template.yaml/dcae.capabilities.policy" + } + }, + { + "name": "feature", + "type": { + "name": "tosca.capabilities.Node", + "id": "template.yaml/tosca.capabilities.Node" + } + } + ], + "name": "policy_0", + "description": + "/sdc/v1/catalog/resources/3c473efc-57fc-4a47-b3fc-190bd3b02bd2/artifacts/a04ce19c-6d71-44b7-9483-baa74d050fdb", + "type": { + "name": "tosca.dcae.nodes.policy" + }, + "properties": [ + { + "name": "policy_id", + "type": "string", + "required": true + }, + { + "assignment": { + "value": "policy.nodes.cdap.tca.hi.lo.app" + }, + "name": "policy_name", + "type": "string", + "value": "policy.nodes.cdap.tca.hi.lo.app" + } + ], + "typeinfo": { + "itemId": + "3c473efc-57fc-4a47-b3fc-190bd3b02bd2/tosca.dcae.nodes.policy", + "requirements": [ + { + "occurrences": [0, "UNBOUNDED"], + "node": { + "name": "tosca.capabilities.Node", + "id": + "3c473efc-57fc-4a47-b3fc-190bd3b02bd2/tosca.capabilities.Node" + }, + "capability": { + "name": "tosca.capabilities.Node", + "id": + "3c473efc-57fc-4a47-b3fc-190bd3b02bd2/tosca.capabilities.Node" + }, + "name": "dependency", + "id": "3c473efc-57fc-4a47-b3fc-190bd3b02bd2/dependency", + "relationship": { + "type": "tosca.relationships.DependsOn" + } + } + ], + "capabilities": [ + { + "name": "policy", + "type": { + "name": "dcae.capabilities.policy", + "id": + "3c473efc-57fc-4a47-b3fc-190bd3b02bd2/dcae.capabilities.policy" + } + }, + { + "name": "feature", + "type": { + "name": "tosca.capabilities.Node", + "id": + "3c473efc-57fc-4a47-b3fc-190bd3b02bd2/tosca.capabilities.Node" + } + } + ], + "catalogId": 0, + "catalog": "https://zldcrdm2sdc4cbe01.3f1a87.rdm2.tci.att.com:8443", + "hierarchy": [ + { + "name": "tosca.dcae.nodes.Root", + "id": "3c473efc-57fc-4a47-b3fc-190bd3b02bd2/tosca.dcae.nodes.Root" + }, + { + "name": "tosca.nodes.Root", + "description": + "The TOSCA Node Type all other TOSCA base Node Types derive from", + "id": "3c473efc-57fc-4a47-b3fc-190bd3b02bd2/tosca.nodes.Root" + } + ], + "name": "tosca.dcae.nodes.policy", + "id": 0 + }, + "id": "3c473efc-57fc-4a47-b3fc-190bd3b02bd2", + "nid": "n.1519546229982.0", + "ndata": { + "name": "n.1519546229982.0", + "label": "policy_0", + "x": 1432, + "y": 324, + "px": 1431, + "py": 323, + "ports": [], + "radius": 30 + } + }, + { + "requirements": [ + { + "node": "topic0", + "capability": { + "name": "dcae.capabilities.dmmap.topic", + "id": "template.yaml/dcae.capabilities.dmmap.topic" + }, + "name": "stream_subscribe_0", + "relationship": { + "type": "dcae.relationships.subscribe_to_events" + } + }, + { + "node": "topic1", + "capability": { + "name": "dcae.capabilities.dmmap.topic", + "id": "template.yaml/dcae.capabilities.dmmap.topic" + }, + "name": "stream_publish_0", + "relationship": { + "type": "dcae.relationships.publish_events" + } + }, + { + "node": "policy_0", + "capability": { + "name": "dcae.capabilities.policy", + "id": "template.yaml/dcae.capabilities.policy" + }, + "name": "policy", + "relationship": { + "type": "cloudify.relationships.depends_on" + } + }, + { + "capability": { + "name": "dcae.capabilities.cdapHost", + "id": "template.yaml/dcae.capabilities.cdapHost" + }, + "name": "host", + "relationship": { + "type": "dcae.relationships.component_contained_in" + } + }, + { + "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" + } + } + ], + "capabilities": [ + { + "name": "feature", + "type": { + "name": "tosca.capabilities.Node", + "id": "template.yaml/tosca.capabilities.Node" + } + } + ], + "name": "tcaSpec", + "description": + "/sdc/v1/catalog/resources/3c473efc-57fc-4a47-b3fc-190bd3b02bd2/artifacts/a04ce19c-6d71-44b7-9483-baa74d050fdb", + "type": { + "name": "tosca.dcae.nodes.cdapApp.tcaSpec" + }, + "properties": [ + { + "assignment": { + "value": "123.123.123.123" + }, + "name": "aaiEnrichmentHost", + "type": "string", + "value": "123.123.123.123" + }, + { + "assignment": { + "value": "true" + }, + "name": "aaiEnrichmentIgnoreSSLCertificateErrors", + "type": "string", + "value": "true" + }, + { + "assignment": { + "value": "8443" + }, + "name": "aaiEnrichmentPortNumber", + "type": "string", + "value": "8443" + }, + { + "assignment": { + "value": "https" + }, + "name": "aaiEnrichmentProtocol", + "type": "string", + "value": "https" + }, + { + "assignment": { + "value": "http://username:password@proxyhost.com:8080" + }, + "name": "aaiEnrichmentProxyURL", + "type": "string", + "value": "http://username:password@proxyhost.com:8080" + }, + { + "assignment": { + "value": "DCAE" + }, + "name": "aaiEnrichmentUserName", + "type": "string", + "value": "DCAE" + }, + { + "assignment": { + "value": "DCAE" + }, + "name": "aaiEnrichmentUserPassword", + "type": "string", + "value": "DCAE" + }, + { + "assignment": { + "value": "/aai/v11/search/nodes-query" + }, + "name": "aaiVMEnrichmentAPIPath", + "type": "string", + "value": "/aai/v11/search/nodes-query" + }, + { + "assignment": { + "value": "/aai/v11/network/generic-vnfs/generic-vnf" + }, + "name": "aaiVNFEnrichmentAPIPath", + "type": "string", + "value": "/aai/v11/network/generic-vnfs/generic-vnf" + }, + { + "assignment": { + "value": "DCAE Analytics Threshold Crossing Alert Application" + }, + "name": "appDescription", + "type": "string", + "value": "DCAE Analytics Threshold Crossing Alert Application" + }, + { + "assignment": { + "value": "dcae-tca" + }, + "name": "appName", + "type": "string", + "value": "dcae-tca" + }, + { + "assignment": { + "value": "true" + }, + "name": "enableAAIEnrichment", + "type": "string", + "value": "true" + }, + { + "assignment": { + "value": "false" + }, + "name": "enableAlertCEFFormat", + "type": "string", + "value": "false" + }, + { + "assignment": { + "value": "application/json" + }, + "name": "publisherContentType", + "type": "string", + "value": "application/json" + }, + { + "assignment": { + "value": "1" + }, + "name": "publisherMaxBatchSize", + "type": "string", + "value": "1" + }, + { + "assignment": { + "value": "100000" + }, + "name": "publisherMaxRecoveryQueueSize", + "type": "string", + "value": "100000" + }, + { + "assignment": { + "value": "20000" + }, + "name": "publisherPollingInterval", + "type": "string", + "value": "20000" + }, + { + "assignment": { + "value": "OpenDCAE-c12" + }, + "name": "subscriberConsumerGroup", + "type": "string", + "value": "OpenDCAE-c12" + }, + { + "assignment": { + "value": "c12" + }, + "name": "subscriberConsumerId", + "type": "string", + "value": "c12" + }, + { + "assignment": { + "value": "application/json" + }, + "name": "subscriberContentType", + "type": "string", + "value": "application/json" + }, + { + "assignment": { + "value": "-1" + }, + "name": "subscriberMessageLimit", + "type": "string", + "value": "-1" + }, + { + "assignment": { + "value": "30000" + }, + "name": "subscriberPollingInterval", + "type": "string", + "value": "30000" + }, + { + "assignment": { + "value": "-1" + }, + "name": "subscriberTimeoutMS", + "type": "string", + "value": "-1" + }, + { + "assignment": { + "value": "TCAAlertsAbatementTable" + }, + "name": "tcaAlertsAbatementTableName", + "type": "string", + "value": "TCAAlertsAbatementTable" + }, + { + "assignment": { + "value": "1728000" + }, + "name": "tcaAlertsAbatementTableTTLSeconds", + "type": "string", + "value": "1728000" + }, + { + "assignment": { + "value": "TCASubscriberOutputStream" + }, + "name": "tcaSubscriberOutputStreamName", + "type": "string", + "value": "TCASubscriberOutputStream" + }, + { + "assignment": { + "value": "TCAVESAlertsTable" + }, + "name": "tcaVESAlertsTableName", + "type": "string", + "value": "TCAVESAlertsTable" + }, + { + "assignment": { + "value": "1728000" + }, + "name": "tcaVESAlertsTableTTLSeconds", + "type": "string", + "value": "1728000" + }, + { + "assignment": { + "value": "TCAVESMessageStatusTable" + }, + "name": "tcaVESMessageStatusTableName", + "type": "string", + "value": "TCAVESMessageStatusTable" + }, + { + "assignment": { + "value": "86400" + }, + "name": "tcaVESMessageStatusTableTTLSeconds", + "type": "string", + "value": "86400" + }, + { + "assignment": { + "value": + "{\"domain\":\"measurementsForVfScaling\",\"metricsPerEventName\":[{\"eventName\":\"Mfvs_eNodeB_RANKPI\",\"controlLoopSchemaType\":\"VNF\",\"policyScope\":\"resource=vFirewall;type=configuration\",\"policyName\":\"configuration.dcae.microservice.tca.xml\",\"policyVersion\":\"v0.0.1\",\"thresholds\":[{\"closedLoopControlName\":\"CL-FRWL-LOW-TRAFFIC-SIG-d925ed73-8231-4d02-9545-db4e101f88f8\",\"closedLoopEventStatus\":\"ONSET\",\"version\":\"1.0.2\",\"fieldPath\":\"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated\",\"thresholdValue\":4000,\"direction\":\"LESS_OR_EQUAL\",\"severity\":\"MAJOR\"},{\"closedLoopControlName\":\"CL-FRWL-HIGH-TRAFFIC-SIG-EA36FE84-9342-5E13-A656-EC5F21309A09\",\"closedLoopEventStatus\":\"ONSET\",\"version\":\"1.0.2\",\"fieldPath\":\"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated\",\"thresholdValue\":20000,\"direction\":\"GREATER_OR_EQUAL\",\"severity\":\"CRITICAL\"},{\"closedLoopControlName\":\"CL-FRWL-HIGH-TRAFFIC-SIG-EA36FE84-9342-5E13-A656-EC5F21309A09\",\"closedLoopEventStatus\":\"ABATED\",\"version\":\"1.0.2\",\"fieldPath\":\"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated\",\"thresholdValue\":0,\"direction\":\"EQUAL\",\"severity\":\"CRITICAL\"}]},{\"eventName\":\"vLoadBalancer\",\"controlLoopSchemaType\":\"VNF\",\"policyScope\":\"resource=vLoadBalancer;type=configuration\",\"policyName\":\"configuration.dcae.microservice.tca.xml\",\"policyVersion\":\"v0.0.1\",\"thresholds\":[{\"closedLoopControlName\":\"CL-LBAL-LOW-TRAFFIC-SIG-FB480F95-A453-6F24-B767-FD703241AB1A\",\"closedLoopEventStatus\":\"ONSET\",\"version\":\"1.0.2\",\"fieldPath\":\"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated\",\"thresholdValue\":500,\"direction\":\"LESS_OR_EQUAL\",\"severity\":\"MAJOR\"},{\"closedLoopControlName\":\"CL-LBAL-LOW-TRAFFIC-SIG-0C5920A6-B564-8035-C878-0E814352BC2B\",\"closedLoopEventStatus\":\"ONSET\",\"version\":\"1.0.2\",\"fieldPath\":\"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated\",\"thresholdValue\":5000,\"direction\":\"GREATER_OR_EQUAL\",\"severity\":\"CRITICAL\"}]}]}" + }, + "name": "tca_policy", + "type": "string", + "value": + "{\"domain\":\"measurementsForVfScaling\",\"metricsPerEventName\":[{\"eventName\":\"Mfvs_eNodeB_RANKPI\",\"controlLoopSchemaType\":\"VNF\",\"policyScope\":\"resource=vFirewall;type=configuration\",\"policyName\":\"configuration.dcae.microservice.tca.xml\",\"policyVersion\":\"v0.0.1\",\"thresholds\":[{\"closedLoopControlName\":\"CL-FRWL-LOW-TRAFFIC-SIG-d925ed73-8231-4d02-9545-db4e101f88f8\",\"closedLoopEventStatus\":\"ONSET\",\"version\":\"1.0.2\",\"fieldPath\":\"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated\",\"thresholdValue\":4000,\"direction\":\"LESS_OR_EQUAL\",\"severity\":\"MAJOR\"},{\"closedLoopControlName\":\"CL-FRWL-HIGH-TRAFFIC-SIG-EA36FE84-9342-5E13-A656-EC5F21309A09\",\"closedLoopEventStatus\":\"ONSET\",\"version\":\"1.0.2\",\"fieldPath\":\"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated\",\"thresholdValue\":20000,\"direction\":\"GREATER_OR_EQUAL\",\"severity\":\"CRITICAL\"},{\"closedLoopControlName\":\"CL-FRWL-HIGH-TRAFFIC-SIG-EA36FE84-9342-5E13-A656-EC5F21309A09\",\"closedLoopEventStatus\":\"ABATED\",\"version\":\"1.0.2\",\"fieldPath\":\"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated\",\"thresholdValue\":0,\"direction\":\"EQUAL\",\"severity\":\"CRITICAL\"}]},{\"eventName\":\"vLoadBalancer\",\"controlLoopSchemaType\":\"VNF\",\"policyScope\":\"resource=vLoadBalancer;type=configuration\",\"policyName\":\"configuration.dcae.microservice.tca.xml\",\"policyVersion\":\"v0.0.1\",\"thresholds\":[{\"closedLoopControlName\":\"CL-LBAL-LOW-TRAFFIC-SIG-FB480F95-A453-6F24-B767-FD703241AB1A\",\"closedLoopEventStatus\":\"ONSET\",\"version\":\"1.0.2\",\"fieldPath\":\"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated\",\"thresholdValue\":500,\"direction\":\"LESS_OR_EQUAL\",\"severity\":\"MAJOR\"},{\"closedLoopControlName\":\"CL-LBAL-LOW-TRAFFIC-SIG-0C5920A6-B564-8035-C878-0E814352BC2B\",\"closedLoopEventStatus\":\"ONSET\",\"version\":\"1.0.2\",\"fieldPath\":\"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated\",\"thresholdValue\":5000,\"direction\":\"GREATER_OR_EQUAL\",\"severity\":\"CRITICAL\"}]}]}" + }, + { + "assignment": { + "value": "2" + }, + "name": "thresholdCalculatorFlowletInstances", + "type": "string", + "value": "2" + }, + { + "default": "cdap_broker", + "assignment": { + "value": { + "get_input": "connected_broker_dns_name" + } + }, + "name": "connected_broker_dns_name", + "type": "string", + "required": true, + "value": { + "get_input": "connected_broker_dns_name" + } + }, + { + "name": "jar_url", + "type": "string", + "required": true + }, + { + "name": "service_component_type", + "type": "string", + "required": true + } + ], + "typeinfo": { + "itemId": + "3c473efc-57fc-4a47-b3fc-190bd3b02bd2/tosca.dcae.nodes.cdapApp.tcaSpec", + "requirements": [ + { + "node": { + "name": "dcae.capabilities.dmmap.topic", + "id": + "3c473efc-57fc-4a47-b3fc-190bd3b02bd2/dcae.capabilities.dmmap.topic" + }, + "capability": { + "name": "dcae.capabilities.dmmap.topic", + "id": + "3c473efc-57fc-4a47-b3fc-190bd3b02bd2/dcae.capabilities.dmmap.topic" + }, + "name": "stream_subscribe_0", + "id": "3c473efc-57fc-4a47-b3fc-190bd3b02bd2/stream_subscribe_0", + "relationship": { + "type": "dcae.relationships.subscribe_to_events" + } + }, + { + "node": { + "name": "dcae.capabilities.dmmap.topic", + "id": + "3c473efc-57fc-4a47-b3fc-190bd3b02bd2/dcae.capabilities.dmmap.topic" + }, + "capability": { + "name": "dcae.capabilities.dmmap.topic", + "id": + "3c473efc-57fc-4a47-b3fc-190bd3b02bd2/dcae.capabilities.dmmap.topic" + }, + "name": "stream_publish_0", + "id": "3c473efc-57fc-4a47-b3fc-190bd3b02bd2/stream_publish_0", + "relationship": { + "type": "dcae.relationships.publish_events" + } + }, + { + "node": { + "name": "dcae.capabilities.policy", + "id": + "3c473efc-57fc-4a47-b3fc-190bd3b02bd2/dcae.capabilities.policy" + }, + "capability": { + "name": "dcae.capabilities.policy", + "id": + "3c473efc-57fc-4a47-b3fc-190bd3b02bd2/dcae.capabilities.policy" + }, + "name": "policy", + "id": "3c473efc-57fc-4a47-b3fc-190bd3b02bd2/policy", + "relationship": { + "type": "cloudify.relationships.depends_on" + } + }, + { + "node": { + "name": "dcae.capabilities.cdapHost", + "id": + "3c473efc-57fc-4a47-b3fc-190bd3b02bd2/dcae.capabilities.cdapHost" + }, + "capability": { + "name": "dcae.capabilities.cdapHost", + "id": + "3c473efc-57fc-4a47-b3fc-190bd3b02bd2/dcae.capabilities.cdapHost" + }, + "name": "host", + "id": "3c473efc-57fc-4a47-b3fc-190bd3b02bd2/host", + "relationship": { + "type": "dcae.relationships.component_contained_in" + } + }, + { + "occurrences": [0, "UNBOUNDED"], + "node": { + "name": "tosca.capabilities.Node", + "id": + "3c473efc-57fc-4a47-b3fc-190bd3b02bd2/tosca.capabilities.Node" + }, + "capability": { + "name": "tosca.capabilities.Node", + "id": + "3c473efc-57fc-4a47-b3fc-190bd3b02bd2/tosca.capabilities.Node" + }, + "name": "dependency", + "id": "3c473efc-57fc-4a47-b3fc-190bd3b02bd2/dependency", + "relationship": { + "type": "tosca.relationships.DependsOn" + } + } + ], + "capabilities": [ + { + "name": "feature", + "type": { + "name": "tosca.capabilities.Node", + "id": + "3c473efc-57fc-4a47-b3fc-190bd3b02bd2/tosca.capabilities.Node" + } + } + ], + "catalogId": 0, + "catalog": "https://zldcrdm2sdc4cbe01.3f1a87.rdm2.tci.att.com:8443", + "hierarchy": [ + { + "name": "tosca.dcae.nodes.cdapApp", + "id": + "3c473efc-57fc-4a47-b3fc-190bd3b02bd2/tosca.dcae.nodes.cdapApp" + }, + { + "name": "tosca.dcae.nodes.Root", + "id": "3c473efc-57fc-4a47-b3fc-190bd3b02bd2/tosca.dcae.nodes.Root" + }, + { + "name": "tosca.nodes.Root", + "description": + "The TOSCA Node Type all other TOSCA base Node Types derive from", + "id": "3c473efc-57fc-4a47-b3fc-190bd3b02bd2/tosca.nodes.Root" + } + ], + "name": "tosca.dcae.nodes.cdapApp.tcaSpec", + "id": 0 + }, + "id": "3c473efc-57fc-4a47-b3fc-190bd3b02bd2", + "nid": "n.1519546229993.1", + "ndata": { + "name": "n.1519546229993.1", + "label": "tcaSpec", + "x": 1482, + "y": 340.0928478067284, + "px": 1481, + "py": 339.0928478067284, + "ports": [], + "radius": 30 + } + }, + { + "requirements": [ + { + "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" + } + } + ], + "capabilities": [ + { + "name": "topic", + "type": { + "name": "dcae.capabilities.dmmap.topic", + "id": "template.yaml/dcae.capabilities.dmmap.topic" + }, + "properties": [ + { + "assignment": { + "value": { + "get_property": ["SELF", "aaf_password"] + } + }, + "name": "aaf_password", + "type": "string" + }, + { + "assignment": { + "value": { + "get_property": ["SELF", "aaf_username"] + } + }, + "name": "aaf_username", + "type": "string" + }, + { + "assignment": { + "value": { + "get_property": ["SELF", "client_role"] + } + }, + "name": "client_role", + "type": "string" + }, + { + "assignment": { + "value": { + "get_property": ["SELF", "location"] + } + }, + "name": "location", + "type": "string" + }, + { + "assignment": { + "value": { + "get_property": ["SELF", "node_name"] + } + }, + "name": "node_name", + "type": "string" + }, + { + "assignment": { + "value": { + "get_property": ["SELF", "topic_name"] + } + }, + "name": "topic_name", + "type": "string" + } + ] + }, + { + "name": "feature", + "type": { + "name": "tosca.capabilities.Node", + "id": "template.yaml/tosca.capabilities.Node" + } + } + ], + "name": "topic0", + "description": + "/sdc/v1/catalog/resources/3c473efc-57fc-4a47-b3fc-190bd3b02bd2/artifacts/a04ce19c-6d71-44b7-9483-baa74d050fdb", + "type": { + "name": "tosca.dcae.nodes.dmaap.topic" + }, + "properties": [ + { + "assignment": { + "value": { + "get_input": "topic0_aaf_password" + } + }, + "name": "aaf_password", + "type": "string", + "value": { + "get_input": "topic0_aaf_password" + } + }, + { + "assignment": { + "value": { + "get_input": "topic0_aaf_username" + } + }, + "name": "aaf_username", + "type": "string", + "value": { + "get_input": "topic0_aaf_username" + } + }, + { + "assignment": { + "value": { + "get_input": "topic0_client_role" + } + }, + "name": "client_role", + "type": "string", + "value": { + "get_input": "topic0_client_role" + } + }, + { + "assignment": { + "value": { + "get_property": ["SELF", "composition", "location_id"] + } + }, + "name": "location", + "type": "string", + "value": { + "get_property": ["SELF", "composition", "location_id"] + } + }, + { + "assignment": { + "value": "__GET_NODE_NAME__" + }, + "name": "node_name", + "type": "string", + "value": "__GET_NODE_NAME__" + }, + { + "assignment": { + "value": "" + }, + "name": "topic_name", + "type": "string" + } + ], + "typeinfo": { + "itemId": + "3c473efc-57fc-4a47-b3fc-190bd3b02bd2/tosca.dcae.nodes.dmaap.topic", + "requirements": [ + { + "node": { + "name": "dcae.capabilities.composition.host", + "id": + "3c473efc-57fc-4a47-b3fc-190bd3b02bd2/dcae.capabilities.composition.host" + }, + "capability": { + "name": "dcae.capabilities.composition.host", + "id": + "3c473efc-57fc-4a47-b3fc-190bd3b02bd2/dcae.capabilities.composition.host" + }, + "name": "composition", + "id": "3c473efc-57fc-4a47-b3fc-190bd3b02bd2/composition" + }, + { + "occurrences": [0, "UNBOUNDED"], + "node": { + "name": "tosca.capabilities.Node", + "id": + "3c473efc-57fc-4a47-b3fc-190bd3b02bd2/tosca.capabilities.Node" + }, + "capability": { + "name": "tosca.capabilities.Node", + "id": + "3c473efc-57fc-4a47-b3fc-190bd3b02bd2/tosca.capabilities.Node" + }, + "name": "dependency", + "id": "3c473efc-57fc-4a47-b3fc-190bd3b02bd2/dependency", + "relationship": { + "type": "tosca.relationships.DependsOn" + } + } + ], + "capabilities": [ + { + "name": "topic", + "type": { + "name": "dcae.capabilities.dmmap.topic", + "id": + "3c473efc-57fc-4a47-b3fc-190bd3b02bd2/dcae.capabilities.dmmap.topic" + } + }, + { + "name": "feature", + "type": { + "name": "tosca.capabilities.Node", + "id": + "3c473efc-57fc-4a47-b3fc-190bd3b02bd2/tosca.capabilities.Node" + } + } + ], + "catalogId": 0, + "catalog": "https://zldcrdm2sdc4cbe01.3f1a87.rdm2.tci.att.com:8443", + "hierarchy": [ + { + "name": "tosca.dcae.nodes.Root", + "id": "3c473efc-57fc-4a47-b3fc-190bd3b02bd2/tosca.dcae.nodes.Root" + }, + { + "name": "tosca.nodes.Root", + "description": + "The TOSCA Node Type all other TOSCA base Node Types derive from", + "id": "3c473efc-57fc-4a47-b3fc-190bd3b02bd2/tosca.nodes.Root" + } + ], + "name": "tosca.dcae.nodes.dmaap.topic", + "id": 0 + }, + "id": "3c473efc-57fc-4a47-b3fc-190bd3b02bd2", + "nid": "n.1519546230003.2", + "ndata": { + "name": "n.1519546230003.2", + "label": "topic0", + "x": 1532, + "y": 359.82099057536396, + "px": 1531, + "py": 358.82099057536396, + "ports": [], + "radius": 30 + } + }, + { + "requirements": [ + { + "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" + } + } + ], + "capabilities": [ + { + "name": "topic", + "type": { + "name": "dcae.capabilities.dmmap.topic", + "id": "template.yaml/dcae.capabilities.dmmap.topic" + }, + "properties": [ + { + "assignment": { + "value": { + "get_property": ["SELF", "aaf_password"] + } + }, + "name": "aaf_password", + "type": "string" + }, + { + "assignment": { + "value": { + "get_property": ["SELF", "aaf_username"] + } + }, + "name": "aaf_username", + "type": "string" + }, + { + "assignment": { + "value": { + "get_property": ["SELF", "client_role"] + } + }, + "name": "client_role", + "type": "string" + }, + { + "assignment": { + "value": { + "get_property": ["SELF", "location"] + } + }, + "name": "location", + "type": "string" + }, + { + "assignment": { + "value": { + "get_property": ["SELF", "node_name"] + } + }, + "name": "node_name", + "type": "string" + }, + { + "assignment": { + "value": { + "get_property": ["SELF", "topic_name"] + } + }, + "name": "topic_name", + "type": "string" + } + ] + }, + { + "name": "feature", + "type": { + "name": "tosca.capabilities.Node", + "id": "template.yaml/tosca.capabilities.Node" + } + } + ], + "name": "topic1", + "description": + "/sdc/v1/catalog/resources/3c473efc-57fc-4a47-b3fc-190bd3b02bd2/artifacts/a04ce19c-6d71-44b7-9483-baa74d050fdb", + "type": { + "name": "tosca.dcae.nodes.dmaap.topic" + }, + "properties": [ + { + "assignment": { + "value": { + "get_input": "topic1_aaf_password" + } + }, + "name": "aaf_password", + "type": "string", + "value": { + "get_input": "topic1_aaf_password" + } + }, + { + "assignment": { + "value": { + "get_input": "topic1_aaf_username" + } + }, + "name": "aaf_username", + "type": "string", + "value": { + "get_input": "topic1_aaf_username" + } + }, + { + "assignment": { + "value": { + "get_input": "topic1_client_role" + } + }, + "name": "client_role", + "type": "string", + "value": { + "get_input": "topic1_client_role" + } + }, + { + "assignment": { + "value": { + "get_property": ["SELF", "composition", "location_id"] + } + }, + "name": "location", + "type": "string", + "value": { + "get_property": ["SELF", "composition", "location_id"] + } + }, + { + "assignment": { + "value": "__GET_NODE_NAME__" + }, + "name": "node_name", + "type": "string", + "value": "__GET_NODE_NAME__" + }, + { + "assignment": { + "value": "" + }, + "name": "topic_name", + "type": "string" + } + ], + "typeinfo": { + "itemId": + "3c473efc-57fc-4a47-b3fc-190bd3b02bd2/tosca.dcae.nodes.dmaap.topic", + "requirements": [ + { + "node": { + "name": "dcae.capabilities.composition.host", + "id": + "3c473efc-57fc-4a47-b3fc-190bd3b02bd2/dcae.capabilities.composition.host" + }, + "capability": { + "name": "dcae.capabilities.composition.host", + "id": + "3c473efc-57fc-4a47-b3fc-190bd3b02bd2/dcae.capabilities.composition.host" + }, + "name": "composition", + "id": "3c473efc-57fc-4a47-b3fc-190bd3b02bd2/composition" + }, + { + "occurrences": [0, "UNBOUNDED"], + "node": { + "name": "tosca.capabilities.Node", + "id": + "3c473efc-57fc-4a47-b3fc-190bd3b02bd2/tosca.capabilities.Node" + }, + "capability": { + "name": "tosca.capabilities.Node", + "id": + "3c473efc-57fc-4a47-b3fc-190bd3b02bd2/tosca.capabilities.Node" + }, + "name": "dependency", + "id": "3c473efc-57fc-4a47-b3fc-190bd3b02bd2/dependency", + "relationship": { + "type": "tosca.relationships.DependsOn" + } + } + ], + "capabilities": [ + { + "name": "topic", + "type": { + "name": "dcae.capabilities.dmmap.topic", + "id": + "3c473efc-57fc-4a47-b3fc-190bd3b02bd2/dcae.capabilities.dmmap.topic" + } + }, + { + "name": "feature", + "type": { + "name": "tosca.capabilities.Node", + "id": + "3c473efc-57fc-4a47-b3fc-190bd3b02bd2/tosca.capabilities.Node" + } + } + ], + "catalogId": 0, + "catalog": "https://zldcrdm2sdc4cbe01.3f1a87.rdm2.tci.att.com:8443", + "hierarchy": [ + { + "name": "tosca.dcae.nodes.Root", + "id": "3c473efc-57fc-4a47-b3fc-190bd3b02bd2/tosca.dcae.nodes.Root" + }, + { + "name": "tosca.nodes.Root", + "description": + "The TOSCA Node Type all other TOSCA base Node Types derive from", + "id": "3c473efc-57fc-4a47-b3fc-190bd3b02bd2/tosca.nodes.Root" + } + ], + "name": "tosca.dcae.nodes.dmaap.topic", + "id": 0 + }, + "id": "3c473efc-57fc-4a47-b3fc-190bd3b02bd2", + "nid": "n.1519546230015.3", + "ndata": { + "name": "n.1519546230015.3", + "label": "topic1", + "x": 1582, + "y": 364.5060542566447, + "px": 1581, + "py": 363.5060542566447, + "ports": [], + "radius": 30 + } + }, + { + "requirements": [ + { + "capability": { + "name": "dcae.capabilities.dockerHost", + "id": "template.yaml/dcae.capabilities.dockerHost" + }, + "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" + } + } + ], + "capabilities": [ + { + "name": "feature", + "type": { + "name": "tosca.capabilities.Node", + "id": "template.yaml/tosca.capabilities.Node" + } + } + ], + "name": "fm_poller", + "description": + "/sdc/v1/catalog/resources/c8db6f9b-6173-4d7d-bd25-c20bfc154daa/artifacts/66b05681-a407-4e46-9239-86f245c68b81", + "type": { + "name": "tosca.dcae.nodes.dockerApp.fm_poller" + }, + "properties": [ + { + "assignment": { + "value": "ciscoRouter" + }, + "name": "DeviceCategory", + "type": "string", + "constraints": [ + { + "valid_values": [ + "ciscoSwitch", + "ciscoRouter", + "juniperSwitch", + "juniperRouter" + ] + } + ], + "value": "ciscoRouter" + }, + { + "assignment": { + "value": "/opt/app/discovery/seed" + }, + "name": "DeviceToWalkJson", + "type": "string", + "value": "/opt/app/discovery/seed" + }, + { + "assignment": { + "value": { + "get_input": "DisoveryInterval" + } + }, + "name": "DisoveryInterval", + "type": "string", + "value": { + "get_input": "DisoveryInterval" + } + }, + { + "assignment": { + "value": { + "get_input": "FlatironHost" + } + }, + "name": "FlatironHost", + "type": "string", + "value": { + "get_input": "FlatironHost" + } + }, + { + "assignment": { + "value": { + "get_input": "FlatironScope" + } + }, + "name": "FlatironScope", + "type": "string", + "value": { + "get_input": "FlatironScope" + } + }, + { + "assignment": { + "value": "/opt/app/discovery/curloutput" + }, + "name": "SeedFilePath", + "type": "string", + "value": "/opt/app/discovery/curloutput" + }, + { + "assignment": { + "value": + "/opt/app/topologyCollector/TopologyCollector-1.0.0/conf/app_config.json" + }, + "name": "app_config_file", + "type": "string", + "value": + "/opt/app/topologyCollector/TopologyCollector-1.0.0/conf/app_config.json" + }, + { + "assignment": { + "value": + "/opt/app/topologyCollector/TopologyCollector-1.0.0/data/ciscorouteroids" + }, + "name": "ciscorouter", + "type": "string", + "value": + "/opt/app/topologyCollector/TopologyCollector-1.0.0/data/ciscorouteroids" + }, + { + "assignment": { + "value": + "/opt/app/topologyCollector/TopologyCollector-1.0.0/data/ciscoswitchoids" + }, + "name": "ciscoswitch", + "type": "string", + "value": + "/opt/app/topologyCollector/TopologyCollector-1.0.0/data/ciscoswitchoids" + }, + { + "assignment": { + "value": { + "get_input": "clientUri" + } + }, + "name": "clientUri", + "type": "string", + "value": { + "get_input": "clientUri" + } + }, + { + "assignment": { + "value": { + "get_input": "dcae_service_location" + } + }, + "name": "dcae_service_location", + "type": "string", + "value": { + "get_input": "dcae_service_location" + } + }, + { + "assignment": { + "value": "rv1-dis / rv1-mib" + }, + "name": "dcae_target_type", + "type": "string", + "constraints": [ + { + "valid_values": [ + "rv1-dis / rv1-mib", + "rv2- dis / rv2-mib", + "rv3- dis / rv3-mib", + "rv4- dis / rv4-mib", + "rv5- dis / rv5-mib", + "rv6- dis / rv6-mib", + "rv7- dis / rv7-mib", + "me6- dis / me6- mib" + ] + } + ], + "value": "rv1-dis / rv1-mib" + }, + { + "assignment": { + "value": + "/opt/app/topologyCollector/TopologyCollector-1.0.0/data/defaultoids" + }, + "name": "default", + "type": "string", + "value": + "/opt/app/topologyCollector/TopologyCollector-1.0.0/data/defaultoids" + }, + { + "assignment": { + "value": "" + }, + "name": "dmaapSeedFilePath", + "type": "string" + }, + { + "assignment": { + "value": + "/opt/app/topologyCollector/TopologyCollector-1.0.0/conf/dmaap_config.json" + }, + "name": "dmaap_conf_file", + "type": "string", + "value": + "/opt/app/topologyCollector/TopologyCollector-1.0.0/conf/dmaap_config.json" + }, + { + "assignment": { + "value": + "/opt/app/topologyCollector/TopologyCollector-1.0.0/conf/dti_config.json" + }, + "name": "dti_config_file", + "type": "string", + "value": + "/opt/app/topologyCollector/TopologyCollector-1.0.0/conf/dti_config.json" + }, + { + "assignment": { + "value": { + "get_input": "environment" + } + }, + "name": "environment", + "type": "string", + "value": { + "get_input": "environment" + } + }, + { + "assignment": { + "value": + "/opt/app/topologyCollector/TopologyCollector-1.0.0/data/juniperrouteroids" + }, + "name": "juniperrouter", + "type": "string", + "value": + "/opt/app/topologyCollector/TopologyCollector-1.0.0/data/juniperrouteroids" + }, + { + "assignment": { + "value": + "/opt/app/topologyCollector/TopologyCollector-1.0.0/data/juniperswitchoids" + }, + "name": "juniperswitch", + "type": "string", + "value": + "/opt/app/topologyCollector/TopologyCollector-1.0.0/data/juniperswitchoids" + }, + { + "assignment": { + "value": "/opt/app/discovery/outdata" + }, + "name": "outdata", + "type": "string", + "value": "/opt/app/discovery/outdata" + }, + { + "name": "image", + "type": "string", + "required": true + }, + { + "assignment": { + "value": { + "get_property": ["SELF", "composition", "location_id"] + } + }, + "name": "location_id", + "type": "string", + "required": true, + "value": { + "get_property": ["SELF", "composition", "location_id"] + } + }, + { + "name": "service_component_type", + "type": "string", + "required": true + } + ], + "typeinfo": { + "itemId": + "c8db6f9b-6173-4d7d-bd25-c20bfc154daa/tosca.dcae.nodes.dockerApp.fm_poller", + "requirements": [ + { + "node": { + "name": "dcae.capabilities.dockerHost", + "id": + "c8db6f9b-6173-4d7d-bd25-c20bfc154daa/dcae.capabilities.dockerHost" + }, + "capability": { + "name": "dcae.capabilities.dockerHost", + "id": + "c8db6f9b-6173-4d7d-bd25-c20bfc154daa/dcae.capabilities.dockerHost" + }, + "name": "host", + "id": "c8db6f9b-6173-4d7d-bd25-c20bfc154daa/host", + "relationship": { + "type": "dcae.relationships.component_contained_in" + } + }, + { + "node": { + "name": "dcae.capabilities.composition.host", + "id": + "c8db6f9b-6173-4d7d-bd25-c20bfc154daa/dcae.capabilities.composition.host" + }, + "capability": { + "name": "dcae.capabilities.composition.host", + "id": + "c8db6f9b-6173-4d7d-bd25-c20bfc154daa/dcae.capabilities.composition.host" + }, + "name": "composition", + "id": "c8db6f9b-6173-4d7d-bd25-c20bfc154daa/composition" + }, + { + "occurrences": [0, "UNBOUNDED"], + "node": { + "name": "tosca.capabilities.Node", + "id": + "c8db6f9b-6173-4d7d-bd25-c20bfc154daa/tosca.capabilities.Node" + }, + "capability": { + "name": "tosca.capabilities.Node", + "id": + "c8db6f9b-6173-4d7d-bd25-c20bfc154daa/tosca.capabilities.Node" + }, + "name": "dependency", + "id": "c8db6f9b-6173-4d7d-bd25-c20bfc154daa/dependency", + "relationship": { + "type": "tosca.relationships.DependsOn" + } + } + ], + "capabilities": [ + { + "name": "feature", + "type": { + "name": "tosca.capabilities.Node", + "id": + "c8db6f9b-6173-4d7d-bd25-c20bfc154daa/tosca.capabilities.Node" + } + } + ], + "catalogId": 0, + "catalog": "https://zldcrdm2sdc4cbe01.3f1a87.rdm2.tci.att.com:8443", + "hierarchy": [ + { + "name": "tosca.dcae.nodes.dockerApp", + "id": + "c8db6f9b-6173-4d7d-bd25-c20bfc154daa/tosca.dcae.nodes.dockerApp" + }, + { + "name": "tosca.dcae.nodes.Root", + "id": "c8db6f9b-6173-4d7d-bd25-c20bfc154daa/tosca.dcae.nodes.Root" + }, + { + "name": "tosca.nodes.Root", + "description": + "The TOSCA Node Type all other TOSCA base Node Types derive from", + "id": "c8db6f9b-6173-4d7d-bd25-c20bfc154daa/tosca.nodes.Root" + } + ], + "name": "tosca.dcae.nodes.dockerApp.fm_poller", + "id": 0 + }, + "id": "c8db6f9b-6173-4d7d-bd25-c20bfc154daa", + "nid": "n.1519638059958.3", + "ndata": { + "name": "n.1519638059958.3", + "label": "fm_poller", + "x": 757, + "y": 533, + "px": 756, + "py": 532, + "ports": [], + "radius": 30 + } + } + ], + "relations": [ + { + "rid": "lnk.1519638491147.0", + "n1": "n.1519546229993.1", + "name1": "tcaSpec", + "n2": "n.1519546230003.2", + "name2": "topic0", + "meta": { + "n1": "n.1519546229993.1", + "n2": "n.1519546230003.2", + "p1": "stream_subscribe_0", + "p2": "topic", + "relationship": ["tcaSpec", null, "stream_subscribe_0"] + } + }, + { + "rid": "lnk.1519638491150.1", + "n1": "n.1519546229993.1", + "name1": "tcaSpec", + "n2": "n.1519546230015.3", + "name2": "topic1", + "meta": { + "n1": "n.1519546229993.1", + "n2": "n.1519546230015.3", + "p1": "stream_publish_0", + "p2": "topic", + "relationship": ["tcaSpec", null, "stream_publish_0"] + } + }, + { + "rid": "lnk.1519638491156.2", + "n1": "n.1519546229993.1", + "name1": "tcaSpec", + "n2": "n.1519546229982.0", + "name2": "policy_0", + "meta": { + "n1": "n.1519546229993.1", + "n2": "n.1519546229982.0", + "p1": "policy", + "p2": "policy", + "relationship": ["tcaSpec", null, "policy"] + } + } + ], + "inputs": [], + "outputs": [] + } +} diff --git a/public/cypress/fixtures/importVfcmt.json b/public/cypress/fixtures/importVfcmt.json new file mode 100644 index 0000000..6da0d60 --- /dev/null +++ b/public/cypress/fixtures/importVfcmt.json @@ -0,0 +1,93 @@ +[ + { + "uuid": "cb06b8a9-c7e0-4451-a941-89fc338303c9", + "invariantUUID": "8c341465-43bb-44a9-b5f0-356e6a2a855f", + "name": "LiavSprint10.3", + "version": "0.1", + "toscaModelURL": + "/sdc/v1/catalog/resources/cb06b8a9-c7e0-4451-a941-89fc338303c9/toscaModel", + "lastUpdaterUserId": "le056g", + "category": "Template", + "lifecycleState": "NOT_CERTIFIED_CHECKIN", + "subCategory": "Monitoring Template", + "resourceType": "VFCMT" + }, + { + "uuid": "eef4a0c8-8a52-4d09-bdbd-f68dfd835ee3", + "invariantUUID": "d8003bd6-de41-4910-b38d-a357de25a61a", + "name": "teSt.__.monitoring---TempLATE.Rsnq", + "version": "0.1", + "toscaModelURL": + "/sdc/v1/catalog/resources/eef4a0c8-8a52-4d09-bdbd-f68dfd835ee3/toscaModel", + "lastUpdaterUserId": "cs0008", + "category": "Template", + "lifecycleState": "NOT_CERTIFIED_CHECKIN", + "subCategory": "Monitoring Template", + "resourceType": "VFCMT" + }, + { + "uuid": "f34758c9-f0e8-4b18-993a-0c1b48c5885a", + "invariantUUID": "7a96b209-0598-4df7-9313-48234b6e731b", + "name": "teSt.__.monitoring---TempLATE.Yh5k", + "version": "2.0", + "toscaModelURL": + "/sdc/v1/catalog/resources/f34758c9-f0e8-4b18-993a-0c1b48c5885a/toscaModel", + "lastUpdaterUserId": "cs0008", + "category": "Template", + "lifecycleState": "CERTIFIED", + "subCategory": "Monitoring Template", + "resourceType": "VFCMT" + }, + { + "uuid": "22473d26-d0bd-4c1b-84c1-20e539fb7556", + "invariantUUID": "5feeebf4-d4e9-44bc-9f17-10703af44da7", + "name": "CI-fJc9mhvlrfdx6qeCI", + "version": "0.1", + "toscaModelURL": + "/sdc/v1/catalog/resources/22473d26-d0bd-4c1b-84c1-20e539fb7556/toscaModel", + "lastUpdaterUserId": "cs0008", + "category": "Template", + "lifecycleState": "NOT_CERTIFIED_CHECKIN", + "subCategory": "Monitoring Template", + "resourceType": "VFCMT" + }, + { + "uuid": "dc588160-b1ca-4219-b790-bd8eda9332c1", + "invariantUUID": "e23ac861-1ba3-4acc-a1bd-ea297c51f1da", + "name": "teSt.__.monitoring---TempLATE.Fv2x", + "version": "1.0", + "toscaModelURL": + "/sdc/v1/catalog/resources/dc588160-b1ca-4219-b790-bd8eda9332c1/toscaModel", + "lastUpdaterUserId": "cs0008", + "category": "Template", + "lifecycleState": "CERTIFIED", + "subCategory": "Monitoring Template", + "resourceType": "VFCMT" + }, + { + "uuid": "cdb18942-e769-4361-9e89-96b06d13b138", + "invariantUUID": "fc8c40aa-f67c-4386-92b1-fbc652b8d3dc", + "name": "CIba71c93f4299", + "version": "0.3", + "toscaModelURL": + "/sdc/v1/catalog/resources/cdb18942-e769-4361-9e89-96b06d13b138/toscaModel", + "lastUpdaterUserId": "cs0008", + "category": "Template", + "lifecycleState": "NOT_CERTIFIED_CHECKIN", + "subCategory": "Monitoring Template", + "resourceType": "VFCMT" + }, + { + "uuid": "d9a5372c-2127-4b83-9aed-17e5b041cb45", + "invariantUUID": "3decd698-451b-405f-93ca-dcdf1dfd525e", + "name": "teSt.__.monitoring---TempLATE.Sgno", + "version": "0.2", + "toscaModelURL": + "/sdc/v1/catalog/resources/d9a5372c-2127-4b83-9aed-17e5b041cb45/toscaModel", + "lastUpdaterUserId": "cs0008", + "category": "Template", + "lifecycleState": "NOT_CERTIFIED_CHECKIN", + "subCategory": "Monitoring Template", + "resourceType": "VFCMT" + } +] diff --git a/public/cypress/fixtures/list-events-by-version.json b/public/cypress/fixtures/list-events-by-version.json new file mode 100644 index 0000000..0a07af0 --- /dev/null +++ b/public/cypress/fixtures/list-events-by-version.json @@ -0,0 +1,29 @@ +[ + { + "version": "4.1", + "eventTypes": [ + "syslogFields", + "thresholdCrossingAlertFields", + "measurementsForVfScalingFields", + "mobileFlowFields", + "otherFields", + "stateChangeFields", + "faultFields" + ] + }, + { + "version": "5.3", + "eventTypes": [ + "syslogFields", + "thresholdCrossingAlertFields", + "voiceQualityFields", + "heartbeatFields", + "measurementsForVfScalingFields", + "sipSignalingFields", + "mobileFlowFields", + "otherFields", + "stateChangeFields", + "faultFields" + ] + } +] diff --git a/public/cypress/fixtures/monitoringComponentsMock.json b/public/cypress/fixtures/monitoringComponentsMock.json new file mode 100644 index 0000000..ab34688 --- /dev/null +++ b/public/cypress/fixtures/monitoringComponentsMock.json @@ -0,0 +1,123 @@ +{ + "monitoringComponents": [ + { + "uuid": "cba37ed8-94e1-406f-b4f5-b5edbc31ac85", + "name": "CIe4d5a9b271d6", + "version": "0.2", + "lastUpdaterUserId": "cs0008", + "description": "description", + "status": "not submitted", + "vfiName": "vfb53dd48360ff4fa2b66e6ceb1961bd9b0" + }, + { + "uuid": "64471437-8feb-40d9-a8b0-9407a81dd5c0", + "name": "teSt.__.monitoring---TempLATE.6hnc", + "version": "1.0", + "lastUpdaterUserId": "cs0008", + "description": "description", + "status": "submitted", + "vfiName": "dump0" + }, + { + "uuid": "64471437-8feb-40d9-a8b0-9407a81dd5c0", + "name": "teSt.__.monitoring---TempLATE.6hnc", + "version": "1.0", + "lastUpdaterUserId": "cs0008", + "description": "description", + "status": "submitted", + "vfiName": "dump0" + }, + { + "uuid": "cba37ed8-94e1-406f-b4f5-b5edbc31ac85", + "name": "CIe4d5a9b271d6", + "version": "0.2", + "lastUpdaterUserId": "cs0008", + "description": "description", + "status": "not submitted", + "vfiName": "vfb53dd48360ff4fa2b66e6ceb1961bd9b0" + }, + { + "uuid": "64471437-8feb-40d9-a8b0-9407a81dd5c0", + "name": "teSt.__.monitoring---TempLATE.6hnc", + "version": "1.0", + "lastUpdaterUserId": "cs0008", + "description": "description", + "status": "submitted", + "vfiName": "dump0" + }, + { + "uuid": "64471437-8feb-40d9-a8b0-9407a81dd5c0", + "name": "teSt.__.monitoring---TempLATE.6hnc", + "version": "1.0", + "lastUpdaterUserId": "cs0008", + "description": "description", + "status": "submitted", + "vfiName": "dump0" + }, + { + "uuid": "cba37ed8-94e1-406f-b4f5-b5edbc31ac85", + "name": "CIe4d5a9b271d6", + "version": "0.2", + "lastUpdaterUserId": "cs0008", + "description": "description", + "status": "not submitted", + "vfiName": "vfb53dd48360ff4fa2b66e6ceb1961bd9b0" + }, + { + "uuid": "64471437-8feb-40d9-a8b0-9407a81dd5c0", + "name": "teSt.__.monitoring---TempLATE.6hnc", + "version": "1.0", + "lastUpdaterUserId": "cs0008", + "description": "description", + "status": "submitted", + "vfiName": "dump0" + }, + { + "uuid": "64471437-8feb-40d9-a8b0-9407a81dd5c0", + "name": "teSt.__.monitoring---TempLATE.6hnc", + "version": "1.0", + "lastUpdaterUserId": "cs0008", + "description": "description", + "status": "submitted", + "vfiName": "dump0" + }, + { + "uuid": "cba37ed8-94e1-406f-b4f5-b5edbc31ac85", + "name": "CIe4d5a9b271d6", + "version": "0.2", + "lastUpdaterUserId": "cs0008", + "description": "description", + "status": "not submitted", + "vfiName": "vfb53dd48360ff4fa2b66e6ceb1961bd9b0" + }, + { + "uuid": "64471437-8feb-40d9-a8b0-9407a81dd5c0", + "name": "teSt.__.monitoring---TempLATE.6hnc", + "version": "1.0", + "lastUpdaterUserId": "cs0008", + "description": "description", + "status": "submitted", + "vfiName": "dump0" + }, + { + "uuid": "64471437-8feb-40d9-a8b0-9407a81dd5c0", + "name": "teSt.__.monitoring---TempLATE.6hnc", + "version": "1.0", + "lastUpdaterUserId": "cs0008", + "description": "description", + "status": "submitted", + "vfiName": "dump0" + } + ], + "unavailable": [ + { + "uuid": "111111-1111111-1111111", + "name": null, + "version": null, + "lastUpdaterUserId": null, + "description": null, + "status": "unavailable", + "vfiName": "dump0" + } + ] +}
\ No newline at end of file diff --git a/public/cypress/fixtures/serviceDdl.json b/public/cypress/fixtures/serviceDdl.json new file mode 100644 index 0000000..a0a05bc --- /dev/null +++ b/public/cypress/fixtures/serviceDdl.json @@ -0,0 +1,24 @@ +{ + "uuid": "06c7d927-4e2f-47e1-a29d-b6ed229ebc0a", + "invariantUUID": "424b2457-d0fc-4b73-aaf6-d809f402aff5", + "name": "ciService669277f472b0", + "version": "0.1", + "toscaModelURL": + "/sdc/v1/catalog/services/06c7d927-4e2f-47e1-a29d-b6ed229ebc0a/toscaModel", + "lastUpdaterUserId": "cs0008", + "category": "Mobility", + "lifecycleState": "NOT_CERTIFIED_CHECKOUT", + "distributionStatus": "DISTRIBUTION_NOT_APPROVED", + "lastUpdaterFullName": "Idan Agam", + "resources": [ + { + "resourceInstanceName": "LiavSrv", + "resourceName": "ciResVF4e28237d8f08", + "resourceInvariantUUID": "c36512c2-7938-4dce-ab9e-8884c9cb1fb0", + "resourceVersion": "0.1", + "resoucreType": "VF", + "resourceUUID": "bce6b896-c086-450c-a023-86c1129de7e8", + "artifacts": null + } + ] +} diff --git a/public/cypress/fixtures/syslogTargetTree.json b/public/cypress/fixtures/syslogTargetTree.json new file mode 100644 index 0000000..a6b73b4 --- /dev/null +++ b/public/cypress/fixtures/syslogTargetTree.json @@ -0,0 +1,239 @@ +[ + { + "name": "commonEventHeader", + "children": [ + { + "name": "domain", + "children": null, + "isRequired": true, + "requiredChildren": null, + "id": "event.commonEventHeader.domain" + }, + { + "name": "eventId", + "children": null, + "isRequired": true, + "requiredChildren": null, + "id": "event.commonEventHeader.eventId" + }, + { + "name": "eventType", + "children": null, + "isRequired": false, + "requiredChildren": null, + "id": "event.commonEventHeader.eventType" + }, + { + "name": "functionalRole", + "children": null, + "isRequired": true, + "requiredChildren": null, + "id": "event.commonEventHeader.functionalRole" + }, + { + "name": "internalHeaderFields", + "children": null, + "isRequired": false, + "requiredChildren": null, + "id": "event.commonEventHeader.internalHeaderFields" + }, + { + "name": "lastEpochMicrosec", + "children": null, + "isRequired": true, + "requiredChildren": null, + "id": "event.commonEventHeader.lastEpochMicrosec" + }, + { + "name": "priority", + "children": null, + "isRequired": true, + "requiredChildren": null, + "id": "event.commonEventHeader.priority" + }, + { + "name": "reportingEntityId", + "children": null, + "isRequired": false, + "requiredChildren": null, + "id": "event.commonEventHeader.reportingEntityId" + }, + { + "name": "reportingEntityName", + "children": null, + "isRequired": true, + "requiredChildren": null, + "id": "event.commonEventHeader.reportingEntityName" + }, + { + "name": "sequence", + "children": null, + "isRequired": true, + "requiredChildren": null, + "id": "event.commonEventHeader.sequence" + }, + { + "name": "sourceId", + "children": null, + "isRequired": false, + "requiredChildren": null, + "id": "event.commonEventHeader.sourceId" + }, + { + "name": "sourceName", + "children": null, + "isRequired": true, + "requiredChildren": null, + "id": "event.commonEventHeader.sourceName" + }, + { + "name": "startEpochMicrosec", + "children": null, + "isRequired": true, + "requiredChildren": null, + "id": "event.commonEventHeader.startEpochMicrosec" + }, + { + "name": "version", + "children": null, + "isRequired": false, + "requiredChildren": null, + "id": "event.commonEventHeader.version" + } + ], + "isRequired": false, + "requiredChildren": [ + "domain", + "eventId", + "functionalRole", + "lastEpochMicrosec", + "priority", + "reportingEntityName", + "sequence", + "sourceName", + "startEpochMicrosec" + ], + "id": "event.commonEventHeader" + }, + { + "name": "syslogFields", + "children": [ + { + "name": "additionalFields", + "children": [ + { + "name": "name", + "children": null, + "isRequired": true, + "requiredChildren": null, + "id": "event.syslogFields.additionalFields[].name" + }, + { + "name": "value", + "children": null, + "isRequired": true, + "requiredChildren": null, + "id": "event.syslogFields.additionalFields[].value" + } + ], + "isRequired": false, + "requiredChildren": ["name", "value"], + "id": "event.syslogFields.additionalFields[]" + }, + { + "name": "eventSourceHost", + "children": null, + "isRequired": false, + "requiredChildren": null, + "id": "event.syslogFields.eventSourceHost" + }, + { + "name": "eventSourceType", + "children": null, + "isRequired": true, + "requiredChildren": null, + "id": "event.syslogFields.eventSourceType" + }, + { + "name": "syslogFacility", + "children": null, + "isRequired": false, + "requiredChildren": null, + "id": "event.syslogFields.syslogFacility" + }, + { + "name": "syslogFieldsVersion", + "children": null, + "isRequired": false, + "requiredChildren": null, + "id": "event.syslogFields.syslogFieldsVersion" + }, + { + "name": "syslogMsg", + "children": null, + "isRequired": true, + "requiredChildren": null, + "id": "event.syslogFields.syslogMsg" + }, + { + "name": "syslogPri", + "children": null, + "isRequired": false, + "requiredChildren": null, + "id": "event.syslogFields.syslogPri" + }, + { + "name": "syslogProc", + "children": null, + "isRequired": false, + "requiredChildren": null, + "id": "event.syslogFields.syslogProc" + }, + { + "name": "syslogProcId", + "children": null, + "isRequired": false, + "requiredChildren": null, + "id": "event.syslogFields.syslogProcId" + }, + { + "name": "syslogSData", + "children": null, + "isRequired": false, + "requiredChildren": null, + "id": "event.syslogFields.syslogSData" + }, + { + "name": "syslogSdId", + "children": null, + "isRequired": false, + "requiredChildren": null, + "id": "event.syslogFields.syslogSdId" + }, + { + "name": "syslogSev", + "children": null, + "isRequired": false, + "requiredChildren": null, + "id": "event.syslogFields.syslogSev" + }, + { + "name": "syslogTag", + "children": null, + "isRequired": true, + "requiredChildren": null, + "id": "event.syslogFields.syslogTag" + }, + { + "name": "syslogVer", + "children": null, + "isRequired": false, + "requiredChildren": null, + "id": "event.syslogFields.syslogVer" + } + ], + "isRequired": false, + "requiredChildren": ["eventSourceType", "syslogMsg", "syslogTag"], + "id": "event.syslogFields" + } +] diff --git a/public/cypress/fixtures/templateMock.json b/public/cypress/fixtures/templateMock.json new file mode 100644 index 0000000..b8fff17 --- /dev/null +++ b/public/cypress/fixtures/templateMock.json @@ -0,0 +1,15 @@ +[ + { + "uuid": "2a67bbb6-3457-4bb6-baef-e3bc5f1fd9b7", + "invariantUUID": "cb594fb6-c9e7-42c1-bef9-7a1873325986", + "name": "AviStone1234", + "version": "1.0", + "toscaModelURL": + "/sdc/v1/catalog/resources/2a67bbb6-3457-4bb6-baef-e3bc5f1fd9b7/toscaModel", + "lastUpdaterUserId": "cs0008", + "category": "Template", + "lifecycleState": "CERTIFIED", + "subCategory": "Base Monitoring Template", + "resourceType": "VFCMT" + } +] diff --git a/public/cypress/fixtures/vfniMock.json b/public/cypress/fixtures/vfniMock.json new file mode 100644 index 0000000..cb4a91b --- /dev/null +++ b/public/cypress/fixtures/vfniMock.json @@ -0,0 +1,12 @@ +[ + { + "uuid": "d31bc895-d908-4e62-9e81-77fd52e13632", + "invariantUUID": "4b8e8dde-8f18-42f4-86c7-3e2f9bc163b4", + "name": "LiavSrv", + "version": "0.3", + "lastUpdaterUserId": "af3193", + "category": "Mobility", + "lifecycleState": "NOT_CERTIFIED_CHECKIN", + "distributionStatus": "DISTRIBUTION_NOT_APPROVED" + } +] diff --git a/public/cypress/integration/e2e/e2eWithIntegration-spec.ts b/public/cypress/integration/e2e/e2eWithIntegration-spec.ts new file mode 100644 index 0000000..459a7de --- /dev/null +++ b/public/cypress/integration/e2e/e2eWithIntegration-spec.ts @@ -0,0 +1,145 @@ +const randomNodeName = () => + Math.random() + .toString(36) + .substr(2, 7); +const NODE_NAME = randomNodeName(); + +const serverGetDDLData = () => { + return cy + .server() + .route( + 'GET', + Cypress.env('backendUrl') + '/getResourcesByMonitoringTemplateCategory' + ) + .as('templateAPi') + .route( + 'GET', + Cypress.env('backendUrl') + + '/service/06c7d927-4e2f-47e1-a29d-b6ed229ebc0a' + ) + .as('vfniListAPi'); +}; + +const saveAndDoneHttp = () => { + cy.server(); + cy + .route({ + method: 'POST', + url: Cypress.env('backendUrl') + '/rule-editor/rule/**/**/**/**' + }) + .as('doneSaveCopyRule'); +}; + +const createNewMC = () => { + cy + .get('input[data-tests-id="nameMc"]') + .type(`Hello${NODE_NAME}`) + .get('textarea[data-tests-id="descMc"]') + .type('Hello Description') + .get('select[data-tests-id="templateDdl"]') + .then($els => { + const opt = $els.find('option'); + const first = opt.get(1) as any; + return $els.val(first.value); + }) + .trigger('change') + .get('select[data-tests-id="vfniDdl"]') + .then($els => { + const opt = $els.find('option'); + const first = opt.get(1) as any; + return $els.val(first.value); + }) + .trigger('change') + .get('button[data-tests-id="createMonitoring"]') + .not('[disabled]') + .should('not.contain', 'Disabled'); + cy + .server() + .route({ + method: 'POST', + url: Cypress.env('backendUrl') + '/createMC' + }) + .as('newMC') + .get('button[data-tests-id="createMonitoring"]') + .click() + .wait('@newMC'); +}; + +import { buttonCreateMC } from '../mocks/homePage-spec'; +import { + selectVersionAndTypeAndAddFirstRule, + fillRuleDecription, + addCopyAction, + editFirstRule +} from '../mocks/ruleEngine-spec'; + +describe('DCAED - forntend e2e and inagration test', () => { + context('Empty Monitoring Configuration list for service', () => { + it('Loads', () => { + cy.homePage(); + }); + }); + + context('Create new monitoring configuration', () => { + beforeEach(() => { + serverGetDDLData(); + cy.homePage(); + buttonCreateMC() + .click() + .wait(['@templateAPi', '@vfniListAPi']); + }); + + it('After api call success verify create button is disabled', () => { + cy + .get('button[data-tests-id="createMonitoring"]') + .should('be.visible') + .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'); + }); + }); + }); +}); diff --git a/public/cypress/integration/mocks/errorDialog-spec.ts b/public/cypress/integration/mocks/errorDialog-spec.ts new file mode 100644 index 0000000..9141ab2 --- /dev/null +++ b/public/cypress/integration/mocks/errorDialog-spec.ts @@ -0,0 +1,22 @@ +describe('Dialog error - E2E test flow with mock', () => { + describe('Simulate errors', () => { + beforeEach(() => { + cy.getMCListEmpty(); + cy.getTemplateApiError(); + }); + + it('Simulate error dialog is visible', () => { + cy.get('.ui-dialog').should('be.visible'); + }); + + it('Simulate error dialog is close by cancel button', () => { + cy.get('button[data-tests-id="error-cancel"]').click(); + 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('.ui-dialog').should('not.be.visible'); + }); + }); +}); diff --git a/public/cypress/integration/mocks/generalPage-spec.ts b/public/cypress/integration/mocks/generalPage-spec.ts new file mode 100644 index 0000000..1297de8 --- /dev/null +++ b/public/cypress/integration/mocks/generalPage-spec.ts @@ -0,0 +1,84 @@ +describe('General Page - E2E test flow with mock', () => { + describe('Create new MC', () => { + beforeEach(() => { + cy.httpGetDDLData(); + cy.getMCListEmpty(); + cy.homePage(); + cy.get('button[data-tests-id="btn-create-mc"]').click(); + }); + + it('Create button need to be disabled', () => { + cy + .get('button[data-tests-id="createMonitoring"]') + .should('be.visible') + .and('be.disabled'); + }); + + it('Fill form then click to submit verify setting button and constrain ddl', () => { + 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 #mappingType > .field-text') + .should('have.value', 'multiple'); + }); + }); + + describe('Tabs after MC created', () => { + 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(); + }); + + it('should have 4 icon buttons in map tab', () => { + cy + .get('#ui-tabpanel-1-label') + .should('contain', 'map') + .click(); + cy + .get('.map-bar-icon-container>button') + .should('have.length', 2) + .get('.map-bar-icon-container>div>button') + .should('have.length', 2) + .and('be.visible'); + }); + + it('should have 2 icon buttons in supplement tab', () => { + cy + .get('#ui-tabpanel-2-label') + .should('contain', 'supplement') + .click(); + cy + .get('.supplement-bar-icon-container>button') + .should('have.length', 2) + .and('be.visible') + .get('.supplement-bar-icon-container') + .children() + .should('have.length', 3); + }); + }); +}); diff --git a/public/cypress/integration/mocks/homePage-spec.ts b/public/cypress/integration/mocks/homePage-spec.ts new file mode 100644 index 0000000..2889390 --- /dev/null +++ b/public/cypress/integration/mocks/homePage-spec.ts @@ -0,0 +1,209 @@ +export const buttonCreateMC = () => { + return cy.get('button[data-tests-id="btn-create-mc"]'); +}; +export const buttonCreateMCSpan = () => { + return cy.get('span[data-tests-id="btn-span-create-mc"]'); +}; + +export const tableItems = () => { + return cy.get('tr[data-tests-id="monitoringComponentTableItems"]'); +}; + +export const tableHeaders = () => { + return cy.get('tr[data-tests-id="monitoringComponentTableHeaders"]'); +}; +export const tableItemsDeleteButton = () => { + return cy.get('button[data-tests-id="tableItemsButtonDelete"]'); +}; + +export const tableItemsInfoButton = () => { + return cy.get('button[data-tests-id="tableItemsButtonInfo"]'); +}; + +export const popupGetDeleteBtn = () => { + return cy.get('button[data-tests-id="btnDelete"]'); +}; + +export const popupGetCancelBtn = () => { + return cy.get('button[data-tests-id="btnCancel"]'); +}; + +export const getMonitoringConfiguration = () => { + return cy.get('div[data-tests-id="tableItemsMonitoringConfiguration"]'); +}; + +export const doHoverOverFirstLine = () => { + return tableItems() + .first() + .trigger('mouseover'); +}; + +export const doHoverOverFirstLineMonitoringConfiguration = () => { + tableItems() + .first() + .trigger('mouseover'); + return getMonitoringConfiguration(); +}; + +const NUMBER_OF_ITEMS = 12; + +const navigateButtonDisabled = () => { + return buttonCreateMC() + .should('be.visible') + .and('be.disabled') + .get('button[data-tests-id="btn-fab-create-mc"]') + .should('be.visible') + .and('be.disabled'); +}; + +describe('Home Page - E2E test flow with mock', () => { + describe('MC List empty', () => { + beforeEach(() => { + cy.getMCListEmpty(); + cy.homePage(); + }); + + it("Shouldn't have create table with headers", () => { + tableHeaders().should('not.be.visible'); + }); + it("Shouldn't have create table without items", () => { + buttonCreateMC() + .get('div[data-tests-id="new-monitoring-title"]') + .should('contain', 'Monitoring'); + }); + }); + + describe('Check Edit Save and Submit', () => { + beforeEach(() => { + cy.getMCList(); + cy.homePage(); + cy.getMC(); + cy.submitMonitoringComponent(); + cy.saveMonitoringComponent(); + }); + + it('Edit VFCMT', () => { + this.doHoverOverFirstLineMonitoringConfiguration() + .first() + .click({ force: true }); + }); + }); + + describe('MC List', () => { + beforeEach(() => { + cy.getMCList(); + cy.homePage(); + }); + + it('Should have create button on top of the screen', () => { + buttonCreateMC().should('be.visible'); + }); + + it('Should have create table with headers', () => { + tableHeaders().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(); + cy.homePage(); + cy.deleteMonitoringComponent(); + cy.deleteMonitoringComponentWithBlueprint(); + }); + it('Mouse hover over item, delete is visible, info not visible', () => { + doHoverOverFirstLine(); + 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 cancelOperation', () => { + tableItems().should('have.length', NUMBER_OF_ITEMS); + doHoverOverFirstLine(); + tableItemsDeleteButton() + .should('be.visible') + .click({ force: true }); + popupGetCancelBtn().click({ force: true }); + tableItems().should('have.length', NUMBER_OF_ITEMS); + }); + }); + + describe('Show Info icon', () => { + beforeEach(() => { + cy.getMCList(); + cy.homePageCertified(); + }); + it('Mouse hover over item, delete is not visible, info visible', () => { + doHoverOverFirstLine(); + tableItemsInfoButton().should('be.visible'); + tableItemsDeleteButton().should('not.be.visible'); + }); + }); + + describe('Successfully Entry Home Page Monitoring Configuration', () => { + beforeEach(() => { + cy.getMCListEmpty(); + cy.homePage(); + }); + + it('Buttons looks Assertion', () => { + buttonCreateMC() + .should('contain', 'Create New MC') + .and('be.visible') + .and('not.be.disabled'); + + buttonCreateMCSpan() + .should('contain', 'Add First MC') + .and('be.visible') + .and('not.be.disabled'); + }); + + it('Buttons Functionality Assertion', () => { + buttonCreateMC() + .click() + .get('div[data-tests-id="new-monitoring-title"]') + .should('contain', 'Monitoring'); + }); + }); + + describe('Not Auth Entry Home Page Monitoring Configuration', () => { + it('Buttons disabled when user not owner', () => { + cy.sdcIsOwnerFalse(); + navigateButtonDisabled(); + }); + + it('Buttons disabled when user not checkout', () => { + cy.sdcUserNotCheckout(); + navigateButtonDisabled(); + }); + }); +}); diff --git a/public/cypress/integration/mocks/importPage-spec.ts b/public/cypress/integration/mocks/importPage-spec.ts new file mode 100644 index 0000000..7af904e --- /dev/null +++ b/public/cypress/integration/mocks/importPage-spec.ts @@ -0,0 +1,232 @@ +const loadVfcmtList = () => { + return cy + .server() + .route({ + method: 'GET', + url: + Cypress.env('backendUrl') + + '/SERVICE/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' + ); +}; + +const getVfcmtRefData = data => { + return cy + .server() + .route({ + method: 'GET', + url: + Cypress.env('backendUrl') + + '/getVfcmtReferenceData/cb06b8a9-c7e0-4451-a941-89fc338303c9', + response: data + }) + .as('vfcmtRef'); +}; + +const getFlowType = () => { + return cy + .server() + .route({ + method: 'GET', + url: Cypress.env('backendUrl') + '/conf/composition', + response: { + flowTypes: ['Syslog', 'SNMP', 'FOI'] + } + }) + .as('flowTypes'); +}; + +const getVfniList = () => { + return cy + .server() + .route({ + method: 'GET', + url: + Cypress.env('backendUrl') + + '/service/06c7d927-4e2f-47e1-a29d-b6ed229ebc0a', + response: 'fixture:serviceDdl' + }) + .as('vfniListApi'); +}; + +const importMCServerApi = () => { + return cy + .server() + .route({ + method: 'POST', + url: Cypress.env('backendUrl') + '/importMC', + response: 'fixture:createMcRes' + }) + .as('importMC'); +}; + +const chooseVfcmtFromDDLWithVersion = () => { + return cy + .get('.ng-input > input') + .click() + .type('liav') + .type('{enter}') + .get('select[data-tests-id="vfcmtVersion"]') + .select('0.1'); +}; + +const getName = () => { + return cy.get('input[data-tests-id="nameMc"]'); +}; +const getDescription = () => { + return cy.get('textarea[data-tests-id="descMc"]'); +}; +const getFlowTypeSelect = () => { + return cy.get('select[data-tests-id="flowTypeDdl"]'); +}; +const getVfniSelect = () => { + return cy.get('select[data-tests-id="vfniDdl"]'); +}; +const getImportButton = () => { + return cy.get('button[data-tests-id="importMonitoring"]'); +}; + +describe('Import Page', () => { + context('First step - get vfcmts list and pick one', () => { + beforeEach(() => { + loadVfcmtList(); + }); + + it('should have values in ddl', () => { + cy + .get('ng-select') + .should('be.visible') + .click() + .get('.ng-option') + .should('contain', 7); + }); + + it('should have value on typing and press enter key', () => { + cy + .get('.ng-input > input') + .click() + .type('liav') + .type('{enter}') + .get('.ng-value-label') + .should('contain', 'LiavSprint10.3'); + }); + + it('should have version when pick vfcmt from list', () => { + cy + .get('.ng-input > input') + .click() + .type('liav') + .type('{enter}') + .get('select[data-tests-id="vfcmtVersion"]') + .should('be.visible') + .and('contain', '0.1'); + }); + }); + + context('second step - fill fileds according to server response', () => { + beforeEach(() => { + loadVfcmtList(); + }); + + it('get flow type true and service is match to context service', () => { + getVfcmtRefData({ + serviceUuid: '06c7d927-4e2f-47e1-a29d-b6ed229ebc0a', + name: 'test', + description: 'test', + flowType: 'FOI', + vfiName: 'LiavSrv' + }); + chooseVfcmtFromDDLWithVersion(); + getName() + .should('have.value', 'test') + .and('be.disabled'); + getDescription() + .should('have.value', 'test') + .and('be.disabled'); + getFlowTypeSelect().should('have.value', 'FOI'); + getVfniSelect().should('have.value', 'LiavSrv'); + getImportButton() + .not('[disabled]') + .should('not.contain', 'Disabled'); + }); + + it('get flow type true but service not match', () => { + getVfcmtRefData({ + serviceUuid: '555555-4e2f-47e1-a29d-b6ed229ebc0a', + name: 'test', + description: 'test', + flowType: 'FOI', + vfiName: 'ChcoSrv' + }); + getVfniList(); + chooseVfcmtFromDDLWithVersion(); + getFlowTypeSelect().should('have.value', 'FOI'); + }); + + it('get flow type false service match', () => { + getVfcmtRefData({ + serviceUuid: '06c7d927-4e2f-47e1-a29d-b6ed229ebc0a', + name: 'test', + description: 'test', + vfiName: 'LiavSrv' + }); + getImportButton() + .should('be.visible') + .and('be.disabled'); + getFlowType(); + chooseVfcmtFromDDLWithVersion(); + getName() + .should('have.value', 'test') + .and('be.disabled'); + getDescription() + .should('have.value', 'test') + .and('be.disabled'); + getVfniSelect().should('have.value', 'LiavSrv'); + }); + + it('get flow type false service not match', () => { + getVfcmtRefData({ + serviceUuid: '555555-4e2f-47e1-a29d-b6ed229ebc0a', + name: 'test', + description: 'test', + vfiName: 'ChcoSrv' + }); + getImportButton() + .should('be.visible') + .and('be.disabled'); + getFlowType(); + getVfniList(); + chooseVfcmtFromDDLWithVersion(); + getName().should('have.value', ''); + getDescription().should('have.value', ''); + }); + }); + + context('final step - import vfcmt and getting cdump for tabs', () => { + beforeEach(() => { + loadVfcmtList(); + getVfcmtRefData({ + serviceUuid: '06c7d927-4e2f-47e1-a29d-b6ed229ebc0a', + name: 'test', + description: 'test', + flowType: 'FOI', + vfiName: 'LiavSrv' + }); + chooseVfcmtFromDDLWithVersion(); + }); + + it('should get cdump after import and vfcmt import not visible', () => { + importMCServerApi(); + getImportButton().click({ force: true }); + cy + .get('.import-wrapper') + .should('not.be.visible') + .get('#ui-tabpanel-1-label') + .should('contain', 'map'); + }); + }); +}); diff --git a/public/cypress/integration/mocks/ruleEngine-spec.ts b/public/cypress/integration/mocks/ruleEngine-spec.ts new file mode 100644 index 0000000..9a75b87 --- /dev/null +++ b/public/cypress/integration/mocks/ruleEngine-spec.ts @@ -0,0 +1,168 @@ +export const mappingTragetDDL = () => { + return cy.get('select[data-tests-id="mappingDdl"]'); +}; + +export const selectVersionAndTypeAndAddFirstRule = () => { + return cy + .get('select[data-tests-id="selectVersion"]') + .select('4.1') + .get('select[data-tests-id="selectEventType"]') + .select('syslog') + .get('button[data-tests-id="btnAddFirstRule"]') + .click(); +}; + +export const fillRuleDecription = text => { + return cy + .get('input[data-tests-id="inputDescription"]') + .clear() + .type(text); +}; + +export const addCopyAction = () => { + return cy + .get('select[data-tests-id="selectAction"]') + .select('copy') + .get('button[data-tests-id="btnAddAction"]') + .click() + .get('input[data-tests-id="valueInput"]') + .type('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(); + } + }); +}; + +export const editFirstRule = () => { + return cy + .get('div[data-tests-id="ruleElement"]') + .first() + .trigger('mouseover') + .get('button[data-tests-id="editRule"]') + .should('be.visible') + .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"}]}]}'; +}; + +describe('Rule engine - E2E test flow with mock', () => { + describe('Mapping target select', () => { + 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(); + cy + .get('#ui-tabpanel-1-label') + .should('contain', 'map') + .click(); + }); + + it('should exist and contain options', () => { + mappingTragetDDL() + .should('be.visible') + .contains('json'); + }); + + it('should page refrash after change select value in mapping target ddl', () => { + cy.httpTargetTree(); + 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); + }); + }); + + describe('Translate And Save Rule List', () => { + 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(); + fillRuleDecription('newRule'); + addCopyAction(); + cy.doneSaveRule(); + }); + + context('Play with save, back and done button', () => { + it('should rule exist in list after save rule and click back', () => { + cy + .get('button[data-tests-id="btnSave"]') + .click() + .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('newRule'); + }); + }); + + it('should rule exist in list after done edit rule', () => { + cy + .get('button[data-tests-id="btnDone"]') + .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('newRule'); + }); + }); + }); + + context('Translate', () => { + it('should open advanced setting when translate successfuly', () => { + cy.get('button[data-tests-id="btnDone"]').click(); + cy.httpTransalte(); + cy + .get('button[data-tests-id="btnTranslate"]') + .click() + .get('.toast-container') + .should('be.visible') + .get('.map-setting-list > #Type1 > input') + .should('be.visible') + .and('have.value', translateValue()); + }); + }); + }); +}); diff --git a/public/cypress/plugins/cy-ts-preprocessor.js b/public/cypress/plugins/cy-ts-preprocessor.js new file mode 100644 index 0000000..7f0bba9 --- /dev/null +++ b/public/cypress/plugins/cy-ts-preprocessor.js @@ -0,0 +1,26 @@ +const wp = require('@cypress/webpack-preprocessor') + +const webpackOptions = { + resolve: { + extensions: ['.ts', '.js'] + }, + module: { + rules: [ + { + test: /\.ts$/, + exclude: [/node_modules/], + use: [ + { + loader: 'ts-loader' + } + ] + } + ] + } +} + +const options = { + webpackOptions +} + +module.exports = wp(options) diff --git a/public/cypress/plugins/index.js b/public/cypress/plugins/index.js new file mode 100644 index 0000000..78e782f --- /dev/null +++ b/public/cypress/plugins/index.js @@ -0,0 +1,5 @@ +const cypressTypeScriptPreprocessor = require('./cy-ts-preprocessor') + +module.exports = on => { + on('file:preprocessor', cypressTypeScriptPreprocessor) +} diff --git a/public/cypress/support/commands.ts b/public/cypress/support/commands.ts new file mode 100644 index 0000000..ee8623c --- /dev/null +++ b/public/cypress/support/commands.ts @@ -0,0 +1,31 @@ +declare namespace Cypress { + interface Chainable { + getTemplateApiError: typeof getTemplateApiError; + } +} + +function getTemplateApiError(): void { + cy.server().route({ + method: 'GET', + url: + Cypress.env('backendUrl') + + '/service/06c7d927-4e2f-47e1-a29d-b6ed229ebc0a', + status: 500, + response: { + requestError: { + policyException: { + messageId: 'POL5000', + text: 'Error: Internal Server Error. Please try again later.', + variables: [], + formattedErrorMessage: + 'Error: Internal Server Error. Please try again later.' + } + }, + notes: 'Error: Requested "123" resource was not found.' + } + }); + cy.homePage(); + cy.get('button[data-tests-id="btn-create-mc"]').click(); +} + +Cypress.Commands.add('getTemplateApiError', getTemplateApiError); diff --git a/public/cypress/support/generalCommands.ts b/public/cypress/support/generalCommands.ts new file mode 100644 index 0000000..fc87acc --- /dev/null +++ b/public/cypress/support/generalCommands.ts @@ -0,0 +1,50 @@ +declare namespace Cypress { + interface Chainable { + httpGetDDLData: typeof httpGetDDLData; + fillNewMcForm: typeof fillNewMcForm; + httpCreateNewMc: typeof httpCreateNewMc; + } +} + +function httpGetDDLData(): void { + cy + .server() + .route({ + method: 'GET', + url: + Cypress.env('backendUrl') + + '/service/06c7d927-4e2f-47e1-a29d-b6ed229ebc0a', + response: 'fixture:serviceDdl' + }) + .as('vfniListApi') + .route({ + method: 'GET', + url: + Cypress.env('backendUrl') + '/getResourcesByMonitoringTemplateCategory', + response: [{ name: 'AviStone1234' }] + }) + .as('templateAPi'); +} + +function fillNewMcForm() { + cy.get('input[data-tests-id="nameMc"]').type('new mc'); + cy.get('textarea[data-tests-id="descMc"]').type('Hello Description'); + cy.get('select[data-tests-id="templateDdl"]').select('AviStone1234'); + cy.get('select[data-tests-id="vfniDdl"]').select('LiavSrv'); +} + +function httpCreateNewMc() { + cy.server(); + cy + .route({ + method: 'POST', + url: Cypress.env('backendUrl') + '/createMC', + response: 'fixture:createMcRes' + }) + .as('newMC'); +} + +// Add cypress commands +Cypress.Commands.add('httpGetDDLData', httpGetDDLData); +Cypress.Commands.add('fillNewMcForm', fillNewMcForm); +Cypress.Commands.add('httpCreateNewMc', httpCreateNewMc); diff --git a/public/cypress/support/homeCommands.ts b/public/cypress/support/homeCommands.ts new file mode 100644 index 0000000..6f3349c --- /dev/null +++ b/public/cypress/support/homeCommands.ts @@ -0,0 +1,147 @@ +declare namespace Cypress { + interface Chainable { + homePage: typeof homePage; + homePageCertified: typeof homePageCertified; + sdcIsOwnerFalse: typeof sdcIsOwnerFalse; + sdcUserNotCheckout: typeof sdcUserNotCheckout; + getMCList: typeof getMCList; + getMCListEmpty: typeof getMCListEmpty; + deleteMonitoringComponent: typeof deleteMonitoringComponent; + deleteMonitoringComponentWithBlueprint: typeof deleteMonitoringComponentWithBlueprint; + submitMonitoringComponent: typeof submitMonitoringComponent; + saveMonitoringComponent: typeof saveMonitoringComponent; + getMC: typeof getMC; + } +} + +// 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' + ); +} + +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' + ); +} + +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' + ); +} + +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' + ); +} + +function deleteMonitoringComponent(): void { + cy + .server() + .route({ + method: 'DELETE', + url: + Cypress.env('backendUrl') + + '/SERVICES/06c7d927-4e2f-47e1-a29d-b6ed229ebc0a/vfb53dd48360ff4fa2b66e6ceb1961bd9b0/cba37ed8-94e1-406f-b4f5-b5edbc31ac85/deleteVfcmtReference', + response: '{}' + }) + .as('deleteMonitoringComponent'); +} + +function saveMonitoringComponent(): void { + cy + .server() + .route({ + method: 'POST', + url: + Cypress.env('backendUrl') + + '/SERVICES/06c7d927-4e2f-47e1-a29d-b6ed229ebc0a/vfb53dd48360ff4fa2b66e6ceb1961bd9b0/saveComposition/cba37ed8-94e1-406f-b4f5-b5edbc31ac85', + response: '{}' + }) + .as('saveMonitoringComponent'); +} + +function submitMonitoringComponent(): void { + cy + .server() + .route({ + method: 'POST', + url: + Cypress.env('backendUrl') + + '/SERVICES/createBluePrint/cba37ed8-94e1-406f-b4f5-b5edbc31ac85/06c7d927-4e2f-47e1-a29d-b6ed229ebc0a/vfb53dd48360ff4fa2b66e6ceb1961bd9b0/', + response: '{}' + }) + .as('submitMonitoringComponent'); +} + +function deleteMonitoringComponentWithBlueprint(): void { + cy + .server() + .route({ + method: 'DELETE', + url: + Cypress.env('backendUrl') + + '/SERVICES/teSt.__.monitoring---TempLATE.6hnc/06c7d927-4e2f-47e1-a29d-b6ed229ebc0a/dump0/64471437-8feb-40d9-a8b0-9407a81dd5c0/deleteVfcmtReference', + response: '{}' + }) + .as('deleteMonitoringComponentWithBlueprint'); +} + +function getMCList(): void { + cy + .server() + .route({ + method: 'GET', + url: + Cypress.env('backendUrl') + + '/SERVICES/06c7d927-4e2f-47e1-a29d-b6ed229ebc0a/0.1/monitoringComponents', + response: 'fixture:monitoringComponentsMock' + }) + .as('mcList'); +} + +function getMC(): void { + cy + .server() + .route({ + method: 'GET', + url: + Cypress.env('backendUrl') + + '/getMC/cba37ed8-94e1-406f-b4f5-b5edbc31ac85', + response: 'fixture:getMCMock' + }) + .as('getMC'); +} + +function getMCListEmpty(): void { + cy + .server() + .route({ + method: 'GET', + url: + Cypress.env('backendUrl') + + '/SERVICES/06c7d927-4e2f-47e1-a29d-b6ed229ebc0a/0.1/monitoringComponents', + response: '{}' + }) + .as('mcListEmpty'); +} + +// Add cypress commands +Cypress.Commands.add('homePage', homePage); +Cypress.Commands.add('homePageCertified', homePageCertified); +Cypress.Commands.add('sdcIsOwnerFalse', sdcIsOwnerFalse); +Cypress.Commands.add('sdcUserNotCheckout', sdcUserNotCheckout); +Cypress.Commands.add('getMCList', getMCList); +Cypress.Commands.add('getMCListEmpty', getMCListEmpty); +Cypress.Commands.add('deleteMonitoringComponent', deleteMonitoringComponent); +Cypress.Commands.add( + 'deleteMonitoringComponentWithBlueprint', + deleteMonitoringComponentWithBlueprint +); +Cypress.Commands.add('submitMonitoringComponent', submitMonitoringComponent); +Cypress.Commands.add('saveMonitoringComponent', saveMonitoringComponent); +Cypress.Commands.add('getMC', getMC); diff --git a/public/cypress/support/index.js b/public/cypress/support/index.js new file mode 100644 index 0000000..2f70722 --- /dev/null +++ b/public/cypress/support/index.js @@ -0,0 +1,23 @@ +// *********************************************************** +// This example support/index.js is processed and +// loaded automatically before your test files. +// +// This is a great place to put global configuration and +// behavior that modifies Cypress. +// +// You can change the location of this file or turn off +// automatically serving support files with the +// 'supportFile' configuration option. +// +// You can read more here: +// https://on.cypress.io/configuration +// *********************************************************** + +// Import commands.js using ES2015 syntax: +import './commands'; +import './homeCommands'; +import './generalCommands'; +import './ruleEngineCommands'; + +// Alternatively you can use CommonJS syntax: +// require('./commands') diff --git a/public/cypress/support/ruleEngineCommands.ts b/public/cypress/support/ruleEngineCommands.ts new file mode 100644 index 0000000..2142e7f --- /dev/null +++ b/public/cypress/support/ruleEngineCommands.ts @@ -0,0 +1,71 @@ +declare namespace Cypress { + interface Chainable { + emptyRuleEngine: typeof emptyRuleEngine; + httpTargetTree: typeof httpTargetTree; + doneSaveRule: typeof doneSaveRule; + httpTransalte: typeof httpTransalte; + } +} + +function emptyRuleEngine(targetFiled) { + cy.server(); + cy + .route({ + method: 'GET', + url: `${Cypress.env( + 'backendUrl' + )}/rule-editor/rule/6d436c07-8006-4335-8c84-d65b4740f8d6/map/n.1517823219961.0/${targetFiled}`, + response: {} + }) + .as('serverRuleList') + .route({ + method: 'GET', + url: Cypress.env('backendUrl') + '/rule-editor/list-events-by-versions', + response: 'fixture:list-events-by-version' + }) + .as('serverEventsAndVersion'); +} + +function httpTargetTree() { + cy.server(); + cy + .route({ + method: 'GET', + url: + Cypress.env('backendUrl') + '/rule-editor/definition/4.1/syslogFields', + response: 'fixture:syslogTargetTree' + }) + .as('targetData'); +} + +function doneSaveRule() { + 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:doneSaveSimpleCopy' + }) + .as('doneSaveCopyRule'); +} + +function httpTransalte() { + cy.server(); + cy + .route({ + method: 'GET', + url: + Cypress.env('backendUrl') + + '/rule-editor/rule/translate/6d436c07-8006-4335-8c84-d65b4740f8d6/map/n.1517823219961.0/Type1', + response: 'fixture:TranslateSimpleCopy' + }) + .as('TranslateSimpleCopy'); +} + +// Add cypress commands +Cypress.Commands.add('emptyRuleEngine', emptyRuleEngine); +Cypress.Commands.add('httpTargetTree', httpTargetTree); +Cypress.Commands.add('doneSaveRule', doneSaveRule); +Cypress.Commands.add('httpTransalte', httpTransalte); diff --git a/public/cypress/tsconfig.json b/public/cypress/tsconfig.json new file mode 100644 index 0000000..342bcb4 --- /dev/null +++ b/public/cypress/tsconfig.json @@ -0,0 +1,24 @@ +{ + "extends": "../tsconfig.json", + "include": [ + "integration/**/*.ts", + "support/**/*.ts", + "../node_modules/cypress", + "../node_modules/@types/mocha" + ], + "compilerOptions": { + "experimentalDecorators": true, + "skipLibCheck": true, + "declaration": false, + "removeComments": true, + "emitDecoratorMetadata": true, + "noImplicitAny": false, + "noImplicitReturns": true, + "noImplicitUseStrict": false, + "sourceMap": true, + "pretty": true, + "noLib": false, + "typeRoots": ["../../node_modules/@types", "../../node_modules"], + "types": ["cypress", "mocha", "jasmine", "node"] + } +} |