Clusters : port 8006 par défaut, liste des cibles jamais null
This commit is contained in:
1 parent
8dd2f187ee
commit
ee8343c69f
5 files changed
+50
-3
No files matched your search
@@ -36,3 +36,18 @@ func TestSSHOptions(t *testing.T) {
|
||||
t.Fatalf("%+v", o)
|
||||
}
|
||||
}
|
||||
|
||||
func TestNormalizeURL(t *testing.T) {
|
||||
for in, want := range map[string]string{
|
||||
"https://pve1": "https://pve1:8006",
|
||||
" https://pve1/ ": "https://pve1:8006",
|
||||
"https://pve1:443": "https://pve1:443",
|
||||
"https://10.0.0.1": "https://10.0.0.1:8006",
|
||||
"https://[fd00::1]": "https://[fd00::1]:8006",
|
||||
"https://pve1:8006/": "https://pve1:8006",
|
||||
} {
|
||||
if got := NormalizeURL(in); got != want {
|
||||
t.Errorf("NormalizeURL(%q) = %q, want %q", in, got, want)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user