Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 52 for wrong (0.22 sec)

  1. cmd/bucket-lifecycle-handlers_test.go

    package cmd
    
    import (
    	"bytes"
    	"encoding/xml"
    	"net/http"
    	"net/http/httptest"
    	"testing"
    
    	"github.com/minio/minio/internal/auth"
    )
    
    // Test S3 Bucket lifecycle APIs with wrong credentials
    func TestBucketLifecycleWrongCredentials(t *testing.T) {
    	ExecObjectLayerAPITest(t, testBucketLifecycleHandlersWrongCredentials, []string{"GetBucketLifecycle", "PutBucketLifecycle", "DeleteBucketLifecycle"})
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jun 13 20:52:33 GMT 2023
    - 11.2K bytes
    - Viewed (0)
  2. istioctl/pkg/tag/tag_test.go

    						ObjectMeta: metav1.ObjectMeta{
    							Name:   "istio-revision-tag-wrong",
    							Labels: map[string]string{IstioTagLabel: "wrong"},
    						},
    					},
    				},
    			},
    			webhooksAfter: admitv1.MutatingWebhookConfigurationList{
    				Items: []admitv1.MutatingWebhookConfiguration{
    					{
    						ObjectMeta: metav1.ObjectMeta{
    							Name:   "istio-revision-tag-wrong",
    							Labels: map[string]string{IstioTagLabel: "wrong"},
    						},
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Nov 17 22:41:06 GMT 2023
    - 8.7K bytes
    - Viewed (0)
  3. internal/handlers/proxy_test.go

    	}
    	for _, v := range headers {
    		req := &http.Request{
    			Header: http.Header{
    				v.key: []string{v.val},
    			},
    		}
    		res := GetSourceScheme(req)
    		if res != v.expected {
    			t.Errorf("wrong header for %s: got %s want %s", v.key, res,
    				v.expected)
    		}
    	}
    }
    
    // TestGetSourceIP - check the source ip of a request is parsed correctly.
    func TestGetSourceIP(t *testing.T) {
    	headers := []headerTest{
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Dec 22 00:56:55 GMT 2023
    - 3.2K bytes
    - Viewed (0)
  4. internal/crypto/sse_test.go

    	const Domain = "SSE-S3"
    	if domain := S3.String(); domain != Domain {
    		t.Errorf("S3's string method returns wrong domain: got '%s' - want '%s'", domain, Domain)
    	}
    }
    
    func TestSSECString(t *testing.T) {
    	const Domain = "SSE-C"
    	if domain := SSEC.String(); domain != Domain {
    		t.Errorf("SSEC's string method returns wrong domain: got '%s' - want '%s'", domain, Domain)
    	}
    }
    
    var ssecUnsealObjectKeyTests = []struct {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jun 01 21:59:40 GMT 2021
    - 8.4K bytes
    - Viewed (0)
  5. istioctl/pkg/multicluster/remote_secret_test.go

    			},
    			objs: []runtime.Object{
    				makeServiceAccount("wrong-secret"),
    				secret,
    			},
    			wantErrStr: `secrets "wrong-secret" not found`,
    		},
    		{
    			name: "success",
    			opts: RemoteSecretOptions{
    				ServiceAccountName: testServiceAccountName,
    				KubeOptions: KubeOptions{
    					Namespace: testNamespace,
    				},
    				ManifestsPath: filepath.Join(env.IstioSrc, "manifests"),
    			},
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Oct 31 14:48:28 GMT 2023
    - 20.6K bytes
    - Viewed (0)
  6. internal/crypto/error.go

    	// ErrCustomerKeyMD5Mismatch indicates that the SSE-C key MD5 does not match the
    	// computed MD5 sum. This means that the client provided either the wrong key for
    	// a certain MD5 checksum or the wrong MD5 for a certain key.
    	ErrCustomerKeyMD5Mismatch = Errorf("The provided SSE-C key MD5 does not match the computed MD5 of the SSE-C key")
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Mar 28 17:44:56 GMT 2024
    - 4.4K bytes
    - Viewed (0)
  7. cmd/erasure-decode_test.go

    			t.Errorf("Test %d: should fail but it passed", i)
    		}
    		if err == nil {
    			if content := writer.Bytes(); !bytes.Equal(content, data[test.offset:test.offset+test.length]) {
    				t.Errorf("Test %d: read returns wrong file content.", i)
    			}
    		}
    
    		for i, r := range bitrotReaders {
    			if r == nil {
    				disks[i] = OfflineDisk
    			}
    		}
    		if err == nil && !test.shouldFail {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jan 30 20:43:25 GMT 2024
    - 21.1K bytes
    - Viewed (1)
  8. src/cmd/asm/internal/asm/asm.go

    			target = &a[2]
    			break
    		}
    		p.errorf("wrong number of arguments to %s instruction", op)
    		return
    	case 4:
    		if p.arch.Family == sys.S390X || p.arch.Family == sys.PPC64 {
    			// 4-operand compare-and-branch.
    			prog.From = a[0]
    			prog.Reg = p.getRegister(prog, op, &a[1])
    			prog.AddRestSource(a[2])
    			target = &a[3]
    			break
    		}
    		p.errorf("wrong number of arguments to %s instruction", op)
    		return
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Feb 21 14:34:57 GMT 2024
    - 25.3K bytes
    - Viewed (0)
  9. tests/joins_test.go

    	if len(results) == 0 {
    		t.Fatalf("no record find")
    	} else if results[0].Pet.UserID == nil || *(results[0].Pet.UserID) != user.ID {
    		t.Fatalf("wrong user id in pet")
    	} else if results[0].Pet.Name != user.Pets[0].Name {
    		t.Fatalf("wrong pet name")
    	}
    }
    
    func TestJoinArgsWithDB(t *testing.T) {
    	user := *GetUser("joins-args-db", Config{Pets: 2})
    	DB.Save(&user)
    
    	// test where
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Wed Apr 26 14:19:32 GMT 2023
    - 13.5K bytes
    - Viewed (1)
  10. internal/disk/stat_linux.go

    	devID := uint64(st.Dev) // Needed to support multiple GOARCHs
    	info.Major = unix.Major(devID)
    	info.Minor = unix.Minor(devID)
    
    	// Check for overflows.
    	// https://github.com/minio/minio/issues/8035
    	// XFS can show wrong values at times error out
    	// in such scenarios.
    	if info.Free > info.Total {
    		return info, fmt.Errorf("detected free space (%d) > total drive space (%d), fs corruption at (%s). please run 'fsck'", info.Free, info.Total, path)
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Feb 26 19:34:50 GMT 2024
    - 4.8K bytes
    - Viewed (0)
Back to top