kubernetes/pkg/util/iptables/iptables_test.go

func getLockPaths() (string, string) {}

func testIPTablesVersionCmds(t *testing.T, protocol Protocol) {}

func TestIPTablesVersionCmdsIPv4(t *testing.T) {}

func TestIPTablesVersionCmdsIPv6(t *testing.T) {}

func testEnsureChain(t *testing.T, protocol Protocol) {}

func TestEnsureChainIPv4(t *testing.T) {}

func TestEnsureChainIPv6(t *testing.T) {}

func TestFlushChain(t *testing.T) {}

func TestDeleteChain(t *testing.T) {}

func TestEnsureRuleAlreadyExists(t *testing.T) {}

func TestEnsureRuleNew(t *testing.T) {}

func TestEnsureRuleErrorChecking(t *testing.T) {}

func TestEnsureRuleErrorCreating(t *testing.T) {}

func TestDeleteRuleDoesNotExist(t *testing.T) {}

func TestDeleteRuleExists(t *testing.T) {}

func TestDeleteRuleErrorChecking(t *testing.T) {}

func TestDeleteRuleErrorDeleting(t *testing.T) {}

func TestGetIPTablesHasCheckCommand(t *testing.T) {}

func TestIPTablesCommands(t *testing.T) {}

func TestCheckRuleWithoutCheckPresent(t *testing.T) {}

func TestCheckRuleWithoutCheckAbsent(t *testing.T) {}

func TestIPTablesWaitFlag(t *testing.T) {}

func TestWaitFlagUnavailable(t *testing.T) {}

func TestWaitFlagOld(t *testing.T) {}

func TestWaitFlagNew(t *testing.T) {}

func TestWaitIntervalFlagNew(t *testing.T) {}

func testSaveInto(t *testing.T, protocol Protocol) {}

func TestSaveIntoIPv4(t *testing.T) {}

func TestSaveIntoIPv6(t *testing.T) {}

func testRestore(t *testing.T, protocol Protocol) {}

func TestRestoreIPv4(t *testing.T) {}

func TestRestoreIPv6(t *testing.T) {}

// TestRestoreAll tests only the simplest use case, as flag handling code is already tested in TestRestore
func TestRestoreAll(t *testing.T) {}

// TestRestoreAllWait tests that the "wait" flag is passed to a compatible iptables-restore
func TestRestoreAllWait(t *testing.T) {}

// TestRestoreAllWaitOldIptablesRestore tests that the "wait" flag is not passed
// to an old iptables-restore
func TestRestoreAllWaitOldIptablesRestore(t *testing.T) {}

// TestRestoreAllGrabNewLock tests that the iptables code will grab the
// iptables /run lock when using an iptables-restore version that does not
// support the --wait argument
func TestRestoreAllGrabNewLock(t *testing.T) {}

// TestRestoreAllGrabOldLock tests that the iptables code will grab the
// iptables @xtables abstract unix socket lock when using an iptables-restore
// version that does not support the --wait argument
func TestRestoreAllGrabOldLock(t *testing.T) {}

// TestRestoreAllWaitBackportedIptablesRestore tests that the "wait" flag is passed
// to a seemingly-old-but-actually-new iptables-restore
func TestRestoreAllWaitBackportedIptablesRestore(t *testing.T) {}

// TestExtractLines tests that
func TestExtractLines(t *testing.T) {}