- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 429 for tc (0.08 sec)
-
cmd/kubeadm/app/apis/kubeadm/v1beta3/conversion_test.go
{Name: "a", Value: "b"}, {Name: "c", Value: "d"}, }, }, } for _, tc := range tests { t.Run(tc.name, func(t *testing.T) { actual := convertToArgs(tc.args) if !reflect.DeepEqual(tc.expectedArgs, actual) { t.Errorf("expected args: %v\n\t got: %v\n\t", tc.expectedArgs, actual) } }) } } func TestConvertFromArgs(t *testing.T) { var tests = []struct {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Aug 16 10:27:05 UTC 2023 - 2.2K bytes - Viewed (0) -
staging/src/k8s.io/cli-runtime/pkg/genericclioptions/name_flags_test.go
expectNoMatch: true, }, } for _, tc := range testCases { t.Run(tc.name, func(t *testing.T) { printFlags := NamePrintFlags{ Operation: tc.operation, } 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 }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Aug 21 15:08:30 UTC 2018 - 3.1K bytes - Viewed (0) -
pkg/kube/inject/app_probe_test.go
InitialDelaySeconds: 10, }, }, }, }, }, }, } { patchRewriteProbe(annotations, tc.pod, 15020) if !reflect.DeepEqual(tc.pod, tc.expected) { t.Errorf("[%v] failed, want %v, got %v", tc.name, tc.expected, tc.pod) } }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Aug 04 15:06:24 UTC 2023 - 8.6K bytes - Viewed (0) -
pkg/test/framework/resource/flags_test.go
expectedRevs: RevVerMap{ "a": "", }, }, } for _, tc := range tcs { t.Run(tc.name, func(t *testing.T) { err := validate(tc.settings) if tc.expectErr { if err == nil { t.Error("expected error but got none") } return } if tc.expectedRevs != nil { if diff := cmp.Diff(tc.expectedRevs, tc.settings.Revisions); diff != "" {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Aug 03 17:06:22 UTC 2022 - 1.9K bytes - Viewed (0) -
cmd/kubeadm/app/preflight/utils_test.go
switch { case err != nil && tc.valid: t.Errorf("GetKubeletVersion: unexpected error for %q. Error: %v", tc.output, err) case err == nil && !tc.valid: t.Errorf("GetKubeletVersion: error expected for key %q, but result is %q", tc.output, ver) case ver != nil && ver.String() != tc.expected: t.Errorf("GetKubeletVersion: unexpected version result for key %q. Expected: %q Actual: %q", tc.output, tc.expected, ver) } }) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jun 23 11:33:44 UTC 2022 - 2.3K bytes - Viewed (0) -
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) }) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Jul 27 18:01:48 UTC 2022 - 8K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/resourcequota/config_test.go
}, }}, }, } for _, tc := range testcases { t.Run(tc.name, func(t *testing.T) { config, err := LoadConfiguration(bytes.NewBuffer([]byte(tc.input))) if len(tc.expectErr) > 0 { if err == nil { t.Fatal("expected err, got none") } if !strings.Contains(err.Error(), tc.expectErr) { t.Fatalf("expected err containing %q, got %v", tc.expectErr, err) } return }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Sep 04 12:53:52 UTC 2020 - 4.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) -
security/pkg/pki/error/error_test.go
code: codes.Internal, }, } for k, tc := range testCases { caErr := NewError(tc.eType, tc.err) if caErr.Error() != tc.err.Error() { t.Errorf("[%s] unexpected error: '%s' VS (expected)'%s'", k, caErr.Error(), tc.err.Error()) } if caErr.ErrorType() != tc.message { t.Errorf("[%s] unexpected error type message: '%s' VS (expected)'%s'", k, caErr.ErrorType(), tc.message) } if caErr.HTTPErrorCode() != tc.code {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri May 29 20:42:01 UTC 2020 - 2K bytes - Viewed (0)