Esempio n. 1
0
def test_cluster_check_veritas_vcs():
    assert list(
        veritas_vcs.cluster_check_veritas_vcs(
            'minions',
            PARAMS,
            {
                'node1': SECTION,
                'node2': SECTION_HASHES,
            },
        )) == [
            Result(
                state=state.OK,
                notice='[node1]: running',
            ),
            Result(
                state=state.OK,
                summary='All nodes OK',
            )
        ]
Esempio n. 2
0
def test_cluster_check_veritas_vcs():
    assert list(
        veritas_vcs.cluster_check_veritas_vcs(
            "minions",
            PARAMS,
            {
                "node1": SECTION,
                "node2": SECTION_HASHES,
            },
        )) == [
            Result(
                state=state.OK,
                notice="[node1]: running",
            ),
            Result(
                state=state.OK,
                summary="All nodes OK",
            ),
        ]