コード例 #1
0
def test_assert_slave_health():
    fake_slave_info = {
        'master/slaves_active': 10,
        'master/slaves_inactive': 10
    }
    output, ok = metastatus_lib.assert_slave_health(fake_slave_info)
    assert "Slaves: active: 10 inactive: 10" in output
    assert ok
コード例 #2
0
ファイル: test_metastatus_lib.py プロジェクト: oktopuz/paasta
def test_assert_slave_health():
    fake_slave_info = {
        'master/slaves_active': 10,
        'master/slaves_inactive': 10
    }
    output, ok = metastatus_lib.assert_slave_health(fake_slave_info)
    assert "Slaves: active: 10 inactive: 10" in output
    assert ok