Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 28 for test_data (0.23 sec)

  1. istioctl/pkg/kubeinject/kubeinject_test.go

    					" --valuesFile testdata/inject-values.yaml",
    				" "),
    			GoldenFilename: "testdata/deployment/hello.yaml.injected",
    		},
    		{ // case 4 with only iop files
    			Args: strings.Split(
    				"--operatorFileName testdata/istio-operator.yaml"+
    					" --injectConfigFile testdata/inject-config-iop.yaml -f testdata/deployment/hello.yaml",
    				" "),
    			GoldenFilename: "testdata/deployment/hello.yaml.iop.injected",
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Jun 15 15:02:17 GMT 2023
    - 3.4K bytes
    - Viewed (0)
  2. cni/pkg/install/install_test.go

    			in.cniConfigFilepath = cniConfigFilepath
    
    			if err := file.AtomicCopy(filepath.Join("testdata", c.saFilename), tempDir, c.saFilename); err != nil {
    				t.Fatal(err)
    			}
    
    			if len(c.invalidConfigFilename) > 0 {
    				// Copy an invalid config file into tempDir
    				if err := file.AtomicCopy(filepath.Join("testdata", c.invalidConfigFilename), tempDir, c.cniConfigFilename); err != nil {
    					t.Fatal(err)
    				}
    			}
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 11.1K bytes
    - Viewed (0)
  3. istioctl/pkg/writer/envoy/configdump/configdump_test.go

    			callPrime:      true,
    			wantOutputFile: "testdata/bootstrapdump.json",
    		},
    		{
    			name:    "errors if config dump is not primed",
    			wantErr: true,
    		},
    	}
    	for _, tt := range tests {
    		t.Run(tt.name, func(t *testing.T) {
    			gotOut := &bytes.Buffer{}
    			cw := &ConfigWriter{Stdout: gotOut}
    			cd, _ := os.ReadFile("testdata/configdump.json")
    			if tt.callPrime {
    				cw.Prime(cd)
    			}
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Jan 03 23:08:06 GMT 2024
    - 3.5K bytes
    - Viewed (0)
  4. istioctl/pkg/describe/describe_test.go

    	expectedString string // String output is expected to contain
    
    	wantException bool
    }
    
    // Tests Pilot /debug
    func TestDescribe(t *testing.T) {
    	productPageConfigPath := "testdata/describe/http_config.json"
    	config, err := os.ReadFile(productPageConfigPath)
    	if err != nil {
    		t.Fatalf("failed to read %s: %v", productPageConfigPath, err)
    	}
    	cases := []execAndK8sConfigTestCase{
    		{ // case 0
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Mar 28 09:54:01 GMT 2024
    - 30.4K bytes
    - Viewed (0)
  5. cni/test/install_k8s_test.go

    	delayedConfFile        string
    	expectedOutputFile     string
    	expectedPostCleanFile  string
    	cniConfDirOrderedFiles []string
    }
    
    func TestInstall(t *testing.T) {
    	testDataDir := env.IstioSrc + "/cni/test/testdata"
    	cases := []testCase{
    		{
    			name:                   "File with pre-plugins--.conflist",
    			chainedCNIPlugin:       true,
    			preConfFile:            "00-calico.conflist",
    			resultFileName:         "00-calico.conflist",
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Jul 27 18:01:48 GMT 2022
    - 8K bytes
    - Viewed (0)
  6. istioctl/pkg/writer/ztunnel/configdump/configdump_test.go

    			callPrime:        true,
    			wantOutputSecret: "testdata/secretsummary.txt",
    		},
    		{
    			name:    "errors if config dump is not primed",
    			wantErr: true,
    		},
    		{
    			name:               "returns expected workload summary onto Stdout",
    			callPrime:          true,
    			wantOutputWorkload: "testdata/workloadsummary.txt",
    		},
    		{
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Feb 02 18:21:48 GMT 2024
    - 3.6K bytes
    - Viewed (0)
  7. istioctl/pkg/workload/workload_test.go

    // 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) {
    	noClusterID := "failed to automatically determine the --clusterID"
    	files, err := os.ReadDir("testdata/vmconfig")
    	if err != nil {
    		t.Fatal(err)
    	}
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Mar 27 16:59:05 GMT 2024
    - 14.6K bytes
    - Viewed (0)
  8. istioctl/pkg/writer/envoy/configdump/route_test.go

    			cw := &ConfigWriter{Stdout: gotOut}
    			cd, _ := os.ReadFile(fmt.Sprintf("testdata/routes/%s/configdump.json", tt.name))
    			if err := cw.Prime(cd); err != nil {
    				t.Errorf("failed to parse config dump: %s", err)
    			}
    			err := cw.PrintRouteSummary(RouteFilter{Verbose: true})
    			assert.NoError(t, err)
    
    			wantOutputFile := path.Join("testdata/routes", tt.name, "output.txt")
    			util.CompareContent(t, gotOut.Bytes(), wantOutputFile)
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Nov 29 12:37:14 GMT 2023
    - 2.8K bytes
    - Viewed (0)
  9. operator/cmd/mesh/profile-dump_test.go

    	"regexp"
    	"testing"
    
    	"github.com/kylelemons/godebug/diff"
    
    	"istio.io/istio/operator/pkg/util"
    )
    
    func TestProfileDump(t *testing.T) {
    	testDataDir := filepath.Join(operatorRootDir, "cmd/mesh/testdata/profile-dump")
    	tests := []struct {
    		desc       string
    		configPath string
    	}{
    		{
    			desc: "all_off",
    		},
    		{
    			desc:       "config_path",
    			configPath: "components",
    		},
    		{
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Jan 20 11:44:25 GMT 2022
    - 3.7K bytes
    - Viewed (0)
  10. istioctl/pkg/writer/pilot/status_test.go

    						rdsSyncStatus:  status.ConfigStatus_UNKNOWN,
    						edsSyncStatus:  status.ConfigStatus_UNKNOWN,
    						ecdsSyncStatus: status.ConfigStatus_UNKNOWN,
    					},
    				}),
    			},
    			want: "testdata/multiXdsStatusMultiPilot.txt",
    		},
    		{
    			name: "prints single istiod input to buffer in alphabetical order by pod name",
    			input: map[string]*discovery.DiscoveryResponse{
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Mar 08 08:38:19 GMT 2024
    - 6.5K bytes
    - Viewed (0)
Back to top