Bug 862231

Summary: Test plan searching crashes
Product: [Fedora] Fedora Reporter: Martin Kudlej <mkudlej>
Component: python-nitrateAssignee: Petr Šplíchal <psplicha>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16CC: 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: 2012-12-06 16:24:31 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:
Embargoed:

Description Martin Kudlej 2012-10-02 11:40:30 UTC
Description of problem:
>>> for plan in TestPlan.search(product__name="Red Hat Enterprise MRG",default_product_version="2.2"):
...   print plan.name
... 
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.7/site-packages/nitrate/api.py", line 2272, in search
    for hash in Nitrate()._server.TestPlan.filter(dict(query))]
  File "/usr/lib/python2.7/site-packages/nitrate/api.py", line 2249, in __init__
    self._get(testplanhash=testplanhash)
  File "/usr/lib/python2.7/site-packages/nitrate/api.py", line 2356, in _get
    self._type = PlanType(testplanhash["type_id"])
  File "/usr/lib/python2.7/site-packages/nitrate/api.py", line 731, in __init__
    "Not a valid Test Plan Type id: '{0}'".format(plantype))
nitrate.xmlrpc.NitrateError: Not a valid Test Plan Type id: '36'

Version-Release number of selected component (if applicable):
python-nitrate-0.9-0.fc16.noarch also visible in stable version 0.8

How reproducible:
100%

Comment 1 Petr Šplíchal 2012-10-02 13:10:19 UTC
I believe this is a duplicate of bug 841299. Am I right, Martin? I
expect this to be fixed in about two to three weeks.

Comment 2 Martin Kudlej 2012-10-02 13:18:52 UTC
I don't know, I've just performed plan search.

Comment 3 Petr Šplíchal 2012-12-06 16:24:31 UTC
I have verified that fix for bug 841299 resolves this issue as
well ---> closing as duplicate.

*** This bug has been marked as a duplicate of bug 841299 ***