You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
347 B

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