Example #1
0
    def setUp(self):
        super(HitachiHSPRestTestCase, self).setUp()
        self.hitachi_hsp_host = '172.24.47.190'
        self.hitachi_hsp_username = '******'
        self.hitachi_hsp_password = '******'

        self._driver = rest.HSPRestBackend(self.hitachi_hsp_host,
                                           self.hitachi_hsp_username,
                                           self.hitachi_hsp_password)
Example #2
0
    def __init__(self, *args, **kwargs):
        super(self.__class__, self).__init__([False],
                                             *args,
                                             config_opts=[hitachi_hsp_opts],
                                             **kwargs)

        self.private_storage = kwargs.get('private_storage')

        self.backend_name = self.configuration.safe_get('share_backend_name')
        self.hsp_host = self.configuration.safe_get('hitachi_hsp_host')

        self.hsp = rest.HSPRestBackend(
            self.hsp_host, self.configuration.safe_get('hitachi_hsp_username'),
            self.configuration.safe_get('hitachi_hsp_password'))