Kuadrant / Kuadrant/testsuite

Implement tests for conditions using predicate

Open
#581 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
7
Forks
29
Avg merge
1d 9h
Merged PRs (30d)
7

Description

**Summary**

Both `when` (rule-level) and `patterns` are lists that accept the following objects:
- select, operator, value
- patternRef
- predicate -> this one is new in v1beta3

Top-level `when` conditions support only `predicate`.

Investigate test coverage of all 3 objects mentioned above for:
- [ ] rule-level `when` conditions
- [ ] `patterns`

Possible to simply extend `test_patternref_expressions.py`.

Contributor guide

Open the contributing guide

Research direction

Start by reviewing test_patternref_expressions.py and the existing coverage for rule-level when conditions and patterns. Add coverage for select/operator/value, patternRef, and predicate objects in both areas, noting that top-level when conditions support only predicate. Done means the listed condition cases are tested.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
testing-qa
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.