Bug 726133

Summary: XMLRPC: Implement TestRun.remove_cases()
Product: [Other] TCMS Reporter: Petr Šplíchal <psplicha>
Component: ApplicationAssignee: cqi
Status: VERIFIED --- QA Contact: Nobody <nobody>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.5CC: cqi, junzhang, ohudlick, ryang, vchen
Target Milestone: ---   
Target Release: 3.7.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 3.7.0-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Petr Šplíchal 2011-07-27 16:00:46 UTC
Description of problem:

Currently there is only TestRun.add_cases() function for adding
test cases to a run. Please, implement corresponding remove_cases
function so that we're able to remove case runs as well. Thanks.

Version-Release number of selected component (if applicable):
Nitrate 3.5.0

Comment 1 cqi 2012-04-09 09:50:45 UTC
(In reply to comment #0)
> Description of problem:
> 
> Currently there is only TestRun.add_cases() function for adding
> test cases to a run. Please, implement corresponding remove_cases
> function so that we're able to remove case runs as well. Thanks.
> 
> Version-Release number of selected component (if applicable):
> Nitrate 3.5.0

The new XMLRPC method TestRun.remove_cases has the same arguments as the TestRun.add_cases'.

Comment 2 Xin Gao 2012-04-24 11:50:57 UTC
Verify version 3.7.0-1 on stage -> PASS

Steps:
Configure Nitrate xml-rpc and make sure the xml-rpc work well.
Configure step pls refer to following link,
https://mirrorglass.englab.nay.redhat.com/XWiki/bin/view/Main/How%20to%20configure%20and%20use%20xml-rpc
Login with your kerberos account and password
enter into python dev env: $ python
import natrite: >>>from nitrate import NitrateKerbXmlrpc
Specify server: >>>n=NitrateKerbXmlrpc('XXX')
note: 'XXX' is TCMS env, such as: 'https://tcms.englab.nay.redhat.com/'

Call method,
>>>n.server.TestRun.remove_cases(1234, 54321)

Actual result:
result is the related test case run will be removed in the test run.