This commit is contained in:
crusader
2018-04-26 17:50:26 +09:00
parent 3efa746c76
commit 042e4ac37b
51 changed files with 151 additions and 151 deletions

View File

@@ -2,7 +2,7 @@ package postgresql
import (
cnsmp "git.loafle.net/commons/service_matcher-go/postgresql"
ocsm "git.loafle.net/overflow/commons-go/sensorconfig/model"
ocmsc "git.loafle.net/overflow/commons-go/model/sensorconfig"
"git.loafle.net/overflow/container_network/crawler/health"
crawler "git.loafle.net/overflow/crawler-go"
)
@@ -23,7 +23,7 @@ func (c *PostgreSQLHealthCrawler) Auth(auth map[string]interface{}) error {
return nil
}
func (c *PostgreSQLHealthCrawler) Get(config *ocsm.SensorConfig) (map[string]string, error) {
func (c *PostgreSQLHealthCrawler) Get(config *ocmsc.SensorConfig) (map[string]string, error) {
rss, err := c.CheckHeahth(config)
if err != nil {
return nil, err

View File

@@ -4,14 +4,14 @@ import (
"encoding/json"
"testing"
ocsm "git.loafle.net/overflow/commons-go/sensorconfig/model"
ocmsc "git.loafle.net/overflow/commons-go/model/sensorconfig"
"github.com/stretchr/testify/assert"
)
func TestMatch(t *testing.T) {
config := &ocsm.SensorConfig{}
config.Target = &ocsm.Target{}
config.Target.Connection = &ocsm.Connection{
config := &ocmsc.SensorConfig{}
config.Target = &ocmsc.Target{}
config.Target.Connection = &ocmsc.Connection{
IP: "192.168.1.107",
Port: json.Number(5432),
PortType: "tcp",