open-nomad/client/fingerprint/bridge_linux_test.go

15 lines
285 B
Go
Raw Normal View History

2020-05-15 15:09:01 +00:00
package fingerprint
import (
"testing"
"github.com/stretchr/testify/require"
)
func TestBridgeFingerprint_checkKMod(t *testing.T) {
require := require.New(t)
f := &BridgeFingerprint{}
require.NoError(f.checkKMod("ip_tables"))
require.Error(f.checkKMod("nonexistentmodule"))
}