Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for TC (0.13 sec)

  1. istioctl/pkg/tag/tag_test.go

    			skipConfirmation: false,
    			error:            "",
    		},
    	}
    
    	for _, tc := range tcs {
    		t.Run(tc.name, func(t *testing.T) {
    			var out bytes.Buffer
    			client := fake.NewSimpleClientset(tc.webhooksBefore.DeepCopyObject(), tc.namespaces.DeepCopyObject())
    			err := removeTag(context.Background(), client, tc.tag, tc.skipConfirmation, &out)
    			if tc.error == "" && err != nil {
    				t.Fatalf("expected no error, got %v", err)
    			}
    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)
  2. istioctl/pkg/tag/generate_test.go

    				}
    			}
    			if tc.whURL != "" {
    				if injectionWhConf.URL == nil {
    					t.Fatalf("expected injection URL %s, got nil", tc.whURL)
    				}
    				if *injectionWhConf.URL != tc.whURL {
    					t.Fatalf("expected injection URL %s, got %s", tc.whURL, *injectionWhConf.URL)
    				}
    			}
    			if tc.whCA != "" {
    				if string(injectionWhConf.CABundle) != tc.whCA {
    					t.Fatalf("expected CA bundle %q, got %q", tc.whCA, injectionWhConf.CABundle)
    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)
  3. cni/test/install_k8s_test.go

    		},
    	}
    	for _, tc := range cases {
    		t.Run(tc.name, func(t *testing.T) {
    			t.Logf("%s: Test preconf %s, expected %s", tc.name, tc.preConfFile, tc.expectedOutputFile)
    			install.RunInstallCNITest(t, tc.chainedCNIPlugin, tc.preConfFile, tc.resultFileName, tc.delayedConfFile, tc.expectedOutputFile,
    				tc.expectedPostCleanFile, tc.cniConfDirOrderedFiles)
    		})
    	}
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Wed Jul 27 18:01:48 GMT 2022
    - 8K bytes
    - Viewed (0)
  4. istioctl/pkg/describe/describe_test.go

    				Protocol: corev1.ProtocolUDP,
    				Port:     80,
    			},
    			expectedProtocol: "UDP",
    		},
    	}
    
    	for _, tc := range cases {
    		protocol := findProtocolForPort(&tc.port)
    		if protocol != tc.expectedProtocol {
    			t.Fatalf("Output didn't match for the port protocol: got %s want %s", protocol, tc.expectedProtocol)
    		}
    	}
    }
    
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Thu Mar 28 09:54:01 GMT 2024
    - 30.4K bytes
    - Viewed (0)
  5. istioctl/pkg/multicluster/remote_secret_test.go

    	}
    }
    
    func TestGetServiceAccountSecretToken(t *testing.T) {
    	secret := makeSecret("secret", "caData", "token")
    
    	type tc struct {
    		name string
    		opts RemoteSecretOptions
    		objs []runtime.Object
    
    		want       *v1.Secret
    		wantErrStr string
    	}
    
    	commonCases := []tc{
    		{
    			name: "missing service account",
    			opts: RemoteSecretOptions{
    				ServiceAccountName: testServiceAccountName,
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Tue Oct 31 14:48:28 GMT 2023
    - 20.6K bytes
    - Viewed (0)
  6. istioctl/pkg/writer/envoy/configdump/listener.go

    	case *matcher.Matcher_MatcherTree_PrefixMatchMap:
    		m = v.PrefixMatchMap.Map
    		equality = "^"
    	case *matcher.Matcher_MatcherTree_CustomMatch:
    		tc := v.CustomMatch.GetTypedConfig()
    		switch tc.TypeUrl {
    		case IPMatcher:
    			ip := protoconv.SilentlyUnmarshalAny[matcher.IPMatcher](tc)
    			m = map[string]*matcher.Matcher_OnMatch{}
    			for _, rm := range ip.GetRangeMatchers() {
    				for _, r := range rm.Ranges {
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Wed Nov 29 12:37:14 GMT 2023
    - 18.1K bytes
    - Viewed (0)
  7. operator/cmd/mesh/manifest-generate_test.go

    	if err != nil {
    		t.Fatal(err)
    	}
    
    	for _, tc := range testCases {
    		t.Run(tc.name, func(t *testing.T) {
    			g := NewWithT(t)
    			objs, err := fakeControllerReconcile(testResourceFile, tmpCharts, &helmreconciler.Options{Force: tc.force, SkipPrune: true})
    			tc.assertFunc(g, objs, err)
    		})
    	}
    }
    
    func TestManifestGenerateDefaultWithRevisionedWebhook(t *testing.T) {
    Go
    - Registered: Wed Mar 20 22:53:08 GMT 2024
    - Last Modified: Thu Feb 22 08:32:23 GMT 2024
    - 42K bytes
    - Viewed (0)
Back to top