open-nomad/client/fingerprint/signal_test.go

18 lines
356 B
Go
Raw Normal View History

2016-10-19 22:06:23 +00:00
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),
}
response := assertFingerprintOK(t, fp, node)
assertNodeAttributeContains(t, response.Attributes, "os.signals")
2016-10-19 22:06:23 +00:00
}