github.com/hhrutter/nomad@v0.6.0-rc2.0.20170723054333-80c4b03f0705/client/fingerprint/signal_test.go (about)

     1  package fingerprint
     2  
     3  import (
     4  	"testing"
     5  
     6  	"github.com/hashicorp/nomad/nomad/structs"
     7  )
     8  
     9  func TestSignalFingerprint(t *testing.T) {
    10  	fp := NewSignalFingerprint(testLogger())
    11  	node := &structs.Node{
    12  		Attributes: make(map[string]string),
    13  	}
    14  
    15  	assertFingerprintOK(t, fp, node)
    16  	assertNodeAttributeContains(t, node, "os.signals")
    17  }