grafana / xk6-disruptor

Extension for injecting faults into k6 tests
https://k6.io/docs/javascript-api/xk6-disruptor/
GNU Affero General Public License v3.0
89 stars 9 forks source link

iptables: refactor helper, add RuleSet #373

Closed roobre closed 10 months ago

roobre commented 10 months ago

Description

This PR continues the iptables refactoring work initiated by #357, by keeping a simple helper that works with structured rules and putting the auto-removing logic into a new object called RuleSet.

The TrafficRedirector has been refactored to use the new helper, but not the RuleSet.

Checklist: