- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 49 for Fatalf (0.18 sec)
-
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 Apr 24 22:53:08 GMT 2024 - Last Modified: Sat Feb 10 00:31:55 GMT 2024 - 17.5K bytes - Viewed (0) -
istioctl/pkg/tag/tag_test.go
err := listTags(context.Background(), client, &out) if tc.error == "" && err != nil { t.Fatalf("expected no error, got %v", err) } if tc.error != "" { if err == nil { t.Fatalf("expected error to include \"%s\" but got none", tc.error) } if !strings.Contains(err.Error(), tc.error) { t.Fatalf("expected \"%s\" in error, got %v", tc.error, err) } } commandOutput := out.String()
Go - Registered: Wed Apr 24 22:53:08 GMT 2024 - Last Modified: Fri Nov 17 22:41:06 GMT 2023 - 8.7K bytes - Viewed (0) -
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 Apr 24 22:53:08 GMT 2024 - Last Modified: Fri Jan 26 20:34:28 GMT 2024 - 12.5K bytes - Viewed (0) -
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 Apr 24 22:53:08 GMT 2024 - Last Modified: Thu Feb 08 03:52:24 GMT 2024 - 5.1K bytes - Viewed (0) -
operator/cmd/mesh/operator_test.go
t.Fatal(err) } if want, err = yaml.JSONToYAML([]byte(wantJSON)); err != nil { t.Fatal(err) } if diff := util.YAMLDiff(string(want), string(got)); diff != "" { t.Fatalf("diff: %s", diff) } } // TODO: rewrite this with running the actual top level command. func TestOperatorInit(t *testing.T) {
Go - Registered: Wed Mar 20 22:53:08 GMT 2024 - Last Modified: Tue Aug 29 14:15:33 GMT 2023 - 6.4K bytes - Viewed (0) -
istioctl/pkg/install/k8sversion/version_test.go
t.Run(fmt.Sprintf("case %d %s", i, c.version), func(t *testing.T) { got, err := extractKubernetesVersion(c.version) if c.errMsg != err && c.isValid { t.Fatalf("\nwanted: %v \nbut found: %v", c.errMsg, err) } if got != c.expected { t.Fatalf("wanted %v got %v", c.expected, got) } }) } } func TestIsK8VersionSupported(t *testing.T) { cases := []struct { version *version.Info
Go - Registered: Wed Apr 24 22:53:08 GMT 2024 - Last Modified: Fri Jan 19 02:46:48 GMT 2024 - 6.3K bytes - Viewed (0) -
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 Mar 20 22:53:08 GMT 2024 - Last Modified: Wed Jan 10 05:10:03 GMT 2024 - 3.6K bytes - Viewed (1) -
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 Apr 24 22:53:08 GMT 2024 - Last Modified: Tue Jan 16 17:43:49 GMT 2024 - 12.1K bytes - Viewed (0) -
cni/pkg/install/cniconfig_test.go
case result := <-resultChan: if len(c.delayedConfName) > 0 { // Delayed case t.Fatalf("did not expect to retrieve a CNI config file %s", result) } else if result != expectedFilepath { if len(expectedFilepath) > 0 { t.Fatalf("expected %s, got %s", expectedFilepath, result) } t.Fatalf("did not expect to retrieve a CNI config file %s", result) } // Successful test for non-delayed cases
Go - Registered: Wed Apr 24 22:53:08 GMT 2024 - Last Modified: Wed May 17 02:22:22 GMT 2023 - 15.4K bytes - Viewed (0) -
istioctl/pkg/util/testutil/util.go
fErr := cmd.Execute() output := out.String() if c.ExpectedOutput != "" && c.ExpectedOutput != output { t.Fatalf("Unexpected output for '%s %s'\n got: %q\nwant: %q", cmd.Name(), strings.Join(c.Args, " "), output, c.ExpectedOutput) } if c.ExpectedRegexp != nil && !c.ExpectedRegexp.MatchString(output) { t.Fatalf("Output didn't match for '%s %s'\n got %v\nwant: %v", cmd.Name(), strings.Join(c.Args, " "), output, c.ExpectedRegexp) }
Go - Registered: Wed Apr 24 22:53:08 GMT 2024 - Last Modified: Thu Jun 15 15:02:17 GMT 2023 - 2K bytes - Viewed (0)