INNER CODE UNIT · Python

timeout

geoserver/geoserver-cloud · acceptance_tests/entrypoint.py:22

def timeout():
    current_time = time.time()
    if current_time - start_time > max_time:
        return True
    return False

# Array of endpoints to check
endpoints = [
    f"{GEOSERVER_URL}/wms?SERVICE=WMS&REQUEST=GetCapabilities",
    f"{GEOSERVER_URL}/wfs?SERVICE=WFS&REQUEST=GetCapabilities",
    f"{GEOSERVER_URL}/ows?SERVICE=WMS&REQUEST=GetCapabilities",
    f"{GEOSERVER_URL}/gwc",
    f"{GEOSERVER_URL}/rest",
]

if not IGNORE_HEALTH_CHECK:
    # Loop through each endpoint and check if it's available
    for endpoint in endpoints:

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…