diff --git a/listeners/functions/search.py b/listeners/functions/search.py index 4d99db5..0e3883d 100644 --- a/listeners/functions/search.py +++ b/listeners/functions/search.py @@ -54,7 +54,7 @@ def search_step_callback( for sample in samples ] - complete(outputs={"search_result": results}) + complete(outputs={"search_results": results}) except Exception as e: if isinstance(e, SlackResponseError): logger.error(f"Failed to fetch or parse sample data. Error details: {str(e)}", exc_info=e) diff --git a/manifest.json b/manifest.json index e27cabd..0c933a7 100644 --- a/manifest.json +++ b/manifest.json @@ -90,12 +90,12 @@ } }, "output_parameters": { - "search_result": { + "search_results": { "type": "slack#/types/search_results", "title": "Search Result", "description": "An array containing the search results based on the inputs", "is_required": true, - "name": "search_result" + "name": "search_results" } } } diff --git a/tests/listeners/functions/test_search.py b/tests/listeners/functions/test_search.py index 9c26777..97b39c9 100644 --- a/tests/listeners/functions/test_search.py +++ b/tests/listeners/functions/test_search.py @@ -65,7 +65,7 @@ def test_search_step_callback_success(self, mock_fetch_sample_data): call_args = self.mock_complete.call_args outputs = call_args.kwargs["outputs"] - assert outputs["search_result"] == self.mock_sample_data["samples"] + assert outputs["search_results"] == self.mock_sample_data["samples"] self.mock_ack.assert_called_once() self.mock_fail.assert_not_called() @@ -117,7 +117,7 @@ def test_search_step_callback_no_filters(self, mock_fetch_sample_data): self.mock_complete.assert_called_once() call_args = self.mock_complete.call_args outputs = call_args.kwargs["outputs"] - assert outputs["search_result"] == [] + assert outputs["search_results"] == [] self.mock_ack.assert_called_once()