def test_dm_instance(self): FakeDeviceConnect.reset() FakeJobHandler.reset() kill_device_manager(TestInfraDM._dm_greenlet) self.check_dm_instance() TestInfraDM._dm_greenlet = gevent.spawn(launch_device_manager, self._cluster_id, TestInfraDM._api_server_ip, TestInfraDM._api_server_port) wait_for_device_manager_up()
def setUpClass(cls, extra_config_knobs=None, dm_config_knobs=None): extra_config = [ ('DEFAULTS', 'multi_tenancy', 'False'), ('DEFAULTS', 'aaa_mode', 'no-auth'), ] if extra_config_knobs: extra_config = extra_config + extra_config_knobs super(DMTestCase, cls).setUpClass(extra_config_knobs=extra_config) cls._dm_greenlet = gevent.spawn(test_common.launch_device_manager, cls.__name__, cls._api_server_ip, cls._api_server_port, dm_config_knobs) test_common.wait_for_device_manager_up() cls._st_greenlet = gevent.spawn(test_common.launch_schema_transformer, cls._cluster_id, cls.__name__, cls._api_server_ip, cls._api_server_port) test_common.wait_for_schema_transformer_up()