Rally: PYRAL with APIKey - Can not connect with Proxy

book

Article ID: 140594

calendar_today

Updated On:

Products

CA Agile Central SaaS (Rally)

Issue/Introduction

I am unable to set up a connection using PYRAL using our proxy server. 

Can you share any documentation on the required setup to use PYRAL with a proxy connection? 

#rallyfire.py

import sys

import os

from pyral import Rally, rallyWorkset

 

os.environ['HTTPS_PROXY'] = 'proxy.server.com:8080'

options = [arg for arg in sys.argv[1:] if arg.startswith('--')]

args    = [arg for arg in sys.argv[1:] if arg not in options]

print (args)

print(options)

server, user, password, apikey, workspace, project = rallyWorkset(options)

rally = Rally(server='rally1.rallydev.com', apikey='xxx')

rally.enableLogging('mypyral.log')




#my.cfg 

SERVER = rally1.rallydev.com

APIKey  = _xxxxx

#USER   = [email protected]

#PASSWORD = ve8y-secr3T

#WORKSPACE = My Trial Workspace

#PROJECT = Project 1

 

Resolution

This is out of the scope of what we support, but I find a couple of articles that may be helpful to you.  They are not Rally articles, but they looked very similar to what you were doing - and they are from reputable sites:

https://stackoverflow.com/questions/51926096/rally-host-is-non-existent-or-unreachable-via-pyral

https://github.com/RallyTools/RallyRestToolkitForPython/blob/master/examples/periscope.py

https://stackoverflow.com/questions/30918209/rally-pyral-api-key-proxy-issue

And here is another Knowledge article that may be helpful: https://ca-broadcom.wolkenservicedesk.com/external/article?articleId=121617