mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 05:27:21 +00:00
add more testing cases
Signed-off-by: zhangsheng02 <sheng.zhang@daocloud.io>
This commit is contained in:
parent
14d2440b87
commit
dadc2ad385
@ -151,7 +151,7 @@ func TestGetAddressAndDialer(t *testing.T) {
|
|||||||
expectedAddr: "/tmp/f6.sock",
|
expectedAddr: "/tmp/f6.sock",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
endpoint: "tco:/localhost:9090",
|
endpoint: "tcp://localhost:9090",
|
||||||
expectError: true,
|
expectError: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -159,6 +159,14 @@ func TestGetAddressAndDialer(t *testing.T) {
|
|||||||
endpoint: "htta://free-test.com",
|
endpoint: "htta://free-test.com",
|
||||||
expectError: true,
|
expectError: true,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
endpoint: "https://www.youtube.com/",
|
||||||
|
expectError: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
endpoint: "http://www.baidu.com/",
|
||||||
|
expectError: true,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
for _, test := range tests {
|
for _, test := range tests {
|
||||||
// just test addr and err
|
// just test addr and err
|
||||||
|
Loading…
Reference in New Issue
Block a user