Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 154 for succeed (0.15 sec)

  1. cmd/erasure-object_test.go

    	}
    	gr, err := obj.GetObjectNInfo(ctx, bucket, object, nil, nil, ObjectOptions{})
    	if err != nil {
    		t.Fatalf("Expected GetObject to succeed, but failed with %v", err)
    	}
    	output := bytes.NewBuffer([]byte{})
    	_, err = io.Copy(output, gr)
    	if err != nil {
    		t.Fatalf("Expected GetObject reading data to succeed, but failed with %v", err)
    	}
    	gr.Close()
    	if !bytes.Equal(output.Bytes(), smallData) {
    		t.Fatalf("Corrupted data is found")
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jan 30 20:43:25 GMT 2024
    - 36.8K bytes
    - Viewed (0)
  2. cmd/encryption-v1_test.go

    		etag, err := DecryptETag(test.ObjectKey, test.ObjectInfo)
    		if err != nil && !test.ShouldFail {
    			t.Fatalf("Test %d: should succeed but failed: %v", i, err)
    		}
    		if err == nil && test.ShouldFail {
    			t.Fatalf("Test %d: should fail but succeeded", i)
    		}
    		if err == nil {
    			if etag != test.ETag {
    				t.Fatalf("Test %d: ETag mismatch: got %s - want %s", i, etag, test.ETag)
    			}
    		}
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Sep 24 04:17:08 GMT 2022
    - 19.9K bytes
    - Viewed (0)
  3. internal/bucket/encryption/bucket-sse-config_test.go

    		},
    	}
    
    	for i, tc := range testCases {
    		ssec, err := ParseBucketSSEConfig(bytes.NewReader([]byte(tc.inputXML)))
    		if tc.shouldPass && err != nil {
    			t.Errorf("Test case %d: Expected to succeed but got %s", i+1, err)
    		}
    
    		if !tc.shouldPass {
    			if err == nil || err != nil && err.Error() != tc.expectedErr.Error() {
    				t.Errorf("Test case %d: Expected %s but got %s", i+1, tc.expectedErr, err)
    			}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Aug 16 18:28:30 GMT 2022
    - 6.1K bytes
    - Viewed (0)
  4. internal/dsync/dsync_test.go

    		t.Errorf("expected at least %v time have passed, however %v passed", expect, elapsed)
    	}
    	t.Logf("expected at least %v time have passed, %v passed", expect, elapsed)
    }
    
    // Test two locks for different resources, both succeed
    func TestTwoSimultaneousLocksForDifferentResources(t *testing.T) {
    	dm1 := NewDRWMutex(ds, "aap")
    	dm2 := NewDRWMutex(ds, "noot")
    
    	dm1.Lock(id, source)
    	dm2.Lock(id, source)
    	dm1.Unlock(context.Background())
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Dec 24 03:49:07 GMT 2022
    - 11K bytes
    - Viewed (0)
  5. cmd/signature-v4_test.go

    				"X-Amz-Signature":  []string{"invalidsignature"},
    				"Policy":           []string{"policy"},
    			},
    			expected: ErrSignatureDoesNotMatch,
    		},
    		// (3) It should succeed if everything is correct.
    		{
    			form: http.Header{
    				"X-Amz-Credential": []string{
    					fmt.Sprintf(credentialTemplate, accessKey, now.Format(yyyymmdd), globalMinioDefaultRegion),
    				},
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 10.4K bytes
    - Viewed (1)
  6. cmd/bucket-object-lock.go

    			}
    			// https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lock-overview.html#object-lock-retention-modes
    			// If you try to delete objects protected by governance mode and have s3:BypassGovernanceRetention, the operation will succeed.
    			if checkRequestAuthType(ctx, r, policy.BypassGovernanceRetentionAction, bucket, object.ObjectName) != ErrNone {
    				return errAuthentication
    			}
    		}
    	}
    	return nil
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Apr 22 17:49:30 GMT 2024
    - 13.2K bytes
    - Viewed (0)
  7. internal/arn/arn_test.go

    	}{
    		{
    			name: "valid resource ID must succeed",
    			args: args{
    				resourceID:   "my-role",
    				serverRegion: "us-east-1",
    			},
    			want: ARN{
    				Partition:    "minio",
    				Service:      "iam",
    				Region:       "us-east-1",
    				ResourceType: "role",
    				ResourceID:   "my-role",
    			},
    			wantErr: false,
    		},
    		{
    			name: "valid resource ID must succeed",
    			args: args{
    				resourceID:   "-my-role",
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 08:31:34 GMT 2024
    - 5.1K bytes
    - Viewed (0)
  8. docs/iam/opa.md

    ```sh
    # 1. Create a bucket and a user, and upload a file. These operations will succeed.
    mc mb myminio/test
    mc admin user add myminio foo foobar123
    mc cp /etc/issue myminio/test/
    
    # 2. Now access the server as user `foo`. These operations will also succeed.
    export MC_HOST_foo=http://foo:foobar123@localhost:9000
    mc ls foo/test
    mc cat foo/test/issue
    
    Plain Text
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Jul 17 15:43:14 GMT 2022
    - 2.3K bytes
    - Viewed (0)
  9. internal/hash/reader_test.go

    			if err != nil && testCase.success {
    				t.Errorf("Test %q: Expected success, but got error %s instead", testCase.desc, err)
    			}
    			if err == nil && !testCase.success {
    				t.Errorf("Test %q: Expected error, but got success", testCase.desc)
    			}
    		})
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Sep 18 17:00:54 GMT 2023
    - 10.3K bytes
    - Viewed (0)
  10. cmd/signals.go

    )
    
    func handleSignals() {
    	// Custom exit function
    	exit := func(success bool) {
    		if globalLoggerOutput != nil {
    			globalLoggerOutput.Close()
    		}
    
    		// If global profiler is set stop before we exit.
    		globalProfilerMu.Lock()
    		defer globalProfilerMu.Unlock()
    		for _, p := range globalProfiler {
    			p.Stop()
    		}
    
    		if success {
    			os.Exit(0)
    		}
    
    		os.Exit(1)
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 17:57:52 GMT 2024
    - 2.8K bytes
    - Viewed (0)
Back to top