- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 15 for expectedCert (0.59 sec)
-
cmd/xl-storage_test.go
testCases := []struct { volName string expectedErr error }{ // TestXLStorage case - 1. { volName: "success-vol", expectedErr: nil, }, // TestXLStorage case - 2. { volName: "nonexistent-vol", expectedErr: errVolumeNotFound, }, // TestXLStorage case - 3. { volName: "ab", expectedErr: errVolumeNotFound, }, }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Thu Apr 11 17:45:28 UTC 2024 - 66.7K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/options/encryptionconfig/config_test.go
_, err := LoadEncryptionConfig(testContext(t), testCase.filePath, false, "") if len(testCase.expectedErr) > 0 && !strings.Contains(errString(err), testCase.expectedErr) { t.Fatalf("expected error %q, got %q", testCase.expectedErr, errString(err)) } if len(testCase.expectedErr) == 0 && err != nil { t.Fatalf("unexpected error %q", errString(err)) } }) } tts := []struct {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 16 16:56:39 UTC 2024 - 72.3K bytes - Viewed (0) -
pkg/registry/core/pod/strategy_test.go
pod: "not a pod object", expectedValue: "test-pod", expectedErr: fmt.Errorf("not a pod"), }, } for _, tc := range tcs { indexValues, err := tc.indexFunc(tc.pod) if !reflect.DeepEqual(err, tc.expectedErr) { t.Errorf("name %v, expected %v, got %v", tc.name, tc.expectedErr, err) } if err == nil && len(indexValues) != 1 && indexValues[0] != tc.expectedValue {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 76.2K bytes - Viewed (0) -
src/net/dnsclient_unix_test.go
{ name: "CNAME", f: func(t *testing.T) { expectedErr := &DNSError{Err: errMalformedDNSRecordsDetail, Name: "golang.org"} _, err := r.LookupCNAME(context.Background(), "golang.org") if err.Error() != expectedErr.Error() { t.Fatalf("unexpected error: %s", err) } _, err = LookupCNAME("golang.org") if err.Error() != expectedErr.Error() { t.Fatalf("unexpected error: %s", err) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Apr 14 18:23:45 UTC 2024 - 72.4K bytes - Viewed (0) -
cmd/object-api-multipart_test.go
} // Failed as expected, but does it fail for the expected reason. if actualErr != nil && !testCase.shouldPass { if !strings.Contains(actualErr.Error(), testCase.expectedErr.Error()) { t.Errorf("Test %d: %s: Expected to fail with error \"%s\", but instead failed with error \"%s\" instead", i+1, instanceType, testCase.expectedErr.Error(), actualErr.Error()) } }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Thu Feb 22 06:26:06 UTC 2024 - 77.1K bytes - Viewed (0) -
src/crypto/tls/handshake_client_test.go
c := &Conn{conn: &discardConn{}, config: testConfig.Clone()} expectedErr := "tls: server sent certificate containing RSA key larger than 8192 bits" err := c.verifyServerCertificate([][]byte{testCert.Bytes}) if err == nil || err.Error() != expectedErr { t.Errorf("Conn.verifyServerCertificate unexpected error: want %q, got %q", expectedErr, err) } expectedErr = "tls: client sent certificate containing RSA key larger than 8192 bits"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:10:12 UTC 2024 - 88.7K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/dynamicresources/dynamicresources_test.go
expectedHint framework.QueueingHint expectedErr bool }{ "skip-deletes": { pod: podWithClaimTemplate, oldObj: allocatedClaim, newObj: nil, expectedHint: framework.QueueSkip, }, "backoff-wrong-new-object": { pod: podWithClaimTemplate, newObj: "not-a-claim", expectedErr: true, }, "skip-wrong-claim": {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 27 07:57:10 UTC 2024 - 61.9K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/noderesources/fit_test.go
expectedHint framework.QueueingHint expectedErr bool }{ "backoff-wrong-old-object": { pod: &v1.Pod{}, oldObj: "not-a-pod", enableInPlacePodVerticalScaling: true, expectedHint: framework.Queue, expectedErr: true, }, "backoff-wrong-new-object": {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 12 13:26:09 UTC 2024 - 57.4K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/apis/apiserver/validation/validation_test.go
}, }, featureEnabled: false, expectedErr: `matchConditions: Invalid value: "": matchConditions are not supported when StructuredAuthorizationConfiguration feature gate is disabled`, }, { name: "no matchConditions should not require feature enablement", matchConditions: []api.WebhookMatchCondition{}, featureEnabled: false, expectedErr: "", }, {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 10 22:07:40 UTC 2024 - 87.2K bytes - Viewed (0) -
src/crypto/tls/conn.go
} vers := uint16(hdr[1])<<8 | uint16(hdr[2]) expectedVers := c.vers if expectedVers == VersionTLS13 { // All TLS 1.3 records are expected to have 0x0303 (1.2) after // the initial hello (RFC 8446 Section 5.1). expectedVers = VersionTLS12 } n := int(hdr[3])<<8 | int(hdr[4]) if c.haveVers && vers != expectedVers { c.sendAlert(alertProtocolVersion)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:10:12 UTC 2024 - 51.8K bytes - Viewed (0)