-
Notifications
You must be signed in to change notification settings - Fork 18
Add test rules and serve them with update_rules_content.sh --include-test-rules
#329
Add test rules and serve them with update_rules_content.sh --include-test-rules
#329
Conversation
0dbbaac
to
0522750
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, just a question:
why are the rules implementation needed for the purpose of this PR? I mean, content-service won't do anything with rules implementation, it only uses rules content, so probably these files won't be never used
rules/test/content/test_rule/TEST_RULE_MODERATE_IMPACT/metadata.yaml
Outdated
Show resolved
Hide resolved
0522750
to
e074829
Compare
Thanks for the feedback! Truth is I copied the tutorial rule's directory structure. I didn't test without the rules implementation. I'll test it, and if it doesn't break, I'll remove them. |
fbfa98d
to
1c52864
Compare
Codecov Report
@@ Coverage Diff @@
## master #329 +/- ##
=======================================
Coverage 72.58% 72.58%
=======================================
Files 11 11
Lines 580 580
=======================================
Hits 421 421
Misses 134 134
Partials 25 25 Continue to review full report at Codecov.
|
1c52864
to
fd6072d
Compare
- Remove unnecessary config.yaml file - use `node_id: null` in plugin - remove rule implementation files (not needed in content service) - style fixes
fd6072d
to
b66bf1f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Description
When implementing notification services BDD testcases, the need for specifying rules with a concrete category of impact appeared. These "test rules" serve that purpose, and allow use to not disclose private data in the BDD tests.
The new rules have specific impact and likelihood that ensure we have one rule of each total risk category.
In order for the content-service to serve these new rules, the
update_rules_content.sh
script now accepts the--include-test-rules
parameter. This is intended for local use only.Type of change
Testing steps
Please describe how the change was tested locally. If, for some reason, the testing was not done or not done fully, please describe what are the testing steps.
Checklist
make before_commit
passes