Bug 1240974

Summary: Need "like" support in beaker client
Product: [Retired] Beaker Reporter: gaoshang <sgao>
Component: command lineAssignee: beaker-dev-list
Status: CLOSED DUPLICATE QA Contact: tools-bugs <tools-bugs>
Severity: medium Docs Contact:
Priority: unspecified    
Version: developCC: dcallagh, ebaak
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-08-24 06:44:25 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description gaoshang 2015-07-08 09:28:34 UTC
Description of problem:

In beaker Job XML, operator "like" is supported, such as <hostname op="like" value="%.khw.%"/>
But looks like breaker api/cli is not supported, could you help us to check this, thanks.

In /usr/lib/python2.6/site-packages/bkr/client/_init_.py
...
p2 = re.compile(r'([\!=<>]+|>|<)')

origin issue: https://projects.engineering.redhat.com/browse/CID-333


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Dan Callaghan 2015-08-24 06:00:20 UTC
Note that you can already (since 0.17) pass raw XML to --hostrequire:

bkr workflow-simple --hostrequire '<hostname op="like" value="%.khw.%"/>' ...

Comment 2 Dan Callaghan 2015-08-24 06:44:25 UTC

*** This bug has been marked as a duplicate of bug 1010355 ***