def test_if_dcos_history_service_is_getting_data(dcos_api_session):
@retry(stop_max_delay=20000, wait_fixed=500)
def check_up():
r = dcos_api_session.get('/dcos-history-service/history/last')
assert r.status_code == 200
# Make sure some basic fields are present from state-summary which the DC/OS
# UI relies upon. Their exact content could vary so don't test the value.
json = r.json()
assert {'cluster', 'frameworks', 'slaves', 'hostname'} <= json.keys()
assert len(json["slaves"]) == len(dcos_api_session.all_slaves)
check_up()
评论列表
文章目录