Skip to content

Commit

Permalink
Removed raw output in test_data.json files
Browse files Browse the repository at this point in the history
  • Loading branch information
toberd committed Jan 11, 2021
1 parent 920abb0 commit 5357deb
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 6 deletions.
4 changes: 4 additions & 0 deletions test/create_testdata/script.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ func getDeviceTestData(device string) (test.DeviceTestData, error) {
log.Info().Err(errors.New(string(errString))).Msg("check interface metrics for device " + device + " failed")
} else {
checkInterfaceMetricsResponse = res.(*request.CheckResponse)
checkInterfaceMetricsResponse.RawOutput = ""
}

var checkUPSResponse *request.CheckResponse
Expand All @@ -234,6 +235,7 @@ func getDeviceTestData(device string) (test.DeviceTestData, error) {
log.Info().Err(errors.New(string(errString))).Msg("check ups for device " + device + " failed")
} else {
checkUPSResponse = res.(*request.CheckResponse)
checkUPSResponse.RawOutput = ""
}

var checkCPULoadResponse *request.CheckResponse
Expand All @@ -256,6 +258,7 @@ func getDeviceTestData(device string) (test.DeviceTestData, error) {
log.Info().Err(errors.New(string(errString))).Msg("check cpu load for device " + device + " failed")
} else {
checkCPULoadResponse = res.(*request.CheckResponse)
checkCPULoadResponse.RawOutput = ""
}

var checkMemoryUsageResponse *request.CheckResponse
Expand All @@ -278,6 +281,7 @@ func getDeviceTestData(device string) (test.DeviceTestData, error) {
log.Info().Err(errors.New(string(errString))).Msg("check memory usage for device " + device + " failed")
} else {
checkMemoryUsageResponse = res.(*request.CheckResponse)
checkMemoryUsageResponse.RawOutput = ""
}

return test.DeviceTestData{
Expand Down
2 changes: 1 addition & 1 deletion test/testdata/devices/arista_eos/device_1/test_data.json
Original file line number Diff line number Diff line change
Expand Up @@ -1208,7 +1208,7 @@
"max": null
}
],
"raw_output": "OK: checked\n[{\"ifIndex\":\"1\",\"ifDescr\":\"Ethernet1\",\"ifName\":\"Ethernet1\",\"ifAlias\":\"\",\"ifPhysAddress\":\"50:00:00:03:00:01\"},{\"ifIndex\":\"2\",\"ifDescr\":\"Ethernet2\",\"ifName\":\"Ethernet2\",\"ifAlias\":\"\",\"ifPhysAddress\":\"50:00:00:03:00:02\"},{\"ifIndex\":\"3\",\"ifDescr\":\"Ethernet3\",\"ifName\":\"Ethernet3\",\"ifAlias\":\"\",\"ifPhysAddress\":\"50:00:00:03:00:03\"},{\"ifIndex\":\"999001\",\"ifDescr\":\"Management1\",\"ifName\":\"Management1\",\"ifAlias\":\"\",\"ifPhysAddress\":\"50:00:00:03:00:00\"}]",
"raw_output": "",
"messages": [
{
"status": 0,
Expand Down
2 changes: 1 addition & 1 deletion test/testdata/devices/comware/VSR1000/test_data.json
Original file line number Diff line number Diff line change
Expand Up @@ -2578,7 +2578,7 @@
"max": null
}
],
"raw_output": "OK: checked\n[{\"ifIndex\":\"17\",\"ifDescr\":\"GigabitEthernet1/0\",\"ifName\":\"GigabitEthernet1/0\",\"ifAlias\":\"GigabitEthernet1/0 Interface\",\"ifPhysAddress\":\"52:54:00:A0:CA:01\"},{\"ifIndex\":\"33\",\"ifDescr\":\"GigabitEthernet2/0\",\"ifName\":\"GigabitEthernet2/0\",\"ifAlias\":\"GigabitEthernet2/0 Interface\",\"ifPhysAddress\":\"52:54:00:D1:2D:02\"},{\"ifIndex\":\"49\",\"ifDescr\":\"GigabitEthernet3/0\",\"ifName\":\"GigabitEthernet3/0\",\"ifAlias\":\"GigabitEthernet3/0 Interface\",\"ifPhysAddress\":\"52:54:00:FC:26:03\"},{\"ifIndex\":\"65\",\"ifDescr\":\"GigabitEthernet4/0\",\"ifName\":\"GigabitEthernet4/0\",\"ifAlias\":\"GigabitEthernet4/0 Interface\",\"ifPhysAddress\":\"52:54:00:CB:2A:04\"},{\"ifIndex\":\"81\",\"ifDescr\":\"GigabitEthernet5/0\",\"ifName\":\"GigabitEthernet5/0\",\"ifAlias\":\"GigabitEthernet5/0 Interface\",\"ifPhysAddress\":\"52:54:00:EA:66:05\"},{\"ifIndex\":\"97\",\"ifDescr\":\"GigabitEthernet6/0\",\"ifName\":\"GigabitEthernet6/0\",\"ifAlias\":\"GigabitEthernet6/0 Interface\",\"ifPhysAddress\":\"52:54:00:30:75:06\"},{\"ifIndex\":\"113\",\"ifDescr\":\"GigabitEthernet7/0\",\"ifName\":\"GigabitEthernet7/0\",\"ifAlias\":\"GigabitEthernet7/0 Interface\",\"ifPhysAddress\":\"52:54:00:77:9D:07\"},{\"ifIndex\":\"129\",\"ifDescr\":\"GigabitEthernet8/0\",\"ifName\":\"GigabitEthernet8/0\",\"ifAlias\":\"GigabitEthernet8/0 Interface\",\"ifPhysAddress\":\"52:54:00:BB:FC:00\"},{\"ifIndex\":\"401\",\"ifDescr\":\"NULL0\",\"ifName\":\"NULL0\",\"ifAlias\":\"NULL0 Interface\",\"ifPhysAddress\":\"00:00:00:00:00:00\"},{\"ifIndex\":\"402\",\"ifDescr\":\"InLoopBack0\",\"ifName\":\"InLoopBack0\",\"ifAlias\":\"InLoopBack0 Interface\",\"ifPhysAddress\":\"00:00:00:00:00:00\"},{\"ifIndex\":\"403\",\"ifDescr\":\"Register-Tunnel0\",\"ifName\":\"Register-Tunnel0\",\"ifAlias\":\"Register-Tunnel0 Interface\",\"ifPhysAddress\":\"00:00:00:00:00:00\"}]",
"raw_output": "",
"messages": [
{
"status": 0,
Expand Down
4 changes: 2 additions & 2 deletions test/testdata/devices/ios/7206VXR/test_data.json
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,7 @@
"max": null
}
],
"raw_output": "OK: checked\n[{\"ifIndex\":\"1\",\"ifDescr\":\"FastEthernet0/0\",\"ifName\":\"Fa0/0\",\"ifAlias\":\"\",\"ifPhysAddress\":\"CA:01:16:E4:00:00\"},{\"ifIndex\":\"2\",\"ifDescr\":\"VoIP-Null0\",\"ifName\":\"Vo0\",\"ifAlias\":\"\",\"ifPhysAddress\":\"\"},{\"ifIndex\":\"3\",\"ifDescr\":\"Null0\",\"ifName\":\"Nu0\",\"ifAlias\":\"\",\"ifPhysAddress\":\"\"}]",
"raw_output": "",
"messages": [
{
"status": 0,
Expand All @@ -641,7 +641,7 @@
"max": null
}
],
"raw_output": "OK: checked",
"raw_output": "",
"messages": null
},
"checkMemoryUsage": null
Expand Down
2 changes: 1 addition & 1 deletion test/testdata/devices/routeros/CHR_1/test_data.json
Original file line number Diff line number Diff line change
Expand Up @@ -5138,7 +5138,7 @@
"max": null
}
],
"raw_output": "OK: checked\n[{\"ifIndex\":\"1\",\"ifDescr\":\"ether1\",\"ifName\":\"ether1\",\"ifAlias\":\"\",\"ifPhysAddress\":\"52:54:00:0F:6E:00\"},{\"ifIndex\":\"2\",\"ifDescr\":\"ether2\",\"ifName\":\"ether2\",\"ifAlias\":\"\",\"ifPhysAddress\":\"52:54:00:4E:4A:01\"},{\"ifIndex\":\"3\",\"ifDescr\":\"ether3\",\"ifName\":\"ether3\",\"ifAlias\":\"\",\"ifPhysAddress\":\"52:54:00:42:91:02\"},{\"ifIndex\":\"4\",\"ifDescr\":\"ether4\",\"ifName\":\"ether4\",\"ifAlias\":\"\",\"ifPhysAddress\":\"52:54:00:F1:7C:03\"},{\"ifIndex\":\"5\",\"ifDescr\":\"ether5\",\"ifName\":\"ether5\",\"ifAlias\":\"\",\"ifPhysAddress\":\"52:54:00:F3:22:04\"},{\"ifIndex\":\"6\",\"ifDescr\":\"ether6\",\"ifName\":\"ether6\",\"ifAlias\":\"\",\"ifPhysAddress\":\"52:54:00:B3:D8:05\"},{\"ifIndex\":\"7\",\"ifDescr\":\"ether7\",\"ifName\":\"ether7\",\"ifAlias\":\"\",\"ifPhysAddress\":\"52:54:00:66:B3:06\"},{\"ifIndex\":\"8\",\"ifDescr\":\"ether8\",\"ifName\":\"ether8\",\"ifAlias\":\"\",\"ifPhysAddress\":\"52:54:00:02:AB:07\"},{\"ifIndex\":\"9\",\"ifDescr\":\"ether9\",\"ifName\":\"ether9\",\"ifAlias\":\"\",\"ifPhysAddress\":\"52:54:00:1A:DE:08\"},{\"ifIndex\":\"10\",\"ifDescr\":\"ether10\",\"ifName\":\"ether10\",\"ifAlias\":\"\",\"ifPhysAddress\":\"52:54:00:AC:54:09\"},{\"ifIndex\":\"11\",\"ifDescr\":\"ether11\",\"ifName\":\"ether11\",\"ifAlias\":\"\",\"ifPhysAddress\":\"52:54:00:07:68:0A\"},{\"ifIndex\":\"12\",\"ifDescr\":\"ether12\",\"ifName\":\"ether12\",\"ifAlias\":\"\",\"ifPhysAddress\":\"52:54:00:FC:A6:0B\"},{\"ifIndex\":\"13\",\"ifDescr\":\"ether13\",\"ifName\":\"ether13\",\"ifAlias\":\"\",\"ifPhysAddress\":\"52:54:00:F1:5D:0C\"},{\"ifIndex\":\"14\",\"ifDescr\":\"ether14\",\"ifName\":\"ether14\",\"ifAlias\":\"\",\"ifPhysAddress\":\"52:54:00:DC:6D:0D\"},{\"ifIndex\":\"15\",\"ifDescr\":\"ether15\",\"ifName\":\"ether15\",\"ifAlias\":\"\",\"ifPhysAddress\":\"52:54:00:E7:61:0E\"},{\"ifIndex\":\"16\",\"ifDescr\":\"ether16\",\"ifName\":\"ether16\",\"ifAlias\":\"\",\"ifPhysAddress\":\"52:54:00:CD:D0:0F\"},{\"ifIndex\":\"17\",\"ifDescr\":\"ether17\",\"ifName\":\"ether17\",\"ifAlias\":\"\",\"ifPhysAddress\":\"52:54:00:16:C8:10\"},{\"ifIndex\":\"18\",\"ifDescr\":\"ether18\",\"ifName\":\"ether18\",\"ifAlias\":\"\",\"ifPhysAddress\":\"52:54:00:44:59:11\"},{\"ifIndex\":\"19\",\"ifDescr\":\"ether19\",\"ifName\":\"ether19\",\"ifAlias\":\"\",\"ifPhysAddress\":\"52:54:00:48:AF:12\"},{\"ifIndex\":\"20\",\"ifDescr\":\"ether20\",\"ifName\":\"ether20\",\"ifAlias\":\"\",\"ifPhysAddress\":\"52:54:00:30:52:13\"},{\"ifIndex\":\"21\",\"ifDescr\":\"ether21\",\"ifName\":\"ether21\",\"ifAlias\":\"\",\"ifPhysAddress\":\"52:54:00:CA:6D:14\"},{\"ifIndex\":\"22\",\"ifDescr\":\"ether22\",\"ifName\":\"ether22\",\"ifAlias\":\"\",\"ifPhysAddress\":\"52:54:00:9B:97:15\"},{\"ifIndex\":\"23\",\"ifDescr\":\"ether23\",\"ifName\":\"ether23\",\"ifAlias\":\"\",\"ifPhysAddress\":\"52:54:00:30:64:16\"},{\"ifIndex\":\"24\",\"ifDescr\":\"ether24\",\"ifName\":\"ether24\",\"ifAlias\":\"\",\"ifPhysAddress\":\"52:54:00:70:D2:17\"},{\"ifIndex\":\"25\",\"ifDescr\":\"ether25\",\"ifName\":\"ether25\",\"ifAlias\":\"\",\"ifPhysAddress\":\"52:54:00:0D:F4:18\"},{\"ifIndex\":\"26\",\"ifDescr\":\"ether26\",\"ifName\":\"ether26\",\"ifAlias\":\"\",\"ifPhysAddress\":\"52:54:00:46:A0:19\"},{\"ifIndex\":\"27\",\"ifDescr\":\"ether27\",\"ifName\":\"ether27\",\"ifAlias\":\"\",\"ifPhysAddress\":\"52:54:00:6F:A8:1A\"},{\"ifIndex\":\"28\",\"ifDescr\":\"ether28\",\"ifName\":\"ether28\",\"ifAlias\":\"\",\"ifPhysAddress\":\"52:54:00:B8:E6:1B\"},{\"ifIndex\":\"29\",\"ifDescr\":\"ether29\",\"ifName\":\"ether29\",\"ifAlias\":\"\",\"ifPhysAddress\":\"52:54:00:FB:BA:1C\"},{\"ifIndex\":\"30\",\"ifDescr\":\"ether30\",\"ifName\":\"ether30\",\"ifAlias\":\"\",\"ifPhysAddress\":\"52:54:00:76:D5:1D\"},{\"ifIndex\":\"31\",\"ifDescr\":\"ether31\",\"ifName\":\"ether31\",\"ifAlias\":\"\",\"ifPhysAddress\":\"52:54:00:9F:4E:1E\"},{\"ifIndex\":\"32\",\"ifDescr\":\"ether32\",\"ifName\":\"ether32\",\"ifAlias\":\"\",\"ifPhysAddress\":\"52:54:00:FD:4E:1F\"}]",
"raw_output": "",
"messages": [
{
"status": 0,
Expand Down
2 changes: 1 addition & 1 deletion test/testdata/devices/routeros/CHR_2/test_data.json
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,7 @@
"max": null
}
],
"raw_output": "OK: checked\n[{\"ifIndex\":\"1\",\"ifDescr\":\"ether1\",\"ifName\":\"ether1\",\"ifAlias\":\"\",\"ifPhysAddress\":\"50:00:00:01:00:00\"},{\"ifIndex\":\"2\",\"ifDescr\":\"ether2\",\"ifName\":\"ether2\",\"ifAlias\":\"\",\"ifPhysAddress\":\"50:00:00:01:00:01\"},{\"ifIndex\":\"3\",\"ifDescr\":\"ether3\",\"ifName\":\"ether3\",\"ifAlias\":\"\",\"ifPhysAddress\":\"50:00:00:01:00:02\"},{\"ifIndex\":\"4\",\"ifDescr\":\"ether4\",\"ifName\":\"ether4\",\"ifAlias\":\"\",\"ifPhysAddress\":\"50:00:00:01:00:03\"}]",
"raw_output": "",
"messages": [
{
"status": 0,
Expand Down

0 comments on commit 5357deb

Please sign in to comment.