Bug 1145909 - [xmlrpc] user can invoke TestCaseRun.create to create caserun, while the document tell user it will return ValueError.
Summary: [xmlrpc] user can invoke TestCaseRun.create to create caserun, while the docu...
Keywords:
Status: NEW
Alias: None
Product: TCMS
Classification: Other
Component: XMLRPC
Version: 3.8.11
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
: ---
Assignee: Yang Ren
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-09-24 06:08 UTC by yangqiu
Modified: 2023-10-20 16:24 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)
[xmlrpc] user can invoke TestCaseRun.create to create caserun, while the document tell user it will return ValueError. (59.79 KB, image/png)
2014-09-24 06:08 UTC, yangqiu
no flags Details

Description yangqiu 2014-09-24 06:08:32 UTC
Created attachment 940678 [details]
[xmlrpc] user can invoke TestCaseRun.create to create caserun, while the document tell user it will return ValueError.

Description of problem:
as summary.

Version-Release number of selected component (if applicable):
v3.8.11-1 on qa server.

How reproducible:
100%

Steps to Reproduce:
1.Invoke TestCaseRun.create to create caserun, like the follow, system will save the caserun.
In [46]: values = {
   ....:       'run': 72398,
   ....:       'case': 293343,
   ....:       'build': 2148,
   ....:   }

In [47]: n.TestCaseRun.create(values)
Out[47]: 
{'assignee': 'sluo',
 'assignee_id': 2978,
 'build': '2012-04-23_09-23-46',
 'build_id': 2148,
 'case': '[virtual block][virtio scsi] acpi operation after hot-unplug device',
 'case_id': 293343,
 'case_run_id': 5983549,
 'case_run_status': 'IDLE',
 'case_run_status_id': 1,
 'case_text_version': 1,
 'close_date': None,
 'environment_id': 0,
 'links': [],
 'notes': '',
 'run': 'Auto TestRun for [Rhevm][Networking][3.1 Features] Export / Import Vm TestPlan',
 'run_id': 72398,
 'running_date': None,
 'sortkey': None,
 'tested_by': None,
 'tested_by_id': None}
2.Inspect the service document for TestCaseRun.create, there is a tips like:
*** It always report - ValueError: invalid literal for int() with base 10: '' ***

Actual results:
The tips for this method was redundant.

Expected results:
Remove the redundant tips in service document.

Additional info:


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