def __init__(self, *args, **kwargs):
        super(WindowsSMBDriver, self).__init__(*args, **kwargs)

        self._remote_execute = winrm_helper.WinRMHelper(
            configuration=self.configuration).execute
        self._windows_utils = windows_utils.WindowsUtils(
            remote_execute=self._remote_execute)
        self._smb_helper = windows_smb_helper.WindowsSMBHelper(
            remote_execute=self._remote_execute,
            configuration=self.configuration)
Ejemplo n.º 2
0
    def __init__(self, driver_config=None, remote_execute=None):
        super(WindowsServiceInstanceManager,
              self).__init__(driver_config=driver_config)
        driver_config.append_config_values(windows_share_server_opts)

        self._use_cert_auth = self.get_config_option(
            "winrm_use_cert_based_auth")
        self._cert_pem_path = self.get_config_option("winrm_cert_pem_path")
        self._cert_key_pem_path = self.get_config_option(
            "winrm_cert_key_pem_path")
        self._check_auth_mode()

        self._remote_execute = (
            remote_execute
            or winrm_helper.WinRMHelper(configuration=driver_config).execute)
        self._windows_utils = windows_utils.WindowsUtils(
            remote_execute=self._remote_execute)
Ejemplo n.º 3
0
 def __init__(self, remote_execute, configuration):
     self._remote_exec = remote_execute
     self.configuration = configuration
     self._windows_utils = windows_utils.WindowsUtils(
         remote_execute=remote_execute)
Ejemplo n.º 4
0
 def setUp(self):
     self._remote_exec = mock.Mock()
     self._windows_utils = windows_utils.WindowsUtils(self._remote_exec)
     super(WindowsUtilsTestCase, self).setUp()