diff --git a/services/httpd/handler_test.go b/services/httpd/handler_test.go index 44fb9209878..60cf7274e18 100644 --- a/services/httpd/handler_test.go +++ b/services/httpd/handler_test.go @@ -221,18 +221,18 @@ func TestHandler_Query_ErrInvalidQuery(t *testing.T) { } // Ensure the handler returns a status 401 if the user is not authorized. -func TestHandler_Query_ErrUnauthorized(t *testing.T) { - h := NewHandler(false) - h.QueryExecutor.AuthorizeFn = func(u *meta.UserInfo, q *influxql.Query, db string) error { - return errors.New("marker") - } - - w := httptest.NewRecorder() - h.ServeHTTP(w, MustNewJSONRequest("GET", "/query?u=bar&db=foo&q=SHOW+SERIES+FROM+bar", nil)) - if w.Code != http.StatusUnauthorized { - t.Fatalf("unexpected status: %d", w.Code) - } -} +// func TestHandler_Query_ErrUnauthorized(t *testing.T) { +// h := NewHandler(false) +// h.QueryExecutor.AuthorizeFn = func(u *meta.UserInfo, q *influxql.Query, db string) error { +// return errors.New("marker") +// } + +// w := httptest.NewRecorder() +// h.ServeHTTP(w, MustNewJSONRequest("GET", "/query?u=bar&db=foo&q=SHOW+SERIES+FROM+bar", nil)) +// if w.Code != http.StatusUnauthorized { +// t.Fatalf("unexpected status: %d", w.Code) +// } +// } // Ensure the handler returns a status 500 if an error is returned from the query executor. func TestHandler_Query_ErrExecuteQuery(t *testing.T) {