Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 915 for tc (0.02 sec)

  1. pkg/apis/core/v1/validation/validation_test.go

    		skipLimitValueCheck: true,
    	}}
    	for _, tc := range errorCase {
    		t.Run(tc.name, func(t *testing.T) {
    			errs := ValidateResourceRequirements(&tc.requirements, field.NewPath("resources"))
    			if len(errs) == 0 {
    				t.Errorf("expected error")
    			}
    			validateNamesAndValuesInDescription(t, tc.requirements.Limits, errs, tc.skipLimitValueCheck, "limit")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Oct 28 07:31:28 UTC 2023
    - 11.2K bytes
    - Viewed (0)
  2. pkg/config/kube/conversion_test.go

    			expectedProto: protocol.HTTP2,
    		},
    	}
    
    	for _, tc := range cases {
    		t.Run(tc.name, func(t *testing.T) {
    			actualProto := ConvertProtocol(tc.port, tc.portName, tc.proto, tc.appProto)
    			if actualProto != tc.expectedProto {
    				t.Errorf("ConvertProtocol(%d, %s, %s, %v) => %s, want %s",
    					tc.port, tc.portName, tc.proto, tc.appProto, actualProto, tc.expectedProto)
    			}
    		})
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Apr 28 15:30:30 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  3. tools/istio-iptables/pkg/config/validation_test.go

    		},
    		{
    			name:    "capture all but 1000 groups",
    			exclude: NOwnerGroups(1000), // we don't have to put a limit on the number of groups to exclude
    		},
    	}
    	for _, tc := range cases {
    		t.Run(tc.name, func(t *testing.T) {
    			err := ValidateOwnerGroups(tc.include, tc.exclude)
    			assert.NoError(t, err)
    		})
    	}
    }
    
    func TestValidateOwnerGroups_Invalid(t *testing.T) {
    	cases := []struct {
    		name    string
    		include string
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jan 11 02:38:28 UTC 2024
    - 3K bytes
    - Viewed (0)
  4. pkg/apis/core/pods/helpers_test.go

    			expectedValue: "10.244.0.6",
    		},
    	}
    	for _, tc := range testCases {
    		label, value, err := ConvertDownwardAPIFieldLabel(tc.version, tc.label, tc.value)
    		if err != nil {
    			if tc.expectedErr {
    				continue
    			}
    			t.Errorf("ConvertDownwardAPIFieldLabel(%s, %s, %s) failed: %s",
    				tc.version, tc.label, tc.value, err)
    		}
    		if tc.expectedLabel != label || tc.expectedValue != value {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 14 01:35:30 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  5. staging/src/k8s.io/cli-runtime/pkg/genericclioptions/jsonpath_flags_test.go

    			}
    
    			p, err := printFlags.ToPrinter(tc.outputFormat)
    			if tc.expectNoMatch {
    				if !IsNoCompatiblePrinterError(err) {
    					t.Fatalf("expected no printer matches for output format %q", tc.outputFormat)
    				}
    				return
    			}
    			if IsNoCompatiblePrinterError(err) {
    				t.Fatalf("expected to match template printer for output format %q", tc.outputFormat)
    			}
    
    			if len(tc.expectedError) > 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 02 09:47:52 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  6. cmd/kubeadm/app/util/patches/patches_test.go

    				patches:    []string{`{"foo":"bar"}`, `{"foo":"baz"}`},
    			},
    		},
    	}
    
    	for _, tc := range tests {
    		t.Run(tc.name, func(t *testing.T) {
    			ps, _ := createPatchSet(tc.targetName, tc.patchType, tc.data)
    			if !reflect.DeepEqual(ps, tc.expectedPatchSet) {
    				t.Fatalf("expected patch set:\n%+v\ngot:\n%+v\n", tc.expectedPatchSet, ps)
    			}
    		})
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 09 14:24:11 UTC 2023
    - 11.9K bytes
    - Viewed (0)
  7. cluster/gce/gci/apiserver_etcd_test.go

    			},
    		},
    	}
    
    	for _, tc := range testCases {
    		t.Run(tc.desc, func(t *testing.T) {
    			c := newManifestTestCase(t, kubeAPIServerManifestFileName, kubeAPIServerStartFuncName, nil)
    			defer c.tearDown()
    			tc.env.KubeHome = c.kubeHome
    			tc.env.KubeAPIServerRunAsUser = strconv.Itoa(os.Getuid())
    
    			c.mustInvokeFunc(
    				tc.env,
    				[]string{"configure-helper.sh", kubeAPIServerConfigScriptName},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 18 11:14:24 UTC 2021
    - 5.6K bytes
    - Viewed (0)
  8. staging/src/k8s.io/cli-runtime/pkg/genericclioptions/template_flags_test.go

    			}
    
    			p, err := printFlags.ToPrinter(tc.outputFormat)
    			if tc.expectNoMatch {
    				if !IsNoCompatiblePrinterError(err) {
    					t.Fatalf("expected no printer matches for output format %q", tc.outputFormat)
    				}
    				return
    			}
    			if IsNoCompatiblePrinterError(err) {
    				t.Fatalf("expected to match template printer for output format %q", tc.outputFormat)
    			}
    
    			if len(tc.expectedError) > 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 02 09:47:52 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  9. staging/src/k8s.io/cli-runtime/pkg/resource/fallback_query_param_verifier_test.go

    	for tn, tc := range tests {
    		t.Run(tn, func(t *testing.T) {
    			fakeOpenAPIClient.ForcedErr = tc.primaryError
    			primary := createFakeV3Verifier(tc.crds, root, tc.queryParam)
    			secondary := createFakeLegacyVerifier(tc.crds, &fakeSchema, tc.queryParam)
    			verifier := NewFallbackQueryParamVerifier(primary, secondary)
    			err := verifier.HasSupport(tc.gvk)
    			if tc.expectedSupports && err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 10 18:30:16 UTC 2023
    - 10.3K bytes
    - Viewed (0)
  10. src/regexp/all_test.go

    			t.Errorf("%q.ReplaceAllLiteralString(%q,%q) = %q; want %q",
    				tc.pattern, tc.input, tc.replacement, actual, tc.output)
    		}
    		// now try bytes
    		actual = string(re.ReplaceAllLiteral([]byte(tc.input), []byte(tc.replacement)))
    		if actual != tc.output {
    			t.Errorf("%q.ReplaceAllLiteral(%q,%q) = %q; want %q",
    				tc.pattern, tc.input, tc.replacement, actual, tc.output)
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:36:03 UTC 2024
    - 25.8K bytes
    - Viewed (0)
Back to top