Add 'target' policy

Fixes: https://pagure.io/koji/issue/1040
This commit is contained in:
Tomas Kopecek 2018-08-22 16:42:29 +02:00
parent 422f9db76c
commit f9190657d9
3 changed files with 24 additions and 0 deletions

View file

@ -137,6 +137,18 @@ class MatchTest(BaseSimpleTest):
return False
class TargetTest(MatchTest):
"""Matches target in the data against glob patterns
True if any of the expressions match, else False
Syntax:
target pattern1 [pattern2 ...]
"""
name = 'target'
field = 'target'
class CompareTest(BaseSimpleTest):
"""Simple numeric field comparison