TracecatHQ / tracecat

The open source Tines / Splunk SOAR alternative.
https://tracecat.com
GNU Affero General Public License v3.0
2.31k stars 152 forks source link

fix+test: Add integration test for AI action #205

Closed daryllimyt closed 1 month ago

daryllimyt commented 1 month ago

Changes

Todo

Testing

❯ tracecat workflow cases wf-ded8137b39b74d42a96b38898338640e
2024-06-24 16:06:12.630 | WARNING  | tracecat.auth.credentials:<module>:132 - User authentication is disabled, using default user.
[
    {
        'id': 'case-c4e25b7b25354c81bbadc61837001e70',
        'owner_id': 'default-tracecat-user',
        'workflow_id': 'wf-ded8137b39b74d42a96b38898338640e',
        'case_title': 'Interesting Case',
        'payload': {
            'text': "Did you know that honey never spoils? Archaeologists have found pots of honey in ancient Egyptian tombs that are over 3,000 years old and still perfectly edible. 
Honey's unique chemical composition and low water content create an environment that's inhospitable to bacteria and microorganisms, allowing it to last indefinitely."
        },
        'malice': 'benign',
        'status': 'open',
        'priority': 'low',
        'action': 'informational',
        'context': [],
        'suppression': [],
        'tags': [],
        'created_at': '2024-06-24T15:05:15.449112Z',
        'updated_at': '2024-06-24T15:05:15.449113Z'
    }
]