mirror of
https://github.com/chrislusf/seaweedfs
synced 2024-08-28 20:50:48 +02:00
23 lines
438 B
Go
23 lines
438 B
Go
package shell
|
|
|
|
import (
|
|
"os"
|
|
"testing"
|
|
)
|
|
|
|
func TestVolumeServerEvacuate(t *testing.T) {
|
|
targetServer := ""
|
|
volumeRack := "rack1"
|
|
c := commandVolumeServerEvacuate{
|
|
targetServer: &targetServer,
|
|
volumeRack: &volumeRack,
|
|
}
|
|
c.topologyInfo = parseOutput(topoData)
|
|
|
|
volumeServer := "192.168.1.4:8080"
|
|
if err := c.evacuateNormalVolumes(nil, volumeServer, true, false, os.Stdout); err != nil {
|
|
t.Errorf("evacuate: %v", err)
|
|
}
|
|
|
|
}
|