Esempio n. 1
0
def test_get_health(mocker):
    operator = mocker.Mock()
    master = mocker.Mock()
    driver = MesosOperatorMasterDriver(master, operator)
    driver._send = mocker.Mock()
    driver.getHealth()
    driver._send.assert_called_once_with({
        'type': 'GET_HEALTH',
    })
Esempio n. 2
0
def test_get_health(mocker):
    operator = mocker.Mock()
    master = mocker.Mock()
    driver = MesosOperatorMasterDriver(master, operator)
    driver._send = mocker.Mock()
    driver.getHealth()
    driver._send.assert_called_once_with({
        'type': 'GET_HEALTH',
    })
def main(master):
	driver = MesosOperatorMasterDriver(master, MinimalOperator())
	res = driver.getHealth()
	logging.debug(res)
	driver.run()
Esempio n. 4
0
def main(master):
    driver = MesosOperatorMasterDriver(master, MinimalOperator())
    res = driver.getHealth()
    print(res)
    driver.run()