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.
This is what we do currently:
async def dashboard_ present( url): get(url, auth=auth, verify=False)
resp = await tools.requests.
if resp.status_code == 200 and "Dashboard" in resp.text:
return True
return False
https:/ /github. com/charmed- kubernetes/ jenkins/ blob/master/ jobs/integratio n/validation. py#L357
It seems the response has dashboard in it, but also a 404 and a redirect.