open-nomad/client/fingerprint/signal_test.go
2016-10-19 15:06:23 -07:00

18 lines
329 B
Go

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