@@ -14,39 +14,39 @@ func TestHelperParseURL(t *testing.T) {
14
14
err error
15
15
}{
16
16
{
17
- url : "foobar.docker.io " ,
18
- expectedURL : "//foobar.docker.io " ,
17
+ url : "foobar.example.com " ,
18
+ expectedURL : "//foobar.example.com " ,
19
19
},
20
20
{
21
- url : "foobar.docker.io :2376" ,
22
- expectedURL : "//foobar.docker.io :2376" ,
21
+ url : "foobar.example.com :2376" ,
22
+ expectedURL : "//foobar.example.com :2376" ,
23
23
},
24
24
{
25
- url : "//foobar.docker.io :2376" ,
26
- expectedURL : "//foobar.docker.io :2376" ,
25
+ url : "//foobar.example.com :2376" ,
26
+ expectedURL : "//foobar.example.com :2376" ,
27
27
},
28
28
{
29
- url : "http://foobar.docker.io :2376" ,
30
- expectedURL : "http://foobar.docker.io :2376" ,
29
+ url : "http://foobar.example.com :2376" ,
30
+ expectedURL : "http://foobar.example.com :2376" ,
31
31
},
32
32
{
33
- url : "https://foobar.docker.io :2376" ,
34
- expectedURL : "https://foobar.docker.io :2376" ,
33
+ url : "https://foobar.example.com :2376" ,
34
+ expectedURL : "https://foobar.example.com :2376" ,
35
35
},
36
36
{
37
- url : "https://foobar.docker.io :2376/some/path" ,
38
- expectedURL : "https://foobar.docker.io :2376/some/path" ,
37
+ url : "https://foobar.example.com :2376/some/path" ,
38
+ expectedURL : "https://foobar.example.com :2376/some/path" ,
39
39
},
40
40
{
41
- url : "https://foobar.docker.io :2376/some/other/path?foo=bar" ,
42
- expectedURL : "https://foobar.docker.io :2376/some/other/path" ,
41
+ url : "https://foobar.example.com :2376/some/other/path?foo=bar" ,
42
+ expectedURL : "https://foobar.example.com :2376/some/other/path" ,
43
43
},
44
44
{
45
- url : "/foobar.docker.io " ,
45
+ url : "/foobar.example.com " ,
46
46
err : errors .New ("no hostname in URL" ),
47
47
},
48
48
{
49
- url : "ftp://foobar.docker.io :2376" ,
49
+ url : "ftp://foobar.example.com :2376" ,
50
50
err : errors .New ("unsupported scheme: ftp" ),
51
51
},
52
52
}
0 commit comments