Commit Graph

20 Commits (d396cd16d243f348510b2ffb461b766acab5240e)

Author SHA1 Message Date
Simon Stürz d396cd16d2 added test 2019-04-01 20:48:17 +02:00
Michael Zanetti c55c92774b improve tests a little 2019-04-01 20:48:17 +02:00
Michael Zanetti 240c5e36d6 implement a logging framework 2019-04-01 20:48:17 +02:00
Michael Zanetti 56ca42e1ca finish off the stateevaluator handling 2019-04-01 20:48:17 +02:00
Michael Zanetti 5cd3154b64 add possibility to disable/enable rules
Fixes #58
2019-04-01 20:48:17 +02:00
Michael Zanetti aad334c799 switch json api to better type system and enhance error reporting 2019-04-01 20:48:17 +02:00
Michael Zanetti 1aba1643f8 first attempt to clean up type system 2019-04-01 20:48:17 +02:00
Michael Zanetti 53fe5557e0 fix issues in param handling in json api 2019-04-01 20:48:17 +02:00
Michael Zanetti be90f47f63 more work on rules
disallow removing a device if a rule still refers to it unless
parameters contain information on what to do with those rules.
2019-04-01 20:48:17 +02:00
Michael Zanetti a5b0ceeee4 more tests for events 2019-04-01 20:47:51 +02:00
Michael Zanetti 55b6962ebc more tests for stateevaluator, fix found issues 2019-04-01 20:47:51 +02:00
Michael Zanetti 16645498db write more tests for the rules engine.
decouple jsonrpc versioning from application versioning
2019-04-01 20:47:51 +02:00
Michael Zanetti d2f02d650b fix eventdescriptor's paramdescriptors handling 2019-04-01 20:47:51 +02:00
Michael Zanetti ddebe2d0b4 add params to proper event 2019-04-01 20:47:51 +02:00
Michael Zanetti 011a0afa48 added a test for triggering a rule 2019-04-01 20:47:51 +02:00
Michael Zanetti 576e67f9f3 also add event params to rule load/store test 2019-04-01 20:47:51 +02:00
Michael Zanetti 346ee6df35 add event params to rules test 2019-04-01 20:47:51 +02:00
Michael Zanetti 9d21f32366 allow calling AddRule with a single eventDescriptor but also with a list 2019-04-01 20:47:51 +02:00
Michael Zanetti 373af5bde5 add tests for loading/storing rules to disk 2019-04-01 20:47:51 +02:00
Michael Zanetti 08223606ee introduce StateDescriptor and StateEvaluator for use with Rules 2014-06-09 04:34:37 +02:00