SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
add tests
Chris Lu1a5d29520c3f
diff --git a/weed/shell/command_volume_balance_test.go b/weed/shell/command_volume_balance_test.goindex b77811f513..d6624bbcc9 100644--- a/weed/shell/command_volume_balance_test.go+++ b/weed/shell/command_volume_balance_test.go@@ -1,6 +1,8 @@package shellimport (+ "github.com/chrislusf/seaweedfs/weed/storage/types"+ "github.com/stretchr/testify/assert""testing""github.com/chrislusf/seaweedfs/weed/pb/master_pb"@@ -181,3 +183,14 @@ func TestBalance(t *testing.T) {}}++func TestVolumeSelection(t *testing.T) {+ topologyInfo := parseOutput(topoData)++ vids, err := collectVolumeIdsForTierChange(nil, topologyInfo, 1000, types.ToDiskType("hdd"), "", 20.0, 0);+ if err != nil {+ t.Errorf("collectVolumeIdsForTierChange: %v", err)+ }+ assert.Equal(t, 378, len(vids))++}