def __init__(self, user=None, password=None, client_manager=None): self.url = urlparse.resource_join(self.resource) if client_manager: self.clientmanager = client_manager else: self.clientmanager = clientmanager.ClientManager( AuthOption(user, password)) if self.clientmanager.auth_required: self.clientmanager.auth()
def testcases_url(name): return urlparse.resource_join('projects', name, 'cases')
def scenarios_url(): return urlparse.resource_join('scenarios')
def resources_url(name, resuorce): return urlparse.resource_join('scenarios', name, resuorce)
def projects_url(): return urlparse.resource_join('projects')
def deployresults_url(): return urlparse.resource_join('deployresults')
def results_url(): return urlparse.resource_join('results')
def pods_url(): return urlparse.resource_join('pods')