rmmagent/agent/agent_test.go

20 lines
275 B
Go
Raw Normal View History

2022-06-15 23:37:35 +00:00
package agent
import (
"testing"
2022-06-16 01:26:10 +00:00
"github.com/sirupsen/logrus"
2022-06-15 23:37:35 +00:00
)
2022-06-16 01:26:10 +00:00
var (
version = "2.0.4"
lg = logrus.New()
)
2022-06-15 23:37:35 +00:00
2022-06-16 01:26:10 +00:00
func TestAgentId(t *testing.T) {
a := New(lg, version)
if a.AgentID == "" {
t.Error("AgentID not set")
} else {
t.Logf("AgentID: %s", a.AgentID)
2022-06-15 23:37:35 +00:00
}
}