This is an automated email from the ASF dual-hosted git repository.
shuber pushed a commit to branch opensearch-persistence
in repository https://gitbox.apache.org/repos/asf/unomi.git
The following commit(s) were added to refs/heads/opensearch-persistence by this
push:
new e037e7138 Update RuleServiceIT to clarify default condition and action
settings in rule creation
e037e7138 is described below
commit e037e71382e95a0fad9e638b0ebee9f1ceca396f
Author: Serge Huber <[email protected]>
AuthorDate: Mon Oct 13 19:53:52 2025 +0200
Update RuleServiceIT to clarify default condition and action settings in
rule creation
---
itests/src/test/java/org/apache/unomi/itests/RuleServiceIT.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/itests/src/test/java/org/apache/unomi/itests/RuleServiceIT.java
b/itests/src/test/java/org/apache/unomi/itests/RuleServiceIT.java
index 038fb375a..da695b519 100644
--- a/itests/src/test/java/org/apache/unomi/itests/RuleServiceIT.java
+++ b/itests/src/test/java/org/apache/unomi/itests/RuleServiceIT.java
@@ -98,8 +98,8 @@ public class RuleServiceIT extends BaseIT {
metadata.setDescription(ruleID);
metadata.setScope(TEST_SCOPE);
Rule rule = new Rule(metadata);
- rule.setCondition(defaultCondition); // Use default condition
instead of null
- rule.setActions(actions); // Empty list instead of null
+ rule.setCondition(defaultCondition); // Set a default condition
for the rule
+ rule.setActions(actions); // Set a default action list for the
rule
createAndWaitForRule(rule);
}
assertEquals("Expected getAllRules to be able to retrieve all the
rules available in the system", originalRulesNumber + 60,
rulesService.getAllRules().size());