From b9cf007de7e8c9f9f565657e115be3cdec651c0c Mon Sep 17 00:00:00 2001 From: Tony Murray Date: Wed, 12 Dec 2018 08:29:44 -0600 Subject: [PATCH] updated test data --- tests/data/ios_6500.json | 10 ++-- tests/data/timos.json | 100 +++++++++++++++++++++++++++------------ 2 files changed, 74 insertions(+), 36 deletions(-) diff --git a/tests/data/ios_6500.json b/tests/data/ios_6500.json index 6a78c4b5b8..34d09ba23b 100644 --- a/tests/data/ios_6500.json +++ b/tests/data/ios_6500.json @@ -8,13 +8,13 @@ "sysDescr": "Cisco IOS Software, s72033_rp Software (s72033_rp-IPSERVICESK9-M), Version 15.1(2)SY10, RELEASE SOFTWARE (fc4)\nTechnical Support: http://www.cisco.com/techsupport\r\nCopyright (c) 1986-2017 by Cisco Systems, Inc.\r\nCompiled Tue 21-Feb-17 02:00 by prod_rel_+", "sysContact": null, "version": null, - "hardware": "", + "hardware": null, "features": null, - "location": null, "os": "ios", "type": "network", "serial": null, - "icon": "cisco.svg" + "icon": "cisco.svg", + "location": null } ] }, @@ -28,11 +28,11 @@ "version": "15.1(2)SY10", "hardware": "cat6509", "features": "IPSERVICESK9", - "location": "", "os": "ios", "type": "network", "serial": null, - "icon": "cisco.svg" + "icon": "cisco.svg", + "location": "" } ] } diff --git a/tests/data/timos.json b/tests/data/timos.json index 0e2f98af34..ce444daa50 100644 --- a/tests/data/timos.json +++ b/tests/data/timos.json @@ -3,15 +3,15 @@ "discovery": { "processors": [ { - "entPhysicalIndex": "0", - "hrDeviceIndex": "0", + "entPhysicalIndex": 0, + "hrDeviceIndex": 0, "processor_oid": ".1.3.6.1.4.1.6527.3.1.2.1.1.1.0", "processor_index": "0", "processor_type": "timos", - "processor_usage": "42", + "processor_usage": 42, "processor_descr": "Processor", - "processor_precision": "1", - "processor_perc_warn": "75" + "processor_precision": 1, + "processor_perc_warn": 75 } ] }, @@ -572,7 +572,7 @@ "ifAdminStatus_prev": null, "ifDuplex": null, "ifMtu": null, - "ifType": null, + "ifType": "softwareLoopback", "ifAlias": "Loopback IP interface", "ifPhysAddress": null, "ifHardType": null, @@ -677,7 +677,7 @@ "ifAdminStatus_prev": null, "ifDuplex": null, "ifMtu": null, - "ifType": null, + "ifType": "ipForward", "ifAlias": "IP interface", "ifPhysAddress": null, "ifHardType": null, @@ -782,7 +782,7 @@ "ifAdminStatus_prev": null, "ifDuplex": null, "ifMtu": null, - "ifType": null, + "ifType": "ipForward", "ifAlias": "IP interface", "ifPhysAddress": null, "ifHardType": null, @@ -887,7 +887,7 @@ "ifAdminStatus_prev": null, "ifDuplex": null, "ifMtu": null, - "ifType": null, + "ifType": "ethernetCsmacd", "ifAlias": "10-Gig Ethernet", "ifPhysAddress": null, "ifHardType": null, @@ -992,7 +992,7 @@ "ifAdminStatus_prev": null, "ifDuplex": null, "ifMtu": null, - "ifType": null, + "ifType": "ethernetCsmacd", "ifAlias": "10-Gig Ethernet", "ifPhysAddress": null, "ifHardType": null, @@ -1097,7 +1097,7 @@ "ifAdminStatus_prev": null, "ifDuplex": null, "ifMtu": null, - "ifType": null, + "ifType": "ethernetCsmacd", "ifAlias": "10-Gig Ethernet", "ifPhysAddress": null, "ifHardType": null, @@ -1202,7 +1202,7 @@ "ifAdminStatus_prev": null, "ifDuplex": null, "ifMtu": null, - "ifType": null, + "ifType": "ethernetCsmacd", "ifAlias": "10-Gig Ethernet", "ifPhysAddress": null, "ifHardType": null, @@ -1307,7 +1307,7 @@ "ifAdminStatus_prev": null, "ifDuplex": null, "ifMtu": null, - "ifType": null, + "ifType": "ethernetCsmacd", "ifAlias": "10-Gig Ethernet", "ifPhysAddress": null, "ifHardType": null, @@ -1412,7 +1412,7 @@ "ifAdminStatus_prev": null, "ifDuplex": null, "ifMtu": null, - "ifType": null, + "ifType": "ethernetCsmacd", "ifAlias": "10-Gig Ethernet", "ifPhysAddress": null, "ifHardType": null, @@ -1517,7 +1517,7 @@ "ifAdminStatus_prev": null, "ifDuplex": null, "ifMtu": null, - "ifType": null, + "ifType": "other", "ifAlias": "Broadband", "ifPhysAddress": null, "ifHardType": null, @@ -1622,7 +1622,7 @@ "ifAdminStatus_prev": null, "ifDuplex": null, "ifMtu": null, - "ifType": null, + "ifType": "other", "ifAlias": "Broadband", "ifPhysAddress": null, "ifHardType": null, @@ -1727,7 +1727,7 @@ "ifAdminStatus_prev": null, "ifDuplex": null, "ifMtu": null, - "ifType": null, + "ifType": "other", "ifAlias": "Broadband", "ifPhysAddress": null, "ifHardType": null, @@ -1832,7 +1832,7 @@ "ifAdminStatus_prev": null, "ifDuplex": null, "ifMtu": null, - "ifType": null, + "ifType": "other", "ifAlias": "Broadband", "ifPhysAddress": null, "ifHardType": null, @@ -1937,7 +1937,7 @@ "ifAdminStatus_prev": null, "ifDuplex": null, "ifMtu": null, - "ifType": null, + "ifType": "other", "ifAlias": "Broadband", "ifPhysAddress": null, "ifHardType": null, @@ -2042,7 +2042,7 @@ "ifAdminStatus_prev": null, "ifDuplex": null, "ifMtu": null, - "ifType": null, + "ifType": "other", "ifAlias": "Broadband", "ifPhysAddress": null, "ifHardType": null, @@ -2147,7 +2147,7 @@ "ifAdminStatus_prev": null, "ifDuplex": null, "ifMtu": null, - "ifType": null, + "ifType": "other", "ifAlias": "Broadband", "ifPhysAddress": null, "ifHardType": null, @@ -2252,7 +2252,7 @@ "ifAdminStatus_prev": null, "ifDuplex": null, "ifMtu": null, - "ifType": null, + "ifType": "ethernetCsmacd", "ifAlias": "10/100 Ethernet TX", "ifPhysAddress": null, "ifHardType": null, @@ -2357,7 +2357,7 @@ "ifAdminStatus_prev": null, "ifDuplex": null, "ifMtu": null, - "ifType": null, + "ifType": "ethernetCsmacd", "ifAlias": "10/100 Ethernet TX", "ifPhysAddress": null, "ifHardType": null, @@ -2462,7 +2462,7 @@ "ifAdminStatus_prev": null, "ifDuplex": null, "ifMtu": null, - "ifType": null, + "ifType": "ethernetCsmacd", "ifAlias": "10/100 Ethernet TX", "ifPhysAddress": null, "ifHardType": null, @@ -2567,7 +2567,7 @@ "ifAdminStatus_prev": null, "ifDuplex": null, "ifMtu": null, - "ifType": null, + "ifType": "ethernetCsmacd", "ifAlias": "10/100 Ethernet TX", "ifPhysAddress": null, "ifHardType": null, @@ -2672,7 +2672,7 @@ "ifAdminStatus_prev": null, "ifDuplex": null, "ifMtu": null, - "ifType": null, + "ifType": "ieee8023adLag", "ifAlias": "PPPoE Customer", "ifPhysAddress": null, "ifHardType": null, @@ -2777,7 +2777,7 @@ "ifAdminStatus_prev": null, "ifDuplex": null, "ifMtu": null, - "ifType": null, + "ifType": "ieee8023adLag", "ifAlias": "MPLS", "ifPhysAddress": null, "ifHardType": null, @@ -2882,7 +2882,7 @@ "ifAdminStatus_prev": null, "ifDuplex": null, "ifMtu": null, - "ifType": null, + "ifType": "ieee8023adLag", "ifAlias": "L2 VLAN", "ifPhysAddress": null, "ifHardType": null, @@ -2987,7 +2987,7 @@ "ifAdminStatus_prev": null, "ifDuplex": null, "ifMtu": null, - "ifType": null, + "ifType": "other", "ifAlias": "Broadband", "ifPhysAddress": null, "ifHardType": null, @@ -3092,7 +3092,7 @@ "ifAdminStatus_prev": null, "ifDuplex": null, "ifMtu": null, - "ifType": null, + "ifType": "other", "ifAlias": "Broadband", "ifPhysAddress": null, "ifHardType": null, @@ -3197,7 +3197,7 @@ "ifAdminStatus_prev": null, "ifDuplex": null, "ifMtu": null, - "ifType": null, + "ifType": "other", "ifAlias": "Broadband", "ifPhysAddress": null, "ifHardType": null, @@ -7102,5 +7102,43 @@ } ] } + }, + "os": { + "discovery": { + "devices": [ + { + "sysName": "", + "sysObjectID": ".1.3.6.1.4.1.6527.1.3", + "sysDescr": "Alcatel-Lucent OS6850-U24X 6.4.3.520.R01 GA, April 08, 2010", + "sysContact": null, + "version": null, + "hardware": null, + "features": null, + "os": "timos", + "type": "network", + "serial": null, + "icon": "nokia.svg", + "location": null + } + ] + }, + "poller": { + "devices": [ + { + "sysName": "", + "sysObjectID": ".1.3.6.1.4.1.6527.1.3", + "sysDescr": "Alcatel-Lucent OS6850-U24X 6.4.3.520.R01 GA, April 08, 2010", + "sysContact": "", + "version": "v..", + "hardware": null, + "features": null, + "os": "timos", + "type": "network", + "serial": null, + "icon": "nokia.svg", + "location": "" + } + ] + } } }