remote: Added missing url test case

This commit is contained in:
Armon Dadgar 2014-12-04 17:14:17 -08:00 committed by Mitchell Hashimoto
parent 0d2d112c19
commit 88f94e35db
1 changed files with 5 additions and 0 deletions

View File

@ -30,6 +30,11 @@ func TestHTTPRemote_Validate(t *testing.T) {
t.Fatalf("expect error")
}
conf["url"] = "*"
if _, err := NewHTTPRemoteClient(conf); err == nil {
t.Fatalf("expect error")
}
conf["url"] = "http://cool.com"
if _, err := NewHTTPRemoteClient(conf); err != nil {
t.Fatalf("err: %v", err)