-
Notifications
You must be signed in to change notification settings - Fork 69
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
test(cspc): add cspc tunables test #150
test(cspc): add cspc tunables test #150
Conversation
Signed-off-by: Ashutosh Kumar <ashutosh.kumar@mayadata.io>
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.
changes are good
priorityClassMatches := true | ||
pmList := client.GetPoolManagerList(cspcName, cspcNamespace) | ||
for _, pm := range pmList.Items { | ||
if !reflect.DeepEqual(pm.Spec.Template.Spec.PriorityClassName, *priorityClass) { |
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 make use of ==
operator? instead of reflect.DeeqEqual?
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.
Just kept like this for consistency. Are there any concerns?
client.HasROThresholdOnCSPIEventually(cspc.Name, cspc.Namespace, &roThreshold) | ||
Expect(resoureLimitMatches).To(BeTrue()) | ||
}) | ||
|
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.
Q: Shold we need to add test cases by removing reconciliation that was added and verifying whether they were reflected on the pool manager?
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.
Will do in the next PRs.
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.
lgtm
This PR adds tuneable tests that are passed via CSPC mentioned in #111
Following is the output :
Signed-off-by: Ashutosh Kumar ashutosh.kumar@mayadata.io