def METHOD_NAME(
    self, kube_apis, ingress_controller_prerequisites, crd_ingress_controller, backend_setup, v_s_route_setup
):
    print("\nTest 1: Wrong type")
    patch_v_s_route_from_yaml(
        kube_apis.custom_objects,
        v_s_route_setup.route_m.name,
        f"{TEST_DATA}/virtual-server-route-grpc/route-invalid-type.yaml",
        v_s_route_setup.route_m.namespace,
    )
    wait_before_test()
    text_m = f"{v_s_route_setup.route_m.namespace}/{v_s_route_setup.route_m.name}"
    vsr_m_event_text = f"VirtualServerRoute {text_m} was rejected with error:"
    invalid_fields_m = ["spec.upstreams[0].type", "spec.upstreams[1].type"]
    vsr_m_events = get_events(kube_apis.v1, v_s_route_setup.route_m.namespace)
    assert_event_starts_with_text_and_contains_errors(vsr_m_event_text, vsr_m_events, invalid_fields_m)
    self.patch_valid_vs_route(kube_apis, v_s_route_setup)
    wait_before_test()