From 9c92a9b2b3d285d9ae825fb8c4b7f726967256c4 Mon Sep 17 00:00:00 2001 From: geek Date: Tue, 3 Jul 2018 16:25:26 +0900 Subject: [PATCH] ing --- .../network/postgresql/112103115113108 | 25 ------------------- _build/config/container/network/ssh/115115104 | 24 ------------------ service/SensorService_test.go | 3 ++- 3 files changed, 2 insertions(+), 50 deletions(-) delete mode 100644 _build/config/container/network/postgresql/112103115113108 delete mode 100644 _build/config/container/network/ssh/115115104 diff --git a/_build/config/container/network/postgresql/112103115113108 b/_build/config/container/network/postgresql/112103115113108 deleted file mode 100644 index 6c3f78a..0000000 --- a/_build/config/container/network/postgresql/112103115113108 +++ /dev/null @@ -1,25 +0,0 @@ -{ - "configID" : "112103115113108", - "target" : { - "connection" : { - "ip" : "192.168.1.50", - "port" : "5432", - "ssl" : false, - "portType" : "tcp" - }, - "auth" : { - }, - "meta": { - } - }, - "schedule" : { - "interval" : "3" - }, - "crawler" : { - "name":"POSTGRESQL_HEALTH", - "container":"NETWORK" - }, - "items" : [ - ] -} - diff --git a/_build/config/container/network/ssh/115115104 b/_build/config/container/network/ssh/115115104 deleted file mode 100644 index f3cec06..0000000 --- a/_build/config/container/network/ssh/115115104 +++ /dev/null @@ -1,24 +0,0 @@ -{ - "configID" : "115115104", - "target" : { - "connection" : { - "ip" : "192.168.1.10", - "port" : "22", - "ssl" : false, - "portType" : "tcp" - }, - "auth" : { - }, - "meta": { - } - }, - "schedule" : { - "interval" : "7" - }, - "crawler" : { - "name":"SSH_HEALTH", - "container":"NETWORK" - }, - "items" : [ - ] -} diff --git a/service/SensorService_test.go b/service/SensorService_test.go index 5ab9eb1..31f45f2 100644 --- a/service/SensorService_test.go +++ b/service/SensorService_test.go @@ -9,7 +9,8 @@ func TestSensorService_AddSensor(t *testing.T) { config := "pT1QAThXECRfY+Vqe0PpaDrI5TlJ+Psf0AyM5JWiHlHHEr0oZsq8z5L01BnXV4LDHtMXGB0wDb2+L+4SDxk/zM57b7dGHt76ibmZ/R6jPXF8EZYgORbNcyy+m60sesk8fK23unH4Wc1Gqf5ekxTyYjupQ6ZSQbmdFk/WJM3iYy20G8JN3gsHHZtWVCDRVzhQU8sAg+UQ4voSlN3hWajAN8sZFL0HDSba7CjDX3rp9Z7K7VoZCkBsti9b7Z/WhFjHV23zoO786ZhKc8M8lYa69eCgcDDX4zYGJ5RUHnzLFwYkZ6GAoVX0NM8nCA8+yk59CbEcWS1qjR9Xv2C32PuZq8oWOhVW1xiXQDBD1hhAv+3c+m4gZmpHZQ==" s := &SensorService{} - s.InitService() + sc := &SensorConfigService{} + sc.InitService() err := s.AddSensor(config) if nil != err {