container_network/crawler/health/telnet/TelnetHealthCrawler_test.go
crusader 042e4ac37b ing
2018-04-26 17:50:26 +09:00

27 lines
494 B
Go

package telnet
import (
"encoding/json"
"testing"
ocmsc "git.loafle.net/overflow/commons-go/model/sensorconfig"
"github.com/stretchr/testify/assert"
)
func TestMatch(t *testing.T) {
config := &ocmsc.SensorConfig{}
config.Target = &ocmsc.Target{}
config.Target.Connection = &ocmsc.Connection{
IP: "192.168.1.215",
Port: json.Number(23),
PortType: "tcp",
SSL: false,
}
c := NewCrawler()
rss, err := c.Get(config)
assert.Nil(t, err)
assert.NotNil(t, rss)
}