Bug 1008489 - Test case create_date not exposed via XMLRPC
Summary: Test case create_date not exposed via XMLRPC
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: python-nitrate
Version: 20
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: ---
Assignee: Petr Šplíchal
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-09-16 13:14 UTC by Alexander Todorov
Modified: 2016-06-01 01:45 UTC (History)
4 users (show)

Fixed In Version: python-nitrate-1.0-0.fc20
Clone Of:
Environment:
Last Closed: 2014-05-18 22:54:07 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
proposed patch (1.68 KB, text/plain)
2013-10-16 14:24 UTC, Alexander Todorov
no flags Details

Description Alexander Todorov 2013-09-16 13:14:47 UTC
Description of problem:

TestCase.create_date field not accessioble via XMLRPC. Please fix immediately. I need this field in my reports script.

Comment 1 jianchen 2013-09-17 07:38:50 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 -&gt; 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.'}}

Comment 2 Alexander Todorov 2013-09-18 09:08:19 UTC
>>> 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.

Comment 3 Alexander Todorov 2013-09-27 11:36:04 UTC
ping any update there?

Comment 4 jianchen 2013-09-30 07:43:59 UTC
(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.

Comment 5 Alexander Todorov 2013-09-30 08:30:32 UTC
Petr,
please see previous comments. Is this a client side bug in the end?

Comment 6 Petr Šplíchal 2013-10-16 13:36:46 UTC
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.

Comment 7 Alexander Todorov 2013-10-16 14:24:58 UTC
Created attachment 812959 [details]
proposed patch

Comment 8 Alexander Todorov 2013-10-16 14:26:52 UTC
The attached patch works for me. Please build a new version of the module as soon as you can.

Comment 9 Petr Šplíchal 2013-10-19 12:44:43 UTC
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 ;-)

Comment 10 Alexander Todorov 2013-10-21 10:33:04 UTC
(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

Comment 11 Fedora Update System 2014-04-11 15:25:50 UTC
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

Comment 12 Fedora Update System 2014-04-15 15:36:52 UTC
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).

Comment 13 Fedora Update System 2014-05-18 22:54:07 UTC
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.


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