Comment 2 for bug 1845270

Revision history for this message
Mike Wilson (knobby) wrote :

This is what we do currently:

    async def dashboard_present(url):
        resp = await tools.requests.get(url, auth=auth, verify=False)
        if resp.status_code == 200 and "Dashboard" in resp.text:
            return True
        return False

https://github.com/charmed-kubernetes/jenkins/blob/master/jobs/integration/validation.py#L357

It seems the response has dashboard in it, but also a 404 and a redirect.