seaweedfs/weed/shell/command_volume_server_evacuate_test.go

23 lines
438 B
Go
Raw Normal View History

package shell
import (
"os"
"testing"
)
func TestVolumeServerEvacuate(t *testing.T) {
2023-03-14 01:00:27 +08:00
targetServer := ""
volumeRack := "rack1"
c := commandVolumeServerEvacuate{
targetServer: &targetServer,
volumeRack: &volumeRack,
}
2022-07-12 17:56:34 +08:00
c.topologyInfo = parseOutput(topoData)
volumeServer := "192.168.1.4:8080"
2022-07-12 17:56:34 +08:00
if err := c.evacuateNormalVolumes(nil, volumeServer, true, false, os.Stdout); err != nil {
t.Errorf("evacuate: %v", err)
}
}