Add doc for {namespace} path param, fixup and verify proxy paths

This commit is contained in:
derekwaynecarr
2014-12-11 13:59:51 -05:00
parent 14dd466e83
commit 6694a45542
3 changed files with 16 additions and 5 deletions

View File

@@ -154,6 +154,9 @@ func TestProxy(t *testing.T) {
if e, a := item.reqBody, string(gotBody); e != a {
t.Errorf("%v - expected %v, got %v", item.method, e, a)
}
if e, a := item.path, req.URL.Path; e != a {
t.Errorf("%v - expected %v, got %v", item.method, e, a)
}
fmt.Fprint(w, item.respBody)
}))
defer proxyServer.Close()