mac build and testing

This commit is contained in:
redanthrax 2022-06-24 08:49:47 -07:00
parent 41046d1d56
commit ce1b857b9a
3 changed files with 67 additions and 47 deletions

View file

@ -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)
}