7b53474a6e
public fields and remove getter functions
18 lines
356 B
Go
18 lines
356 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),
|
|
}
|
|
|
|
response := assertFingerprintOK(t, fp, node)
|
|
assertNodeAttributeContains(t, response.Attributes, "os.signals")
|
|
}
|