Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for ExecutedAll (0.15 sec)

  1. cni/pkg/iptables/iptables_test.go

    	if err != nil {
    		t.Fatal(err)
    	}
    	compareToGolden(t, false, tt.name, ext.ExecutedAll)
    
    	*ext = dep.DependenciesStub{}
    	// run another time to make sure we are idempotent
    	err = iptConfigurator.CreateInpodRules(&probeSNATipv4, &probeSNATipv6)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	compareToGolden(t, false, tt.name, ext.ExecutedAll)
    }
    
    func ipstr(ipv6 bool) string {
    	if ipv6 {
    		return "ipv6"
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 20:16:04 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  2. tools/istio-iptables/pkg/dependencies/stub.go

    		buf := bufio.NewScanner(stdin)
    		for buf.Scan() {
    			stdincmd := buf.Text()
    			s.ExecutedAll = append(s.ExecutedAll, stdincmd)
    			s.ExecutedStdin = append(s.ExecutedStdin, stdincmd)
    		}
    	} else {
    		// ...or as discrete individual commands
    		cmdline := strings.Join(append([]string{iptVer.CmdToString(cmd)}, args...), " ")
    		s.ExecutedAll = append(s.ExecutedAll, cmdline)
    		if quietly {
    			s.ExecutedQuietly = append(s.ExecutedQuietly, cmdline)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Mar 11 17:46:23 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  3. tools/istio-clean-iptables/pkg/cmd/cleanup_test.go

    			compareToGolden(t, tt.name, ext.ExecutedAll)
    
    			expectedExecutedNormally := []string{"iptables-save", "ip6tables-save"}
    			if diff := cmp.Diff(ext.ExecutedNormally, expectedExecutedNormally); diff != "" {
    				t.Fatalf("Executed normally commands: got\n%v\nwant\n%vdiff %v",
    					ext.ExecutedNormally, expectedExecutedNormally, diff)
    			}
    
    			expectedExecutedQuietly := ext.ExecutedAll[:len(ext.ExecutedAll)-len(expectedExecutedNormally)]
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Mar 11 17:46:23 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  4. tools/istio-iptables/pkg/capture/run_test.go

    			cfg := constructTestConfig()
    			tt.config(cfg)
    
    			ext := &dep.DependenciesStub{}
    			iptConfigurator := NewIptablesConfigurator(cfg, ext)
    			iptConfigurator.Run()
    			compareToGolden(t, tt.name, ext.ExecutedAll)
    		})
    	}
    }
    
    func TestSeparateV4V6(t *testing.T) {
    	mkIPList := func(ips ...string) []netip.Prefix {
    		ret := []netip.Prefix{}
    		for _, ip := range ips {
    			ipp, err := netip.ParsePrefix(ip)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 30 22:24:38 UTC 2024
    - 8.1K bytes
    - Viewed (0)
Back to top