open-nomad/client/fingerprint/signal_test.go
2018-06-13 15:40:56 -07:00

19 lines
406 B
Go

package fingerprint
import (
"testing"
"github.com/hashicorp/nomad/helper/testlog"
"github.com/hashicorp/nomad/nomad/structs"
)
func TestSignalFingerprint(t *testing.T) {
fp := NewSignalFingerprint(testlog.Logger(t))
node := &structs.Node{
Attributes: make(map[string]string),
}
response := assertFingerprintOK(t, fp, node)
assertNodeAttributeContains(t, response.Attributes, "os.signals")
}