STA-FetchListContent
This script will get the Unusual Activity Group from "sta_unusual_activity_group" List.
python · Thales SafeNet Trusted Access
Details
| ID | STA-FetchListContent |
|---|---|
| Language | python |
| From Version | 6.0.0 |
| Docker Image | demisto/python3:3.12.13.10116658 |
README
This script will get the Unusual Activity Group from “sta_unusual_activity_group” List.
Script Data
| Name | Description |
|---|---|
| Script Type | python3 |
| Tags | |
| Cortex XSOAR Version | 6.0.0 |
Dependencies
This script uses the following commands and scripts.
- getList
Inputs
| Argument Name | Description |
|---|---|
| list_name | Name of the list containing the Unusual Activity Group. |
Outputs
| Path | Description | Type |
|---|---|---|
| STA.GET.GROUP | Return Unusual Activity Group name. | string |
import demistomock as demisto from STAFetchListContent import get_unusual_activity_group_sta # Defining output of the getList command for mocker. xsoar_list_contents = [{"Contents": "TestUnusualActivityGroup"}] # Tests get_unusual_activity_group_sta function. def test_get_unusual_activity_group_sta(mocker): execute_mocker = mocker.patch.object(demisto, "executeCommand", return_value=xsoar_list_contents) expected_method_arg = { "list_name": "sta_unusual_activity_group", } response = get_unusual_activity_group_sta(expected_method_arg) expected_command = "getList" expected_command_args = { "listName": expected_method_arg["list_name"], } execute_mocker.assert_called_with(expected_command, expected_command_args) assert response.outputs == "TestUnusualActivityGroup"