Home | History | Annotate | Download | only in hosts

Lines Matching refs:factory

11 from autotest_lib.server.hosts import base_label_unittest, factory
23 """Only method called by factory."""
34 """Only method called by factory."""
78 self._orig_ssh_engine = factory.SSH_ENGINE
79 self._orig_types = factory.host_types
80 self._orig_dict = factory.OS_HOST_DICT
81 self._orig_cros_host = factory.cros_host.CrosHost
82 self._orig_local_host = factory.local_host.LocalHost
83 self._orig_ssh_host = factory.ssh_host.SSHHost
85 self.host_types = factory.host_types = []
86 self.os_host_dict = factory.OS_HOST_DICT = {}
87 factory.cros_host.CrosHost = _gen_mock_host('cros_host')
88 factory.local_host.LocalHost = _gen_mock_conn('local')
89 factory.ssh_host.SSHHost = _gen_mock_conn('ssh')
94 factory.SSH_ENGINE = self._orig_ssh_engine
95 factory.host_types = self._orig_types
96 factory.OS_HOST_DICT = self._orig_dict
97 factory.cros_host.CrosHost = self._orig_cros_host
98 factory.local_host.LocalHost = self._orig_local_host
99 factory.ssh_host.SSHHost = self._orig_ssh_host
105 host_obj = factory.create_host(
119 host_obj = factory.create_host(machine)
131 host_obj = factory.create_host(machine)
143 host_obj = factory.create_host(machine)
151 host_obj = factory.create_host(machine)
159 host_obj = factory.create_host(machine)
167 factory.SSH_ENGINE = 'raw_ssh'
169 host_obj = factory.create_host(machine)
176 factory.SSH_ENGINE = 'unsupported'
179 factory.create_host(machine)
187 host_obj = factory.create_host(machine, foo='bar')
197 factory.ssh_user = 'foo'
198 factory.ssh_pass = 'bar'
199 factory.ssh_port = 1
200 factory.ssh_verbosity_flag = 'baz'
201 factory.ssh_options = 'zip'
204 host_obj = factory.create_host(machine)
211 del factory.ssh_user
212 del factory.ssh_pass
213 del factory.ssh_port
214 del factory.ssh_verbosity_flag
215 del factory.ssh_options
225 host_obj = factory.create_host(machine)
238 self._orig_testbed = factory.testbed.TestBed
239 factory.testbed.TestBed = _gen_mock_host('testbed')
245 factory.testbed.TestBed = self._orig_testbed
253 testbed_obj = factory.create_testbed(machine, foo='bar')
263 factory.ssh_user = 'foo'
264 factory.ssh_pass = 'bar'
265 factory.ssh_port = 1
266 factory.ssh_verbosity_flag = 'baz'
267 factory.ssh_options = 'zip'
270 testbed_obj = factory.create_testbed(machine)
278 del factory.ssh_user
279 del factory.ssh_pass
280 del factory.ssh_port
281 del factory.ssh_verbosity_flag
282 del factory.ssh_options
292 testbed_obj = factory.create_testbed(machine)