Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for initTestAPIEndPoints (0.21 sec)

  1. cmd/post-policy_test.go

    	if err := newTestConfig(globalMinioDefaultRegion, obj); err != nil {
    		t.Fatalf("Initializing config.json failed")
    	}
    
    	// Register the API end points with Erasure/FS object layer.
    	apiRouter := initTestAPIEndPoints(obj, []string{"PostPolicy"})
    
    	credentials := globalActiveCred
    	bucketName := minioMetaBucket
    	objectName := "config/x"
    
    	// This exploit needs browser to be enabled.
    	if !globalBrowserEnabled {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Apr 19 16:45:54 GMT 2024
    - 29.6K bytes
    - Viewed (0)
  2. cmd/test-utils_test.go

    	if err != nil {
    		// failed to create newbucket, return err.
    		return "", nil, err
    	}
    	// Register the API end points with Erasure object layer.
    	// Registering only the GetObject handler.
    	apiRouter := initTestAPIEndPoints(obj, endpoints)
    	f := http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
    		r.RequestURI = r.URL.RequestURI()
    		apiRouter.ServeHTTP(w, r)
    	})
    	return bucketName, f, nil
    }
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:06:57 GMT 2024
    - 75.7K bytes
    - Viewed (0)
Back to top