pkg/util/iptables missing unit tests

Added tests for Save, SaveAll, Restore and RestoreAll
This commit is contained in:
Maciej Kwiek
2017-01-19 14:25:40 +01:00
parent 723fa08767
commit 2220c6dfbf
2 changed files with 221 additions and 1 deletions

View File

@@ -54,7 +54,6 @@ type Interface interface {
DeleteRule(table Table, chain Chain, args ...string) error
// IsIpv6 returns true if this is managing ipv6 tables
IsIpv6() bool
// TODO: (BenTheElder) Unit-Test Save/SaveAll, Restore/RestoreAll
// Save calls `iptables-save` for table.
Save(table Table) ([]byte, error)
// SaveAll calls `iptables-save`.