def test_for_pods(url, **kwargs): try: return http.head(url, **kwargs) except DCOSHTTPException as e: if e.status() == 404: return e.response raise
def test_for_pods(url, **kwargs): try: return http.head(url, **kwargs) except DCOSHTTPException as e: if e.status() == 404: return e.response raise
def test_head_of_pods(): """Tests the availability of pods via the API""" client = marathon.create_client() url = urljoin(DCOS_SERVICE_URL, _pods_url()) result = http.head(url) assert result.status_code == 200
def test_head_request_to_pods_endpoint(): """Tests the pods HTTP end-point by firing a HEAD request to it.""" url = urljoin(DCOS_SERVICE_URL, get_pods_url()) result = http.head(url) assert result.status_code == 200
def test_head_request_to_pods_endpoint(): """Tests the pods HTTP end-point by firing a HEAD request to it.""" url = urljoin(DCOS_SERVICE_URL, get_pods_url()) result = http.head(url) assert result.status_code == 200
def test_head_of_pods(): """Tests the availability of pods via the API""" client = marathon.create_client() url = urljoin(DCOS_SERVICE_URL, _pods_url()) result = http.head(url) assert result.status_code == 200