Bug 808691

Summary: [REF] xmlrpc need a method for mapping tag_id and tag_name
Product: [Other] TCMS Reporter: Johnny Liu <jialiu>
Component: ApplicationAssignee: Yang Ren <ryang>
Status: VERIFIED --- QA Contact: Nobody <nobody>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 3.5CC: junzhang, 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 Johnny Liu 2012-03-31 08:52:17 UTC
Description of problem:
xmlrpc does not have a method to help user to map tag id to tag name, or map tag name to tag id.

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


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 yawei Li 2012-04-11 02:54:52 UTC
will be resolved on 3.7.0 release.

Comment 2 Xin Gao 2012-04-24 11:50:38 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/'

1 >>>values_id= {'ids': [121, 123, ]}
2 >>>n.server.Tag.get_tags(values)
3 >>>values_name= {'names': ['abc', 'cba', ]}
4 >>>n.server.Tag.get_tags(values)
Actual result:
after step 2, result is the tag names of tag id.
after step 4, result is the tag ids of tag names.