Esempio n. 1
0
def test_get_intel_indicators():
    """ test clean get_intel_indicators """
    crowdstrike = CrowdstrikeAPI(CLIENT_ID, CLIENT_SECRET)  # pylint: disable=invalid-name

    response = crowdstrike.get_intel_indicators(limit=10)
    logger.debug(response)
    assert not response.get('errors')
Esempio n. 2
0
def test_something_indicators():
    """ tests with a set of values that failed once
        this'll fail on a "restricted" account, worked on my test account - JH 2021-03-20
    """
    payload = {
        "offset": 5,
        "filter": "last_updated:>1590402620",
        "limit": 7000,
        "include_deleted": False,
        "sort": "last_updated.asc",
    }
    crowdstrike = CrowdstrikeAPI(CLIENT_ID, CLIENT_SECRET)  # pylint: disable=invalid-name

    response = crowdstrike.get_intel_indicators(**payload)
    logger.debug(response)
    assert not response.get('errors')