def setUp(self): self.client = restclient.RESTClient(ssl_enabled=False) self.fake_userid = 'userid01' self.base_url = 'http://127.0.0.1:8888' self.headers = {'Content-Type': 'application/json'} self.headers.update(self.headers or {}) self.response = FakeResp() self.client_ssl = restclient.RESTClient(ssl_enabled=True) self.base_url_ssl = 'https://127.0.0.1:8888'
def __init__(self, ip_addr='127.0.0.1', port=8080, ssl_enabled=False, verify=False, token_path='/etc/zvmsdk/token.dat'): self.client = restclient.RESTClient(ip_addr, port, ssl_enabled, verify, token_path)