-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Added tenancy tests for workload controller #19429
Conversation
internal/catalog/internal/controllers/workloadhealth/controller_test.go
Outdated
Show resolved
Hide resolved
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.
Have you tried running this on ENT? It's probably best for PRs to start on the ENT side.
actualHealth, err := getNodeHealth(context.Background(), suite.runtime, node.Id) | ||
require.NoError(t, err) | ||
require.Equal(t, health, actualHealth) | ||
func (suite *controllerSuite) runTestCaseWithTenancies(name string, t func(*pbresource.Tenancy)) { |
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.
It tests t
typically refers to a *testing.T
. Could we rename this something else?
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.
Can we do something so we don't need to pass in the name of the parent test? Maybe if this passes a*testing.T
, it can use a t.Run
to make the subtest?
Closing this in favour of #19530 |
Description
Testing & Reproduction steps
Links
PR Checklist