import requests


def is_alive(url):
    """
        is_alive test if a maven repository is reachable based on a ping test
    """
    url = url + '/api/system/ping'

    response = requests.get(url)

    return response.status_code == 200