Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conformance tests should allow an error state in Route Parent status #1135

Closed
robscott opened this issue Apr 29, 2022 · 0 comments · Fixed by #1152
Closed

Conformance tests should allow an error state in Route Parent status #1135

robscott opened this issue Apr 29, 2022 · 0 comments · Fixed by #1152

Comments

@robscott
Copy link
Member

Currently we have several tests with a TODO to allow implementations to actually provide an error in Route parent status if they are able to (example).

I think there are 2 valid ways to represent this:

  1. len(Route.Status.Parents) == 0
  2. len(Route.Status.Parents) == 1 and the first entry has an Accepted condition set to false

Our tests currently only allow the first one, but they should allow both.

howardjohn added a commit to howardjohn/gateway-api that referenced this issue May 9, 2022
Fixes kubernetes-sigs#1135

This changes tests to assert their is either no parent at all, or a
non-accepted parent (indicating an error message, presumably).
howardjohn added a commit to howardjohn/gateway-api that referenced this issue May 12, 2022
Fixes kubernetes-sigs#1135

This changes tests to assert their is either no parent at all, or a
non-accepted parent (indicating an error message, presumably).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant