Bug 808344 - Nitrate: search test case by autoproposed
Summary: Nitrate: search test case by autoproposed
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: python-nitrate
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Petr Šplíchal
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 874005
TreeView+ depends on / blocked
 
Reported: 2012-03-30 08:00 UTC by Martin Kudlej
Modified: 2016-06-01 01:42 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-01-07 18:51:48 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Martin Kudlej 2012-03-30 08:00:13 UTC
Description of problem:
It is not able search TestCase by autoproposed now.
TestCase.search implements just search by 'automated' which is 0=Manual or 1=Automated. 

Version-Release number of selected component (if applicable):
qa-tools-2.0-45

Comment 1 Petr Šplíchal 2012-05-22 08:42:47 UTC
Searching in the high-level nitrate API is implemented as just
calling the filter() method provided by the XMLRPC. Thus you can
filter for autoproposed test cases for example in this way:

> >>> for case in TestCase.search(summary__contains="Tessst", is_automated_proposed=True): print case
> ... 
> TC#12516  - Tessst case five (manual)
> TC#46490  - Tessst case one
> >>> for case in TestCase.search(summary__contains="Tessst", is_automated_proposed=False): print case
> ... 
> TC#35267  - Tessst case four
> TC#51362  - Tessst case three
> TC#35269  - Tessst case two

However, I had a look on your patch and adjusted it with support
for manual property and a couple of unit tests, so now you can
achieve the same by the following code as well:

> >>> for case in TestCase.search(summary__contains="Tessst"):
> ...     if case.autoproposed: print case
> ... 
> TC#12516  - Tessst case five (manual)
> TC#46490  - Tessst case one

The code for this is present in the devel branch. Please, check
whether it fits your needs and let me known if there's something
missing or broken.

http://fedorapeople.org/gitweb?p=psss/public_git/python-nitrate;a=commitdiff;h=890df53

Comment 2 Fedora Update System 2012-12-10 12:52:00 UTC
python-nitrate-0.9-0.el6 has been submitted as an update for Fedora EPEL 6.
https://admin.fedoraproject.org/updates/python-nitrate-0.9-0.el6

Comment 3 Fedora Update System 2012-12-10 12:52:01 UTC
python-nitrate-0.9-0.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/python-nitrate-0.9-0.fc17

Comment 4 Fedora Update System 2012-12-10 12:52:04 UTC
python-nitrate-0.9-0.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/python-nitrate-0.9-0.fc16

Comment 5 Fedora Update System 2012-12-10 12:52:08 UTC
python-nitrate-0.9-0.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/python-nitrate-0.9-0.fc18

Comment 6 Fedora Update System 2012-12-10 18:54:08 UTC
Package python-nitrate-0.9-0.el6:
* should fix your issue,
* was pushed to the Fedora EPEL 6 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=epel-testing python-nitrate-0.9-0.el6'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-EPEL-2012-13721/python-nitrate-0.9-0.el6
then log in and leave karma (feedback).

Comment 7 Fedora Update System 2012-12-19 08:32:14 UTC
python-nitrate-0.9-0.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 8 Fedora Update System 2012-12-19 08:43:03 UTC
python-nitrate-0.9-0.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 9 Fedora Update System 2013-01-07 18:51:50 UTC
python-nitrate-0.9-0.el6 has been pushed to the Fedora EPEL 6 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 10 Fedora Update System 2013-01-12 01:09:26 UTC
python-nitrate-0.9-0.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.


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