Add snmp input option to strip non fixed length index suffixes (#4025)

This commit is contained in:
Matt
2018-04-17 20:34:39 -04:00
committed by Daniel Nelson
parent 058510464c
commit 9ef902f4a1
3 changed files with 24 additions and 0 deletions

View File

@@ -453,6 +453,11 @@ func TestTableBuild_walk(t *testing.T) {
Oid: ".1.0.0.2.1.5",
OidIndexSuffix: ".9.9",
},
{
Name: "myfield5",
Oid: ".1.0.0.2.1.5",
OidIndexLength: 1,
},
},
}
@@ -469,6 +474,7 @@ func TestTableBuild_walk(t *testing.T) {
"myfield2": 1,
"myfield3": float64(0.123),
"myfield4": 11,
"myfield5": 11,
},
}
rtr2 := RTableRow{
@@ -480,6 +486,7 @@ func TestTableBuild_walk(t *testing.T) {
"myfield2": 2,
"myfield3": float64(0.456),
"myfield4": 22,
"myfield5": 22,
},
}
rtr3 := RTableRow{