Improve ResourceLocation API, allow proxy to use authenticated transport

This commit is contained in:
Jordan Liggitt
2015-03-23 14:42:39 -04:00
parent 1dc7bcf53b
commit a75b501821
18 changed files with 247 additions and 72 deletions

View File

@@ -275,9 +275,10 @@ func TestProxy(t *testing.T) {
}))
defer proxyServer.Close()
serverURL, _ := url.Parse(proxyServer.URL)
simpleStorage := &SimpleRESTStorage{
errors: map[string]error{},
resourceLocation: proxyServer.URL,
resourceLocation: serverURL,
expectedResourceNamespace: item.reqNamespace,
}
@@ -335,9 +336,10 @@ func TestProxyUpgrade(t *testing.T) {
}))
defer backendServer.Close()
serverURL, _ := url.Parse(backendServer.URL)
simpleStorage := &SimpleRESTStorage{
errors: map[string]error{},
resourceLocation: backendServer.URL,
resourceLocation: serverURL,
expectedResourceNamespace: "myns",
}