Red Hat Bugzilla – Bug 714158
Provide default config for NitrateKerbXmlrpc
Last modified: 2016-05-31 21:42:00 EDT
Created attachment 505275 [details]
Patch implementig user config for NitrateKerbXmlrpc
Description of problem:
It would be nice if the python driver read the Nitrate server url
from user config file so that it does not have to be hard-coded in
respective scripts. I suggest to use ~/.nitrate in user home dir.
The resulting code could look like this:
from nitrate import NitrateKerbXmlrpc
n = nitrate.NitrateKerbXmlrpc()
The config file would look like this:
url = https://tcms.engineering.redhat.com/xmlrpc/
Attaching patch for the desired functionality.
Adding config file is more convenient, will consider this.
Thanks for your patch.
BTW, feel free to customize your nitrate.py to meet your needs for now :)
Thanks for considering the patch. I think the best approach here
would be to make it work fine for both krb and non-krb auth. The
user would do just general
connection = NitrateXmlrpc()
and based on the user configuration krb/basic auth method would be