Details
| ID | AlgosecGetTicket |
|---|---|
| Language | python |
| From Version | 5.0.0 |
| Docker Image | demisto/python3:3.12.13.10116658 |
| Tags | Algosec |
README
Retrieves a FireFlow change request by its ID.
Script Data
| Name | Description |
|---|---|
| Script Type | python |
| Tags | Algosec |
Dependencies
This script uses the following commands and scripts.
- algosec-get-ticket
Inputs
| Argument Name | Description |
|---|---|
| ticketId | The ID of the requested change request. |
Outputs
There are no outputs for this script.
import demistomock as demisto def test_algosec_get_ticket(mocker): """ Given: - response mock. When: - running AlgosecGetTicket script. Then: - Ensure that the results were built correctly. """ from AlgosecGetTicket import main ticket = [{"Type": 3, "Contents": {"getTicketResponse": {"some_info": {"info": "test"}}}}] mocker.patch.object(demisto, "executeCommand", return_value=ticket) res = main() content = res.raw_response assert content == {"some_info": "info: test"}