Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestGetChainsFromTable (0.4 sec)

  1. pkg/util/iptables/save_restore_test.go

    	}
    	extra := chains.Difference(expected)
    	if len(extra) != 0 {
    		t.Errorf("GetChainsFromTable expected chains unexpectedly present: %v", extra.UnsortedList())
    	}
    }
    
    func TestGetChainsFromTable(t *testing.T) {
    	iptablesSave := dedent.Dedent(`
    		# Generated by iptables-save v1.4.21 on Fri Aug  7 14:47:37 2015
    		*nat
    		:PREROUTING ACCEPT [2:138]
    		:INPUT ACCEPT [0:0]
    		:OUTPUT ACCEPT [0:0]
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 19 01:20:51 UTC 2023
    - 5K bytes
    - Viewed (0)
Back to top