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

CI: Adds Ginkgo Resource Condition Assertions #10398

Merged
merged 4 commits into from
Nov 25, 2024
Merged

Conversation

danehans
Copy link

Adds ginkgo assertions for resource status of TCPRoute e2e tests.

Fixes # 10397

@solo-changelog-bot
Copy link

Issues linked to changelog:
#10397

@danehans danehans mentioned this pull request Nov 22, 2024
4 tasks
@danehans danehans changed the title Adds ginkgo assertions for resource status of TCPRoute e2e tests CI: Adds Ginkgo Resource Condition Assertions Nov 22, 2024
Copy link

github-actions bot commented Nov 22, 2024

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())

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)

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?

Copy link
Author

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.

@sam-heilbron
Copy link

/skip-ci only changing test/kubernetes/e2e and thus build-bot isn't relevant

@soloio-bulldozer soloio-bulldozer bot merged commit 483799e into main Nov 25, 2024
19 checks passed
@soloio-bulldozer soloio-bulldozer bot deleted the issue_10397 branch November 25, 2024 17:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants