Closed smuu closed 2 weeks ago
The recent changes introduce the ability to trace network packets using Tshark in a test environment set up with the knuu
package. This involves creating instances, enabling Tshark data collection, and handling the deployment of sidecars for packet capturing. Additionally, Minio configuration handling is integrated for storing the captured data.
File | Change Summary |
---|---|
e2e/tshark/tshark_test.go |
Added TestTshark function to set up instances, enable Tshark collector, execute commands, and validate output. |
pkg/instance/helper.go |
Added tsharkCollectorConfig field to Instance struct and new method addTsharkCollectorSidecar . |
pkg/instance/instance.go |
Introduced TsharkCollectorConfig struct, added related fields and methods to Instance struct. |
pkg/minio/minio.go |
Added Config struct to Minio and new method GetConfigs for retrieving Minio configurations. |
sequenceDiagram
participant Tester as Tester
participant Knuu as Knuu Package
participant Instance as Instance
participant Minio as Minio
Tester ->> Knuu: New()
Knuu -->> Tester: knuu instance
Tester ->> Knuu: NewInstance()
Knuu -->> Tester: instance
Tester ->> Instance: SetImage(), SetCommand()
Tester ->> Instance: EnableTsharkCollector(params)
Instance ->> Instance: addTsharkCollectorSidecar()
Tester ->> Knuu: Commit()
Tester ->> Instance: Start()
Tester ->> Instance: WaitInstanceIsRunning()
Tester ->> Instance: ExecuteCommand()
Tester ->> Minio: DeployMinio()
Minio -->> Tester: Minio configurations
note over Instance: Starts collecting packets using Tshark
Objective | Addressed | Explanation |
---|---|---|
Ability to trace packets from at least two nodes (#378) | ✅ | |
Upload packet trace file to an S3 bucket (#378) | ✅ |
In code we traverse the network's maze,
With Tshark and packets, we now appraise.
Knuu sets the stage, instances rise,
Minio holds data beneath azure skies.
A rabbit's toil, from dawn till night,
Ensuring the network dances right. 🐰✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Thanks @mojtaba-esk for driving this home!
Overview
Closes https://github.com/celestiaorg/knuu/issues/378
Summary by CodeRabbit
New Features
Bug Fixes
Refactor
Documentation