Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for errString (0.13 sec)

  1. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/rest.go

    // it does not look like a yaml strict decoding error.
    func parseYAMLWarnings(errString string) []string {
    	var trimmedString string
    	if trimmedShortString := strings.TrimPrefix(errString, shortPrefix); len(trimmedShortString) < len(errString) {
    		trimmedString = trimmedShortString
    	} else if trimmedLongString := strings.TrimPrefix(errString, longPrefix); len(trimmedLongString) < len(errString) {
    		trimmedString = trimmedLongString
    	} else {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 08 21:44:00 UTC 2023
    - 17K bytes
    - Viewed (0)
  2. pilot/pkg/credentials/kube/secrets_test.go

    			}
    			if tt.expectedDockerError != "" && tt.expectedDockerError != errString(err) {
    				t.Errorf("got docker err %q, wanted %q", errString(err), tt.expectedDockerError)
    			}
    		})
    	}
    }
    
    func errString(e error) string {
    	if e == nil {
    		return ""
    	}
    	return e.Error()
    }
    
    func allowIdentities(c kube.Client, identities ...string) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Feb 23 19:18:21 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apimachinery/pkg/runtime/converter_test.go

    			}
    			var errString string
    			if err != nil {
    				errString = err.Error()
    			}
    			missedErrs := []string{}
    			failed := false
    			for _, expected := range tc.expectedErrs {
    				if !strings.Contains(errString, expected) {
    					failed = true
    					missedErrs = append(missedErrs, expected)
    				} else {
    					errString = strings.Replace(errString, expected, "", 1)
    				}
    			}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 11 16:02:13 UTC 2023
    - 22.9K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/storage/value/encrypt/envelope/kmsv2/envelope_test.go

    				key2, err2 := generateCacheKey(tc2.encryptedDEKSourceType, tc2.encryptedDEKSource, tc2.keyID, tc2.annotations)
    				if err1 != nil || err2 != nil {
    					t.Errorf("generateCacheKey() want err=nil, got err1=%q, err2=%q", errString(err1), errString(err2))
    				}
    				if bytes.Equal(key1, key2) != reflect.DeepEqual(tc, tc2) {
    					t.Errorf("expected %v, got %v", reflect.DeepEqual(tc, tc2), bytes.Equal(key1, key2))
    				}
    			})
    		}
    	}
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Oct 25 16:50:20 UTC 2023
    - 47.2K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/sys/windows/dll_windows.go

    			loadDLL = systemdir + "\\" + name
    		}
    	}
    	h, err := LoadLibraryEx(loadDLL, 0, flags)
    	if err != nil {
    		return nil, err
    	}
    	return &DLL{Name: name, Handle: h}, nil
    }
    
    type errString string
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Dec 05 12:36:42 UTC 2020
    - 12K bytes
    - Viewed (0)
  6. pkg/serviceaccount/claims_test.go

    			if len(tc.expectErr) > 0 {
    				if errStr := errString(err); tc.expectErr != errStr {
    					t.Fatalf("expected error %q but got %q", tc.expectErr, errStr)
    				}
    			} else if err != nil {
    				t.Fatalf("unexpected error: %v", err)
    			}
    		})
    	}
    }
    
    func errString(err error) string {
    	if err == nil {
    		return ""
    	}
    
    	return err.Error()
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  7. pkg/kubeapiserver/options/authentication_test.go

    		},
    	}
    
    	for _, tc := range testCases {
    		t.Run(tc.name, func(t *testing.T) {
    			config, contentData, err := loadAuthenticationConfig(tc.file())
    			if !strings.Contains(errString(err), tc.expectErr) {
    				t.Fatalf("expected error %q, got %v", tc.expectErr, err)
    			}
    			if !reflect.DeepEqual(config, tc.expectedConfig) {
    				t.Fatalf("unexpected config:\n%s", cmp.Diff(tc.expectedConfig, config))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 36.5K bytes
    - Viewed (0)
  8. fastapi/security/http.py

                    client an error.
    
                    If `auto_error` is set to `False`, when the HTTP Basic authentication
                    is not available, instead of erroring out, the dependency result will
                    be `None`.
    
                    This is useful when you want to have optional authentication.
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Apr 19 15:29:38 UTC 2024
    - 13.2K bytes
    - Viewed (0)
  9. fastapi/security/oauth2.py

                    send the client an error.
    
                    If `auto_error` is set to `False`, when the HTTP Authorization header
                    is not available, instead of erroring out, the dependency result will
                    be `None`.
    
                    This is useful when you want to have optional authentication.
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Apr 02 02:48:51 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/matching/matching_test.go

    			expectMatches: false,
    		},
    		{
    			name: "erroring namespace selector on otherwise non-matching rule doesn't error",
    			criteria: &v1.MatchResources{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 00:00:21 UTC 2024
    - 38.2K bytes
    - Viewed (0)
Back to top