Skip to content

Commit

Permalink
Merge pull request #48 from mkanoor/jira_12513_round2
Browse files Browse the repository at this point in the history
[AAP-12513] Drools intermittent failures
  • Loading branch information
mkanoor committed Jun 7, 2023
2 parents b656533 + a6c429d commit f1fade2
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "drools_jpy"
version = "0.3.3"
version = "0.3.4"
authors = [
{ name="Madhu Kanoor", email="author@example.com" },
]
Expand Down
Binary file not shown.
26 changes: 22 additions & 4 deletions tests/test_ruleset.py
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,10 @@ def test_once_within():
"m": {
"alert": {"level": "warning", "msg": "Low disk space"},
"i": 0,
"meta": {"host": "A"},
"meta": {
"rule_engine": {"once_within_time_window": "10 SECONDS"},
"host": "A",
},
}
}
)
Expand All @@ -577,7 +580,10 @@ def test_once_within():
"m": {
"alert": {"level": "error", "msg": "Disk failure"},
"i": 21,
"meta": {"host": "B"},
"meta": {
"rule_engine": {"once_within_time_window": "10 SECONDS"},
"host": "B",
},
}
}
)
Expand Down Expand Up @@ -633,12 +639,24 @@ async def test_once_after():
"m_0": {
"alert": {"level": "warning", "msg": "Low disk space"},
"i": 0,
"meta": {"host": "A"},
"meta": {
"rule_engine": {
"events_in_window": 21,
"once_after_time_window": "10 SECONDS",
},
"host": "A",
},
},
"m_1": {
"alert": {"level": "error", "msg": "Disk failure"},
"i": 21,
"meta": {"host": "B"},
"meta": {
"rule_engine": {
"events_in_window": 79,
"once_after_time_window": "10 SECONDS",
},
"host": "B",
},
},
}
)
Expand Down

0 comments on commit f1fade2

Please sign in to comment.