def METHOD_NAME(self, kube_apis, crd_ingress_controller, virtual_server_setup):
    patch_virtual_server_from_yaml(
        kube_apis.custom_objects,
        virtual_server_setup.vs_name,
        f"{TEST_DATA}/virtual-server-advanced-routing/virtual-server-cookie.yaml",
        virtual_server_setup.namespace,
    )
    ensure_response_from_backend(virtual_server_setup.backend_1_url, virtual_server_setup.vs_host)
    wait_before_test()
    global resp_1, resp_2, resp_3
    resp_1.status_code = resp_2.status_code = resp_3.status_code = 502
    while resp_1.status_code == 502 and resp_2.status_code == 502 and resp_3.status_code == 502:
        resp_1 = requests.get(
            virtual_server_setup.backend_1_url,
            headers={"host": virtual_server_setup.vs_host},
            cookies={"user": "some"},
        )
        resp_2 = requests.get(
            virtual_server_setup.backend_1_url,
            headers={"host": virtual_server_setup.vs_host},
            cookies={"user": "bad"},
        )
        resp_3 = requests.get(
            virtual_server_setup.backend_1_url,
            headers={"host": virtual_server_setup.vs_host},
            cookies={"user": "anonymous"},
        )
    execute_assertions(resp_1, resp_2, resp_3)