1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
package shell import ( "os" "testing" ) func TestVolumeServerEvacuate(t *testing.T) { c := commandVolumeServerEvacuate{} 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) } }