def setUp(self): super(ApiListHuntOutputPluginLogsHandlerTest, self).setUp() self.client_ids = self.SetupClients(5) self.handler = hunt_plugin.ApiListHuntOutputPluginLogsHandler() self.output_plugins = [ output_plugin.OutputPluginDescriptor( plugin_name=DummyHuntTestOutputPlugin.__name__, plugin_args=DummyHuntTestOutputPlugin.args_type( filename_regex="foo")), output_plugin.OutputPluginDescriptor( plugin_name=DummyHuntTestOutputPlugin.__name__, plugin_args=DummyHuntTestOutputPlugin.args_type( filename_regex="bar")) ]
def ListHuntOutputPluginLogs(self, args, token=None): return api_hunt.ApiListHuntOutputPluginLogsHandler()