Bug 1014695 - Submission delegate support in bkr.client
Summary: Submission delegate support in bkr.client
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Beaker
Classification: Retired
Component: command line
Version: 0.14
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: 19.1
Assignee: Dan Callaghan
QA Contact: tools-bugs
URL:
Whiteboard:
Depends On:
Blocks: 1215138
TreeView+ depends on / blocked
 
Reported: 2013-10-02 14:40 UTC by Miroslav Hradílek
Modified: 2018-02-06 00:41 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
: 1215138 (view as bug list)
Environment:
Last Closed: 2014-12-17 08:40:06 UTC
Embargoed:


Attachments (Terms of Use)

Description Miroslav Hradílek 2013-10-02 14:40:49 UTC
Description of problem:

It seems that, currently, there is not support for submission-delegate (job atribute user) in bkr.client. I was expecting it to be here :( matching the server's new functionality.

class BeakerJob(BeakerBase):
    def __init__(self, *args, **kwargs):
8><-----
        if kwargs.get('retention_tag'):
            self.node.setAttribute('retention_tag', kwargs.get('retention_tag'))
        if kwargs.get('product'):
            self.node.setAttribute('product', kwargs.get('product'))
        if kwargs.get('job_group'):
            self.node.setAttribute('group', kwargs.get('job_group'))

something like should be sufficient:

        if kwargs.get('user'):
            self.node.setAttribute('user', kwargs.get('user'))

Version-Release number of selected component (if applicable):
beaker-client-0.14.1-1.fc18.noarch

How reproducible:
100%

Comment 2 Nick Coghlan 2013-10-03 01:49:00 UTC
Huh, I thought we added that along with the rest of the feature, but it appears not.

The new parameter should be called "--job-owner" (the fact we called the XML attribute "user" instead of "owner" was a design mistake)

Comment 4 Bill Peck 2013-11-21 15:21:44 UTC
can this be moved up to 0.14.4?  Seems a simple fix no?

Thanks

Comment 5 Nick Coghlan 2013-11-22 03:47:14 UTC
I agree it would be nice, but the regression in bug 1033032 just made life a little more interesting than I like :(

That said, I'm easily bought by Gerrit patches that come with tests and docs ;)

Comment 6 Dan Callaghan 2014-11-24 01:20:00 UTC
http://gerrit.beaker-project.org/3505

Comment 11 Dan Callaghan 2014-12-17 08:40:06 UTC
Beaker 19.1 is released.


Note You need to log in before you can comment on or make changes to this bug.