- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 19 for actualCert (0.19 sec)
-
pilot/pkg/credentials/kube/secrets_test.go
var actualKey []byte var actualCert []byte if certInfo != nil { actualKey = certInfo.Key actualCert = certInfo.Cert } if tt.key != string(actualKey) { t.Errorf("got key %q, wanted %q", string(actualKey), tt.key) } if tt.cert != string(actualCert) { t.Errorf("got cert %q, wanted %q", string(actualCert), tt.cert) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Feb 23 19:18:21 UTC 2024 - 18.4K bytes - Viewed (0) -
cmd/kube-controller-manager/app/certificates_test.go
actualSpecified := test.specifiedFn(test.config) if actualSpecified != test.expectedSpecified { t.Error(actualSpecified) } actualCert, actualKey := test.filesFn(test.config) if actualCert != test.expectedCert { t.Error(actualCert) } if actualKey != test.expectedKey { t.Error(actualKey) } }) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jul 09 12:14:55 UTC 2020 - 12.1K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/api/meta/priority_test.go
actualResult, actualErr := mapper.ResourceFor(schema.GroupVersionResource{}) if e, a := tc.result, actualResult; e != a { t.Errorf("%s: expected %v, got %v", tc.name, e, a) } if len(tc.err) == 0 && actualErr == nil { continue } if len(tc.err) == 0 && actualErr != nil { t.Errorf("%s: unexpected err: %v", tc.name, actualErr) continue }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Apr 06 15:24:58 UTC 2018 - 13.6K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/api/meta/multirestmapper_test.go
}, } for _, tc := range tcs { actualResult, actualErr := tc.mapper.ResourceFor(tc.input) if e, a := tc.result, actualResult; e != a { t.Errorf("%s: expected %v, got %v", tc.name, e, a) } switch { case tc.err == nil && actualErr == nil: case tc.err == nil: t.Errorf("%s: unexpected error: %v", tc.name, actualErr) case actualErr == nil: t.Errorf("%s: expected error: %v got nil", tc.name, tc.err)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jan 05 01:49:02 UTC 2018 - 13.6K bytes - Viewed (0) -
cmd/kubeadm/app/util/endpoint_test.go
if actualHost != rt.expectedHost { t.Errorf("%s returned invalid host %s, expected %s", rt.name, actualHost, rt.expectedHost) return } if actualPort != rt.expectedPort { t.Errorf("%s returned invalid port %s, expected %s", rt.name, actualPort, rt.expectedPort) } }) } } func TestParsePort(t *testing.T) { var tests = []struct { name string port string
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Feb 23 03:19:26 UTC 2019 - 10K bytes - Viewed (0) -
cmd/object-api-putobject_test.go
objInfo, actualErr := obj.PutObject(context.Background(), testCase.bucketName, testCase.objName, in, ObjectOptions{UserDefined: testCase.inputMeta}) if actualErr != nil && testCase.expectedError == nil { t.Errorf("Test %d: %s: Expected to pass, but failed with: error %s.", i, instanceType, actualErr.Error()) continue } if actualErr == nil && testCase.expectedError != nil {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Thu Feb 22 06:26:06 UTC 2024 - 25.8K bytes - Viewed (0) -
pkg/kubelet/pleg/generic_test.go
{pod: pods[1], status: &kubecontainer.PodStatus{}, error: statusErr}, } for i, c := range cases { testStr := fmt.Sprintf("test[%d]", i) actualStatus, actualErr := pleg.cache.Get(c.pod.ID) assert.Equal(t, c.status, actualStatus, testStr) assert.Equal(t, c.error, actualErr, testStr) } // pleg should not generate any event for pods[1] because of the error. assert.Exactly(t, []*PodLifecycleEvent{events[0]}, actualEvents)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 07 08:12:16 UTC 2024 - 24.8K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/quota/v1/resources_test.go
}, } for testName, testCase := range testCases { actualSet := ToSet(ResourceNames(testCase.a)) expectedSet := ToSet(testCase.expected) if !actualSet.Equal(expectedSet) { t.Errorf("%s expected: %v, actual: %v", testName, expectedSet, actualSet) } } } func TestContains(t *testing.T) { testCases := map[string]struct {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Apr 12 01:57:38 UTC 2021 - 15.6K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/deleted_kinds_test.go
expectedErr: `strconv.ParseInt: parsing "20something": invalid syntax`, }, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { actual, actualErr := NewResourceExpirationEvaluator(tt.currentVersion) checkErr(t, actualErr, tt.expectedErr) if actualErr != nil { return } actual.(*resourceExpirationEvaluator).strictRemovedHandlingInAlpha = false
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Apr 14 00:05:53 UTC 2023 - 9.8K bytes - Viewed (0) -
cmd/kubeadm/app/util/staticpod/utils_test.go
} } _, actualErr := ReadStaticPodFromDisk(manifestPath) if (actualErr != nil) != rt.expectErr { t.Errorf( "ReadStaticPodFromDisk failed\n%s\n\texpected error: %t\n\tgot: %t\n\tactual error: %v", rt.description, rt.expectErr, (actualErr != nil), actualErr, ) } }) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Sep 12 15:44:44 UTC 2023 - 22.6K bytes - Viewed (0)