Update Scenario simple.json
I'm trying new version (0.6.0) of lorhammer. When i launch the orchestrator with this command
orchestrator -mqtt tcp://ADVERTISED_HOST:1884 -from-file "./resources/scenarios/simple.json"
unfortunately i have these erros:
WARN[0000] Welcome to the Lorhammer's Orchestrator
INFO[0000] Connected to Mqtt broker ClientID="orchestrator_-\xf1.\u007f\x18\xec\xe7\x94" logger=tools/mqtt mqtt="tcp://localhost:1884"
INFO[0000] Listen mqtt logger=orchestrator/main topic=/lorhammer/orchestrator
PANI[0000] Error while parsing test suite file error="json: cannot unmarshal object into Go struct field jsonTestSuite.init of type []model.Init" file=./resources/scenarios/scnario.json logger=orchestrator/main
panic: (*logrus.Entry) (0xeb8140,0xc42001f9f0)
goroutine 1 [running]:
lorhammer/vendor/github.com/sirupsen/logrus.Entry.log(0xc42001e4b0, 0xc4201a5680, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/opt/src/lorhammer/vendor/github.com/sirupsen/logrus/entry.go:128 +0x8f4
lorhammer/vendor/github.com/sirupsen/logrus.(*Entry).Panic(0xc42001f9a0, 0xc42015dcb0, 0x1, 0x1)
/opt/src/lorhammer/vendor/github.com/sirupsen/logrus/entry.go:173 +0x116
main.main()
/opt/src/lorhammer/src/orchestrator/main.go:86 +0x1038
I read in the changelog that you've changed the init section of json file. Is it possibile to update the tests scenario?