test
This commit is contained in:
parent
3228ee9601
commit
2d045fa966
|
@ -36,7 +36,7 @@ func (c *SSHHealthCrawler) Get(config *ocmsc.SensorConfig) (map[string]string, e
|
||||||
|
|
||||||
for _, mci := range config.MetaCollectionItems {
|
for _, mci := range config.MetaCollectionItems {
|
||||||
switch mci.Key {
|
switch mci.Key {
|
||||||
case "service.health.response_time":
|
case "ssh.response_time":
|
||||||
start := time.Now().UTC()
|
start := time.Now().UTC()
|
||||||
if err := c.CheckHealth(config, conn); err != nil {
|
if err := c.CheckHealth(config, conn); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
|
|
@ -12,7 +12,7 @@ func TestMatch(t *testing.T) {
|
||||||
config := &ocmsc.SensorConfig{}
|
config := &ocmsc.SensorConfig{}
|
||||||
config.Connection = &ocmsc.SensorConfigConnection{
|
config.Connection = &ocmsc.SensorConfigConnection{
|
||||||
MetaIPTypeKey: "V4",
|
MetaIPTypeKey: "V4",
|
||||||
IP: "192.168.1.103",
|
IP: "192.168.1.111",
|
||||||
MetaPortTypeKey: "TCP",
|
MetaPortTypeKey: "TCP",
|
||||||
Port: "22",
|
Port: "22",
|
||||||
MetaCryptoTypeKey: "SSL",
|
MetaCryptoTypeKey: "SSL",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user