Skip to content

Conformance test HTTPRouteWeight is Failing #4037

@fabian4

Description

@fabian4

What happened:

As HTTPRouteWeight test is Failing in nginx/nginx-gateway-fabric#3797.

What you expected to happen:

HTTPRouteWeight test pass.

How to reproduce it (as minimally and precisely as possible):

https://github.com/nginx/nginx-gateway-fabric/actions/runs/17256977734/job/48971158299

Anything else we need to know?:

As http.Response.StatusCode is Deprecated in #4010 and although there is a workaround at

// if the deprecated field StatusCode is set, append it to StatusCodes for backwards compatibility
if expected.Response.StatusCode != 0 {
expected.Response.StatusCodes = append(expected.Response.StatusCodes, expected.Response.StatusCode)
}

But in HTTPRouteWeight Test we call http.CompareRoundTrip() directlly

if err := http.CompareRoundTrip(t, &req, cReq, cRes, expected); err != nil {
return fmt.Errorf("response expectation failed for request: %w", err)
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions