def test_cluster_check_veritas_vcs_group(): SECTION['group']['omd'] = [ Vcs(attr='State', value='ONLINE', cluster='minions') ] assert list( veritas_vcs.cluster_check_veritas_vcs_group( 'omd', PARAMS, { 'node1': SECTION, 'node2': SECTION_HASHES, }, )) == [ Result( state=state.OK, notice='[node1]: online', ), Result( state=state.CRIT, summary='[node2]: frozen(!!), online', details='[node2]: frozen(!!)\n[node2]: online', ), Result( state=state.OK, summary='cluster: c7dbacpt', ), ] del SECTION['group']['omd']
def test_cluster_check_veritas_vcs_group(): SECTION["group"]["omd"] = [ Vcs(attr="State", value="ONLINE", cluster="minions") ] assert list( veritas_vcs.cluster_check_veritas_vcs_group( "omd", PARAMS, { "node1": SECTION, "node2": SECTION_HASHES, }, )) == [ Result( state=state.OK, notice="[node1]: online", ), Result( state=state.CRIT, notice="[node2]: frozen", ), Result( state=state.OK, notice="[node2]: online", ), Result( state=state.OK, summary="cluster: c7dbacpt", ), ] del SECTION["group"]["omd"]