def test_create_action_command_with_simple_runner(self): status_path, exec_path = '/tmp/what', '/remote/bin' config = schema.ConfigActionRunner('subprocess', status_path, exec_path) factory = actioncommand.create_action_runner_factory_from_config( config) assert_equal(factory.status_path, status_path) assert_equal(factory.exec_path, exec_path)
def test_create_default_action_command(self): config = schema.ConfigActionRunner( schema.ActionRunnerTypes.none.value, None, None, ) factory = actioncommand.create_action_runner_factory_from_config( config, ) assert type(factory) is actioncommand.NoActionRunnerFactory
def test_create_default_action_command(self): config = schema.ConfigActionRunner('none', None, None) factory = actioncommand.create_action_runner_factory_from_config( config) assert_equal(factory, actioncommand.NoActionRunnerFactory)