Example #1
0
    def setUp(self):
        super(ApiListHuntOutputPluginLogsHandlerTest, self).setUp()

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