-
Notifications
You must be signed in to change notification settings - Fork 56
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: implement new assert function for NAD unit tests #999
chore: implement new assert function for NAD unit tests #999
Conversation
Pull Request Test Coverage Report for Build 10060390909Details
💛 - Coveralls |
c9ec658
to
3e7c24c
Compare
@@ -169,6 +193,25 @@ func assertCNIBinDirForDS(u *unstructured.Unstructured) { | |||
} | |||
} | |||
|
|||
func assertNetworkAttachmentDefinition(c client.Client, expectedNadConfig *nadConfig, |
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: Should we use here GinkgoHelper()
or ExpectWithOffset
?
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.
This would be helpful for sure. We are never using GinkgoHelper
or ExpectWithOffset
in our tests.
Should we create a separate PR to align our tests?
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.
yes, I think we can update all helper functions in a separate PR
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
…testing Use this new function for the hostdevice network unit tests. Signed-off-by: Tobias Giese <[email protected]>
Signed-off-by: Tobias Giese <[email protected]>
Signed-off-by: Tobias Giese <[email protected]>
3e7c24c
to
8a07cad
Compare
Had to update the first commit, change is between |
/retest-all |
/retest-copy-right |
/retest-blackduck_scan |
/retest-image_scan |
Todos: