$ go test ./...
----------------------------------------------------------------------
FAIL: addserver_test.go:91: fixAddrSuite.TestFixAddrTypical
test 0: checking ""
test 1: checking "a.b.c"
test 2: checking "https://a.b.c"
test 3: checking "https://a.b.c/"
test 4: checking "a.b.c:1234"
test 5: checking "https://a.b.c:1234"
test 6: checking "https://a.b.c:1234/"
test 7: checking "a.b.c/x/y/z"
test 8: checking "https://a.b.c/x/y/z"
test 9: checking "https://a.b.c:1234/x/y/z"
test 10: checking "http://a.b.c"
test 11: checking "1.2.3.4"
test 12: checking "1.2.3.4:1234"
addserver_test.go:98:
if !c.Check(err, jc.ErrorIsNil) {
...
}
... value *errors.Err = &errors.Err{message:"", cause:(*url.Error)(0xc420017ce0), previous:(*url.Error)(0xc420017ce0), file:"github.com/juju/juju/tools/lxdclient/addserver.go", line:43} ("parse 1.2.3.4:1234: first path segment in URL cannot contain colon")
... error stack:
parse 1.2.3.4:1234: first path segment in URL cannot contain colon
github.com/juju/juju/tools/lxdclient/addserver.go:43:
test 13: checking "https://1.2.3.4"
test 14: checking "127.0.0.1"
test 15: checking "2001:db8::ff00:42:8329"
addserver_test.go:98:
if !c.Check(err, jc.ErrorIsNil) {
...
}
... value *errors.Err = &errors.Err{message:"", cause:(*url.Error)(0xc4203a75c0), previous:(*url.Error)(0xc4203a75c0), file:"github.com/juju/juju/tools/lxdclient/addserver.go", line:43} ("parse 2001:db8::ff00:42:8329: first path segment in URL cannot contain colon")
... error stack:
parse 2001:db8::ff00:42:8329: first path segment in URL cannot contain colon
github.com/juju/juju/tools/lxdclient/addserver.go:43:
test 16: checking "[2001:db8::ff00:42:8329]:1234"
addserver_test.go:98:
if !c.Check(err, jc.ErrorIsNil) {
...
}
... value *errors.Err = &errors.Err{message:"", cause:(*url.Error)(0xc4203d4780), previous:(*url.Error)(0xc4203d4780), file:"github.com/juju/juju/tools/lxdclient/addserver.go", line:43} ("parse [2001:db8::ff00:42:8329]:1234: first path segment in URL cannot contain colon")
... error stack:
parse [2001:db8::ff00:42:8329]:1234: first path segment in URL cannot contain colon
github.com/juju/juju/tools/lxdclient/addserver.go:43:
test 17: checking "https://2001:db8::ff00:42:8329"
test 18: checking "https://[2001:db8::ff00:42:8329]:1234"
test 19: checking "::1"
addserver_test.go:98:
if !c.Check(err, jc.ErrorIsNil) {
...
}
... value *errors.Err = &errors.Err{message:"", cause:(*url.Error)(0xc4203d5d40), previous:(*url.Error)(0xc4203d5d40), file:"github.com/juju/juju/tools/lxdclient/addserver.go", line:43} ("parse [::1]: first path segment in URL cannot contain colon")
... error stack:
parse [::1]: first path segment in URL cannot contain colon
github.com/juju/juju/tools/lxdclient/addserver.go:43:
test 20: checking "a.b.c"
OOPS: 58 passed, 1 FAILED
--- FAIL: TestPackage (1.66s)
FAIL
FAIL github.com/juju/juju/tools/lxdclient 2.358s