Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for 123_ (0.17 sec)

  1. internal/rest/client_test.go

    		target interface{}
    		want   bool
    	}{
    		{
    			name:   "url.Error",
    			err:    &url.Error{Op: "PUT", URL: "http://localhost/1234", Err: restError("remote server offline")},
    			target: &url.Error{},
    			want:   true,
    		},
    		{
    			name: "net.Error",
    			err:  &url.Error{Op: "PUT", URL: "http://localhost/1234", Err: restError("remote server offline")},
    			want: true,
    		},
    		{
    			name: "net.Error-unmatched",
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Nov 16 17:28:29 GMT 2021
    - 1.9K bytes
    - Viewed (0)
  2. internal/config/storageclass/storage-class_test.go

    func TestIsValidStorageClassKind(t *testing.T) {
    	tests := []struct {
    		sc   string
    		want bool
    	}{
    		{"STANDARD", true},
    		{"REDUCED_REDUNDANCY", true},
    		{"", false},
    		{"INVALID", false},
    		{"123", false},
    		{"MINIO_STORAGE_CLASS_RRS", false},
    		{"MINIO_STORAGE_CLASS_STANDARD", false},
    	}
    	for i, tt := range tests {
    		if got := IsValid(tt.sc); got != tt.want {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Aug 15 23:04:20 GMT 2023
    - 4.3K bytes
    - Viewed (0)
  3. cmd/endpoint_test.go

    		// Erasure Setup with PathEndpointType
    		{
    			":1234",
    			[]string{"/d1", "/d2", "/d3", "/d4"},
    			":1234",
    			Endpoints{
    				Endpoint{URL: &url.URL{Path: mustAbs("/d1")}, IsLocal: true},
    				Endpoint{URL: &url.URL{Path: mustAbs("/d2")}, IsLocal: true},
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sat Jan 13 07:53:03 GMT 2024
    - 18.9K bytes
    - Viewed (1)
  4. internal/dsync/drwmutex_test.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package dsync
    
    import (
    	"context"
    	"fmt"
    	"runtime"
    	"sync/atomic"
    	"testing"
    	"time"
    )
    
    const (
    	id     = "1234-5678"
    	source = "main.go"
    )
    
    func testSimpleWriteLock(t *testing.T, duration time.Duration) (locked bool) {
    	drwm1 := NewDRWMutex(ds, "simplelock")
    	ctx1, cancel1 := context.WithCancel(context.Background())
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sat Dec 24 03:49:07 GMT 2022
    - 9.7K bytes
    - Viewed (0)
  5. cmd/object-api-utils_test.go

    		// cases which should pass the test.
    		// passing in valid bucket names.
    		{"lol", true},
    		{"1-this-is-valid", true},
    		{"1-this-too-is-valid-1", true},
    		{"this.works.too.1", true},
    		{"1234567", true},
    		{"123", true},
    		{"s3-eu-west-1.amazonaws.com", true},
    		{"ideas-are-more-powerful-than-guns", true},
    		{"testbucket", true},
    		{"1bucket", true},
    		{"bucket1", true},
    		{"a.b", true},
    		{"ab.a.bc", true},
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 23.4K bytes
    - Viewed (0)
  6. cmd/xl-storage_test.go

    	}{
    		// Cases which should pass the test.
    		// passing in valid bucket names.
    		{"lol", true},
    		{"1-this-is-valid", true},
    		{"1-this-too-is-valid-1", true},
    		{"this.works.too.1", true},
    		{"1234567", true},
    		{"123", true},
    		{"s3-eu-west-1.amazonaws.com", true},
    		{"ideas-are-more-powerful-than-guns", true},
    		{"testbucket", true},
    		{"1bucket", true},
    		{"bucket1", true},
    		{"$this-is-not-valid-too", true},
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 11 17:45:28 GMT 2024
    - 66.7K bytes
    - Viewed (0)
  7. cmd/warm-backend-gcs.go

    		return err
    	}
    
    	reason := googleAPIErr.Errors[0].Reason
    	message := googleAPIErr.Errors[0].Message
    
    	switch reason {
    	case "required":
    		// Anonymous users does not have storage.xyz access to project 123.
    		fallthrough
    	case "keyInvalid":
    		fallthrough
    	case "forbidden":
    		err = PrefixAccessDenied{
    			Bucket: bucket,
    			Object: object,
    		}
    	case "invalid":
    		err = BucketNameInvalid{
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sun Apr 21 11:43:18 GMT 2024
    - 5.9K bytes
    - Viewed (0)
  8. cmd/streaming-signature-v4_test.go

    		{"10000000000000000", 0, "http chunk length too large"},
    		{"00000000000000001", 0, "http chunk length too large"}, // could accept if we wanted
    	}
    	for i := uint64(0); i <= 1234; i++ {
    		tests = append(tests, testCase{in: fmt.Sprintf("%x", i), want: i})
    	}
    	for _, tt := range tests {
    		got, err := parseHexUint([]byte(tt.in))
    		if tt.wantErr != "" {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Apr 23 18:58:53 GMT 2021
    - 5.7K bytes
    - Viewed (0)
  9. cmd/xl-storage-format_test.go

    	xhttp "github.com/minio/minio/internal/http"
    )
    
    func TestIsXLMetaFormatValid(t *testing.T) {
    	tests := []struct {
    		name    int
    		version string
    		format  string
    		want    bool
    	}{
    		{1, "123", "fs", false},
    		{2, "123", xlMetaFormat, false},
    		{3, xlMetaVersion100, "test", false},
    		{4, xlMetaVersion101, "hello", false},
    		{5, xlMetaVersion100, xlMetaFormat, true},
    		{6, xlMetaVersion101, xlMetaFormat, true},
    	}
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 17.6K bytes
    - Viewed (0)
  10. cmd/apierrorcode_string.go

    	_ = x[ErrObjectLockConfigurationNotAllowed-119]
    	_ = x[ErrNoSuchObjectLockConfiguration-120]
    	_ = x[ErrObjectLocked-121]
    	_ = x[ErrInvalidRetentionDate-122]
    	_ = x[ErrPastObjectLockRetainDate-123]
    	_ = x[ErrUnknownWORMModeDirective-124]
    	_ = x[ErrBucketTaggingNotFound-125]
    	_ = x[ErrObjectLockInvalidHeaders-126]
    	_ = x[ErrInvalidTagDirective-127]
    	_ = x[ErrPolicyAlreadyAttached-128]
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sat Apr 06 06:44:30 GMT 2024
    - 21.1K bytes
    - Viewed (0)
Back to top