arjuna.engine.selection.rule module

class arjuna.engine.selection.rule.AttrPatternRule(*, rule_str, target, condition, expression)

Bases: arjuna.engine.selection.rule.Rule

Pattern for executing a condition on an attribute value.

For example:

author is Rahul

classmethod from_str(rule_str)
matches(obj)
class arjuna.engine.selection.rule.BoolAttrPatternRule(*, rule_str, target, condition, expression)

Bases: arjuna.engine.selection.rule.Rule

Simple Pattern for Boolean test attributes.

For example:

unstable not unstable

classmethod from_str(rule_str)
matches(obj)
class arjuna.engine.selection.rule.IterablePatternRule(*, rule_str, container, target, condition, expression)

Bases: arjuna.engine.selection.rule.Rule

Simple Pattern for presence/absence of strings in iterables.

For example:

with tags a,b without tags a,b with bugs a,b without bugs a,b with envs a,b without envs a,b

with usertags a,b (found in info rather than object)

You can use singular version as well - tag/bug/env

classmethod from_str(rule_str)
matches(obj)
property tags
class arjuna.engine.selection.rule.Pattern

Bases: object

classmethod extract(pattern, target_str)
class arjuna.engine.selection.rule.Rule(rule_str, container, target, condition, expression)

Bases: object

property checker
property condition
property container
property expression
property expression_type
property rule_str
property target