def setUp(self): super(TestDotHillClient, self).setUp() self.login = '******' self.passwd = '!manage' self.ip = '10.0.0.1' self.protocol = 'http' self.client = dothill.DotHillClient(self.ip, self.login, self.passwd, self.protocol)
def __init__(self, config): self.config = config self.vendor_name = "DotHill" self.backend_name = self.config.dothill_backend_name self.backend_type = self.config.dothill_backend_type self.client = dothill.DotHillClient(self.config.san_ip, self.config.san_login, self.config.san_password, self.config.dothill_wbi_protocol)
def __init__(self, config): self.config = config self.vendor_name = "DotHill" self.backend_name = self.config.dothill_backend_name self.backend_type = self.config.dothill_backend_type self.api_protocol = self.config.dothill_api_protocol ssl_verify = False if (self.api_protocol == 'https' and self.config.dothill_verify_certificate): ssl_verify = self.config.dothill_verify_certificate_path or True self.client = dothill.DotHillClient(self.config.san_ip, self.config.san_login, self.config.san_password, self.api_protocol, ssl_verify)