INCIDENTS_RESULT = [
    {'ModuleName': 'InnerServicesModule', 'Brand': 'Builtin', 'Category': 'Builtin', 'ID': '', 'Version': 0, 'Type': 1,
     'Contents': {
         'ErrorsPrivateDoNotUse': None, 'data': [
             {
                 'CustomFields': {'dbotpredictionprobability': 0,
                                  'detectionsla': {'accumulatedPause': 0,
                                                   'breachTriggered': False,
                                                   'dueDate': '0001-01-01T00:00:00Z',
                                                   'endDate': '0001-01-01T00:00:00Z',
                                                   'lastPauseDate': '0001-01-01T00:00:00Z',
                                                   'runStatus': 'idle',
                                                   'sla': 20, 'slaStatus': -1,
                                                   'startDate': '0001-01-01T00:00:00Z',
                                                   'totalDuration': 0},
                                  'remediationsla': {'accumulatedPause': 0,
                                                     'breachTriggered': False,
                                                     'dueDate': '0001-01-01T00:00:00Z',
                                                     'endDate': '0001-01-01T00:00:00Z',
                                                     'lastPauseDate': '0001-01-01T00:00:00Z',
                                                     'runStatus': 'idle',
                                                     'sla': 7200,
                                                     'slaStatus': -1,
                                                     'startDate': '0001-01-01T00:00:00Z',
                                                     'totalDuration': 0},
                                  'timetoassignment': {'accumulatedPause': 0,
                                                       'breachTriggered': False,
                                                       'dueDate': '0001-01-01T00:00:00Z',
                                                       'endDate': '0001-01-01T00:00:00Z',
                                                       'lastPauseDate': '0001-01-01T00:00:00Z',
                                                       'runStatus': 'idle',
                                                       'sla': 0,
                                                       'slaStatus': -1,
                                                       'startDate': '0001-01-01T00:00:00Z',
                                                       'totalDuration': 0},
                                  'urlsslverification': []}, 'ShardID': 0,
                 'account': '', 'activated': '0001-01-01T00:00:00Z',
                 'allRead': False, 'allReadWrite': False, 'attachment': None,
                 'autime': 1601398110261438200, 'canvases': None,
                 'category': '', 'closeNotes': '', 'closeReason': '',
                 'closed': '0001-01-01T00:00:00Z', 'closingUserId': '',
                 'created': '2020-09-29T16:48:30.261438285Z',
                 'dbotCreatedBy': 'admin', 'dbotCurrentDirtyFields': None,
                 'dbotDirtyFields': None, 'dbotMirrorDirection': '',
                 'dbotMirrorId': '', 'dbotMirrorInstance': '',
                 'dbotMirrorLastSync': '0001-01-01T00:00:00Z',
                 'dbotMirrorTags': None, 'details': '', 'droppedCount': 0,
                 'dueDate': '2020-10-09T16:48:30.261438285Z',
                 'feedBased': False, 'hasRole': False, 'id': '7',
                 'investigationId': '7', 'isPlayground': False,
                 'labels': [{'type': 'Instance', 'value': 'admin'},
                            {'type': 'Brand', 'value': 'Manual'}],
                 'lastJobRunTime': '0001-01-01T00:00:00Z',
                 'lastOpen': '2020-09-30T15:40:11.737120193Z',
                 'linkedCount': 0, 'linkedIncidents': None,
                 'modified': '2020-09-30T15:40:36.604919119Z',
                 'name': 'errors',
                 'notifyTime': '2020-09-29T16:48:30.436371249Z',
                 'occurred': '2020-09-29T16:48:30.261438058Z',
                 'openDuration': 62265, 'owner': '', 'parent': '',
                 'phase': '', 'playbookId': 'AutoFocusPolling',
                 'previousAllRead': False, 'previousAllReadWrite': False,
                 'previousRoles': None, 'rawCategory': '',
                 'rawCloseReason': '', 'rawJSON': '', 'rawName': 'errors',
                 'rawPhase': '', 'rawType': 'Unclassified', 'reason': '',
                 'reminder': '0001-01-01T00:00:00Z', 'roles': None,
                 'runStatus': 'error', 'severity': 0, 'sla': 0,
                 'sortValues': ['_score'], 'sourceBrand': 'Manual',
                 'sourceInstance': 'admin', 'status': 1,
                 'type': 'Unclassified', 'version': 8}, {
                 'CustomFields': {'dbotpredictionprobability': 0,
                                  'detectionsla': {'accumulatedPause': 0,
                                                   'breachTriggered': False,
                                                   'dueDate': '0001-01-01T00:00:00Z',
                                                   'endDate': '0001-01-01T00:00:00Z',
                                                   'lastPauseDate': '0001-01-01T00:00:00Z',
                                                   'runStatus': 'idle',
                                                   'sla': 20,
                                                   'slaStatus': -1,
                                                   'startDate': '0001-01-01T00:00:00Z',
                                                   'totalDuration': 0},
                                  'integrationscategories': ['Utilities',
                                                             'Utilities',
                                                             'Utilities',
                                                             'Utilities',
                                                             'Endpoint',
                                                             'Messaging',
                                                             'Data Enrichment & Threat Intelligence'],
                                  'integrationsfailedcategories': [
                                      'Data Enrichment & Threat Intelligence',
                                      'Endpoint'],
                                  'numberofentriesiderrors': 0,
                                  'numberoffailedincidents': 0,
                                  'remediationsla': {'accumulatedPause': 0,
                                                     'breachTriggered': False,
                                                     'dueDate': '0001-01-01T00:00:00Z',
                                                     'endDate': '0001-01-01T00:00:00Z',
                                                     'lastPauseDate': '0001-01-01T00:00:00Z',
                                                     'runStatus': 'idle',
                                                     'sla': 7200,
                                                     'slaStatus': -1,
                                                     'startDate': '0001-01-01T00:00:00Z',
                                                     'totalDuration': 0},
                                  'timetoassignment': {
                                      'accumulatedPause': 0,
                                      'breachTriggered': False,
                                      'dueDate': '0001-01-01T00:00:00Z',
                                      'endDate': '0001-01-01T00:00:00Z',
                                      'lastPauseDate': '0001-01-01T00:00:00Z',
                                      'runStatus': 'idle', 'sla': 0,
                                      'slaStatus': -1,
                                      'startDate': '0001-01-01T00:00:00Z',
                                      'totalDuration': 0},
                                  'totalfailedinstances': 2,
                                  'totalgoodinstances': 7,
                                  'totalinstances': 9,
                                  'unassignedincidents': [],
                                  'urlsslverification': []}, 'ShardID': 0,
                 'account': '', 'activated': '0001-01-01T00:00:00Z',
                 'allRead': False, 'allReadWrite': False,
                 'attachment': None, 'autime': 1601388165826470700,
                 'canvases': None, 'category': '',
                 'closeNotes': 'Created a new incident type.',
                 'closeReason': '', 'closed': '0001-01-01T00:00:00Z',
                 'closingUserId': '',
                 'created': '2020-09-29T14:02:45.82647067Z',
                 'dbotCreatedBy': 'admin', 'dbotCurrentDirtyFields': None,
                 'dbotDirtyFields': None, 'dbotMirrorDirection': '',
                 'dbotMirrorId': '', 'dbotMirrorInstance': '',
                 'dbotMirrorLastSync': '0001-01-01T00:00:00Z',
                 'dbotMirrorTags': None, 'details': '', 'droppedCount': 0,
                 'dueDate': '0001-01-01T00:00:00Z', 'feedBased': False,
                 'hasRole': False, 'id': '3', 'investigationId': '3',
                 'isPlayground': False,
                 'labels': [{'type': 'Instance', 'value': 'admin'},
                            {'type': 'Brand', 'value': 'Manual'}],
                 'lastJobRunTime': '0001-01-01T00:00:00Z',
                 'lastOpen': '2020-09-30T15:40:48.618174584Z',
                 'linkedCount': 0, 'linkedIncidents': None,
                 'modified': '2020-09-30T15:41:15.184226213Z',
                 'name': 'Incident with error',
                 'notifyTime': '2020-09-29T14:09:06.048819578Z',
                 'occurred': '2020-09-29T14:02:45.826470478Z',
                 'openDuration': 686, 'owner': 'admin', 'parent': '',
                 'phase': '',
                 'playbookId': 'JOB - Integrations and Playbooks Health Check',
                 'previousAllRead': False, 'previousAllReadWrite': False,
                 'previousRoles': None, 'rawCategory': '',
                 'rawCloseReason': '', 'rawJSON': '',
                 'rawName': 'Incident with error', 'rawPhase': '',
                 'rawType': 'testing', 'reason': '',
                 'reminder': '0001-01-01T00:00:00Z', 'roles': None,
                 'runStatus': 'error', 'severity': 0, 'sla': 0,
                 'sortValues': ['_score'], 'sourceBrand': 'Manual',
                 'sourceInstance': 'admin', 'status': 1, 'type': 'testing',
                 'version': 13}, {
                 'CustomFields': {'dbotpredictionprobability': 0,
                                  'detectionsla': {'accumulatedPause': 0,
                                                   'breachTriggered': False,
                                                   'dueDate': '0001-01-01T00:00:00Z',
                                                   'endDate': '0001-01-01T00:00:00Z',
                                                   'lastPauseDate': '0001-01-01T00:00:00Z',
                                                   'runStatus': 'idle',
                                                   'sla': 20,
                                                   'slaStatus': -1,
                                                   'startDate': '0001-01-01T00:00:00Z',
                                                   'totalDuration': 0},
                                  'remediationsla': {'accumulatedPause': 0,
                                                     'breachTriggered': False,
                                                     'dueDate': '0001-01-01T00:00:00Z',
                                                     'endDate': '0001-01-01T00:00:00Z',
                                                     'lastPauseDate': '0001-01-01T00:00:00Z',
                                                     'runStatus': 'idle',
                                                     'sla': 7200,
                                                     'slaStatus': -1,
                                                     'startDate': '0001-01-01T00:00:00Z',
                                                     'totalDuration': 0},
                                  'sourceusername': 'JohnJoe',
                                  'timetoassignment': {
                                      'accumulatedPause': 0,
                                      'breachTriggered': False,
                                      'dueDate': '0001-01-01T00:00:00Z',
                                      'endDate': '0001-01-01T00:00:00Z',
                                      'lastPauseDate': '0001-01-01T00:00:00Z',
                                      'runStatus': 'idle', 'sla': 0,
                                      'slaStatus': -1,
                                      'startDate': '0001-01-01T00:00:00Z',
                                      'totalDuration': 0},
                                  'urlsslverification': []}, 'ShardID': 0,
                 'account': '', 'activated': '0001-01-01T00:00:00Z',
                 'allRead': False, 'allReadWrite': False,
                 'attachment': None, 'autime': 1601480646930752000,
                 'canvases': None, 'category': '', 'closeNotes': '',
                 'closeReason': '', 'closed': '0001-01-01T00:00:00Z',
                 'closingUserId': '',
                 'created': '2020-09-30T15:44:06.930751906Z',
                 'dbotCreatedBy': 'admin', 'dbotCurrentDirtyFields': None,
                 'dbotDirtyFields': None, 'dbotMirrorDirection': '',
                 'dbotMirrorId': '', 'dbotMirrorInstance': '',
                 'dbotMirrorLastSync': '0001-01-01T00:00:00Z',
                 'dbotMirrorTags': None, 'details': '', 'droppedCount': 0,
                 'dueDate': '2020-10-10T15:44:06.930751906Z',
                 'feedBased': False, 'hasRole': False, 'id': '48',
                 'investigationId': '48', 'isPlayground': False,
                 'labels': [{'type': 'Instance', 'value': 'admin'},
                            {'type': 'Brand', 'value': 'Manual'}],
                 'lastJobRunTime': '0001-01-01T00:00:00Z',
                 'lastOpen': '0001-01-01T00:00:00Z', 'linkedCount': 0,
                 'linkedIncidents': None,
                 'modified': '2020-09-30T15:46:35.843037049Z',
                 'name': 'Multiple Failed Logins',
                 'notifyTime': '2020-09-30T15:46:35.836929058Z',
                 'occurred': '2020-09-30T15:44:06.930751702Z',
                 'openDuration': 0, 'owner': 'admin', 'parent': '',
                 'phase': '',
                 'playbookId': 'Account Enrichment - Generic v2.1',
                 'previousAllRead': False, 'previousAllReadWrite': False,
                 'previousRoles': None, 'rawCategory': '',
                 'rawCloseReason': '', 'rawJSON': '',
                 'rawName': 'Multiple Failed Logins', 'rawPhase': '',
                 'rawType': 'Unclassified', 'reason': '',
                 'reminder': '0001-01-01T00:00:00Z', 'roles': None,
                 'runStatus': 'error', 'severity': 1, 'sla': 0,
                 'sortValues': ['_score'], 'sourceBrand': 'Manual',
                 'sourceInstance': 'admin', 'status': 1,
                 'type': 'Unclassified', 'version': 10}], 'total': 3},
     'HumanReadable': None, 'ImportantEntryContext': None, 'EntryContext': None, 'IgnoreAutoExtract': False,
     'ReadableContentsFormat': '', 'ContentsFormat': 'json', 'File': '', 'FileID': '', 'FileMetadata': None,
     'System': '', 'Note': False, 'Evidence': False, 'EvidenceID': '', 'Tags': None,
     'Metadata': {'id': '', 'version': 0, 'modified': '0001-01-01T00:00:00Z', 'sortValues': None, 'roles': None,
                  'allRead': False, 'allReadWrite': False, 'previousRoles': None, 'previousAllRead': False,
                  'previousAllReadWrite': False, 'hasRole': False, 'dbotCreatedBy': '', 'ShardID': 0, 'type': 1,
                  'created': '2020-10-03T12:39:59.908094336Z', 'retryTime': '0001-01-01T00:00:00Z', 'user': '',
                  'errorSource': '', 'contents': '', 'format': 'json', 'investigationId': '51', 'file': '',
                  'fileID': '', 'parentId': '156@51', 'pinned': False, 'fileMetadata': None,
                  'parentContent': '!getIncidents page="0" query="-status:closed and runStatus:error"',
                  'parentEntryTruncated': False, 'system': '', 'reputations': None, 'category': '', 'note': False,
                  'isTodo': False, 'tags': None, 'tagsRaw': None, 'startDate': '0001-01-01T00:00:00Z', 'times': 0,
                  'recurrent': False, 'endingDate': '0001-01-01T00:00:00Z', 'timezoneOffset': 0, 'cronView': False,
                  'scheduled': False, 'entryTask': None, 'taskId': '', 'playbookId': '', 'reputationSize': 0,
                  'contentsSize': 0, 'brand': 'Builtin', 'instance': 'Builtin', 'IndicatorTimeline': None,
                  'mirrored': False}, 'IndicatorTimeline': None}]

RESTAPI_TAS_RESULT = [
    {
        "ModuleName": "Demisto REST API_instance_1",
        "Brand": "Demisto REST API",
        "Category": "Utilities",
        "ID": "",
        "Version": 0,
        "Type": 1,
        "Contents": {
            "response": [
                {
                    "ancestors": [
                        "AutoFocusPolling"
                    ],
                    "arguments": {
                        "additionalPollingCommandArgNames": "",
                        "additionalPollingCommandArgValues": "",
                        "ids": "",
                        "pollingCommand": "",
                        "pollingCommandArgName": "ids"
                    },
                    "comments": False,
                    "completedBy": "DBot",
                    "completedDate": "2020-09-29T16:48:30.427891714Z",
                    "doNotSaveTaskHistory": True,
                    "dueDate": "0001-01-01T00:00:00Z",
                    "dueDateDuration": 0,
                    "entries": [
                        "8@3",
                        "9@3"
                    ],
                    "evidenceData": {
                        "description": None,
                        "occurred": None,
                        "tags": None
                    },
                    "forEachIndex": 0,
                    "forEachInputs": None,
                    "id": "3",
                    "indent": 0,
                    "nextTasks": {
                        "#none#": [
                            "1"
                        ]
                    },
                    "note": False,
                    "outputs": {},
                    "playbookInputs": None,
                    "previousTasks": {
                        "#none#": [
                            "0"
                        ]
                    },
                    "quietMode": 2,
                    "reputationCalc": 0,
                    "restrictedCompletion": False,
                    "scriptArguments": {
                        "additionalPollingCommandArgNames": {
                            "complex": None,
                            "simple": "${inputs.AdditionalPollingCommandArgNames}"
                        },
                        "additionalPollingCommandArgValues": {
                            "complex": None,
                            "simple": "${inputs.AdditionalPollingCommandArgValues}"
                        },
                        "ids": {
                            "complex": None,
                            "simple": "${inputs.Ids}"
                        },
                        "pollingCommand": {
                            "complex": None,
                            "simple": "${inputs.PollingCommandName}"
                        },
                        "pollingCommandArgName": {
                            "complex": None,
                            "simple": "${inputs.PollingCommandArgName}"
                        }
                    },
                    "separateContext": False,
                    "startDate": "2020-09-29T16:48:30.324811804Z",
                    "state": "Error",
                    "task": {
                        "brand": "",
                        "conditions": None,
                        "description": "command desc",
                        "id": "3",
                        "isCommand": False,
                        "isLocked": False,
                        "modified": "2020-09-29T08:23:25.596407031Z",
                        "name": "Fail",
                        "playbookName": "",
                        "scriptId": "",
                        "sortValues": None,
                        "type": "regular",
                        "version": 1
                    },
                    "taskCompleteData": [],
                    "taskId": "c6a3af0a-cc78-4323-80c1-93d686010d86",
                    "type": "regular",
                    "view": {
                        "position": {
                            "x": 50,
                            "y": 195
                        }
                    }
                }
            ]
        },
        "HumanReadable": None,
        "ImportantEntryContext": None,
        "EntryContext": None,
        "IgnoreAutoExtract": False,
        "ReadableContentsFormat": "",
        "ContentsFormat": "json",
        "File": "",
        "FileID": "",
        "FileMetadata": None,
        "System": "",
        "Note": False,
        "Evidence": False,
        "EvidenceID": "",
        "Tags": None,
        "Metadata": {
            "id": "",
            "version": 0,
            "modified": "0001-01-01T00:00:00Z",
            "sortValues": None,
            "roles": None,
            "allRead": False,
            "allReadWrite": False,
            "previousRoles": None,
            "previousAllRead": False,
            "previousAllReadWrite": False,
            "hasRole": False,
            "dbotCreatedBy": "",
            "ShardID": 0,
            "type": 1,
            "created": "2020-10-03T12:43:23.006018275Z",
            "retryTime": "0001-01-01T00:00:00Z",
            "user": "",
            "errorSource": "",
            "contents": "",
            "format": "json",
            "investigationId": "51",
            "file": "",
            "fileID": "",
            "parentId": "158@51",
            "pinned": False,
            "fileMetadata": None,
            "parentContent": "!demisto-api-post uri=\"investigation/7/workplan/tasks\" body=\"{\\\"states\\\":[\\\"Error\\\"],\\\"types\\\":[\\\"regular\\\",\\\"condition\\\",\\\"collection\\\"]}\"",
            "parentEntryTruncated": False,
            "system": "",
            "reputations": None,
            "category": "",
            "note": False,
            "isTodo": False,
            "tags": None,
            "tagsRaw": None,
            "startDate": "0001-01-01T00:00:00Z",
            "times": 0,
            "recurrent": False,
            "endingDate": "0001-01-01T00:00:00Z",
            "timezoneOffset": 0,
            "cronView": False,
            "scheduled": False,
            "entryTask": None,
            "taskId": "",
            "playbookId": "",
            "reputationSize": 0,
            "contentsSize": 0,
            "brand": "Demisto REST API",
            "instance": "Demisto REST API_instance_1",
            "IndicatorTimeline": None,
            "mirrored": False
        },
        "IndicatorTimeline": None
    }
]

INTERNAL_TASKS_RESULT = {
    "body": "[{\"Reopen\":false,\"ancestors\":[\"AutoFocusPolling\"],\"completedBy\":\"DBot\",\"completedDate\":\"2022-10-06T09:09:08.762414928Z\",\"conditions\":[{\"condition\":[[{\"left\":{\"isContext\":true,\"value\":{\"simple\":\"1\"}},\"operator\":\"isEqualString\",\"right\":{\"value\":{\"simple\":\"2\"}}}]],\"label\":\"yes\"}],\"doNotSaveTaskHistory\":true,\"dueDate\":\"0001-01-01T00:00:00Z\",\"entries\":[\"8@3\",\"9@3\"],\"evidenceData\":{},\"id\":\"3\",\"nextTasks\":{\"yes\":[\"2\"]},\"previousTasks\":{\"#none#\":[\"0\"]},\"quietMode\":2,\"startDate\":\"2022-10-06T09:09:08.744744147Z\",\"state\":\"Error\",\"task\":{\"cacheVersn\":0,\"id\":\"e58af05d-f8b0-402c-8ebd-62e1dcf67584\",\"modified\":\"2022-10-06T09:09:02.998455781Z\",\"name\":\"Fail\",\"type\":\"condition\",\"version\":1,\"description\":\"command desc\"},\"taskId\":\"e58af05d-f8b0-402c-8ebd-62e1dcf67584\",\"taskSize\":37,\"type\":\"condition\",\"view\":{\"position\":{\"x\":450,\"y\":230}}}]",
    "headers": {
        "Content-Length": [
            "807"
        ],
        "Content-Type": [
            "text/plain; charset=utf-8"
        ],
        "Date": [
            "Thu, 06 Oct 2022 09:25:39 GMT"
        ],
        "Server-Timing": [
            "0"
        ],
        "Strict-Transport-Security": [
            "max-age=10886400000000000; includeSubDomains"
        ],
        "Vary": [
            "Accept-Encoding"
        ],
        "X-Content-Type-Options": [
            "nosniff"
        ],
        "X-Frame-Options": [
            "DENY"
        ],
        "X-Xss-Protection": [
            "1; mode=block"
        ]
    },
    "status": "200 OK",
    "statusCode": 200
}
