Bug 865726 - Traceback when getting test run build
Summary: Traceback when getting test run build
Keywords:
Status: CLOSED WORKSFORME
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:
TreeView+ depends on / blocked
 
Reported: 2012-10-12 09:16 UTC by Petr Šplíchal
Modified: 2016-06-01 01:43 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-12-06 11:08:52 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Petr Šplíchal 2012-10-12 09:16:04 UTC
Description of problem:
>>> print TestRun(47717).build
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.6/site-packages/nitrate/api.py", line 192, in getter
    self._get()
  File "/usr/lib/python2.6/site-packages/nitrate/api.py", line 2682, in _get
    self._build = Build(testrunhash["build_id"])
KeyError: 'build_id'

Version-Release number of selected component (if applicable):
python-nitrate-0.9-0.el6.noarch

Comment 1 Petr Šplíchal 2012-12-06 11:08:52 UTC
Looks like this has been fixed on the server side:

>>> print TestRun(47717).build
[INFO] Fetching test run TR#47717
[DEBUG] Initializing test run TR#47717
[DEBUG] {'auto_update_run_status': False,
 'build': 'unspecified',
 'build_id': 1156,
 'case_run_status': '2:65',
...

The 'build_id' key is now present in the testrunhash.


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