fix translating snmp fields not in MIB (#1846)

This commit is contained in:
Patrick Hemmer
2016-10-04 11:22:15 -04:00
committed by Cameron Sparr
parent ce5054c850
commit 9feb639bbd
5 changed files with 16 additions and 4 deletions

View File

@@ -128,6 +128,8 @@ func TestFieldInit(t *testing.T) {
expectedName string
expectedConversion string
}{
{".1.2.3", "foo", "", ".1.2.3", "foo", ""},
{".iso.2.3", "foo", "", ".1.2.3", "foo", ""},
{".1.0.0.0.1.1", "", "", ".1.0.0.0.1.1", "server", ""},
{".1.0.0.0.1.1.0", "", "", ".1.0.0.0.1.1.0", "server.0", ""},
{".999", "", "", ".999", ".999", ""},