open-nomad/client/fingerprint/bridge_linux_test.go
2020-06-18 11:05:29 -07:00

15 lines
285 B
Go

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"))
}