예제 #1
0
def test_assert_inactive_frameworks():
    metrics = {
        'master/frameworks_inactive': 0,
    }
    hcr = metastatus_lib.assert_inactive_frameworks(metrics)
    assert hcr.healthy
    assert "Inactive Frameworks: expected: 0 actual: 0" in hcr.message
예제 #2
0
def test_assert_inactive_frameworks():
    metrics = {
        'master/frameworks_inactive': 0,
    }
    hcr = metastatus_lib.assert_inactive_frameworks(metrics)
    assert hcr.healthy
    assert "Inactive Frameworks: expected: 0 actual: 0" in hcr.message