mirror of
https://github.com/minio/minio.git
synced 2026-11-25 07:21:49 +00:00
Move to URL based syntax formatting. (#3092)
For command line arguments we are currently following - <node-1>:/path ... <node-n>:/path This patch changes this to - http://<node-1>/path ... http://<node-n>/path
This commit is contained in:
1 parent
30dc11a931
commit
9e2d0ac50b
36 files changed
+560
-474
No files matched your search
+29
-11
@@ -16,7 +16,10 @@
|
||||
|
||||
package cmd
|
||||
|
||||
import "testing"
|
||||
import (
|
||||
"net/url"
|
||||
"testing"
|
||||
)
|
||||
|
||||
// Tests initialization of remote controller clients.
|
||||
func TestInitRemoteControlClients(t *testing.T) {
|
||||
@@ -41,11 +44,19 @@ func TestInitRemoteControlClients(t *testing.T) {
|
||||
{
|
||||
srvCmdConfig: serverCmdConfig{
|
||||
isDistXL: true,
|
||||
endPoints: []storageEndPoint{
|
||||
{"10.1.10.1", 9000, "/mnt/disk1"},
|
||||
{"10.1.10.1", 9000, "/mnt/disk2"},
|
||||
{"10.1.10.2", 9000, "/mnt/disk1"},
|
||||
{"10.1.10.2", 9000, "/mnt/disk2"},
|
||||
endpoints: []*url.URL{{
|
||||
Scheme: "http",
|
||||
Host: "10.1.10.1:9000",
|
||||
Path: "/mnt/disk1",
|
||||
}, {
|
||||
Scheme: "http",
|
||||
Host: "10.1.10.1:9000", Path: "/mnt/disk2",
|
||||
}, {
|
||||
Scheme: "http",
|
||||
Host: "10.1.10.2:9000", Path: "/mnt/disk1",
|
||||
}, {
|
||||
Scheme: "http",
|
||||
Host: "10.1.10.2:9000", Path: "/mnt/disk2"},
|
||||
},
|
||||
},
|
||||
totalClients: 2,
|
||||
@@ -54,11 +65,18 @@ func TestInitRemoteControlClients(t *testing.T) {
|
||||
{
|
||||
srvCmdConfig: serverCmdConfig{
|
||||
isDistXL: true,
|
||||
endPoints: []storageEndPoint{
|
||||
{"10.1.10.1", 9000, "/mnt/disk1"},
|
||||
{"10.1.10.2", 9000, "/mnt/disk2"},
|
||||
{"10.1.10.3", 9000, "/mnt/disk3"},
|
||||
{"10.1.10.4", 9000, "/mnt/disk4"},
|
||||
endpoints: []*url.URL{{
|
||||
Scheme: "http",
|
||||
Host: "10.1.10.1:9000", Path: "/mnt/disk1",
|
||||
}, {
|
||||
Scheme: "http",
|
||||
Host: "10.1.10.2:9000", Path: "/mnt/disk2",
|
||||
}, {
|
||||
Scheme: "http",
|
||||
Host: "10.1.10.3:9000", Path: "/mnt/disk1",
|
||||
}, {
|
||||
Scheme: "http",
|
||||
Host: "10.1.10.4:9000", Path: "/mnt/disk2"},
|
||||
},
|
||||
},
|
||||
totalClients: 4,
|
||||
|
||||
Reference in new issue
Block a user