Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 34 for Fatalf (0.15 sec)

  1. operator/cmd/mesh/profile-diff_test.go

    		t.Fatalf("Output didn't match for 'istioctl %s'\n got %v\nwant: %v", c.args, output, c.expectedString)
    	}
    
    	if c.notExpected != "" && strings.Contains(output, c.notExpected) {
    		t.Fatalf("Output didn't match for 'istioctl %s'\n got %v\nDON'T want: %v", c.args, output, c.expectedString)
    	}
    
    	if c.shouldFail {
    		if fErr == nil {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Jan 10 05:10:03 GMT 2024
    - 3.6K bytes
    - Viewed (1)
  2. istioctl/pkg/tag/generate_test.go

    				if webhook.FailurePolicy != nil {
    					t.Fatalf("expected FailurePolicy to be nil, got %v", *webhook.FailurePolicy)
    				}
    
    				if tc.whSVC != "" {
    					if validationWhConf.Service == nil {
    						t.Fatalf("expected validation service %s, got nil", tc.whSVC)
    					}
    					if validationWhConf.Service.Name != tc.whSVC {
    						t.Fatalf("expected validation service %s, got %s", tc.whSVC, validationWhConf.Service.Name)
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Jan 16 17:43:49 GMT 2024
    - 12.1K bytes
    - Viewed (0)
  3. cni/pkg/plugin/plugin_test.go

    	conf, err := parseConfig(args.StdinData)
    	if err != nil {
    		t.Fatalf("config parse failed with error: %v", err)
    	}
    
    	// Create a kube client
    	client := kube.NewFakeClient(objects...)
    
    	mockRedir := &mockInterceptRuleMgr{}
    	err = doAddRun(args, conf, client.Kube(), mockRedir)
    	if err != nil {
    		t.Fatalf("failed with error: %v", err)
    	}
    
    	return mockRedir
    }
    
    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)
  4. cni/pkg/install/kubeconfig_test.go

    				SkipTLSVerify:      c.skipTLSVerify,
    			}
    			result, err := createKubeConfig(cfg)
    			if err != nil {
    				if !c.expectedFailure {
    					t.Fatalf("did not expect failure: %v", err)
    				}
    				// Successful test case expecting failure
    				return
    			} else if c.expectedFailure {
    				t.Fatalf("expected failure")
    			}
    
    			goldenFilepath := "testdata/kubeconfig-tls"
    			if c.skipTLSVerify {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Feb 08 03:52:24 GMT 2024
    - 5.1K bytes
    - Viewed (0)
  5. cni/test/install_cni.go

    	cniConfigMap, err := util.ReadCNIConfigMap(cniConfigFilepath)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	// Find Istio CNI and remove from plugin list
    	plugins, err := util.GetPlugins(cniConfigMap)
    	if err != nil {
    		t.Fatal(err)
    	}
    	for i, rawPlugin := range plugins {
    		plugin, err := util.GetPlugin(rawPlugin)
    		if err != nil {
    			t.Fatal(err)
    		}
    		if plugin["type"] == "istio-cni" {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 12.5K bytes
    - Viewed (0)
  6. cni/pkg/install/install_test.go

    			} else if file.Exists(cniConfigFilePath) {
    				t.Fatalf("file %s was not deleted", c.configFilename)
    			}
    
    			// check if kubeconfig is deleted
    			if file.Exists(kubeConfigFilePath) {
    				t.Fatal("kubeconfig was not deleted")
    			}
    
    			// check if binaries are deleted
    			if file.Exists(filepath.Join(cniBinDir, "istio-cni")) {
    				t.Fatalf("File %s was not deleted", "istio-cni")
    			}
    		})
    	}
    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)
  7. istioctl/pkg/proxystatus/proxystatus_test.go

    	fErr := cmd.Execute()
    	output := out.String()
    
    	if c.expectedOutput != "" && c.expectedOutput != output {
    		t.Fatalf("Unexpected output for 'istioctl %s'\n got: %q\nwant: %q", strings.Join(c.args, " "), output, c.expectedOutput)
    	}
    
    	if c.expectedString != "" && !strings.Contains(output, c.expectedString) {
    		t.Fatalf("Output didn't match for '%s %s'\n got %v\nwant: %v", cmd.Name(), strings.Join(c.args, " "), output, c.expectedString)
    	}
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Mar 15 08:28:50 GMT 2024
    - 5.5K bytes
    - Viewed (0)
  8. cni/pkg/pluginlistener/listener_test.go

    )
    
    func TestCNIListener(t *testing.T) {
    	f := filepath.Join(t.TempDir(), "test")
    	l, err := NewListener(f)
    	if err != nil {
    		t.Fatalf("unexpected error %v", err)
    	}
    	defer l.Close()
    	conn, err := connect(f)
    	if err != nil {
    		t.Fatalf("failed to connect %v", err)
    	}
    	conn.Close()
    }
    
    func connect(socket string) (*grpc.ClientConn, error) {
    	var opts []grpc.DialOption
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Feb 08 21:58:32 GMT 2024
    - 1.4K bytes
    - Viewed (0)
  9. istioctl/pkg/workload/workload_test.go

    	if c.expectedException {
    		if fErr == nil {
    			t.Fatalf("Wanted an exception, "+
    				"didn't get one, output was %q", output)
    		}
    	} else {
    		if fErr != nil {
    			t.Fatalf("Unwanted exception: %v", fErr)
    		}
    	}
    
    	if c.expectedOutput != "" && c.expectedOutput != output {
    		assert.Equal(t, c.expectedOutput, output)
    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)
  10. istioctl/pkg/describe/describe_test.go

    			cd := configdump.Wrapper{}
    			err := cd.UnmarshalJSON(ic)
    			if err != nil {
    				t.Fatal(err)
    			}
    			out, err := getIstioVirtualServicePathForSvcFromRoute(&cd, test.inputService, test.inputPort)
    			if err != nil {
    				t.Fatal(err)
    			}
    			if diff := cmp.Diff(test.expected, out); diff != "" {
    				t.Fatalf("Diff:\n%s", diff)
    			}
    		})
    	}
    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)
Back to top