aboutsummaryrefslogtreecommitdiff
path: root/weed/shell/command_volume_server_evacuate_test.go
blob: 2cdb94a60716b63c25cd39bb428c7dd47c322d64 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package shell

import (
	"os"
	"testing"
)

func TestVolumeServerEvacuate(t *testing.T) {
	topologyInfo := parseOutput(topoData)

	volumeServer := "192.168.1.4:8080"

	c := commandVolumeServerEvacuate{}
	if err := c.evacuateNormalVolumes(nil, topologyInfo, volumeServer, true, false, os.Stdout); err != nil {
		t.Errorf("evacuate: %v", err)
	}

}