cnti-testcatalog/testsuite

[Improvement] Refactor K8sTshark module

Closed this issue · 0 comments

Is your feature request related to a problem? Please describe.
The module currently holds 3 distinct functions, each having a duplicate with 1~ line changed. These duplicates should be revised.

Describe the solution you'd like
Create more sensible interfaces. Shorten the code and remove the duplicates. Currently the problem with the module is dependency on uncertain wait times (120 seconds for tshark capture). A function that would terminate tshark capture after its begun would be very helpful.

Additional context
The module is currently used only by suci and oran tests, thus not much code will need to be rewritten outside the module.