def setUp(self): super(TintriDriverTestCase, self).setUp() self.context = context.get_admin_context() kwargs = {'configuration': self.create_configuration()} self._driver = TintriDriver(**kwargs) self._driver._hostname = 'host' self._driver._username = '******' self._driver._password = '******' self._driver._api_version = 'v310' self._provider_location = 'localhost:/share' self._driver._mounted_shares = [self._provider_location] self.fake_stubs()
def setUp(self): super(TintriDriverTestCase, self).setUp() self.context = context.get_admin_context() self.configuration.nfs_mount_point_base = '/mnt/test' self.configuration.nfs_mount_options = None self.configuration.nas_mount_options = None self._driver = TintriDriver(configuration=self.configuration) self._driver._hostname = 'host' self._driver._username = '******' self._driver._password = '******' self._driver._api_version = 'v310' self._driver._image_cache_expiry = 30 self._provider_location = 'localhost:/share' self._driver._mounted_shares = [self._provider_location] self.fake_stubs()