mac build and testing
This commit is contained in:
parent
41046d1d56
commit
ce1b857b9a
3 changed files with 67 additions and 47 deletions
|
|
@ -17,4 +17,25 @@ func TestAgentId(t *testing.T) {
|
|||
} else {
|
||||
t.Logf("AgentID: %s", a.AgentID)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func TestSystemRebootRequired(t *testing.T) {
|
||||
a := New(lg, version)
|
||||
result, err := a.SystemRebootRequired()
|
||||
if err != nil {
|
||||
t.Error(err)
|
||||
}
|
||||
|
||||
t.Logf("Result: %t", result)
|
||||
}
|
||||
|
||||
func TestLoggedOnUser(t *testing.T) {
|
||||
a := New(lg, version)
|
||||
result := a.LoggedOnUser()
|
||||
if result == "" {
|
||||
t.Errorf("Could not get logged on user.")
|
||||
}
|
||||
|
||||
t.Logf("Result: %s", result)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue