-
Notifications
You must be signed in to change notification settings - Fork 0
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
CI: Adds Ginkgo Resource Condition Assertions #10398
Conversation
Signed-off-by: Daneyon Hansen <[email protected]>
Issues linked to changelog: |
Visit the preview URL for this PR (updated for commit ef580d7): https://gloo-edge--pr10398-issue-10397-gwsbfru2.web.app (expires Mon, 02 Dec 2024 16:33:25 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: 77c2b86e287749579b7ff9cadb81e099042ef677 |
@@ -19,7 +19,7 @@ import ( | |||
|
|||
// MustKindContext returns the Context for a KinD cluster with the given name | |||
func MustKindContext(clusterName string) *Context { | |||
return MustKindContextWithScheme(clusterName, schemes.DefaultScheme()) | |||
return MustKindContextWithScheme(clusterName, schemes.TestingScheme()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👏
|
||
err = s.testInstallation.Actions.Kubectl().ApplyFile(s.ctx, multiTcpRouteManifest) | ||
s.Assert().NoError(err, "can apply tcproute manifest") | ||
s.testInstallation.Assertions.EventuallyTCPRouteCondition(s.ctx, "tcp-app-1", "default", v1.RouteConditionAccepted, metav1.ConditionTrue, timeout) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: Do you think it would be valuable to assert on a list of conditions?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was considering ^ but I decided to start simple, mainly b/c we need to check the condition status for the different types, e.g. Accecpted=True
while Conflicted=False
.
/skip-ci only changing test/kubernetes/e2e and thus build-bot isn't relevant |
Adds ginkgo assertions for resource status of TCPRoute e2e tests.
Fixes # 10397