Exemplo n.º 1
0
 def test_for_pods(url, **kwargs):
     try:
         return http.head(url, **kwargs)
     except DCOSHTTPException as e:
         if e.status() == 404:
             return e.response
         raise
Exemplo n.º 2
0
 def test_for_pods(url, **kwargs):
     try:
         return http.head(url, **kwargs)
     except DCOSHTTPException as e:
         if e.status() == 404:
             return e.response
         raise
Exemplo n.º 3
0
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
Exemplo n.º 4
0
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
Exemplo n.º 5
0
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
Exemplo n.º 6
0
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