rmmagent/agent/umi/umi_unix_test.go
2022-06-28 15:27:11 -07:00

33 lines
559 B
Go

//go:build !windows
// +build !windows
package umi_test
import (
"testing"
"github.com/amidaware/rmmagent/agent/umi"
)
func TestGetInfo(t *testing.T) {
testTable := []struct {
name string
expected map[string]interface{}
atLeast int
}{
{
name: "Get info",
expected: make(map[string]interface{}),
atLeast: 1,
},
}
for _, tt := range testTable {
t.Run(tt.name, func(t *testing.T) {
result, _ := umi.GetInfo()
if len(result) < tt.atLeast {
t.Errorf("expected at least %d, got %d", tt.atLeast, len(result))
}
})
}
}