aboutsummaryrefslogtreecommitdiff
path: root/weed/shell/command_volume_server_evacuate_test.go
blob: 4563f38ba08ee6f13aeb5986fe893286927bf4b5 (plain)
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)
	}

}