Add user privilege level setting to IPMI sensors (#3643)
This commit is contained in:
@@ -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"))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user