ing
This commit is contained in:
parent
82a3ff7f48
commit
fa39093d51
Binary file not shown.
|
@ -22,6 +22,6 @@
|
||||||
"callerEncoder": "full",
|
"callerEncoder": "full",
|
||||||
"nameEncoder": "full"
|
"nameEncoder": "full"
|
||||||
},
|
},
|
||||||
"outputPaths": ["/project/go/src/git.loafle.net/overflow/probe/_build/logs/container_network.log"],
|
"outputPaths": ["/home/geek/go/src/git.loafle.net/overflow/probe/_build/logs/container_network.log"],
|
||||||
"errorOutputPaths": ["stderr"]
|
"errorOutputPaths": ["stderr"]
|
||||||
}
|
}
|
||||||
|
|
Binary file not shown.
|
@ -226,7 +226,7 @@ func (s *SensorConfigService) loadConfigFile(configStrByte []byte) (*ocmsc.Senso
|
||||||
//keyStr := s.ProbeClientService.EncryptionKey
|
//keyStr := s.ProbeClientService.EncryptionKey
|
||||||
//configStrByte := []byte(decodeStr)
|
//configStrByte := []byte(decodeStr)
|
||||||
|
|
||||||
keyStr := "aaaaaaaa"
|
keyStr := "f84ld984"
|
||||||
key := []byte(keyStr)
|
key := []byte(keyStr)
|
||||||
block, err := des.NewCipher(key)
|
block, err := des.NewCipher(key)
|
||||||
|
|
||||||
|
|
|
@ -6,11 +6,12 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestSensorService_AddSensor(t *testing.T) {
|
func TestSensorService_AddSensor(t *testing.T) {
|
||||||
config := "pT1QAThXECRfY+Vqe0PpaDrI5TlJ+Psf0AyM5JWiHlHHEr0oZsq8z5L01BnXV4LDHtMXGB0wDb2+L+4SDxk/zM57b7dGHt76ibmZ/R6jPXF8EZYgORbNcyy+m60sesk8fK23unH4Wc1Gqf5ekxTyYjupQ6ZSQbmdFk/WJM3iYy20G8JN3gsHHZtWVCDRVzhQU8sAg+UQ4voSlN3hWajAN8sZFL0HDSba7CjDX3rp9Z7K7VoZCkBsti9b7Z/WhFjHV23zoO786ZhKc8M8lYa69eCgcDDX4zYGJ5RUHnzLFwYkZ6GAoVX0NM8nCA8+yk59CbEcWS1qjR9Xv2C32PuZq8oWOhVW1xiXQDBD1hhAv+3c+m4gZmpHZQ=="
|
config := "3gX2rkyrn+R//wqs2IU+kqnWCfBkdik1gsAZHYvGYkXEaL1pivcyxNfzSVbUPW41+P5VrSM2+HQfcmTNXiO2V1bUm+cuzJ+iZvLjOodb5Hdji8isNCwy4WJ4aa8SD18qNCKvJFwrvNkEvhkRy9SNbJ2zw2zyiOSvweHauI03HYBEEvAIy6JBdMSrb6yzFJcWa1BUvkWTOqei+8blivC84tw0OAils1fUUbfRaRDNCrVVNJDqVhqa9ZUUbQ8ziNV5Qb0FeSEflqH1PzXSZ9OPV8LipC7Fdp6SLmGiPWXR/EhuSH9JeFkOPJuVH4+z3zyXthTo4hyafLjMGEhm0J0csh78zRk3pCG6LRt3llLW0cGHgwoIAQaAA4jR0R64/k12D4zB+O/iwTcPeW1mPN5myg=="
|
||||||
|
|
||||||
s := &SensorService{}
|
s := &SensorService{}
|
||||||
sc := &SensorConfigService{}
|
sc := &SensorConfigService{}
|
||||||
sc.InitService()
|
sc.InitService()
|
||||||
|
s.SensorConfigService = sc
|
||||||
err := s.AddSensor(config)
|
err := s.AddSensor(config)
|
||||||
|
|
||||||
if nil != err {
|
if nil != err {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user