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.
17 lines
283 B
17 lines
283 B
package admin
|
|
|
|
import (
|
|
"log"
|
|
"pkg/storage"
|
|
"pkg/topology"
|
|
"testing"
|
|
)
|
|
|
|
func TestXYZ(t *testing.T) {
|
|
dn := topology.NewDataNode("server1")
|
|
dn.Ip = "localhost"
|
|
dn.Port = 8080
|
|
vid, _:= storage.NewVolumeId("5")
|
|
out := AllocateVolume(dn,vid,storage.Copy00)
|
|
log.Println(out)
|
|
}
|