Skip to content

Commit

Permalink
Test fixes (#9105)
Browse files Browse the repository at this point in the history
* Fix BENU MIB timestamp

* Fix comware bgp order

* fix ntp json data

* Fix occamos json
  • Loading branch information
murrant committed Aug 29, 2018
1 parent 8e47a5d commit 372b28b
Show file tree
Hide file tree
Showing 5 changed files with 2,746 additions and 2,738 deletions.
2 changes: 1 addition & 1 deletion mibs/benuos/BENU-WAG-STATS-MIB
Expand Up @@ -31,7 +31,7 @@ benuWagStatsMIB MODULE-IDENTITY
Copyright (C) 2012 by Benu Networks, Inc.
All rights reserved."

REVISION "2017020210000Z" -- Feb 02, 2017
REVISION "201702210000Z" -- Feb 02, 2017
DESCRIPTION "Added fragmentation scalars."

REVISION "201701310000Z" -- Jan 31, 2017
Expand Down
32 changes: 16 additions & 16 deletions tests/data/comware.json
Expand Up @@ -4,7 +4,7 @@
"bgpPeers": [
{
"astext": "",
"bgpPeerIdentifier": "192.168.1.57",
"bgpPeerIdentifier": "95.43.23.53",
"bgpPeerRemoteAs": 65503,
"bgpPeerState": "idle",
"bgpPeerAdminStatus": "stop",
Expand All @@ -21,7 +21,7 @@
},
{
"astext": "",
"bgpPeerIdentifier": "95.43.23.53",
"bgpPeerIdentifier": "192.168.1.57",
"bgpPeerRemoteAs": 65503,
"bgpPeerState": "idle",
"bgpPeerAdminStatus": "stop",
Expand All @@ -43,35 +43,35 @@
"bgpPeers": [
{
"astext": "",
"bgpPeerIdentifier": "192.168.1.57",
"bgpPeerIdentifier": "95.43.23.53",
"bgpPeerRemoteAs": 65503,
"bgpPeerState": "established",
"bgpPeerAdminStatus": "start",
"bgpLocalAddr": "192.168.2.58",
"bgpLocalAddr": "192.168.3.51",
"bgpPeerRemoteAddr": "0.0.0.0",
"bgpPeerInUpdates": 1,
"bgpPeerOutUpdates": 87,
"bgpPeerInTotalMessages": 423531,
"bgpPeerOutTotalMessages": 493449,
"bgpPeerFsmEstablishedTime": 22497219,
"bgpPeerInUpdateElapsedTime": 22497219,
"bgpPeerOutUpdates": 6,
"bgpPeerInTotalMessages": 4875,
"bgpPeerOutTotalMessages": 4462,
"bgpPeerFsmEstablishedTime": 259280,
"bgpPeerInUpdateElapsedTime": 259280,
"context_name": "",
"bgpLocalAs": "65504"
},
{
"astext": "",
"bgpPeerIdentifier": "95.43.23.53",
"bgpPeerIdentifier": "192.168.1.57",
"bgpPeerRemoteAs": 65503,
"bgpPeerState": "established",
"bgpPeerAdminStatus": "start",
"bgpLocalAddr": "192.168.3.51",
"bgpLocalAddr": "192.168.2.58",
"bgpPeerRemoteAddr": "0.0.0.0",
"bgpPeerInUpdates": 1,
"bgpPeerOutUpdates": 6,
"bgpPeerInTotalMessages": 4875,
"bgpPeerOutTotalMessages": 4462,
"bgpPeerFsmEstablishedTime": 259280,
"bgpPeerInUpdateElapsedTime": 259280,
"bgpPeerOutUpdates": 87,
"bgpPeerInTotalMessages": 423531,
"bgpPeerOutTotalMessages": 493449,
"bgpPeerFsmEstablishedTime": 22497219,
"bgpPeerInUpdateElapsedTime": 22497219,
"context_name": "",
"bgpLocalAs": "65504"
}
Expand Down
54 changes: 29 additions & 25 deletions tests/data/linux_ntp-client-legacy.json
@@ -1,53 +1,57 @@
{
"applications": {
"discovery": {
"applications": {
"app_type": "ntp-client",
"app_state": "UNKNOWN",
"discovered": "1",
"app_state_prev": null,
"app_status": "",
"app_instance": ""
},
"applications": [
{
"app_type": "ntp-client",
"app_state": "UNKNOWN",
"discovered": 1,
"app_state_prev": null,
"app_status": "",
"app_instance": ""
}
],
"application_metrics": []
},
"poller": {
"applications": {
"app_type": "ntp-client",
"app_state": "OK",
"discovered": "1",
"app_state_prev": "UNKNOWN",
"app_status": "",
"app_instance": ""
},
"applications": [
{
"app_type": "ntp-client",
"app_state": "OK",
"discovered": 1,
"app_state_prev": "UNKNOWN",
"app_status": "",
"app_instance": ""
}
],
"application_metrics": [
{
"metric": "clk_jitter",
"value": "0.853",
"metric": "frequency",
"value": 91.141,
"value_prev": null,
"app_type": "ntp-client"
},
{
"metric": "clk_wander",
"value": "0.025",
"metric": "jitter",
"value": 2.581995,
"value_prev": null,
"app_type": "ntp-client"
},
{
"metric": "frequency",
"value": "91.141",
"metric": "noise",
"value": 0.853,
"value_prev": null,
"app_type": "ntp-client"
},
{
"metric": "offset",
"value": "0.702900",
"value": 0.7029,
"value_prev": null,
"app_type": "ntp-client"
},
{
"metric": "sys_jitter",
"value": "2.581995",
"metric": "stability",
"value": 0.025,
"value_prev": null,
"app_type": "ntp-client"
}
Expand Down
54 changes: 29 additions & 25 deletions tests/data/linux_ntp-client-v1.json
@@ -1,53 +1,57 @@
{
"applications": {
"discovery": {
"applications": {
"app_type": "ntp-client",
"app_state": "UNKNOWN",
"discovered": "1",
"app_state_prev": null,
"app_status": "",
"app_instance": ""
},
"applications": [
{
"app_type": "ntp-client",
"app_state": "UNKNOWN",
"discovered": 1,
"app_state_prev": null,
"app_status": "",
"app_instance": ""
}
],
"application_metrics": []
},
"poller": {
"applications": {
"app_type": "ntp-client",
"app_state": "OK",
"discovered": "1",
"app_state_prev": "UNKNOWN",
"app_status": "",
"app_instance": ""
},
"applications": [
{
"app_type": "ntp-client",
"app_state": "OK",
"discovered": 1,
"app_state_prev": "UNKNOWN",
"app_status": "",
"app_instance": ""
}
],
"application_metrics": [
{
"metric": "clk_jitter",
"value": "0.853",
"metric": "frequency",
"value": 91.141,
"value_prev": null,
"app_type": "ntp-client"
},
{
"metric": "clk_wander",
"value": "0.025",
"metric": "jitter",
"value": 2.581995,
"value_prev": null,
"app_type": "ntp-client"
},
{
"metric": "frequency",
"value": "91.141",
"metric": "noise",
"value": 0.853,
"value_prev": null,
"app_type": "ntp-client"
},
{
"metric": "offset",
"value": "0.702900",
"value": 0.7029,
"value_prev": null,
"app_type": "ntp-client"
},
{
"metric": "sys_jitter",
"value": "2.581995",
"metric": "stability",
"value": 0.025,
"value_prev": null,
"app_type": "ntp-client"
}
Expand Down

0 comments on commit 372b28b

Please sign in to comment.