Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 42 for goto (0.14 sec)

  1. istioctl/pkg/tag/generate_test.go

    					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)
  2. istioctl/pkg/writer/envoy/configdump/listener_test.go

    					},
    				},
    			},
    			expect: true,
    		},
    	}
    
    	for _, tt := range tests {
    		t.Run(tt.desc, func(t *testing.T) {
    			if got := tt.inFilter.Verify(tt.inListener); got != tt.expect {
    				t.Errorf("%s: expect %v got %v", tt.desc, tt.expect, got)
    			}
    		})
    	}
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Mon Sep 11 15:29:30 GMT 2023
    - 4.1K bytes
    - Viewed (0)
  3. istioctl/pkg/util/testutil/util.go

    	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)
    	}
    
    	if c.GoldenFilename != "" {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Jun 15 15:02:17 GMT 2023
    - 2K bytes
    - Viewed (0)
  4. cni/pkg/install/install_test.go

    			}
    			err := checkValidCNIConfig(cfg, filepath.Join(tempDir, c.cniConfigFilename))
    			if (c.expectedFailure && err == nil) || (!c.expectedFailure && err != nil) {
    				t.Fatalf("expected failure: %t, got %v", c.expectedFailure, err)
    			}
    		})
    	}
    }
    
    func TestSleepCheckInstall(t *testing.T) {
    	cases := []struct {
    		name                  string
    		chainedCNIPlugin      bool
    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)
  5. istioctl/pkg/proxystatus/proxystatus_test.go

    	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)
    	}
    
    	if c.wantException {
    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)
  6. istioctl/pkg/cli/context_test.go

    		},
    	}
    	for _, tt := range tests {
    		t.Run(tt.description, func(t *testing.T) {
    			gotNs := handleNamespace(tt.namespace, tt.defaultNamespace)
    			if gotNs != tt.wantNamespace {
    				t.Fatalf("unexpected namespace: wanted %v got %v", tt.wantNamespace, gotNs)
    			}
    		})
    	}
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Jun 09 18:17:49 GMT 2023
    - 1.4K bytes
    - Viewed (0)
  7. istioctl/pkg/describe/describe_test.go

    					"revision": "1-13-2"
    				}`,
    			},
    			expected: "1-13-2",
    		},
    	}
    
    	for _, tc := range cases {
    		t.Run("", func(t *testing.T) {
    			got := GetRevisionFromPodAnnotation(tc.anno)
    			assert.Equal(t, tc.expected, got)
    		})
    	}
    }
    
    func TestFindProtocolForPort(t *testing.T) {
    	http := "HTTP"
    	cases := []struct {
    		port             corev1.ServicePort
    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)
  8. istioctl/pkg/writer/envoy/configdump/configdump_test.go

    				if tt.wantConfigs != 0 {
    					t.Errorf("wanted some configs loaded but config dump was nil")
    				}
    			} else if len(cw.configDump.Configs) != tt.wantConfigs {
    				t.Errorf("wanted %v configs loaded in got %v", tt.wantConfigs, len(cw.configDump.Configs))
    			}
    			if tt.wantErr {
    				assert.Error(t, err)
    			} else {
    				assert.NoError(t, err)
    			}
    		})
    	}
    }
    
    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)
  9. istioctl/cmd/root_test.go

    	parent.SetArgs([]string{"child", "--help"})
    	if err := parent.Execute(); err != nil {
    		t.Fatal(err)
    	}
    	got := out.String()
    	out.Reset()
    	checkHelpForFlag(t, got, parentFlag0, true)
    	checkHelpForFlag(t, got, parentFlag1, true)
    	checkHelpForFlag(t, got, parentFlag2, true)
    	checkHelpForFlag(t, got, childFlag2, true)
    
    	// verify the hidden parent flag is not visible in help text
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Jan 15 17:59:55 GMT 2021
    - 2.4K bytes
    - Viewed (0)
  10. istioctl/pkg/workload/workload_test.go

    		{name: "one-key-only", arg: []string{"key"}, want: map[string]string{"key": ""}},
    	}
    	for _, tt := range tests {
    		t.Run(tt.name, func(t *testing.T) {
    			if got := convertToStringMap(tt.arg); !reflect.DeepEqual(got, tt.want) {
    				t.Errorf("convertToStringMap() = %v, want %v", got, tt.want)
    			}
    		})
    	}
    }
    
    func TestSplitEqual(t *testing.T) {
    	tests := []struct {
    		arg       string
    		wantKey   string
    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)
Back to top