Bug 808344
| Summary: | Nitrate: search test case by autoproposed | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Martin Kudlej <mkudlej> |
| Component: | python-nitrate | Assignee: | Petr Šplíchal <psplicha> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | ohudlick, psplicha |
| 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: | 2013-01-07 18:51:48 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 874005 | ||
|
Description
Martin Kudlej
2012-03-30 08:00:13 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 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 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 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 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 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). 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. 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. 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. 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. |