tetragon
tetragon copied to clipboard
fix(tests): Unit Test for LSM CGroup Tracking Map Fix
Description
Adds unit test for LSM cgroup tracking map fix.
Testing
Test passes on Linux with both EnableCgTrackerID enabled and disabled cases.
andres@andres:~/hubble-fgs/modules/tetragon-oss$ sudo /tmp/test_lsm -test.v -test.run TestLSMCgTrackerMap -test.timeout 2m
=== RUN TestLSMCgTrackerMap
=== RUN TestLSMCgTrackerMap/With_EnableCgTrackerID_=_false
level=info msg="Unloading sensor __base__"
=== RUN TestLSMCgTrackerMap/With_EnableCgTrackerID_=_true
lsm_test.go:227: Found tg_cgtracker_map in sensor generic_lsm
--- PASS: TestLSMCgTrackerMap (15.25s)
--- PASS: TestLSMCgTrackerMap/With_EnableCgTrackerID_=_false (7.16s)
--- PASS: TestLSMCgTrackerMap/With_EnableCgTrackerID_=_true (7.48s)
PASS
Oh @ariosmon i just noticed that the commit message is a bit off, seems like you should amend it!
@FedeDP I've added a new commit message, I think is good now 👍
👋 Hello @mtardy I'll appreciate if you can take a look and add your comments or merge if you agree 👍