Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for mustGetPoolEndpoints (0.22 sec)

  1. cmd/server-main_test.go

    	nDisks := 1
    	disks, err := getRandomDisks(nDisks)
    	if err != nil {
    		t.Fatal("Failed to create drives for the backend")
    	}
    	defer removeRoots(disks)
    
    	obj, err := newObjectLayer(ctx, mustGetPoolEndpoints(0, disks...))
    	if err != nil {
    		t.Fatal("Unexpected object layer initialization error", err)
    	}
    
    	_, ok := obj.(*erasureServerPools)
    	if !ok {
    		t.Fatal("Unexpected object layer detected", reflect.TypeOf(obj))
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Dec 07 09:33:56 GMT 2023
    - 3.1K bytes
    - Viewed (0)
  2. cmd/erasure-server-pool-decom_test.go

    )
    
    func prepareErasurePools() (ObjectLayer, []string, error) {
    	nDisks := 32
    	fsDirs, err := getRandomDisks(nDisks)
    	if err != nil {
    		return nil, nil, err
    	}
    
    	pools := mustGetPoolEndpoints(0, fsDirs[:16]...)
    	pools = append(pools, mustGetPoolEndpoints(1, fsDirs[16:]...)...)
    
    	// Everything is fine, should return nil
    	objLayer, err := newErasureServerPools(context.Background(), pools)
    	if err != nil {
    		return nil, nil, err
    	}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Jul 03 16:47:40 GMT 2023
    - 4.8K bytes
    - Viewed (0)
  3. cmd/admin-handlers_test.go

    	if err := newTestConfig(globalMinioDefaultRegion, objLayer); err != nil {
    		cancel()
    		return nil, err
    	}
    
    	// Initialize boot time
    	globalBootTime = UTCNow()
    
    	globalEndpoints = mustGetPoolEndpoints(0, erasureDirs...)
    
    	initAllSubsystems(ctx)
    
    	initConfigSubsystem(ctx, objLayer)
    
    	globalIAMSys.Init(ctx, objLayer, globalEtcdClient, 2*time.Second)
    
    	// Setup admin mgmt REST API handlers.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 13.8K bytes
    - Viewed (0)
  4. cmd/erasure-healing_test.go

    	nDisks := 32
    	fsDirs, err := getRandomDisks(nDisks)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	defer removeRoots(fsDirs)
    
    	pools := mustGetPoolEndpoints(0, fsDirs[:16]...)
    	pools = append(pools, mustGetPoolEndpoints(1, fsDirs[16:]...)...)
    
    	// Everything is fine, should return nil
    	objLayer, _, err := initObjectLayer(ctx, pools)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Mar 27 15:10:40 GMT 2024
    - 47.6K bytes
    - Viewed (0)
  5. cmd/erasure-metadata-utils_test.go

    	defer cancel()
    
    	nDisks := 16
    	disks, err := getRandomDisks(nDisks)
    	if err != nil {
    		t.Fatal(err)
    	}
    	objLayer, _, err := initObjectLayer(ctx, mustGetPoolEndpoints(0, disks...))
    	if err != nil {
    		removeRoots(disks)
    		t.Fatal(err)
    	}
    	defer removeRoots(disks)
    	z := objLayer.(*erasureServerPools)
    	testShuffleDisks(t, z)
    }
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 7.4K bytes
    - Viewed (0)
  6. cmd/test-utils_test.go

    	nDisks := 1
    	fsDirs, err := getRandomDisks(nDisks)
    	if err != nil {
    		return nil, "", err
    	}
    	obj, _, err := initObjectLayer(context.Background(), mustGetPoolEndpoints(0, fsDirs...))
    	if err != nil {
    		return nil, "", err
    	}
    
    	initAllSubsystems(ctx)
    
    	globalIAMSys.Init(ctx, obj, globalEtcdClient, 2*time.Second)
    	return obj, fsDirs[0], nil
    }
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:06:57 GMT 2024
    - 75.7K bytes
    - Viewed (0)
  7. cmd/endpoint_test.go

    			[]string{"http://localhost:9000/d1", "http://localhost:9001/d2", "http://localhost:9002/d3", "http://localhost:9003/d4"},
    			"localhost:9000",
    		},
    	}
    
    	for i, testCase := range testCases {
    		zendpoints := mustGetPoolEndpoints(0, testCase.endpointArgs...)
    		if !zendpoints[0].Endpoints[0].IsLocal {
    			if err := zendpoints[0].Endpoints.UpdateIsLocal(); err != nil {
    				t.Fatalf("error: expected = <nil>, got = %v", err)
    			}
    		}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sat Jan 13 07:53:03 GMT 2024
    - 18.9K bytes
    - Viewed (1)
  8. cmd/erasure-object_test.go

    	path := t.TempDir()
    
    	var fsDirs []string
    	for i := 1; i <= numDisks; i++ {
    		fsDirs = append(fsDirs, filepath.Join(path, fmt.Sprintf("disk%d", i)))
    	}
    
    	objLayer, _, err := initObjectLayer(ctx, mustGetPoolEndpoints(0, fsDirs...))
    	if err != nil {
    		removeRoots(fsDirs)
    		t.Fatal(err)
    	}
    
    	// cleaning up of temporary test directories
    	defer objLayer.Shutdown(context.Background())
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Jan 30 20:43:25 GMT 2024
    - 36.8K bytes
    - Viewed (0)
  9. cmd/object-api-listobjects_test.go

    				}
    			}
    		})
    	}
    }
    
    // Initialize FS backend for the benchmark.
    func initFSObjectsB(disk string, t *testing.B) (obj ObjectLayer) {
    	obj, _, err := initObjectLayer(context.Background(), mustGetPoolEndpoints(0, disk))
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	newTestConfig(globalMinioDefaultRegion, obj)
    
    	initAllSubsystems(GlobalContext)
    	return obj
    }
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Jan 30 20:43:25 GMT 2024
    - 73.1K bytes
    - Viewed (0)
Back to top