NetwitnessSAGetAvailableAssignees

Returns the available NetWitness SA users to be assigned to incidents.

python · RSA NetWitness Security Analytics

Details

IDNetwitnessSAGetAvailableAssignees
Languagepython
From Version5.0.0
Docker Imagedemisto/python3:3.12.13.10116658
TagsRSA NetWitness Security Analytics

README

Returns the available NetWitness SA users to be assigned to incidents.

Script Data


Name Description
Script Type python
Tags RSA NetWitness Security Analytics

Dependencies


This script uses the following commands and scripts.

  • nw-get-available-assignees

Inputs


There are no inputs for this script.

Outputs


There are no outputs for this script.

import demistomock as demisto


def test_netwitness_im_get_available_assignees(mocker):
    """
    Given:
        - response mock.
    When:
        - running NetwitnessSAGetAvailableAssignees script.
    Then:
        - Ensure that the results were built correctly.
    """
    from NetwitnessSAGetAvailableAssignees import netwitness_im_get_available_assignees

    entry = [{"Type": 3, "Contents": {"availableAssignees": {"some_info": {"info": "test"}}}}]
    mocker.patch.object(demisto, "executeCommand", return_value=entry)
    results_mock = mocker.patch.object(demisto, "results")
    netwitness_im_get_available_assignees()
    assert results_mock.call_args[0][0]["Contents"] == [{"some_info": "info: test"}]