From afd7995d56f0e8973770204d60dd6390f60dafc8 Mon Sep 17 00:00:00 2001 From: Karen Almog Date: Wed, 23 Dec 2020 09:47:43 +0100 Subject: [PATCH] Add unix socket test to TestNewURLsValue --- pkg/flags/urls_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/flags/urls_test.go b/pkg/flags/urls_test.go index ff4bda8d407c..ac2dcea2d50f 100644 --- a/pkg/flags/urls_test.go +++ b/pkg/flags/urls_test.go @@ -56,6 +56,9 @@ func TestNewURLsValue(t *testing.T) { {s: "http://10.1.1.1:80", exp: []url.URL{{Scheme: "http", Host: "10.1.1.1:80"}}}, {s: "http://localhost:80", exp: []url.URL{{Scheme: "http", Host: "localhost:80"}}}, {s: "http://:80", exp: []url.URL{{Scheme: "http", Host: ":80"}}}, + {s: "unix://tmp/etcd.sock", exp: []url.URL{{Scheme: "unix", Host: "tmp", Path: "/etcd.sock"}}}, + {s: "unix:///tmp/127.27.84.4:23432", exp: []url.URL{{Scheme: "unix", Path: "/tmp/127.27.84.4:23432"}}}, + {s: "unix://127.0.0.5:1456", exp: []url.URL{{Scheme: "unix", Host: "127.0.0.5:1456"}}}, { s: "http://localhost:1,https://localhost:2", exp: []url.URL{