-
Notifications
You must be signed in to change notification settings - Fork 55
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
chore: Add missing tests for rendering manifests #814
chore: Add missing tests for rendering manifests #814
Conversation
1906c76
to
5eba662
Compare
5b32751
to
fc5e779
Compare
ee660f9
to
d33368e
Compare
Signed-off-by: killianmuldoon <[email protected]>
d33368e
to
1a2d3b7
Compare
} | ||
} | ||
|
||
func GetManifestObjectsTest(ctx context.Context, cr *mellanoxv1alpha1.NicClusterPolicy, catalog state.InfoCatalog, |
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 think we could expand this test to include more objects and checks. We'd then be able to run it on all Manifests for templating which is in common. Specific tests can then be run for fields which are different or novel between states.
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 like the idea. This function is already used in two files. Should we put it to common_test.go?
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.
+1, this can be done in a followup.
/retest-all |
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.
Thanks, @killianmuldoon!
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 tests for
GetManifestObjects
functions across the board. The purpose of these tests is to ensure that each and every field can be rendered, and to prevent regressions from changes in the yamls.This PR includes #813 and should be held until that one merges.