github.com/iqoqo/nomad@v0.11.3-0.20200911112621-d7021c74d101/client/fingerprint/signal_test.go (about) 1 package fingerprint 2 3 import ( 4 "testing" 5 6 "github.com/hashicorp/nomad/helper/testlog" 7 "github.com/hashicorp/nomad/nomad/structs" 8 ) 9 10 func TestSignalFingerprint(t *testing.T) { 11 fp := NewSignalFingerprint(testlog.HCLogger(t)) 12 node := &structs.Node{ 13 Attributes: make(map[string]string), 14 } 15 16 response := assertFingerprintOK(t, fp, node) 17 assertNodeAttributeContains(t, response.Attributes, "os.signals") 18 }