Add user privilege level setting to IPMI sensors (#3643)

This commit is contained in:
Daniel Nelson
2018-01-05 15:59:25 -08:00
committed by GitHub
parent 35f1b9f500
commit 2938c2fa79
5 changed files with 27 additions and 15 deletions

View File

@@ -23,6 +23,7 @@ func TestNewConnection(t *testing.T) {
Username: "USERID",
Password: "PASSW0RD",
Interface: "lan",
Privilege: "USER",
},
},
{
@@ -32,11 +33,12 @@ func TestNewConnection(t *testing.T) {
Username: "USERID",
Password: "PASS:!@#$%^&*(234)_+W0RD",
Interface: "lan",
Privilege: "USER",
},
},
}
for _, v := range testData {
assert.Equal(t, v.con, NewConnection(v.addr))
assert.Equal(t, v.con, NewConnection(v.addr, "USER"))
}
}