Bug 1145920

Summary: [RFE][xmlrpc] When invoke TestCaseRun.create, user can input any build_id which exists in build define table to create caserun.
Product: [Other] TCMS Reporter: yangqiu <qiyang>
Component: XMLRPCAssignee: Yang Ren <ryang>
Status: NEW --- QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: 3.8.11CC: cqi, ryang
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: 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:
Attachments:
Description Flags
[RFE][xmlrpc] When invoke TestCaseRun.create, user can input any build_id which exists in build define table to create caserun. none

Description yangqiu 2014-09-24 06:36:43 UTC
Created attachment 940682 [details]
[RFE][xmlrpc] When invoke TestCaseRun.create, user can input any build_id which exists in build define table to create caserun.

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.User input a build_id (which exists in build define table, but it is neither the build of run's plan nor the build of case's plan) to create caserun via invoking TestCaseRun.create method.
2.when click 'add case to run' to create caserun from web gui, system will save current run's build_id to test_case_runs table.

Actual results:
system can create the caserun, that is, the caserun's build could be any build_id. 
while the service document for build_id is 'ID of a Build in plan's product'.

Expected results:
1.the service document for build_id is 'ID of a Build in run's product'
2.when invoke TestCaseRun.create to create caserun, system should check whether the input build_id equal to the current run's build_id or not, in order to keep the logic same as web gui. 

Additional info: