Closed (fixed)
Project:
Rules
Version:
8.x-3.x-dev
Component:
Rules Core
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
31 Jan 2016 at 20:46 UTC
Updated:
19 Feb 2016 at 08:04 UTC
Jump to comment: Most recent
Comments
Comment #2
fagoComment #3
vasi1186 commentedComment #4
vasi1186 commentedHere is the pull request: https://github.com/fago/rules/pull/381
One thing maybe: should we create more tests that check more extensive the rules update/delete and the container rebuild, or do you think the current ones are enough?
Comment #5
vasi1186 commentedtravis reported some issues.
Comment #6
klausiThe usual random test fail we see sometimes.
Comment #7
fagoThanks, changes look really good. I think test coverage is ok as we've the functional API test coverage that does not need the manual rebuilds any more now. IT would be nice to cover the deletion case as well, but I don't think that would be easy to test?
Thus, I think that's good enough for now. Thanks, merged!
Comment #9
fagoFYI: The tests issue: #2659954: TempStorageTest::testLocking has random fails
Comment #10
vasi1186 commentedYes, testing the deletion is a bit harder to automate. Basically, we would have to check the container and see that the generic event is not registered. I guess the code in the test would be something similar with what we had before int he
isRuleEventRegistered()method here https://github.com/fago/rules/pull/364/filesI don't know how crucial is to have this tests automated, I personally see this as a minor issue, because it does not affect the behavior of the site, and the container will be anyway rebuilt during the next cache clear or the next time when the user creates a rule.