Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 99 for Failures (0.16 sec)

  1. cmd/server-main_test.go

    			sctx := &serverCtxt{}
    			err := mergeServerCtxtFromConfigFile(testcase.config, sctx)
    			if testcase.expectedErr && err == nil {
    				t.Error("expected failure, got success")
    			}
    			if !testcase.expectedErr && err != nil {
    				t.Error("expected success, got failure", err)
    			}
    			if err == nil {
    				if len(sctx.Layout.pools) != 2 {
    					t.Error("expected parsed pools to be 2, not", len(sctx.Layout.pools))
    				}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Dec 07 09:33:56 GMT 2023
    - 3.1K bytes
    - Viewed (0)
  2. cmd/common-main.go

    		}
    		// Try to generate a data encryption key. Only try to create key if this fails.
    		// This implicitly checks that we can communicate to KES.
    		// We don't treat a policy error as failure condition since MinIO may not have the permission
    		// to create keys - just to generate/decrypt data encryption keys.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat May 04 00:17:57 GMT 2024
    - 35.8K bytes
    - Viewed (2)
  3. cmd/format-erasure_test.go

    			false,
    		},
    	}
    
    	// Valid all test cases.
    	for i, testCase := range testCases {
    		if err := checkFormatErasureValue(testCase.format, nil); err != nil && testCase.success {
    			t.Errorf("Test %d: Expected failure %s", i+1, err)
    		}
    	}
    }
    
    // Tests getFormatErasureInQuorum()
    func TestGetFormatErasureInQuorumCheck(t *testing.T) {
    	setCount := 2
    	setDriveCount := 16
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Apr 15 08:25:46 GMT 2024
    - 12.9K bytes
    - Viewed (0)
  4. internal/config/identity/openid/jwt_test.go

    			claims["exp"] = testCase.exp
    			err := updateClaimsExpiry(testCase.dsecs, claims)
    			if err != nil && !testCase.expectedFailure {
    				t.Errorf("Expected success, got failure %s", err)
    			}
    			if err == nil && testCase.expectedFailure {
    				t.Error("Expected failure, got success")
    			}
    		})
    	}
    }
    
    func initJWKSServer() *httptest.Server {
    	server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 8.3K bytes
    - Viewed (0)
  5. cmd/batch-rotate.go

    	Metadata      []BatchJobKV  `yaml:"metadata,omitempty" json:"metadata"`
    	KMSKeyID      string        `yaml:"kmskeyid" json:"kmskey"`
    }
    
    // BatchKeyRotateNotification success or failure notification endpoint for each job attempts
    type BatchKeyRotateNotification struct {
    	Endpoint string `yaml:"endpoint" json:"endpoint"`
    	Token    string `yaml:"token" json:"token"`
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 14.2K bytes
    - Viewed (0)
  6. docs/batch-jobs/README.md

    MinIO batch jobs framework also provides
    
    - Retrying a failed job automatically driven by user input
    - Monitoring job progress in real-time
    - Send notifications upon completion or failure to user configured target
    
    Following YAML describes the structure of a replication job, each value is documented and self-describing.
    
    ```yaml
    replicate:
      apiVersion: v1
      # source of the objects to be replicated
    Plain Text
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Oct 06 06:00:43 GMT 2022
    - 4.8K bytes
    - Viewed (0)
  7. cmd/metacache-manager.go

    	defer m.mu.Unlock()
    	for bucket, b := range m.buckets {
    		b.deleteAll()
    		delete(m.buckets, bucket)
    	}
    }
    
    // checkMetacacheState should be used if data is not updating.
    // Should only be called if a failure occurred.
    func (o listPathOptions) checkMetacacheState(ctx context.Context, rpc *peerRESTClient) error {
    	// We operate on a copy...
    	o.Create = false
    	c, err := rpc.GetMetacacheListing(ctx, o)
    	if err != nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Oct 25 00:44:15 GMT 2022
    - 5.2K bytes
    - Viewed (0)
  8. cmd/signature-v4-utils_test.go

    		t.Fatal(err)
    	}
    
    	_, owner, s3Err := checkKeyValid(req, globalActiveCred.AccessKey)
    	if s3Err != ErrNone {
    		t.Fatalf("Unexpected failure with %v", errorCodes.ToAPIErr(s3Err))
    	}
    
    	if !owner {
    		t.Fatalf("Expected owner to be 'true', found %t", owner)
    	}
    
    	_, _, s3Err = checkKeyValid(req, "does-not-exist")
    	if s3Err != ErrInvalidAccessKeyID {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 05 21:26:41 GMT 2024
    - 14.3K bytes
    - Viewed (0)
  9. cmd/batch-expire.go

    	if err != nil {
    		return err
    	}
    
    	*r = BatchJobExpire(tmp)
    	r.line, r.col = val.Line, val.Column
    	return nil
    }
    
    // Notify notifies notification endpoint if configured regarding job failure or success.
    func (r BatchJobExpire) Notify(ctx context.Context, body io.Reader) error {
    	if r.NotificationCfg.Endpoint == "" {
    		return nil
    	}
    
    	ctx, cancel := context.WithTimeout(ctx, 10*time.Second)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 21K bytes
    - Viewed (1)
  10. cmd/erasure-metadata.go

    func objectQuorumFromMeta(ctx context.Context, partsMetaData []FileInfo, errs []error, defaultParityCount int) (objectReadQuorum, objectWriteQuorum int, err error) {
    	// There should be at least half correct entries, if not return failure
    	expectedRQuorum := len(partsMetaData) / 2
    	if defaultParityCount == 0 {
    		// if parity count is '0', we expected all entries to be present.
    		expectedRQuorum = len(partsMetaData)
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 19.2K bytes
    - Viewed (1)
Back to top