-
Notifications
You must be signed in to change notification settings - Fork 164
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
new(libsinsp/test): Start dedicated container engine unit testsuite w/ mock CRI API response #1544
new(libsinsp/test): Start dedicated container engine unit testsuite w/ mock CRI API response #1544
Conversation
fe6eceb
to
e099c25
Compare
userspace/libsinsp/test/container_engine/container_parser_cri_containerd.ut.cpp
Show resolved
Hide resolved
0d84700
to
aa619af
Compare
aa619af
to
3322719
Compare
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 thank you for this! Just left some possible suggestions
userspace/libsinsp/test/container_engine/container_cache.ut.cpp
Outdated
Show resolved
Hide resolved
userspace/libsinsp/test/container_engine/container_cache.ut.cpp
Outdated
Show resolved
Hide resolved
userspace/libsinsp/test/container_engine/container_parser_cri_containerd.ut.cpp
Show resolved
Hide resolved
userspace/libsinsp/test/container_engine/container_parser_cri_containerd.ut.cpp
Show resolved
Hide resolved
userspace/libsinsp/test/container_engine/container_parser_cri_crio.ut.cpp
Show resolved
Hide resolved
… test Signed-off-by: Melissa Kilby <melissa.kilby.oss@gmail.com>
…ri parsers Signed-off-by: Melissa Kilby <melissa.kilby.oss@gmail.com>
Signed-off-by: Melissa Kilby <melissa.kilby.oss@gmail.com>
Signed-off-by: Melissa Kilby <melissa.kilby.oss@gmail.com>
Signed-off-by: Melissa Kilby <melissa.kilby.oss@gmail.com>
Signed-off-by: Melissa Kilby <melissa.kilby.oss@gmail.com>
Signed-off-by: Melissa Kilby <melissa.kilby.oss@gmail.com>
Co-authored-by: Andrea Terzolo <andreaterzolo3@gmail.com> Signed-off-by: Melissa Kilby <melissa.kilby.oss@gmail.com>
…els handling Signed-off-by: Melissa Kilby <melissa.kilby.oss@gmail.com>
2877f8b
to
4c04dfc
Compare
userspace/libsinsp/test/container_engine/container_parser_cri_containerd.ut.cpp
Show resolved
Hide resolved
@@ -16,6 +16,11 @@ limitations under the License. | |||
|
|||
*/ | |||
|
|||
#pragma once | |||
|
|||
#ifndef LIBSINSP_CRI_HPP |
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.
if we use the #pragma once
we don't need the header guard #ifndef LIBSINSP_CRI_HPP
LGTM label has been added. Git tree hash: 823bb57306f9610bfbbc9b8ba1f1cf9fb9e12241
|
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.
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Andreagit97, FedeDP, incertum The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What type of PR is this?
/kind feature
Any specific area of the project related to this PR?
/area tests
Does this PR require a change in the driver versions?
What this PR does / why we need it:
thereby enabling us to test the parser logic.
While we need realistic e2e tests, this will help especially since we are starting to realize that the container engine needs some refactoring. Note that this is a start given the current limitations.
If the other maintainers support this general approach we can continue working on it.
Related to #1298
CC @Andreagit97 and @therealbobo
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?: