def test_module(client: Client, first_fetch_time: int) -> str:
    "Tests API connectivity and authentication'\n\n    Returning 'ok' indicates that the integration works like it is supposed to.\n    Connection to the service is successful.\n    Raises exceptions if something goes wrong.\n\n    :type client: ``Client``\n    :param Client: HelloWorld client to use\n\n    :type name: ``str``\n    :param name: name to append to the 'Hello' string\n\n    :return: 'ok' if test passed, anything else will fail the test.\n    :rtype: ``str``\n    "
    try:
        client.search_alerts(max_results=1, start_time=first_fetch_time, alert_status=None, alert_type=None, severity=None)
    except DemistoException as e:
        if ('Forbidden' in str(e)):
            return 'Authorization Error: make sure API Key is correctly set'
        else:
            raise e
    return 'ok'
Tests API connectivity and authentication'

Returning 'ok' indicates that the integration works like it is supposed to.
Connection to the service is successful.
Raises exceptions if something goes wrong.

:type client: ``Client``
:param Client: HelloWorld client to use

:type name: ``str``
:param name: name to append to the 'Hello' string

:return: 'ok' if test passed, anything else will fail the test.
:rtype: ``str``
def test_module(client: Client, first_fetch_time: int) -> str:
    "Tests API connectivity and authentication'\n\n    Returning 'ok' indicates that the integration works like it is supposed to.\n    Connection to the service is successful.\n    Raises exceptions if something goes wrong.\n\n    :type client: ``Client``\n    :param Client: HelloWorld client to use\n\n    :type name: ``str``\n    :param name: name to append to the 'Hello' string\n\n    :return: 'ok' if test passed, anything else will fail the test.\n    :rtype: ``str``\n    "
    try:
        client.search_alerts(max_results=1, start_time=first_fetch_time, alert_status=None, alert_type=None, severity=None)
    except DemistoException as e:
        if ('Forbidden' in str(e)):
            return 'Authorization Error: make sure API Key is correctly set'
        else:
            raise e
    return 'ok'