command_volume_server_evacuate_test.go 333 B

1234567891011121314151617
  1. package shell
  2. import (
  3. "os"
  4. "testing"
  5. )
  6. func TestVolumeServerEvacuate(t *testing.T) {
  7. c := commandVolumeServerEvacuate{}
  8. c.topologyInfo = parseOutput(topoData)
  9. volumeServer := "192.168.1.4:8080"
  10. if err := c.evacuateNormalVolumes(nil, volumeServer, true, false, os.Stdout); err != nil {
  11. t.Errorf("evacuate: %v", err)
  12. }
  13. }