- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 69 for tc (0.24 sec)
-
staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/mutating/dispatcher_test.go
}, } for _, tc := range tcs { actual, err := mutationAnnotationValue(tc.config, tc.webhook, tc.mutated) assert.NoError(t, err, "unexpected error") if actual != tc.expected { t.Errorf("composed mutation annotation value doesn't match, want: %s, got: %s", tc.expected, actual) } } } func TestJSONPatchAnnotationValue(t *testing.T) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 28 08:48:22 UTC 2024 - 4.3K bytes - Viewed (0) -
pkg/test/framework/resource/version_test.go
IstioVersion(""), 0, }, { IstioVersion(""), IstioVersion("1.9"), 1, }, } for _, tc := range tcs { t.Run(fmt.Sprintf("compare version %s->%s", tc.a, tc.b), func(t *testing.T) { r := tc.a.Compare(tc.b) if r != tc.result { t.Errorf("expected %d, got %d", tc.result, r) } }) } } func TestMinimumIstioVersion(t *testing.T) { tcs := []struct { name string
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Apr 22 18:13:40 UTC 2024 - 2.9K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/registry/customresource/strategy_test.go
}, }, }, } for _, tc := range tcs { if tc.statusEnabled { strategy.status = &apiextensions.CustomResourceSubresourceStatus{} } else { strategy.status = nil } strategy.PrepareForUpdate(context.TODO(), tc.obj, tc.old) if !reflect.DeepEqual(tc.obj, tc.expected) { t.Errorf("test %q failed: expected: %v, got %v", tc.name, tc.expected, tc.obj) } } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 8.2K bytes - Viewed (0) -
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) -
security/pkg/util/jwtutil_test.go
}, } for id, tc := range testCases { t.Run(id, func(t *testing.T) { exp, err := GetExp(tc.jwt) if err != nil && tc.expectedErr == nil || err == nil && tc.expectedErr != nil { t.Errorf("%s: Got error \"%v\", expected error \"%v\"", id, err, tc.expectedErr) } else if err != nil && tc.expectedErr != nil && err.Error() != tc.expectedErr.Error() {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri May 31 16:07:11 UTC 2024 - 6K bytes - Viewed (0) -
security/pkg/server/ca/authenticate/kubeauth/kube_jwt_test.go
}, } for id, tc := range testCases { t.Run(id, func(t *testing.T) { ctx := context.Background() if tc.metadata != nil { if tc.token != "" { token := security.BearerTokenPrefix + tc.token tc.metadata.Append("authorization", token) } ctx = metadata.NewIncomingContext(ctx, tc.metadata) } tokenReview := &k8sauth.TokenReview{
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 23 21:07:03 UTC 2024 - 6.1K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/cel/composition_test.go
strictCostEnforcement: false, }, } for _, tc := range cases { t.Run(tc.name, func(t *testing.T) { compiler, err := NewCompositedCompiler(environment.MustBaseEnvSet(environment.DefaultCompatibilityVersion(), tc.strictCostEnforcement)) if err != nil { t.Fatal(err) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 10 22:07:40 UTC 2024 - 8.2K bytes - Viewed (0) -
cmd/kubeadm/app/cmd/upgrade/diff_test.go
expectedError: true, }, } for _, tc := range testCases { t.Run(tc.name, func(t *testing.T) { flags.cfgPath = tc.cfgPath flags.kubeConfigPath = kubeConfigPath cmd := newCmdDiff(os.Stdout) if tc.setManifestPath { flags.apiServerManifestPath = tc.manifestPath flags.controllerManagerManifestPath = tc.manifestPath flags.schedulerManifestPath = tc.manifestPath }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 13 04:08:57 UTC 2024 - 5.9K bytes - Viewed (0) -
src/cmd/cgo/internal/testsanitizers/tsan_test.go
{src: "tsan15.go", needsRuntime: true}, } for _, tc := range cases { tc := tc name := strings.TrimSuffix(tc.src, ".go") t.Run(name, func(t *testing.T) { t.Parallel() dir := newTempDir(t) defer dir.RemoveAll(t) outPath := dir.Join(name) mustRun(t, config.goCmd("build", "-o", outPath, srcPath(tc.src))) cmd := hangProneCmd(outPath) if tc.needsRuntime { config.skipIfRuntimeIncompatible(t)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 06 21:14:49 UTC 2024 - 1.9K bytes - Viewed (0) -
pkg/proxy/util/endpoints_test.go
{"1.2.3:8080", "", "invalid ip part"}, } for _, tc := range testCases { ip := IPPart(tc.endpoint) if tc.expectedError == noError { if ip != tc.expectedIP { t.Errorf("Unexpected IP for %s: Expected: %s, Got %s", tc.endpoint, tc.expectedIP, ip) } } else if ip != "" { t.Errorf("Error did not occur for %s, expected: '%s' error", tc.endpoint, tc.expectedError) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 20 11:57:43 UTC 2024 - 1.4K bytes - Viewed (0)