tetragon icon indicating copy to clipboard operation
tetragon copied to clipboard

fix(tests): Unit Test for LSM CGroup Tracking Map Fix

Open ariosmon opened this issue 2 months ago • 2 comments

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

ariosmon avatar Dec 09 '25 22:12 ariosmon

Oh @ariosmon i just noticed that the commit message is a bit off, seems like you should amend it!

FedeDP avatar Dec 10 '25 13:12 FedeDP

@FedeDP I've added a new commit message, I think is good now 👍

ariosmon avatar Dec 10 '25 14:12 ariosmon

👋 Hello @mtardy I'll appreciate if you can take a look and add your comments or merge if you agree 👍

ariosmon avatar Dec 18 '25 13:12 ariosmon