open-nomad/client/fingerprint/signal_test.go

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

25 lines
528 B
Go
Raw Permalink Normal View History

// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
2016-10-19 22:06:23 +00:00
package fingerprint
import (
"testing"
"github.com/hashicorp/nomad/ci"
2018-06-13 22:33:25 +00:00
"github.com/hashicorp/nomad/helper/testlog"
2016-10-19 22:06:23 +00:00
"github.com/hashicorp/nomad/nomad/structs"
)
func TestSignalFingerprint(t *testing.T) {
ci.Parallel(t)
fp := NewSignalFingerprint(testlog.HCLogger(t))
2016-10-19 22:06:23 +00:00
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
}