def METHOD_NAME():
    """
    Test if get_connection does not has endpoint configured then
    it should return "None"
    """
    config = Mock(spec=CORTXS3Config)
    config.get_cortx_s3_endpoint_for_producer = Mock(side_effect=KeyError())
    assert CORTXS3Client(config, CONNECTION_TYPE_PRODUCER)._get_producer_connection() is None