Fixes the experimental api, which appeared to be completely broken.

Fix for rebase with nikhiljindal/deploymentController
This commit is contained in:
Timothy St. Clair
2015-08-31 12:29:18 -04:00
parent c28b68d254
commit 2b7e758c3c
15 changed files with 73 additions and 130 deletions

View File

@@ -54,7 +54,6 @@ type Response struct {
type testClient struct {
*Client
*ExperimentalClient
Request testRequest
Response Response
Error bool
@@ -87,16 +86,6 @@ func (c *testClient) Setup() *testClient {
Version: version,
})
}
if c.ExperimentalClient == nil {
version := c.Version
if len(version) == 0 {
version = testapi.Version()
}
c.ExperimentalClient = NewExperimentalOrDie(&Config{
Host: c.server.URL,
Version: version,
})
}
c.QueryValidator = map[string]func(string, string) bool{}
return c
}