def test_get_mesos_disk_status(): metrics = {"master/disk_total": 100, "master/disk_used": 50} fake_mesos_state = { "slaves": [{"reserved_resources": {"maintenance": {"disk": 33}}}] } actual = metastatus_lib.get_mesos_disk_status(metrics, fake_mesos_state) assert actual == (100, 83, 17)
def test_get_mesos_disk_status(): metrics = { 'master/disk_total': 100, 'master/disk_used': 50, } actual = metastatus_lib.get_mesos_disk_status(metrics) assert actual == (100, 50, 50)
def test_get_mesos_disk_status(): metrics = { 'master/disk_total': 100, 'master/disk_used': 50 } actual = metastatus_lib.get_mesos_disk_status(metrics) assert actual == (100, 50, 50)
def test_get_mesos_disk_status(): metrics = { 'master/disk_total': 100, 'master/disk_used': 50, } fake_mesos_state = { 'slaves': [ { 'reserved_resources': { 'maintenance': { 'disk': 33, }, }, }, ], } actual = metastatus_lib.get_mesos_disk_status(metrics, fake_mesos_state) assert actual == (100, 83, 17)