{":8080",[][]string{[]string{"https://example.org/d1","https://example.org/d2","https://example.org/d3","https://example.org/d4"}},"",EndpointList{},-1,fmt.Errorf("no endpoint found for this host")},
{":8080",[][]string{[]string{"https://example.org/d1","https://example.com/d2","https://example.net:8000/d3","https://example.edu/d1"}},"",EndpointList{},-1,fmt.Errorf("no endpoint found for this host")},
{"localhost:9000",[][]string{[]string{"https://127.0.0.1:9000/d1","https://localhost:9001/d1","https://example.com/d1","https://example.com/d2"}},"",EndpointList{},-1,fmt.Errorf("path '/d1' can not be served by different port on same address")},
{"localhost:9000",[][]string{[]string{"https://127.0.0.1:8000/d1","https://localhost:9001/d2","https://example.com/d1","https://example.com/d2"}},"",EndpointList{},-1,fmt.Errorf("port number in server address must match with one of the port in local endpoints")},
{"localhost:10000",[][]string{[]string{"https://127.0.0.1:8000/d1","https://localhost:8000/d2","https://example.com/d1","https://example.com/d2"}},"",EndpointList{},-1,fmt.Errorf("server address and local endpoint have different ports")},
{"localhost:9000",[][]string{{"http://localhost/d1"}},"",EndpointList{},-1,fmt.Errorf("use path style endpoint for FS setup")},
{":8080",[][]string{{"https://example.org/d1","https://example.org/d2","https://example.org/d3","https://example.org/d4"}},"",EndpointList{},-1,fmt.Errorf("no endpoint found for this host")},
{":8080",[][]string{{"https://example.org/d1","https://example.com/d2","https://example.net:8000/d3","https://example.edu/d1"}},"",EndpointList{},-1,fmt.Errorf("no endpoint found for this host")},
{"localhost:9000",[][]string{{"https://127.0.0.1:9000/d1","https://localhost:9001/d1","https://example.com/d1","https://example.com/d2"}},"",EndpointList{},-1,fmt.Errorf("path '/d1' can not be served by different port on same address")},
{"localhost:9000",[][]string{{"https://127.0.0.1:8000/d1","https://localhost:9001/d2","https://example.com/d1","https://example.com/d2"}},"",EndpointList{},-1,fmt.Errorf("port number in server address must match with one of the port in local endpoints")},
{"localhost:10000",[][]string{{"https://127.0.0.1:8000/d1","https://localhost:8000/d2","https://example.com/d1","https://example.com/d2"}},"",EndpointList{},-1,fmt.Errorf("server address and local endpoint have different ports")},
{":9001",[][]string{[]string{"http://10.0.0.1:9000/export","http://10.0.0.2:9000/export","http://"+nonLoopBackIP+":9001/export","http://10.0.0.2:9001/export"}},"",EndpointList{},-1,fmt.Errorf("path '/export' can not be served by different port on same address")},
{":9001",[][]string{{"http://10.0.0.1:9000/export","http://10.0.0.2:9000/export","http://"+nonLoopBackIP+":9001/export","http://10.0.0.2:9001/export"}},"",EndpointList{},-1,fmt.Errorf("path '/export' can not be served by different port on same address")},
{":9000",[][]string{[]string{"http://127.0.0.1:9000/export","http://"+nonLoopBackIP+":9000/export","http://10.0.0.1:9000/export","http://10.0.0.2:9000/export"}},"",EndpointList{},-1,fmt.Errorf("path '/export' cannot be served by different address on same server")},
{":9000",[][]string{{"http://127.0.0.1:9000/export","http://"+nonLoopBackIP+":9000/export","http://10.0.0.1:9000/export","http://10.0.0.2:9000/export"}},"",EndpointList{},-1,fmt.Errorf("path '/export' cannot be served by different address on same server")},
{":9000",[][]string{[]string{"http://localhost/d1","http://localhost/d2","http://example.org/d3","http://example.com/d4"}},"",EndpointList{},-1,fmt.Errorf("'localhost' resolves to loopback address is not allowed for distributed XL")},
{":9000",[][]string{{"http://localhost/d1","http://localhost/d2","http://example.org/d3","http://example.com/d4"}},"",EndpointList{},-1,fmt.Errorf("'localhost' resolves to loopback address is not allowed for distributed XL")},