Skip to content

Improve AttachedRoutes conformance test #2058

@mlavacca

Description

@mlavacca

What would you like to be added:

At the moment, the test cases related to the AttachedRoutes are structured as follows:

  • the first one has one Gateway with one listener and one HTTPRoute referring to it as a parent. The test verifies that the status.listeners[0].AttachedRoutes field gets the value 1 assigned.
  • the second one has one Gateway with one listener and two HTTPRoutes referring to it as a parent. The test verifies that the status.listeners[0].AttachedRoutes field gets the value 2 assigned.

Alongside the above test cases, we should verify that a gateway with many listeners has the corresponding AttachedRoutes field assigned only if the Routes can really attach to them.

Example:

  • create a Gateway with two listeners using two different protocols: HTTP and UDP
  • create an HTTPRoute
  • only the HTTP listener should have the AttachedRoutes field to 1, the UDP listener value should be 0.

Metadata

Metadata

Assignees

Labels

area/conformance-testIssues or PRs related to Conformance tests.priority/important-soonMust be staffed and worked on either currently, or very soon, ideally in time for the next release.triage/acceptedIndicates an issue or PR is ready to be actively worked on.

Type

No type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions