Пример #1
0
def test_grafana_url_endpoint(kiali_client):
    url = kiali_client.request(method_name='grafanaInfo').json().get('url')
    assert url != None and 'grafana-istio-system' in url
    if VALIDATE_GRAFANA_URL_CONNECTION:
        content =  url_connection.open_url_connection(url)
        assert content != None
    else:
        print("Skipping Grafana URL Connection Validation")
Пример #2
0
def test_grafana_url_endpoint(kiali_client):
    response = kiali_client.request(method_name='grafanaInfo')
    url = kiali_client.request(method_name='grafanaInfo').json()
    assert url != None
    if VALIDATE_GRAFANA_URL_CONNECTION:
        content = url_connection.open_url_connection(url)
        assert content != None
    else:
        print("Skipping Grafana URL Connection Validation")
Пример #3
0
def test_jaeger_url_endpoint(kiali_client):
    url = kiali_client.jaeger().get('url')
    assert url != None and 'jaeger-query-istio-system' in url

    if VALIDATE_JAEGER_URL_CONNECTION:
        content = url_connection.open_url_connection(url)
        assert content != None
    else:
        print("Skipping Jaeger URL Connection Validation")
Пример #4
0
def __test_jaeger_url_endpoint(kiali_client):
    response = kiali_client.request(method_name='jaegerInfo')
    if response.status_code == 200:
        url = response.json().get('url')
        assert url != None and 'tracing-istio-system' in url

        if VALIDATE_JAEGER_URL_CONNECTION:
            content =  url_connection.open_url_connection(url)
            assert content != None
        else:
            print ("Skipping Jaeger URL Connection Validation")
    else:
        assert 'set the Jaeger URL configuration' in response.text