def test_ping(marathon_service_name): """ Tests the API end point for marathon /ping This isn't provided by the client object and will need to create the url to test """ response = common.http_get_marathon_path('ping', marathon_service_name) assert response.status_code == 200 assert response.text == 'pong'
def test_ping(marathon_service_name): """Tests the Marathon's /ping end-point.""" response = common.http_get_marathon_path('ping', marathon_service_name) assert response.status_code == 200, "HTTP status code {} is NOT 200".format( response.status_code) assert 'pong' in response.text, "Got {} instead of pong".format( response.text)
def test_ping(marathon_service_name): """Tests the Marathon's /ping end-point.""" response = common.http_get_marathon_path('ping', marathon_service_name) assert response.status_code == 200, "HTTP status code {} is NOT 200".format(response.status_code) assert 'pong' in response.text, "Got {} instead of pong".format(response.text)