move legacy insecure options out of the main flow

This commit is contained in:
deads2k
2017-03-09 14:39:56 -05:00
parent c2f8ef1b1a
commit cd29754680
19 changed files with 253 additions and 151 deletions

View File

@@ -148,7 +148,7 @@ func TestVersion(t *testing.T) {
req, _ := http.NewRequest("GET", "/version", nil)
resp := httptest.NewRecorder()
s.GenericAPIServer.InsecureHandler.ServeHTTP(resp, req)
s.GenericAPIServer.Handler.ServeHTTP(resp, req)
if resp.Code != 200 {
t.Fatalf("expected http 200, got: %d", resp.Code)
}