| Summary: | Test case create_date not exposed via XMLRPC | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Alexander Todorov <atodorov> | ||||
| Component: | python-nitrate | Assignee: | Petr Šplíchal <psplicha> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
| Severity: | urgent | Docs Contact: | |||||
| Priority: | urgent | ||||||
| Version: | 20 | CC: | jianchen, ohudlick, psplicha, ryang | ||||
| Target Milestone: | --- | Keywords: | FutureFeature | ||||
| Target Release: | --- | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | python-nitrate-1.0-0.fc20 | Doc Type: | Enhancement | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2014-05-18 22:54:07 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: | |||||
| Attachments: |
|
||||||
|
Description
Alexander Todorov
2013-09-16 13:14:47 UTC
I can get create_date field through TestCase.get(case_id).
In [9]: n.TestCase.get(1193)
Out[9]:
{'alias': '',
'arguments': None,
'attachment': [],
'author': 'zcerza',
'author_id': 1882,
'case_id': 1193,
'case_status': 'CONFIRMED',
'case_status_id': 2,
'category': 'Regression',
'category_id': 10,
'component': [25663, 26871],
'create_date': '2008-02-21 15:16:18',
'default_tester': 'rousseau',
'default_tester_id': 1791,
'estimated_time': '00:00:30',
'extra_link': None,
'is_automated': 0,
'is_automated_proposed': False,
'notes': None,
'plan': [210, 150],
'priority': 'P1',
'priority_id': 1,
'requirement': None,
'reviewer': None,
'reviewer_id': None,
'script': None,
'summary': 'home page',
'tag': [],
'text': {'action': '<OL>\n<LI>Go to Edit -> Preferences, and set the home page to something (such as http://www.google.com)</LI>\n<LI>Close preferences panel</LI>\n<LI>Click the Home bookmark on the Bookmarks Toolbar<BR/></LI>\n</OL>',
'author': 'zcerza',
'author_id': 1882,
'breakdown': '',
'case': 'home page',
'case_id': 1193,
'case_text_version': 3,
'create_date': '2008-02-26 11:35:14',
'effect': 'You are brought to the page you set as your home page.',
'id': 672,
'setup': 'Firefox smoketest.'}}
>>> import nitrate >>> nitrate.TestCase.get(1193) Traceback (most recent call last): File "<stdin>", line 1, in <module> AttributeError: type object 'TestCase' has no attribute 'get' >>> tc = nitrate.TestCase(1193) >>> print tc TC#1193 - home page >>> tc.create_date Traceback (most recent call last): File "<stdin>", line 1, in <module> AttributeError: 'TestCase' object has no attribute 'create_date' >>> $ rpm -q python-nitrate python-nitrate-0.9-0.el6.noarch Which version of python-nitrate supports TestCase.get() ? The proposed workaround is not working for me. ping any update there? (In reply to Alexander Todorov from comment #3) > ping any update there? Sorry for the late response, you have used python-nitrite which maintained by Petr Šplíchal<psplicha>, you can contact with him for help. Petr, please see previous comments. Is this a client side bug in the end? Hi. As for now, the "create_date" attribute is not provided by the nitrate module. I only added those attributes which were needed / available at the time when I wrote the module. It should be quite easy to add it. I see the value is correctly provided by XMLRPC. Moving the bug to python-nitrate component. Created attachment 812959 [details]
proposed patch
The attached patch works for me. Please build a new version of the module as soon as you can. Thanks for the patch. I've applied a slightly adjusted version into the devel branch including a simple unit test case: https://github.com/psss/python-nitrate/commit/981757a You can try the fresh python-nitrate from the testing repo: http://psss.fedorapeople.org/python-nitrate/testing/download/ Please, note that it's still a little bit experimental ;-) (In reply to Petr Šplíchal from comment #9) > You can try the fresh python-nitrate from the testing repo: > http://psss.fedorapeople.org/python-nitrate/testing/download/ > Please, note that it's still a little bit experimental ;-) works for me python-nitrate-1.0-0.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/python-nitrate-1.0-0.fc20 Package python-nitrate-1.0-0.fc20: * should fix your issue, * was pushed to the Fedora 20 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing python-nitrate-1.0-0.fc20' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2014-5095/python-nitrate-1.0-0.fc20 then log in and leave karma (feedback). python-nitrate-1.0-0.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report. |