container_network/crawler/health/rmi/RMIHealthCrawler_test.go
crusader f28ff9a303 ing
2018-04-20 00:46:38 +09:00

27 lines
486 B
Go

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