Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 714 for tc (0.06 sec)

  1. 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)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jan 16 17:43:49 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  2. pkg/controller/ttlafterfinished/ttlafterfinished_controller_test.go

    			t.Errorf("%s: invalid test setup; error message must not be empty for error cases", tc.name)
    		}
    		if tc.expectErr && !strings.Contains(gotErr.Error(), tc.expectErrStr) {
    			t.Errorf("%s: expected error message contains %q, got %v", tc.name, tc.expectErrStr, gotErr)
    		}
    		if !tc.expectErr {
    			if *gotTimeLeft != *tc.expectedTimeLeft {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Jun 18 18:46:26 UTC 2023
    - 5.3K bytes
    - Viewed (0)
  3. pkg/controller/job/indexed_job_utils_test.go

    		},
    	}
    	for name, tc := range cases {
    		t.Run(name, func(t *testing.T) {
    			featuregatetesting.SetFeatureGateDuringTest(t, feature.DefaultFeatureGate, features.JobBackoffLimitPerIndex, true)
    			activePods := controller.FilterActivePods(logger, tc.pods)
    			failedIndexes := calculateFailedIndexes(logger, &tc.job, tc.pods)
    			_, succeededIndexes := calculateSucceededIndexes(logger, &tc.job, tc.pods)
    			jobCtx := &syncJobCtx{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 27.9K bytes
    - Viewed (0)
  4. pkg/kubelet/types/pod_status_test.go

    		v1.PodReadyToStartContainers,
    	}
    
    	for _, tc := range trueCases {
    		if !PodConditionByKubelet(tc) {
    			t.Errorf("Expect %q to be condition owned by kubelet.", tc)
    		}
    	}
    
    	falseCases := []v1.PodConditionType{
    		v1.PodConditionType("abcd"),
    		v1.PodConditionType(v1.PodReasonUnschedulable),
    	}
    
    	for _, tc := range falseCases {
    		if PodConditionByKubelet(tc) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  5. pkg/volume/util/volumeattributesclass_test.go

    					},
    				},
    			},
    			expect: true,
    		},
    	}
    
    	for _, tc := range testCases {
    		t.Run(tc.name, func(t *testing.T) {
    			actual := IsDefaultVolumeAttributesClassAnnotation(tc.class.ObjectMeta)
    			if tc.expect != actual {
    				t.Errorf("Expected %v, got %v", tc.expect, actual)
    			}
    		})
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 03:18:56 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  6. pkg/kubelet/cm/containermap/container_map_test.go

    		},
    	}
    
    	for _, tc := range testCases {
    		// Build a new containerMap from the testCases, checking proper
    		// addition, retrieval along the way.
    		cm := NewContainerMap()
    		for i := range tc.containerNames {
    			cm.Add(tc.podUID, tc.containerNames[i], tc.containerIDs[i])
    
    			containerID, err := cm.GetContainerID(tc.podUID, tc.containerNames[i])
    			if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jan 02 13:40:55 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  7. src/runtime/checkptr_test.go

    	}
    
    	for _, tc := range testCases {
    		tc := tc
    		t.Run(tc.cmd, func(t *testing.T) {
    			t.Parallel()
    			got, err := testenv.CleanCmdEnv(exec.Command(exe, tc.cmd)).CombinedOutput()
    			if err != nil {
    				t.Log(err)
    			}
    			if tc.want == "" {
    				if len(got) > 0 {
    					t.Errorf("output:\n%s\nwant no output", got)
    				}
    				return
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 31 17:15:15 UTC 2022
    - 2.9K bytes
    - Viewed (0)
  8. security/pkg/credentialfetcher/fetcher_test.go

    	// Disable token refresh for GCE VM credential fetcher.
    	plugin.SetTokenRotation(false)
    	for id, tc := range testCases {
    		id, tc := id, tc
    		t.Run(id, func(t *testing.T) {
    			t.Parallel()
    			cf, err := NewCredFetcher(
    				tc.fetcherType, tc.trustdomain, tc.jwtPath, tc.identityProvider)
    			if cf != nil {
    				defer cf.Stop()
    			}
    			if len(tc.expectedErr) > 0 {
    				if err == nil {
    					t.Errorf("%s: succeeded. Error expected: %v", id, err)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Feb 03 20:21:32 UTC 2023
    - 3K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/values_test.go

    			equal: false,
    		},
    	}
    
    	for _, tc := range cases {
    		t.Run(tc.name, func(t *testing.T) {
    			// Compare types with schema against themselves
    			if tc.lhs.Equal(tc.rhs) != types.Bool(tc.equal) {
    				t.Errorf("expected Equals to return %v", tc.equal)
    			}
    			if tc.rhs.Equal(tc.lhs) != types.Bool(tc.equal) {
    				t.Errorf("expected Equals to return %v", tc.equal)
    			}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 20:13:14 UTC 2024
    - 17.3K bytes
    - Viewed (0)
  10. samples/extauthz/cmd/extauthz/main_test.go

    			want:     int(codes.OK),
    		},
    		{
    			name:     "GRPCv2-deny",
    			isGRPCV2: true,
    			header:   "deny",
    			want:     int(codes.PermissionDenied),
    		},
    	}
    	for _, tc := range cases {
    		t.Run(tc.name, func(t *testing.T) {
    			var got int
    			if tc.isGRPCV3 {
    				resp, err := grpcV3Client.Check(context.Background(), &authv3.CheckRequest{
    					Attributes: &authv3.AttributeContext{
    						Request: &authv3.AttributeContext_Request{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Feb 23 16:58:02 UTC 2023
    - 3.6K bytes
    - Viewed (0)
Back to top