Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestCheckRuleWithoutCheckPresent (0.24 sec)

  1. pkg/util/iptables/iptables_test.go

    		}
    		if cmd != testCase.expectedCmd {
    			t.Errorf("Function: %s, Expected result: %s, Actual result: %s", testCase.funcName, testCase.expectedCmd, cmd)
    		}
    	}
    }
    
    func TestCheckRuleWithoutCheckPresent(t *testing.T) {
    	iptablesSaveOutput := `# Generated by iptables-save v1.4.7 on Wed Oct 29 14:56:01 2014
    *nat
    :PREROUTING ACCEPT [2136997:197881818]
    :POSTROUTING ACCEPT [4284525:258542680]
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 08 15:21:59 UTC 2023
    - 46.3K bytes
    - Viewed (0)
Back to top