Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for eth0 (0.19 sec)

  1. cni/pkg/plugin/plugin_test.go

    }`
    
    type mockInterceptRuleMgr struct {
    	lastRedirect []*Redirect
    }
    
    func buildMockConf(ambientEnabled bool, eventURL string) string {
    	return fmt.Sprintf(
    		mockConfTmpl,
    		"1.0.0",
    		"1.0.0",
    		"eth0",
    		testSandboxDirectory,
    		eventURL,
    		ambientEnabled,
    		"mock",
    	)
    }
    
    func buildFakePodAndNSForClient() (*corev1.Pod, *corev1.Namespace) {
    	proxy := corev1.Container{Name: "mockContainer"}
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed May 08 15:58:51 GMT 2024
    - 17.5K bytes
    - Viewed (0)
  2. cni/pkg/plugin/plugin_dryrun_test.go

    	return func(nspath string) (ns.NetNS, error) {
    		return &mockNetNs{path: netNs}, nil
    	}
    }
    
    func buildDryrunConf() string {
    	return fmt.Sprintf(
    		mockConfTmpl,
    		"1.0.0",
    		"1.0.0",
    		"eth0",
    		testSandboxDirectory,
    		"",
    		false,
    		"iptables",
    	)
    }
    
    func TestIPTablesRuleGeneration(t *testing.T) {
    	cniConf := buildDryrunConf()
    
    	customUID := int64(1000670000)
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Sat Feb 10 00:31:55 GMT 2024
    - 8.4K bytes
    - Viewed (0)
  3. cmd/net_test.go

    	}{
    		{"localhost", false},
    		{"localhost:9000", false},
    		{"example.com", false},
    		{"http://192.168.1.0", false},
    		{"http://192.168.1.0:9000", false},
    		{"192.168.1.0", true},
    		{"[2001:3984:3989::20%eth0]:9000", true},
    	}
    
    	for _, testCase := range testCases {
    		ret := isHostIP(testCase.args)
    		if testCase.expectedResult != ret {
    			t.Fatalf("expected: %v , got: %v", testCase.expectedResult, ret)
    		}
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 19 08:43:09 GMT 2024
    - 9.3K bytes
    - Viewed (0)
Back to top