Esempio n. 1
0
def get_status_json():
    """
    Returns the cluster status

    :return: Dictionary with the cluster status.
    """
    return get_cluster_status()
Esempio n. 2
0
def get_status_json():
    """
    Returns the cluster status

    :return: Dictionary with the cluster status.
    """
    return WazuhResult({'data': get_cluster_status()})
Esempio n. 3
0
def test_get_cluster_status():
    """Check if cluster is enabled and if is running."""
    status = utils.get_cluster_status()
    assert {'enabled': 'no', 'running': 'no'} == status