Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for Cobden (0.24 sec)

  1. cni/pkg/iptables/iptables_test.go

    func compareToGolden(t *testing.T, ipv6 bool, name string, actual []string) {
    	t.Helper()
    	gotBytes := []byte(strings.Join(actual, "\n"))
    	goldenFile := filepath.Join("testdata", name+".golden")
    	if ipv6 {
    		goldenFile = filepath.Join("testdata", name+"_ipv6.golden")
    	}
    	testutil.CompareContent(t, gotBytes, goldenFile)
    }
    
    func constructTestConfig() *Config {
    	return &Config{
    		RestoreFormat: false,
    	}
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Mon Mar 11 17:46:23 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  2. operator/cmd/mesh/manifest_shared_test.go

    	cmdController cmdType = "operator controller"
    )
    
    // Golden output files add a lot of noise to pull requests. Use a unique suffix so
    // we can hide them by default. This should match one of the `linuguist-generated=true`
    // lines in istio.io/istio/.gitattributes.
    const (
    	goldenFileSuffixHideChangesInReview = ".golden.yaml"
    	goldenFileSuffixShowChangesInReview = ".golden-show-in-gh-pull-request.yaml"
    )
    
    var (
    Go
    - Registered: Wed Mar 20 22:53:08 GMT 2024
    - Last Modified: Tue Feb 20 22:39:28 GMT 2024
    - 11.7K bytes
    - Viewed (0)
  3. operator/cmd/mesh/manifest-generate_test.go

    	liveCharts = chartSourceType(filepath.Join(env.IstioSrc, operatorSubdirFilePath))
    )
    
    type testGroup []struct {
    	desc string
    	// Small changes to the input profile produce large changes to the golden output
    	// files. This makes it difficult to spot meaningful changes in pull requests.
    	// By default we hide these changes to make developers life's a bit easier. However,
    Go
    - Registered: Wed Mar 20 22:53:08 GMT 2024
    - Last Modified: Thu Feb 22 08:32:23 GMT 2024
    - 42K bytes
    - Viewed (0)
  4. istioctl/pkg/workload/workload_test.go

    	"mesh.yaml":     true,
    	"root-cert.pem": true,
    	"cluster.env":   true,
    }
    
    const goldenSuffix = ".golden"
    
    // TestWorkloadEntryConfigure enumerates test cases based on subdirectories of testdata/vmconfig.
    // Each subdirectory contains two input files: workloadgroup.yaml and meshconfig.yaml that are used
    // to generate golden outputs from the VM command.
    func TestWorkloadEntryConfigure(t *testing.T) {
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Wed Mar 27 16:59:05 GMT 2024
    - 14.6K bytes
    - Viewed (0)
  5. Makefile.core.mk

    go-gen:
    	@mkdir -p /tmp/bin
    	@PATH="${PATH}":/tmp/bin go generate ./...
    
    refresh-goldens:
    	@REFRESH_GOLDEN=true go test ${GOBUILDFLAGS} ./operator/... \
    		./pkg/bootstrap/... \
    		./pkg/kube/inject/... \
    		./pilot/pkg/security/authz/builder/... \
    		./cni/pkg/plugin/...
    
    update-golden: refresh-goldens
    
    # Keep dummy target since some build pipelines depend on this
    gen-charts:
    Plain Text
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Fri Apr 19 19:41:41 GMT 2024
    - 22.5K bytes
    - Viewed (0)
  6. cni/pkg/plugin/plugin_dryrun_test.go

    			}
    			generatedRules := getRules(generated)
    
    			refreshGoldens(t, tt.golden, generatedRules)
    
    			// Compare generated iptables rule with golden files.
    			golden, err := os.ReadFile(tt.golden)
    			if err != nil {
    				log.Fatalf("Cannot read golden rule file: %v", err)
    			}
    			goldenRules := getRules(golden)
    
    			if len(generatedRules) == 0 {
    				t.Error("Got empty generated rules")
    			}
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Sat Feb 10 00:31:55 GMT 2024
    - 8.4K bytes
    - Viewed (0)
  7. operator/cmd/mesh/shared.go

    	op := []string{"stderr"}
    	opt2 := *opt
    	opt2.OutputPaths = op
    	opt2.ErrorOutputPaths = op
    
    	return log.Configure(&opt2)
    }
    
    func refreshGoldenFiles() bool {
    	ev := os.Getenv("REFRESH_GOLDEN")
    	return ev == "true" || ev == "1"
    }
    
    func kubeBuilderInstalled() bool {
    	ev := os.Getenv("KUBEBUILDER")
    	return ev == "true" || ev == "1"
    }
    
    // Confirm waits for a user to confirm with the supplied message.
    Go
    - Registered: Wed Mar 20 22:53:08 GMT 2024
    - Last Modified: Fri Mar 15 01:18:49 GMT 2024
    - 5.3K bytes
    - Viewed (0)
Back to top