HarrisKirk / blue-green-dreams

2 stars 1 forks source link

Fix the smoke test that sporadically fails #102

Open HarrisKirk opened 1 year ago

HarrisKirk commented 1 year ago

Sometimes the deployment smoke test fails for no apparent reason. The response does not contain the 'Richmond' string' Why not?

def deployment_smoke_test(ingress_ip):
    response = wait_for_http_get(ingress_ip)
    logging.debug(f"Response: {response.text}")
    if "Richmond" not in response.text:
        return False
    logging.info("[OK] Site smoke test passes")
    return True