Commit Graph

39 Commits (79e0ff2dd6097dc4d44429dde52c6515997dc95a)

Author SHA1 Message Date
Simon Stürz 79e0ff2dd6 add JSON RPC rule execution tests 2019-04-01 20:48:17 +02:00
Simon Stürz 2823832ed1 fix rest rule executable parameter 2019-04-01 20:48:17 +02:00
Simon Stürz 09d66587ce add tests for rule action param verification
fix #231
2019-04-01 20:48:17 +02:00
Simon Stürz 60067f7c0b fix #143 2019-04-01 20:48:17 +02:00
Simon Stürz 91afe4f29e add guhserver namespace to server 2019-04-01 20:48:17 +02:00
Simon Stürz 523b954933 speed up tests 2019-04-01 20:48:17 +02:00
Simon Stürz b67bd44722 fixed enable disable notification tests 2019-04-01 20:48:17 +02:00
Simon Stürz 44bdfbcb13 add tests 2019-04-01 20:48:17 +02:00
Simon Stürz 69ca5c4713 bump api version
add tests for rule active changed notification
2019-04-01 20:48:17 +02:00
Simon Stürz 2aa55e469e added copyright 2019-04-01 20:48:17 +02:00
Simon Stürz 1c008d0bef fixed inline comments and added a test 2019-04-01 20:48:17 +02:00
Simon Stürz bea3b97cba added type comparison test 2019-04-01 20:48:17 +02:00
Simon Stürz 90622e5edb improove RuleAction logic
add tests
fix documentation
2019-04-01 20:48:17 +02:00
Simon Stürz 0603b8a3b7 fixed tests and bump api 2019-04-01 20:48:17 +02:00
Simon Stürz 584fec345f added loadStoreConfig tests for exitActions 2019-04-01 20:48:17 +02:00
Simon Stürz 40d7bde73f added tests for exitActions 2019-04-01 20:48:17 +02:00
Simon Stürz 79cbab42a1 fixed packRule 2019-04-01 20:48:17 +02:00
Simon Stürz e555754706 added tests and bump api version 2019-04-01 20:48:17 +02:00
Michael Zanetti 5cbe613a3e improve test, fix bug in stateEvaluator 2019-04-01 20:48:17 +02:00
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