ing
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user